|
14 | 14 |
|
15 | 15 |
|
16 | 16 |
|
| 17 | +// a simple "card object" |
| 18 | +$card-color: $body-background-color !default; |
| 19 | +.card { |
| 20 | + /* Add shadows to create the "card" effect */ |
| 21 | + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* this adds the "card" effect */ |
| 22 | + transition: 0.3s; |
| 23 | + background-color: $card-color; |
| 24 | + margin-bottom: 10px; |
| 25 | + position: relative; |
| 26 | + border-radius: 10px; |
| 27 | +} |
| 28 | + |
| 29 | +/* On mouse-over, add a deeper shadow for card */ |
| 30 | +.card:hover { |
| 31 | + box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); |
| 32 | +} |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +/* format figure caption */ |
| 37 | +figcaption { |
| 38 | + |
| 39 | + margin-bottom:20px; |
| 40 | + font-style: italic; |
| 41 | + color: $grey-dk-000; |
| 42 | + text-align: left; |
| 43 | + |
| 44 | +} |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +// Definitions of TABS |
| 50 | +$tab-header-color: $grey-lt-200 !default; |
| 51 | +.tab { |
| 52 | + overflow: hidden; |
| 53 | + background-color: $tab-header-color; |
| 54 | + border-radius: 10px; |
| 55 | +} |
| 56 | + |
| 57 | +/* Style the buttons that are used to open the tab content */ |
| 58 | +.tab button { |
| 59 | + background-color: inherit; |
| 60 | + float: left; |
| 61 | + border: none; |
| 62 | + outline: none; |
| 63 | + cursor: pointer; |
| 64 | + padding: 14px 16px; |
| 65 | + transition: 0.3s; |
| 66 | +} |
| 67 | + |
| 68 | +/* Change background color of buttons on hover */ |
| 69 | +.tab button:hover { |
| 70 | + background-color: darken($tab-header-color, 5%); |
| 71 | +} |
| 72 | + |
| 73 | +/* Create an active/current tablink class */ |
| 74 | +.tab button.active { |
| 75 | + background-color: darken($tab-header-color, 10%); |
| 76 | +} |
| 77 | + |
| 78 | +/* Style the tab content */ |
| 79 | +.tabcontent { |
| 80 | + display: none; |
| 81 | + padding: 6px 12px; |
| 82 | + border: 1px solid $border-color; |
| 83 | + border-top: none; |
| 84 | + margin-bottom: 20px; |
| 85 | +} |
| 86 | +/* Tab fading effect of 1 second */ |
| 87 | +.tabcontent { |
| 88 | + animation: fadeEffect 1s; |
| 89 | +} |
| 90 | +/* Go from zero to full opacity */ |
| 91 | +@keyframes fadeEffect { |
| 92 | + from {opacity: 0;} |
| 93 | + to {opacity: 1;} |
| 94 | +} |
| 95 | + |
| 96 | + |
| 97 | +// Define Alert and notification blocks |
| 98 | +.alert { |
| 99 | + padding: 15px; |
| 100 | + margin-bottom: 20px; |
| 101 | + border: 1px solid transparent; |
| 102 | + border-radius: 4px |
| 103 | +} |
| 104 | + |
| 105 | +.alert h4 { |
| 106 | + margin-top: 0; |
| 107 | + color: inherit |
| 108 | +} |
| 109 | + |
| 110 | +.alert .alert-link { |
| 111 | + font-weight: 700 |
| 112 | +} |
| 113 | + |
| 114 | +.alert>p, |
| 115 | +.alert>ul { |
| 116 | + margin-bottom: 0 |
| 117 | +} |
| 118 | + |
| 119 | +.alert>p+p { |
| 120 | + margin-top: 5px |
| 121 | +} |
| 122 | + |
| 123 | +.alert-dismissable, |
| 124 | +.alert-dismissible { |
| 125 | + padding-right: 35px |
| 126 | +} |
| 127 | + |
| 128 | + |
| 129 | +.alert-dismissable .close, |
| 130 | +.alert-dismissible .close { |
| 131 | + position: relative; |
| 132 | + top: -2px; |
| 133 | + right: -21px; |
| 134 | + color: inherit |
| 135 | +} |
| 136 | + |
| 137 | +.alert-success { |
| 138 | + color: #3c763d; |
| 139 | + background-color: #dff0d8; |
| 140 | + border-color: #d6e9c6 |
| 141 | +} |
| 142 | + |
| 143 | +.alert-success hr { |
| 144 | + border-top-color: #c9e2b3 |
| 145 | +} |
| 146 | + |
| 147 | +.alert-success .alert-link { |
| 148 | + color: #2b542c |
| 149 | +} |
| 150 | + |
| 151 | +.alert-info { |
| 152 | + color: #31708f; |
| 153 | + background-color: #d9edf7; |
| 154 | + border-color: #bce8f1 |
| 155 | +} |
| 156 | + |
| 157 | +.alert-info hr { |
| 158 | + border-top-color: #a6e1ec |
| 159 | +} |
| 160 | + |
| 161 | +.alert-info .alert-link { |
| 162 | + color: #245269 |
| 163 | +} |
| 164 | + |
| 165 | +.alert-warning { |
| 166 | + color: #8a6d3b; |
| 167 | + background-color: #fcf8e3; |
| 168 | + border-color: #faebcc |
| 169 | +} |
| 170 | + |
| 171 | +.alert-warning hr { |
| 172 | + border-top-color: #f7e1b5 |
| 173 | +} |
| 174 | + |
| 175 | +.alert-warning .alert-link { |
| 176 | + color: #66512c |
| 177 | +} |
| 178 | + |
| 179 | +.alert-danger { |
| 180 | + color: #a94442; |
| 181 | + background-color: #f2dede; |
| 182 | + border-color: #ebccd1 |
| 183 | +} |
| 184 | + |
| 185 | +.alert-danger hr { |
| 186 | + border-top-color: #e4b9c0 |
| 187 | +} |
| 188 | + |
| 189 | +.alert-danger .alert-link { |
| 190 | + color: #843534 |
| 191 | +} |
| 192 | + |
| 193 | + |
| 194 | + |
0 commit comments