Debian Codegraph @

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

raw
1 // Sketchy 5.3.1
2 // Bootswatch
3
4
5 // Variables
6
7 $web-font-path: "https://fonts.googleapis.com/css?family=Neucha|Cabin+Sketch&display=swap" !default;
8 @if $web-font-path {
9 @import url($web-font-path);
10 }
11
12 // stylelint-disable scss/dollar-variable-default
13 $border-radius-sketchy: 255px 25px 225px 25px / 25px 225px 25px 255px;
14 $border-radius-lg-sketchy: 55px 225px 15px 25px / 25px 25px 35px 355px;
15 $border-radius-sm-sketchy: 255px 25px 225px 25px / 25px 225px 25px 255px;
16 // style-enable scss/dollar-variable-default
17
18 // Navbar
19
20 .navbar {
21 border-style: solid;
22 border-width: 2px;
23 border-radius: 25px 25px 55px 5px/5px 55px 25px 25px;
24
25 &.bg-light {
26 border-color: $gray-800;
27 }
28
29 &.fixed-top {
30 border-width: 0 0 2px;
31 border-radius: 0 25px 225px 0/25px 0 25px 255px;
32 }
33
34 &.fixed-bottom {
35 border-width: 2px 0 0;
36 border-radius: 255px 25px 0 25px/25px 225px 25px 0;
37 }
38
39 &-brand {
40 font-family: $headings-font-family;
41 font-weight: 400;
42 text-decoration: none;
43 }
44 }
45
46 // Buttons
47
48 .btn {
49 text-decoration: none;
50 border-radius: $border-radius-sketchy;
51
52 &-lg {
53 border-radius: $border-radius-lg-sketchy;
54 }
55
56 &-sm {
57 border-radius: $border-radius-sm-sketchy;
58 }
59 }
60
61 .btn-check {
62 display: inline-block;
63 opacity: 0;
64 }
65
66 // Typography
67
68 button,
69 input,
70 optgroup,
71 select,
72 textarea {
73 font-family: $font-family-sans-serif;
74 }
75
76 b,
77 strong {
78 font-family: $headings-font-family;
79 }
80
81 blockquote {
82 border-radius: 15px 27px 25px 25px/25px 25px 305px 635px;
83 }
84
85 // Tables
86
87 table {
88 th,
89 td {
90 background-color: $white;
91 }
92 }
93
94 .table-bordered {
95 overflow: hidden;
96 border-spacing: 0;
97 border-collapse: separate;
98 background-color: $gray-800;
99 border-radius: 5px 25px 5px 25px/25px 5px 25px 5px;
100
101 th,
102 td {
103 border-radius: 5px 5px 25px 4px/5px 4px 3px 5px;
104 }
105
106 .table-success,
107 .table-success:hover {
108 td,
109 th {
110 color: $white;
111 background-color: $success;
112 }
113 }
114
115 .table-info,
116 .table-info:hover {
117 td,
118 th {
119 color: $white;
120 background-color: $info;
121 }
122 }
123
124 .table-warning,
125 .table-warning:hover {
126 td,
127 th {
128 color: $white;
129 background-color: $warning;
130 }
131 }
132
133 .table-danger,
134 .table-danger:hover {
135 td,
136 th {
137 color: $white;
138 background-color: $danger;
139 }
140 }
141 }
142
143 .table-dark {
144 th,
145 td,
146 &.table-hover .table-active:hover > th,
147 &.table-hover .table-active:hover > td {
148 background-color: $gray-800;
149 }
150 }
151
152
153 // Forms
154
155 input,
156 .form-control,
157 .input-group-text {
158 border-radius: $border-radius-sketchy;
159 }
160
161 textarea,
162 textarea.form-control,
163 select,
164 select.form-control {
165 border-radius: $border-radius-lg-sketchy !important;
166 }
167
168 [type="checkbox"], #{$shiny-check} input, #{$shiny-check-inline} input {
169 position: relative;
170 width: 0;
171 height: 0;
172 appearance: none;
173 -webkit-appearance: none;
174 -moz-appearance: none;
175 -ms-appearance: none;
176 -o-appearance: none;
177 cursor: pointer;
178 border: none;
179
180 &::before {
181 position: absolute;
182 top: -.1em;
183 left: 0;
184 display: inline-block;
185 width: 15px;
186 height: 16px;
187 content: "";
188 border: 2px solid $gray-800;
189 border-radius: 2px 8px 2px 4px / 5px 3px 5px 3px;
190 }
191
192 &:focus::before {
193 box-shadow: 0 0 0 .25rem rgba(51, 51, 51, .25);
194 }
195
196 &:checked::after,
197 &:indeterminate::after {
198 position: absolute;
199 top: 0;
200 left: .1em;
201 font-size: 1.5rem;
202 line-height: .5;
203 color: $gray-800;
204 }
205
206 &:checked::after {
207 content: "x";
208 }
209
210 &:indeterminate::after {
211 top: .1em;
212 content: "-";
213 }
214
215 &:disabled {
216 &::before {
217 border: 2px solid $gray-500;
218 }
219 }
220 }
221
222 [type="radio"], #{$shiny-radio} input, #{$shiny-radio-inline} input {
223 position: relative;
224 width: 0;
225 height: 0;
226 appearance: none;
227 -webkit-appearance: none;
228 -moz-appearance: none;
229 -ms-appearance: none;
230 -o-appearance: none;
231 cursor: pointer;
232 border: none;
233
234 &::before {
235 position: absolute;
236 top: -.1em;
237 left: 0;
238 display: inline-block;
239 width: 16px;
240 height: 16px;
241 content: "";
242 border: 2px solid $gray-800;
243 border-radius: 50% 45% 40% 50% / 40% 50% 50% 45%;
244 }
245
246 &:focus::before {
247 box-shadow: 0 0 0 .25rem rgba(51, 51, 51, .25);
248 }
249
250 &:checked::before {
251 background-color: $gray-800;
252 }
253
254 &:disabled {
255 &::before {
256 border: 2px solid $gray-500;
257 }
258 }
259 }
260
261 #{$shiny-check}, #{$shiny-check-inline}, #{$shiny-radio}, #{$shiny-radio-inline} {
262 span {
263 padding-left: 1rem;
264 }
265 }
266
267 #{$form-check-input-selector} {
268 &:focus {
269 box-shadow: none;
270 }
271 }
272
273 .form-switch {
274 padding-left: 0;
275
276 .form-check-input {
277 position: relative;
278 margin-left: 0;
279
280 &::before {
281 width: 32px;
282 border-radius: 30% 35% 30% 30% / 30% 50% 30% 45%;
283 }
284
285 &::after {
286 position: absolute;
287 top: 0;
288 left: 0;
289 display: inline-block;
290 width: 12px;
291 height: 12px;
292 content: "";
293 background-color: $white;
294 border: 2px solid #333;
295 border-radius: 50% 45% 40% 50% / 40% 50% 50% 45%;
296 transition: left .15s ease-in-out;
297 }
298
299 &:checked::after {
300 top: 0;
301 left: 18px;
302 background-color: $gray-800;
303 }
304 }
305
306 .form-check-label {
307 margin-left: .5em;
308 }
309 }
310
311 // Navs
312
313 .dropdown-menu {
314 overflow: hidden;
315 border-radius: 555px 25px 25px 25px/25px 25px 25px 555px;
316 }
317
318 .dropdown-divider {
319 border-top-width: 2px;
320 }
321
322 .list-group {
323 overflow: hidden;
324 background-color: $gray-800;
325 border: 2px solid $gray-800;
326 border-radius: 45px 15px 35px 5px/15px 5px 15px 65px;
327
328 &-item {
329 border-top: 2px solid $gray-800;
330 border-right: none;
331 border-left: none;
332 border-radius: 255px 5px 225px 5px/25px 225px 25px 255px;
333
334 &:first-child {
335 border-top: none;
336 }
337
338 &:last-child {
339 border-bottom: none;
340 }
341 }
342 }
343
344 .nav-pills .nav-link {
345 border-radius: $border-radius-sketchy;
346 }
347
348 .nav-link,
349 .page-link,
350 .list-group-item,
351 .dropdown-item {
352 text-decoration: none;
353 }
354
355 .nav-tabs {
356 .nav-link {
357 border-radius: 45px 15px 225px 5px/25px 225px 25px 255px;
358 }
359 }
360
361 .breadcrumb {
362 border: 2px solid $gray-800;
363 border-radius: $border-radius-sketchy;
364 }
365
366 .pagination {
367 .page-link {
368 border-radius: 425px 255px 25px 25px/25px 25px 5px 25px;
369 }
370 }
371
372 // Indicators
373
374 .badge {
375 border-radius: $border-radius-sm-sketchy;
376
377 &-pill {
378 border-radius: 7rem 8rem 8rem 8rem / 4rem 5rem 6rem 6rem;
379 }
380
381 &.bg-light {
382 color: $dark;
383 }
384 }
385
386 .alert {
387 border-radius: $border-radius-sketchy;
388
389 .btn-close {
390 &::before {
391 color: inherit;
392 }
393 }
394 }
395
396 // Progress bars
397
398 .progress {
399 border: 2px solid $gray-800;
400 border-radius: $border-radius-sm-sketchy;
401 }
402
403 // Containers
404
405 .card {
406 border-radius: 5px 5px 5px 5px/25px 25px 25px 5px;
407
408 &-outline {
409 &-primary,
410 &-success,
411 &-info,
412 &-warning,
413 &-danger {
414 border-width: 2px;
415 }
416 }
417
418 &-header {
419 border-color: inherit;
420 border-bottom-width: 2px;
421
422 &:first-child {
423 border-radius: 3px 3px 0 0/23px 23px 0 0;
424 }
425 }
426
427 &-footer {
428 border-top-width: 2px;
429 }
430 }
431
432 .toast {
433 border-radius: 10px 10px 15px 5px/5px 15px 5px 15px;
434
435 &-header {
436 font-family: $headings-font-family;
437 }
438 }
439
440 .modal {
441 &-content {
442 border-radius: 15px 5px 5px 25px/5px 25px 25px 5px;
443 }
444 }
445
446 .popover {
447 padding: 0;
448 border-radius: 45px 85px 15px 25px/15px 10px 35px 555px;
449
450 &-title {
451 border-bottom: 2px solid $gray-800;
452 }
453
454 &.bs-popover-start::before,
455 &.bs-tether-element-attached-right::before {
456 right: -13px;
457 }
458
459 &.bs-popover-top::before,
460 &.bs-tether-element-attached-bottom::before {
461 bottom: -13px;
462 }
463
464 &.bs-popover-bottom::before,
465 &.bs-tether-element-attached-top::before {
466 top: -13px;
467 }
468
469 &.bs-popover-end::before,
470 &.bs-tether-element-attached-left::before {
471 left: -13px;
472 }
473 }
474
475 .tooltip {
476 &-inner {
477 border-radius: $border-radius-sm-sketchy;
478 }
479 }
480
481 pre {
482 border: 2px solid $gray-800;
483 border-radius: 15px 5px 5px 25px/5px 25px 25px 5px;
484 }
485
486 .btn-close {
487 background-image: none;
488
489 &::before {
490 position: absolute;
491 top: .8rem;
492 right: 1rem;
493 content: "X";
494 }
495 }
496
497 .img {
498 &-thumbnail {
499 border-radius: $border-radius-sketchy;
500 }
501 }