| 1 |
// Spacelab 5.3.1 |
| 2 |
// Bootswatch |
| 3 |
|
| 4 |
|
| 5 |
// Variables |
| 6 |
|
| 7 |
$web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" !default; |
| 8 |
@if $web-font-path { |
| 9 |
@import url($web-font-path); |
| 10 |
} |
| 11 |
|
| 12 |
// Mixins |
| 13 |
|
| 14 |
@mixin btn-shadow($color) { |
| 15 |
@include gradient-y-three-colors(tint-color($color, 24%), $color, 50%, shade-color($color, 8%)); |
| 16 |
filter: none; |
| 17 |
border: 1px solid shade-color($color, 20%); |
| 18 |
} |
| 19 |
|
| 20 |
// Navbar |
| 21 |
|
| 22 |
.navbar { |
| 23 |
.nav-link, |
| 24 |
.navbar-brand { |
| 25 |
text-shadow: -1px -1px 0 rgba($black, .05); |
| 26 |
transition: color ease-in-out .2s; |
| 27 |
} |
| 28 |
|
| 29 |
@each $color, $value in $theme-colors { |
| 30 |
&.bg-#{$color} { |
| 31 |
@include btn-shadow($value); |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
&.bg-light, &.navbar-default { |
| 36 |
.nav-link, |
| 37 |
.navbar-brand { |
| 38 |
text-shadow: 1px 1px 0 rgba(255, 255, 255, .1); |
| 39 |
} |
| 40 |
|
| 41 |
.navbar-brand { |
| 42 |
color: $navbar-light-color; |
| 43 |
|
| 44 |
&:hover { |
| 45 |
color: $info; |
| 46 |
} |
| 47 |
} |
| 48 |
} |
| 49 |
} |
| 50 |
|
| 51 |
// Buttons |
| 52 |
|
| 53 |
.btn { |
| 54 |
text-shadow: -1px -1px 0 rgba($black, .1); |
| 55 |
|
| 56 |
&-link { |
| 57 |
text-shadow: none; |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
@each $color, $value in $theme-colors { |
| 62 |
.btn-#{$color} { |
| 63 |
@include btn-shadow($value); |
| 64 |
} |
| 65 |
|
| 66 |
.btn-#{$color}:not(.disabled):hover { |
| 67 |
@include btn-shadow(shade-color($value, 8%)); |
| 68 |
} |
| 69 |
} |
| 70 |
|
| 71 |
[class*="btn-outline-"] { |
| 72 |
text-shadow: none; |
| 73 |
} |
| 74 |
|
| 75 |
// Indicators |
| 76 |
|
| 77 |
.badge { |
| 78 |
&.bg-light { |
| 79 |
color: $dark; |
| 80 |
} |
| 81 |
} |
| 82 |
|
| 83 |
// Containers |
| 84 |
|
| 85 |
.card, |
| 86 |
.list-group-item { |
| 87 |
h1, |
| 88 |
h2, |
| 89 |
h3, |
| 90 |
h4, |
| 91 |
h5, |
| 92 |
h6 { |
| 93 |
color: inherit; |
| 94 |
} |
| 95 |
} |