| 1 |
// Slate 5.3.1 |
| 2 |
// Bootswatch |
| 3 |
|
| 4 |
|
| 5 |
// Variables |
| 6 |
|
| 7 |
// Mixins |
| 8 |
|
| 9 |
@mixin btn-shadow($color){ |
| 10 |
@include gradient-y-three-colors(tint-color($color, 12%), $color, 60%, shade-color($color, 8%)); |
| 11 |
filter: none; |
| 12 |
} |
| 13 |
|
| 14 |
@mixin btn-shadow-inverse($color){ |
| 15 |
@include gradient-y-three-colors(shade-color($color, 16%), shade-color($color, 10%), 40%, shade-color($color, 6%)); |
| 16 |
filter: none; |
| 17 |
} |
| 18 |
|
| 19 |
@mixin btn-shadow-inverse-dark($color){ |
| 20 |
@include gradient-y-three-colors(shade-color($color, 36%), shade-color($color, 30%), 40%, shade-color($color, 26%)); |
| 21 |
filter: none; |
| 22 |
} |
| 23 |
|
| 24 |
// Navbar |
| 25 |
|
| 26 |
.navbar { |
| 27 |
text-shadow: 1px 1px 1px rgba($contrast-fg, .2); |
| 28 |
border: 1px solid rgba($contrast-fg, .6); |
| 29 |
|
| 30 |
.container { |
| 31 |
padding: 0; |
| 32 |
} |
| 33 |
|
| 34 |
.navbar-toggler { |
| 35 |
border-color: rgba($contrast-fg, .6); |
| 36 |
} |
| 37 |
|
| 38 |
&-fixed-top { |
| 39 |
border-width: 0 0 1px; |
| 40 |
} |
| 41 |
|
| 42 |
&-fixed-bottom { |
| 43 |
border-width: 1px 0 0; |
| 44 |
} |
| 45 |
|
| 46 |
.nav-link { |
| 47 |
padding: 1rem; |
| 48 |
border-right: 1px solid rgba($contrast-fg, .2); |
| 49 |
border-left: 1px solid rgba($contrast-bg, .1); |
| 50 |
} |
| 51 |
|
| 52 |
&-brand { |
| 53 |
padding: .75rem 1rem subtract(24px, .75rem); |
| 54 |
margin-right: 0; |
| 55 |
border-right: 1px solid rgba($contrast-fg, .2); |
| 56 |
} |
| 57 |
|
| 58 |
.nav-item.active .nav-link { |
| 59 |
background-color: rgba($contrast-fg, .3); |
| 60 |
border-left: 1px solid rgba($contrast-fg, .2); |
| 61 |
} |
| 62 |
|
| 63 |
&-nav .nav-item + .nav-item { |
| 64 |
margin-left: 0; |
| 65 |
} |
| 66 |
|
| 67 |
@each $color, $value in $theme-colors { |
| 68 |
&.bg-#{$color} { |
| 69 |
|
| 70 |
.nav-link { |
| 71 |
&:hover { |
| 72 |
@include btn-shadow-inverse($value); |
| 73 |
border-left: 1px solid rgba($contrast-fg, .2); |
| 74 |
} |
| 75 |
|
| 76 |
&:active, |
| 77 |
&.active { |
| 78 |
@include btn-shadow-inverse-dark($value); |
| 79 |
border-left: 1px solid rgba($contrast-fg, .2); |
| 80 |
} |
| 81 |
} |
| 82 |
} |
| 83 |
} |
| 84 |
} |
| 85 |
|
| 86 |
@media (max-width: 576px) { |
| 87 |
.navbar-expand-sm { |
| 88 |
.navbar-brand, |
| 89 |
.nav-link { |
| 90 |
border: none !important; |
| 91 |
} |
| 92 |
} |
| 93 |
} |
| 94 |
|
| 95 |
@media (max-width: 768px) { |
| 96 |
.navbar-expand-md { |
| 97 |
.navbar-brand, |
| 98 |
.nav-link { |
| 99 |
border: none !important; |
| 100 |
} |
| 101 |
} |
| 102 |
} |
| 103 |
|
| 104 |
@media (max-width: 992px) { |
| 105 |
.navbar-expand-lg { |
| 106 |
.navbar-brand, |
| 107 |
.nav-link { |
| 108 |
border: none !important; |
| 109 |
} |
| 110 |
} |
| 111 |
} |
| 112 |
|
| 113 |
// Buttons |
| 114 |
|
| 115 |
.btn { |
| 116 |
text-shadow: 1px 1px 1px rgba($contrast-fg, .3); |
| 117 |
border-color: rgba($contrast-fg, .6); |
| 118 |
|
| 119 |
&:not([disabled]):not(.disabled).active, |
| 120 |
&.disabled { |
| 121 |
border-color: rgba($contrast-fg, .6); |
| 122 |
box-shadow: none; |
| 123 |
} |
| 124 |
|
| 125 |
&:hover, |
| 126 |
&:focus, |
| 127 |
&:not([disabled]):not(.disabled):active, |
| 128 |
&:not([disabled]):not(.disabled):active:hover, |
| 129 |
&:not([disabled]):not(.disabled).active:hover { |
| 130 |
border-color: rgba($contrast-fg, .6); |
| 131 |
} |
| 132 |
|
| 133 |
@each $color, $value in $theme-colors { |
| 134 |
&-#{$color} { |
| 135 |
@include btn-shadow($value); |
| 136 |
|
| 137 |
&:not([disabled]):not(.disabled):hover { |
| 138 |
@include btn-shadow-inverse($value); |
| 139 |
} |
| 140 |
|
| 141 |
&:not([disabled]):not(.disabled):active:hover, |
| 142 |
&:not([disabled]):not(.disabled).active:hover { |
| 143 |
@include btn-shadow-inverse-dark($value); |
| 144 |
} |
| 145 |
} |
| 146 |
} |
| 147 |
} |
| 148 |
|
| 149 |
.btn-outline { |
| 150 |
&-primary { |
| 151 |
color: $white; |
| 152 |
} |
| 153 |
} |
| 154 |
|
| 155 |
.btn-link, |
| 156 |
.btn-link:hover { |
| 157 |
border-color: transparent; |
| 158 |
} |
| 159 |
|
| 160 |
.btn-group, |
| 161 |
.btn-group-vertical { |
| 162 |
.btn.active { |
| 163 |
border-color: rgba($contrast-fg, .6); |
| 164 |
} |
| 165 |
} |
| 166 |
|
| 167 |
.btn-check:checked + .btn, |
| 168 |
.btn-check + .btn:hover { |
| 169 |
color: $white; |
| 170 |
border-color: rgba($contrast-fg, .6); |
| 171 |
} |
| 172 |
|
| 173 |
// Typography |
| 174 |
|
| 175 |
h1, |
| 176 |
h2, |
| 177 |
h3, |
| 178 |
h4, |
| 179 |
h5, |
| 180 |
h6 { |
| 181 |
text-shadow: -1px -1px 0 rgba($contrast-fg, .3); |
| 182 |
} |
| 183 |
|
| 184 |
// Forms |
| 185 |
|
| 186 |
legend { |
| 187 |
color: $white; |
| 188 |
} |
| 189 |
|
| 190 |
.input-group-addon { |
| 191 |
@include btn-shadow($secondary); |
| 192 |
color: $white; |
| 193 |
text-shadow: 1px 1px 1px rgba($contrast-fg, .3); |
| 194 |
} |
| 195 |
|
| 196 |
// Navs |
| 197 |
|
| 198 |
.nav-tabs { |
| 199 |
.nav-link { |
| 200 |
@include btn-shadow-inverse(body-mix(66.7%)); |
| 201 |
border: 1px solid rgba($contrast-fg, .6); |
| 202 |
|
| 203 |
&:not([disabled]):not(.disabled):hover, |
| 204 |
&:not([disabled]):not(.disabled):focus, |
| 205 |
&:not([disabled]):not(.disabled):active, |
| 206 |
&:not([disabled]):not(.disabled).active { |
| 207 |
@include btn-shadow(body-mix(66.7%)); |
| 208 |
} |
| 209 |
|
| 210 |
&.disabled { |
| 211 |
border: 1px solid rgba($contrast-fg, .6); |
| 212 |
} |
| 213 |
} |
| 214 |
|
| 215 |
.nav-link, |
| 216 |
.nav-link:hover { |
| 217 |
color: $white; |
| 218 |
} |
| 219 |
} |
| 220 |
|
| 221 |
.nav-pills { |
| 222 |
.nav-link { |
| 223 |
@include btn-shadow(body-mix(66.7%)); |
| 224 |
color: $white; |
| 225 |
text-shadow: 1px 1px 1px rgba($contrast-fg, .3); |
| 226 |
border: 1px solid rgba($contrast-fg, .6); |
| 227 |
|
| 228 |
&:hover { |
| 229 |
@include btn-shadow-inverse(body-mix(66.7%)); |
| 230 |
border: 1px solid rgba($contrast-fg, .6); |
| 231 |
} |
| 232 |
} |
| 233 |
|
| 234 |
.nav-link.active, |
| 235 |
.nav-link:hover { |
| 236 |
background-color: transparent; |
| 237 |
@include btn-shadow-inverse(body-mix(66.7%)); |
| 238 |
border: 1px solid rgba($contrast-fg, .6); |
| 239 |
} |
| 240 |
|
| 241 |
.nav-link.disabled, |
| 242 |
.nav-link.disabled:hover { |
| 243 |
@include btn-shadow(body-mix(66.7%)); |
| 244 |
color: $nav-link-disabled-color; |
| 245 |
} |
| 246 |
} |
| 247 |
|
| 248 |
.pagination { |
| 249 |
.page-link { |
| 250 |
text-shadow: 1px 1px 1px rgba($contrast-fg, .3); |
| 251 |
@include btn-shadow(body-mix(66.7%)); |
| 252 |
|
| 253 |
&:hover { |
| 254 |
@include btn-shadow-inverse(body-mix(66.7%)); |
| 255 |
text-decoration: none; |
| 256 |
} |
| 257 |
} |
| 258 |
|
| 259 |
.page-item.active .page-link { |
| 260 |
@include btn-shadow-inverse(body-mix(66.7%)); |
| 261 |
} |
| 262 |
|
| 263 |
.page-item.disabled .page-link { |
| 264 |
@include btn-shadow(body-mix(66.7%)); |
| 265 |
} |
| 266 |
} |
| 267 |
|
| 268 |
.breadcrumb { |
| 269 |
text-shadow: 1px 1px 1px rgba($contrast-fg, .3); |
| 270 |
background-color: transparent; |
| 271 |
border: 1px solid rgba($contrast-fg, .6); |
| 272 |
@include btn-shadow(body-mix(66.7%)); |
| 273 |
|
| 274 |
a, |
| 275 |
a:hover { |
| 276 |
color: $white; |
| 277 |
} |
| 278 |
} |
| 279 |
|
| 280 |
// Indicators |
| 281 |
|
| 282 |
.alert { |
| 283 |
color: $white; |
| 284 |
border: none; |
| 285 |
|
| 286 |
a, |
| 287 |
.alert-link { |
| 288 |
color: $white; |
| 289 |
text-decoration: underline; |
| 290 |
} |
| 291 |
|
| 292 |
@each $color, $value in $theme-colors { |
| 293 |
&-#{$color} { |
| 294 |
background-color: $value; |
| 295 |
} |
| 296 |
} |
| 297 |
|
| 298 |
&-light { |
| 299 |
&, |
| 300 |
a:not(.btn), |
| 301 |
.alert-link { |
| 302 |
color: $dark; |
| 303 |
} |
| 304 |
} |
| 305 |
} |
| 306 |
|
| 307 |
.badge { |
| 308 |
&.bg-light { |
| 309 |
color: $dark; |
| 310 |
} |
| 311 |
} |
| 312 |
|
| 313 |
// Containers |
| 314 |
|
| 315 |
.list-group { |
| 316 |
&-item { |
| 317 |
color: $white; |
| 318 |
|
| 319 |
&-light { |
| 320 |
color: $dark; |
| 321 |
} |
| 322 |
} |
| 323 |
|
| 324 |
&-item-action:hover { |
| 325 |
background-color: shade-color($gray-900, 10%); |
| 326 |
} |
| 327 |
} |