Debian Codegraph @

inst/lib/bsw4/dist/spacelab/_bootswatch.scss

raw
1 // Spacelab 4.6.0
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 @import url($web-font-path);
9
10 // Mixins ======================================================================
11
12 @mixin btn-shadow($color){
13 @include gradient-y-three-colors(lighten($color, 15%), $color, 50%, darken($color, 4%));
14 filter: none;
15 border: 1px solid darken($color, 10%);
16 }
17
18 // Navbar ======================================================================
19
20 .navbar {
21 .nav-link,
22 .navbar-brand {
23 text-shadow: -1px -1px 0 rgba($black, .1);
24 transition: color ease-in-out .2s;
25 }
26
27 &.bg-primary {
28 @include btn-shadow(map-get($theme-colors, "primary"));
29 }
30
31 &.bg-dark, &.navbar-inverse {
32 @include btn-shadow(map-get($theme-colors, "secondary"));
33 }
34
35 &.bg-light, &.navbar-default {
36 @include btn-shadow(map-get($theme-colors, "light"));
37
38 .nav-link,
39 .navbar-brand {
40 text-shadow: 1px 1px 0 rgba($white, .1);
41 }
42
43 .navbar-brand {
44 color: $navbar-light-color;
45
46 &:hover {
47 color: $info;
48 }
49 }
50 }
51 }
52
53 // Buttons =====================================================================
54
55 .btn {
56 text-shadow: -1px -1px 0 rgba($black, .1);
57
58 &-link {
59 text-shadow: none;
60 }
61 }
62
63 @each $color, $value in $theme-colors {
64 .btn-#{$color} {
65 @include btn-shadow($value);
66 }
67
68 .btn-#{$color}:not(.disabled):hover {
69 @include btn-shadow(darken($value, 4%));
70 }
71 }
72
73 [class*="btn-outline-"] {
74 text-shadow: none;
75 }
76
77 // Indicators ==================================================================
78
79 .badge {
80 &-secondary {
81 color: $white;
82 }
83 }
84
85 // Containers ==================================================================
86
87 .card,
88 .list-group-item {
89 h1,
90 h2,
91 h3,
92 h4,
93 h5,
94 h6 {
95 color: inherit;
96 }
97 }