Debian Codegraph @

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

raw
1 // Lumen 4.6.0
2 // Bootswatch
3
4
5 // Variables ===================================================================
6
7 $web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" !default;
8 @import url($web-font-path);
9
10 // Mixins ======================================================================
11
12 @mixin shadow($width: 4px){
13 border-style: solid;
14 border-width: 0 1px $width 1px;
15 }
16
17 // Navbar ======================================================================
18
19 .navbar {
20 @include shadow();
21 }
22
23 .bg-primary {
24 border-color: darken($primary, 5%);
25 }
26
27 .bg-dark {
28 border-color: darken($dark, 5%);
29 }
30
31 .bg-light {
32 background-color: $white !important;
33 border-color: darken($white, 5%);
34 }
35
36 // Buttons =====================================================================
37
38 .btn {
39 @include shadow();
40 text-transform: uppercase;
41
42 &:not(.disabled):hover {
43 margin-top: 1px;
44 border-bottom-width: 3px;
45 }
46
47 &:not(.disabled):active {
48 margin-top: 2px;
49 border-bottom-width: 2px;
50 @include box-shadow(none);
51 }
52
53 &-primary {
54 border-color: darken($primary, 5%);
55 }
56
57 &-secondary {
58 border-color: darken($secondary, 5%);
59 }
60
61 &-success {
62 border-color: darken($success, 5%);
63 }
64
65 &-info {
66 border-color: darken($info, 5%);
67 }
68
69 &-danger {
70 border-color: darken($danger, 5%);
71 }
72
73 &-warning {
74 border-color: darken($warning, 5%);
75 }
76
77 &-light {
78 border-color: darken($light, 5%);
79 }
80
81 &-dark {
82 border-color: darken($dark, 5%);
83 }
84 }
85
86 [class*="btn-outline"] {
87 border-top-width: 1px;
88 }
89
90 .btn-group-vertical {
91 .btn + .btn {
92 &:hover {
93 margin-top: -1px;
94 border-top-width: 1px;
95 }
96
97 &:active {
98 margin-top: -1px;
99 border-top-width: 2px;
100 }
101 }
102 }
103
104 // Typography ==================================================================
105
106 .text-secondary {
107 color: $gray-700 !important;
108 }
109
110 .blockquote-footer {
111 color: $gray-600;
112 }
113
114 // Tables ======================================================================
115
116 .table {
117 &-primary,
118 &-success,
119 &-info,
120 &-warning,
121 &-danger {
122 color: $white;
123 }
124
125 &-hover tbody {
126 .table-primary:hover,
127 .table-success:hover,
128 .table-info:hover,
129 .table-warning:hover,
130 .table-danger:hover,
131 .table-dark:hover {
132 color: $white;
133 }
134 }
135
136 &-primary {
137 &,
138 > th,
139 > td {
140 background-color: $primary;
141 }
142 }
143
144 &-secondary {
145 &,
146 > th,
147 > td {
148 background-color: $secondary;
149 }
150 }
151
152 &-light {
153 &,
154 > th,
155 > td {
156 background-color: $light;
157 }
158 }
159
160 &-dark {
161 &,
162 > th,
163 > td {
164 background-color: $dark;
165 }
166 }
167
168 &-success {
169 &,
170 > th,
171 > td {
172 background-color: $success;
173 }
174 }
175
176 &-info {
177 &,
178 > th,
179 > td {
180 background-color: $info;
181 }
182 }
183
184 &-danger {
185 &,
186 > th,
187 > td {
188 background-color: $danger;
189 }
190 }
191
192 &-warning {
193 &,
194 > th,
195 > td {
196 background-color: $warning;
197 }
198 }
199
200 &-active {
201 &,
202 > th,
203 > td {
204 background-color: $table-active-bg;
205 }
206 }
207
208 &-hover {
209 .table-primary:hover {
210 &,
211 > th,
212 > td {
213 background-color: darken($primary, 5%);
214 }
215 }
216
217 .table-secondary:hover {
218 &,
219 > th,
220 > td {
221 background-color: darken($secondary, 5%);
222 }
223 }
224
225 .table-light:hover {
226 &,
227 > th,
228 > td {
229 background-color: darken($light, 5%);
230 }
231 }
232
233 .table-dark:hover {
234 &,
235 > th,
236 > td {
237 background-color: darken($dark, 5%);
238 }
239 }
240
241 .table-success:hover {
242 &,
243 > th,
244 > td {
245 background-color: darken($success, 5%);
246 }
247 }
248
249 .table-info:hover {
250 &,
251 > th,
252 > td {
253 background-color: darken($info, 5%);
254 }
255 }
256
257 .table-danger:hover {
258 &,
259 > th,
260 > td {
261 background-color: darken($danger, 5%);
262 }
263 }
264
265 .table-warning:hover {
266 &,
267 > th,
268 > td {
269 background-color: darken($warning, 5%);
270 }
271 }
272
273 .table-active:hover {
274 &,
275 > th,
276 > td {
277 background-color: $table-active-bg;
278 }
279 }
280
281 }
282 }
283
284 // Forms =======================================================================
285
286 .form-control {
287 box-shadow: inset 0 2px 0 rgba(0, 0, 0, .075);
288 }
289
290 .input-group-sm {
291 > .input-group-prepend,
292 > .input-group-append {
293 .btn {
294 font-size: $btn-font-size-sm;
295 }
296 }
297 }
298
299 // Navs ========================================================================
300
301 .nav {
302 .open > a,
303 .open > a:hover,
304 .open > a:focus {
305 border-color: transparent;
306 }
307 }
308
309 .nav-tabs {
310 .nav-link {
311 color: $body-color;
312
313 &,
314 &.disabled,
315 &.disabled:hover,
316 &.disabled:focus {
317 margin-top: 6px;
318 border-color: $nav-tabs-border-color;
319 transition: padding-bottom .2s ease-in-out, margin-top .2s ease-in-out, border-bottom .2s ease-in-out;
320 }
321
322 &:not(.disabled):hover,
323 &:not(.disabled):focus,
324 &.active {
325 padding-bottom: add(.5rem, 6px);
326 border-bottom-color: transparent;
327 margin-top: 0;
328 }
329 }
330
331 &.nav-justified > li {
332 vertical-align: bottom;
333 }
334 }
335
336 .dropdown-menu {
337 margin-top: 0;
338 @include shadow();
339 border-top-width: 1px;
340 @include box-shadow(none);
341 }
342
343 .breadcrumb {
344 border-color: darken($breadcrumb-bg, 5%);
345 @include shadow();
346 }
347
348 .pagination {
349 > li > a,
350 > li > span {
351 position: relative;
352 top: 0;
353 @include shadow();
354 color: $pagination-color;
355 font-size: 12px;
356 font-weight: 700;
357 text-transform: uppercase;
358
359 &:hover,
360 &:focus {
361 top: 1px;
362 border-bottom-width: 3px;
363 text-decoration: none;
364 }
365
366 &:active {
367 top: 2px;
368 border-bottom-width: 2px;
369 }
370 }
371
372 > .disabled > a,
373 > .disabled > span {
374 &:hover {
375 top: 0;
376 @include shadow();
377 }
378
379 &:active {
380 top: 0;
381 @include shadow();
382 }
383 }
384 }
385
386 .pager {
387 > li > a,
388 > li > span,
389 > .disabled > a,
390 > .disabled > span {
391 &,
392 &:hover,
393 &:active {
394 border-left-width: 2px;
395 border-right-width: 2px;
396 }
397 }
398 }
399
400 // Indicators ==================================================================
401
402 .close {
403 text-decoration: none;
404 opacity: .4;
405
406 &:hover,
407 &:focus {
408 opacity: 1;
409 }
410 }
411
412 .alert {
413 color: $white;
414 @include shadow();
415
416 &-primary {
417 background-color: $primary;
418 border-color: darken($primary, 5%);
419 }
420
421 &-secondary {
422 background-color: $secondary;
423 border-color: darken($secondary, 5%);
424 }
425
426 &-success {
427 background-color: $success;
428 border-color: darken($success, 5%);
429 }
430
431 &-info {
432 background-color: $info;
433 border-color: darken($info, 5%);
434 }
435
436 &-danger {
437 background-color: $danger;
438 border-color: darken($danger, 5%);
439 }
440
441 &-warning {
442 background-color: $warning;
443 border-color: darken($warning, 5%);
444 }
445
446 &-dark {
447 background-color: $dark;
448 border-color: darken($dark, 5%);
449 }
450
451 &-light {
452 background-color: $light;
453 border-color: darken($light, 5%);
454 }
455
456 .alert-link {
457 font-weight: 400;
458 color: $white;
459 text-decoration: underline;
460 }
461
462 &-secondary,
463 &-light {
464 &,
465 a,
466 .alert-link {
467 color: $body-color;
468 }
469 }
470 }
471
472 .badge {
473 &-warning,
474 &-info {
475 color: $white;
476 }
477 }
478
479 // Containers ==================================================================
480
481 a.list-group-item {
482 &-success {
483 &.active {
484 background-color: $success;
485 }
486
487 &.active:hover,
488 &.active:focus {
489 background-color: darken($success, 5%);
490 }
491 }
492
493 &-warning {
494 &.active {
495 background-color: $warning;
496 }
497
498 &.active:hover,
499 &.active:focus {
500 background-color: darken($warning, 5%);
501 }
502 }
503
504 &-danger {
505 &.active {
506 background-color: $danger;
507 }
508
509 &.active:hover,
510 &.active:focus {
511 background-color: darken($danger, 5%);
512 }
513 }
514 }
515
516 .jumbotron {
517 border: 1px solid $gray-200;
518 box-shadow: inset 0 2px 0 rgba(0, 0, 0, .05);
519 }
520
521 .modal,
522 .toast {
523 .close {
524 color: $black;
525
526 &:not(:disabled):not(.disabled):hover,
527 &:not(:disabled):not(.disabled):focus {
528 color: $black;
529 }
530 }
531 }