Debian Codegraph @

inst/lib/bsw5/dist/vapor/_bootswatch.scss

raw
1 // Vapor 5.3.1
2 // Bootswatch
3
4
5 // Variables
6
7 $web-font-path: "https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap" !default;
8 @if $web-font-path {
9 @import url($web-font-path);
10 }
11
12 $outrun: false !default;
13
14 // Mixins
15
16 @mixin text-shadow($color) {
17 text-shadow: 0 0 1px rgba($color, .6), 0 0 3px rgba($color, .5), 0 0 .5rem rgba($color, .3), 0 0 2rem rgba($color, .2);
18 }
19
20 @mixin text-shadow-sm($color) {
21 text-shadow: 0 0 1px rgba($color, .3), 0 0 2px rgba($color, .3), 0 0 5px rgba($color, .2);
22 }
23
24 @mixin box-shadow($color) {
25 box-shadow: 0 0 2px rgba($color, .9), 0 0 4px rgba($color, .4), 0 0 1rem rgba($color, .3), 0 0 4rem rgba($color, .1);
26 }
27
28 @mixin box-shadow-lg($color) {
29 box-shadow: 0 0 2rem rgba(tint-color($color, 10%), .4), 0 0 8rem rgba(tint-color($color, 10%), .3);
30 }
31
32 @mixin header-shadow($color) {
33 h1,
34 h2,
35 h3,
36 h4,
37 h5,
38 h6,
39 .h1,
40 .h2,
41 .h3,
42 .h4,
43 .h5,
44 .h6 {
45 @include text-shadow($color);
46 }
47 }
48
49 // Body
50
51 body {
52 min-height: 100vh;
53 background-image: linear-gradient(shade-color($body-bg, 10%) 0%, $body-bg 7%, $body-bg 80%, shade-color(#173e98, 50%) 100%);
54 @include text-shadow-sm($body-color);
55
56 @if ($outrun) {
57 position: relative;
58 overflow-x: hidden;
59
60 &::after {
61 position: absolute;
62 bottom: 0;
63 left: -50vw;
64 z-index: -1;
65 display: block;
66 width: 200vw;
67 height: 100vh;
68 content: "";
69 background-image: repeating-linear-gradient(rgba($blue, .6) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, rgba($blue, .6) 0 1px, transparent 1px 100%);
70 background-size: 200px 200px;
71 transform: perspective(50vh) rotateX(50deg) translateY(-11.3vh) translateZ(10px);
72 transform-origin: center center;
73 }
74 }
75 }
76
77 // Typography
78
79 @include header-shadow($cyan);
80
81 .text {
82 @each $color, $value in $theme-colors {
83 &-#{$color} {
84 @include text-shadow-sm($value);
85 }
86 }
87
88 &-white {
89 @include text-shadow-sm($white);
90 @include header-shadow($white);
91 }
92
93 &-muted {
94 @include text-shadow-sm(shade-color($text-muted, 20%));
95 }
96 }
97
98 a {
99 @include text-shadow-sm($link-color);
100 }
101
102 .blockquote {
103
104 &-footer {
105 @include text-shadow-sm(shade-color($blockquote-footer-color, 20%));
106 }
107 }
108
109 hr {
110 border-top: 1px solid $primary;
111 @include box-shadow($primary);
112 opacity: 1;
113 }
114
115 // Tables
116
117 table,
118 .table {
119 @include text-shadow-sm($white);
120 }
121
122 // Buttons
123
124 .btn {
125 @each $color, $value in $theme-colors {
126 @if (($color != dark) or ($color != link)) {
127 &-#{$color},
128 &-outline-#{$color} {
129 @include box-shadow($value);
130 }
131 }
132
133 &-#{$color} {
134 @include text-shadow-sm($white);
135 }
136
137 &-outline-#{$color} {
138 color: $white;
139 border-width: 2px;
140 }
141 }
142
143 &-dark {
144 @include box-shadow($primary);
145 }
146
147 &-link {
148 box-shadow: none;
149 @include text-shadow($body-color);
150 }
151
152 &-outline-dark {
153 color: $white;
154 }
155 }
156
157 // Navbars
158
159 .navbar {
160 @each $color, $value in $theme-colors {
161 &.bg-#{$color} {
162 @include box-shadow($value);
163 }
164 }
165
166 &[data-bs-theme="dark"] {
167 &,
168 a {
169 @include text-shadow-sm($white);
170 }
171
172 .navbar-brand {
173 @include text-shadow($white);
174 }
175 }
176
177 &[data-bs-theme="light"] {
178 &,
179 a {
180 @include text-shadow-sm($black);
181 }
182
183 .navbar-brand {
184 @include text-shadow($black);
185 }
186 }
187 }
188
189 // Navs
190
191 .nav-link {
192 &.disabled {
193 @include text-shadow-sm($nav-link-disabled-color);
194 }
195 }
196
197 .nav-tabs .nav-link.active,
198 .nav-tabs .nav-item.show .nav-link {
199 @include text-shadow-sm($component-active-bg);
200 }
201
202 .nav-pills .nav-link.active,
203 .nav-pills .show > .nav-link {
204 @include box-shadow($component-active-bg);
205 }
206
207 .breadcrumb {
208 &-item.active {
209 @include text-shadow-sm($breadcrumb-active-color);
210 }
211
212 &-item + .breadcrumb-item::before {
213 @include text-shadow-sm($breadcrumb-divider-color);
214 }
215 }
216
217 .page-link {
218 border-radius: $border-radius;
219 }
220
221 .page-item.active {
222 .page-link {
223 @include box-shadow($component-active-bg);
224 }
225 }
226
227 // Forms
228
229 legend {
230 @include text-shadow($body-color);
231 }
232
233 .valid-feedback {
234 @include text-shadow-sm($success);
235 }
236
237 .invalid-feedback {
238 @include text-shadow-sm($danger);
239 }
240
241 // Indicators
242
243 .alert {
244 @each $color, $value in $theme-colors {
245 &-#{$color} {
246 color: $white;
247 background-color: $value;
248 @include text-shadow-sm($white);
249 @include box-shadow-lg($value);
250 }
251 }
252
253 .alert-link,
254 a {
255 color: $white;
256 }
257
258 @include header-shadow($white);
259 }
260
261 .progress {
262 overflow: visible;
263
264 &-bar {
265 @include box-shadow($primary);
266
267 @each $color, $value in $theme-colors {
268 &.bg-#{$color} {
269 @include box-shadow($value);
270 }
271 }
272 }
273 }
274
275 .tooltip {
276 --bs-tooltip-bg: var(--bs-body-bg);
277 --bs-tooltip-color: var(--bs-body-color);
278
279 &-inner,
280 .arrow {
281 @include box-shadow-lg($primary);
282 }
283 }
284
285 .modal,
286 .popover,
287 .toast {
288 @include text-shadow-sm($white);
289 @include header-shadow($white);
290 }
291
292 .popover,
293 .toast {
294 @include box-shadow-lg($primary);
295 }
296
297 .modal {
298 &-content {
299 @include box-shadow-lg($primary);
300 }
301 }
302
303 // Containers
304
305 .list-group {
306
307 &-item.active {
308 @include header-shadow($white);
309 }
310 }
311
312 .card {
313 background-color: transparent;
314 @include text-shadow-sm($white);
315
316 @each $color, $value in $theme-colors {
317 @if ($color != dark) {
318 &.border-#{$color} {
319 @include box-shadow($value);
320 }
321 }
322 }
323
324 &.border-dark {
325 @include box-shadow($primary);
326 }
327
328 @include header-shadow($white);
329 }