css-switch-gallery 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,728 @@
1
+ /*RESET*/
2
+ *, *::before, *::after {
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ /*BY DEFAULT*/
7
+ html, body {
8
+ height: 100%;
9
+ }
10
+ body {
11
+ font-family: 'system-ui', sans-serif;
12
+ text-wrap: pretty;
13
+ line-height: 1.5;
14
+ letter-spacing: 0.25px;
15
+
16
+ margin: 20px auto;
17
+ padding: 0 20px;
18
+ max-width: 800px;
19
+ }
20
+
21
+ img, picture, video, canvas, svg {
22
+ display: block;
23
+ max-width: 100%;
24
+ }
25
+
26
+ /*VARIABLES*/
27
+ :root {
28
+ --gap: 1rem;
29
+
30
+ --font-size-1: 2.25rem;
31
+ --font-size-2: 2rem;
32
+ --font-size-3: 1.75rem;
33
+ --font-size-4: 1.5rem;
34
+ --font-size-5: 1.25rem;
35
+ --font-size-6: 1rem;
36
+
37
+ --font-weight-mx: 900;
38
+ --font-weight-md: 600;
39
+ --font-weight-sm: 500;
40
+
41
+ --text-color-base: #404756;
42
+ --text-color-secondary: #23272f;
43
+ --text-color-contrast: #ffffff;
44
+
45
+ --background-color: #ffffff;
46
+ --background-color-secondary: #eff0f3;
47
+
48
+ --palette-primary: #04354d;
49
+ --palette-secondary: #00c3ff;
50
+ --palette-tertiary: #b6ecff;
51
+
52
+ --radius: 0.5rem;
53
+ }
54
+
55
+ /*DARK MODE*/
56
+ .dark {
57
+ --text-color-base: #c1c2cf;
58
+ --text-color-secondary: #ededf1;
59
+ --text-color-contrast: #0e0e11;
60
+
61
+ --background-color: #0e0e11;
62
+ --background-color-secondary: #1b1b1b;
63
+
64
+ --palette-primary: #b6ecff;
65
+ --palette-secondary: #00c3ff;
66
+ --palette-tertiary: #04354d;
67
+ }
68
+
69
+ /*TEMPLATE*/
70
+
71
+ /*FLEX CLASSES*/
72
+ .flex-row {
73
+ display: flex;
74
+ flex-direction: row;
75
+ flex-wrap: wrap;
76
+ }
77
+ .nowrap {
78
+ flex-wrap: nowrap;
79
+ }
80
+ .flex-row-reverse {
81
+ display: flex;
82
+ flex-direction: row-reverse;
83
+ }
84
+ .flex-column {
85
+ display: flex;
86
+ flex-direction: column;
87
+ }
88
+ .flex-column-reverse {
89
+ display: flex;
90
+ flex-direction: column-reverse;
91
+ }
92
+ .justify-center {
93
+ justify-content: center;
94
+ }
95
+ .justify-between {
96
+ justify-content: space-between;
97
+ }
98
+ .items-center {
99
+ align-items: center;
100
+ }
101
+ .items-start {
102
+ align-items: start;
103
+ }
104
+ .items-end {
105
+ align-items: end;
106
+ }
107
+ .gap {
108
+ gap: var(--gap);
109
+ }
110
+
111
+ html {
112
+ scroll-behavior: smooth;
113
+
114
+ scrollbar-color: var(--text-color-base) var(--background-color);
115
+ }
116
+
117
+ body {
118
+ font-size: var(--font-size-5);
119
+
120
+ color: var(--text-color-base);
121
+ background-color: var(--background-color);
122
+ }
123
+
124
+ /*TEXT ELEMENTS*/
125
+ .text-sm {
126
+ font-size: var(--font-size-6);
127
+ }
128
+
129
+ h1, h2, h3, h4, h5, h6 {
130
+ margin-block: 0.5rem;
131
+
132
+ color: var(--text-color-secondary);
133
+ }
134
+
135
+ h1 {
136
+ font-size: var(--font-size-1);
137
+ }
138
+ h2 {
139
+ font-size: var(--font-size-2);
140
+ }
141
+ h3 {
142
+ font-size: var(--font-size-3);
143
+ }
144
+ h4 {
145
+ font-size: var(--font-size-4);
146
+ }
147
+ h5 {
148
+ font-size: var(--font-size-5);
149
+ }
150
+ h6 {
151
+ font-size: var(--font-size-6);
152
+ }
153
+
154
+ p {
155
+ margin-block: 0.75rem;
156
+
157
+ color: var(--text-color-base);
158
+ }
159
+
160
+ span {
161
+ font-weight: var(--font-weight-md);
162
+
163
+ color: var(--palette-secondary);
164
+ }
165
+
166
+ strong {
167
+ font-weight: var(--font-weight-md);
168
+
169
+ color: var(--text-color-secondary);
170
+ }
171
+
172
+ q, i {
173
+ font-style: italic;
174
+ }
175
+
176
+ i {
177
+ font-weight: var(--font-weight-sm);
178
+ }
179
+
180
+ time {
181
+ font-size: var(--font-size-6);
182
+ font-weight: var(--font-weight-sm);
183
+
184
+ color: var(--text-color-base);
185
+ }
186
+
187
+ b {
188
+ font-weight: var(--font-weight-mx);
189
+ }
190
+
191
+ mark {
192
+ padding: 0 0.25rem;
193
+
194
+ border-radius: var(--radius);
195
+
196
+ color: var(--palette-primary);
197
+ background-color: var(--palette-tertiary);
198
+ }
199
+
200
+ u {
201
+ text-decoration-thickness: 1px;
202
+ text-underline-offset: 3px;
203
+
204
+ line-height: 1.5;
205
+ }
206
+
207
+ a {
208
+ text-underline-offset: 3px;
209
+ text-decoration: none;
210
+
211
+ max-width: fit-content;
212
+
213
+ color: var(--palette-secondary);
214
+ }
215
+ a:hover {
216
+ color: var(--palette-primary);
217
+ }
218
+
219
+ ul {
220
+ list-style: disc;
221
+ list-style-position: outside;
222
+
223
+ margin-block: 1rem;
224
+ }
225
+ ol {
226
+ list-style: decimal;
227
+ list-style-position: outside;
228
+
229
+ margin-block: 1rem;
230
+ }
231
+ li {
232
+ margin-inline: 1.25rem;
233
+
234
+ font-size: var(--font-size-5);
235
+
236
+ color: var(--text-color-base);
237
+ }
238
+ li::marker {
239
+ color: var(--palette-secondary);
240
+ }
241
+
242
+ blockquote {
243
+ font-style: italic;
244
+
245
+ margin-inline: 0;
246
+ padding-inline: 1rem;
247
+
248
+ font-size: var(--font-size-6);
249
+ border-left: 4px solid var(--palette-secondary);
250
+
251
+ color: var(--palette-primary);
252
+ }
253
+
254
+ pre {
255
+ margin: 0.25rem;
256
+ }
257
+ pre, code {
258
+ overflow-x: auto;
259
+
260
+ padding: 0.25rem;
261
+
262
+ font-size: var(--font-size-6);
263
+ border-radius: var(--radius);
264
+
265
+ color: var(--palette-secondary);
266
+ background-color: var(--background-color-secondary);
267
+ }
268
+ pre code {
269
+ padding: 0;
270
+
271
+ background-color: transparent;
272
+ }
273
+ dt {
274
+ font-weight: var(--font-weight-md);
275
+
276
+ color: var(--text-color-secondary);
277
+ }
278
+ dd {
279
+ margin-block: 0.25rem;
280
+
281
+ color: var(--text-color-base);
282
+ }
283
+
284
+ figure {
285
+ display: flex;
286
+ flex-flow: column;
287
+
288
+ margin: auto;
289
+ padding: 0.5rem;
290
+
291
+ border: 1px solid var(--text-color-base);
292
+ border-radius: var(--radius);
293
+ }
294
+ figcaption {
295
+ font: italic smaller sans-serif;
296
+ text-align: center;
297
+
298
+ border-bottom-left-radius: var(--radius);
299
+ border-bottom-right-radius: var(--radius);
300
+
301
+ color: var(--palette-primary);
302
+ background-color: var(--palette-tertiary);
303
+ }
304
+ figure img {
305
+ border-top-right-radius: var(--radius);
306
+ border-top-left-radius: var(--radius);
307
+ }
308
+
309
+ hr {
310
+ opacity: 0.2;
311
+
312
+ margin-block: 1.5rem;
313
+ height: 1px;
314
+
315
+ border: none;
316
+
317
+ background-color: var(--text-color-base);
318
+ }
319
+
320
+ /*MULTIMEDIA*/
321
+ .img-sm {
322
+ max-width: 220px;
323
+ max-height: 150px;
324
+ }
325
+ .img-md {
326
+ max-width: 440px;
327
+ max-height: 300px;
328
+ }
329
+ .img-lg {
330
+ max-width: 880px;
331
+ max-height: 600px;
332
+ }
333
+ @media (max-width: 460px) {
334
+ .img-sm {
335
+ max-width: 110px;
336
+ max-height: 75px;
337
+ }
338
+ .img-md {
339
+ max-width: 220px;
340
+ max-height: 150px;
341
+ }
342
+ .img-lg {
343
+ max-width: 440px;
344
+ max-height: 300px;
345
+ }
346
+ }
347
+ .img-radius {
348
+ border-radius: var(--radius);
349
+ }
350
+
351
+ audio, video {
352
+ width: auto;
353
+
354
+ border-radius: var(--radius);
355
+ }
356
+
357
+ iframe {
358
+ width: 100%;
359
+
360
+ border: none;
361
+ border-radius: var(--radius);
362
+ }
363
+
364
+ /*TABLE ELEMENTS*/
365
+ table {
366
+ padding-block: 1rem;
367
+ width: 100%;
368
+
369
+ font-size: var(--font-size-6);
370
+
371
+ color: var(--text-color-secondary);
372
+ }
373
+
374
+ td, th {
375
+ text-align: start;
376
+
377
+ padding-inline: 1rem;
378
+ padding-block: 0.5rem;
379
+
380
+ border-radius: var(--radius);
381
+ }
382
+
383
+ @media (max-width: 460px) {
384
+ td, th {
385
+ padding-inline: 0.5rem;
386
+ padding-block: 0.25rem;
387
+ }
388
+ }
389
+
390
+ th[scope = "col"] {
391
+ color: var(--palette-primary);
392
+ background-color: var(--palette-tertiary);
393
+ }
394
+
395
+ th[scope = "row"] {
396
+ color: var(--palette-primary);
397
+ background-color: transparent;
398
+ }
399
+
400
+ thead > th {
401
+ color: var(--palette-primary);
402
+ background-color: var(--palette-tertiary);
403
+ }
404
+ thead > td {
405
+ color: var(--palette-primary);
406
+ background-color: var(--palette-tertiary);
407
+ }
408
+
409
+ tbody tr:nth-child(odd) {
410
+ background-color: var(--background-color-secondary);
411
+ }
412
+
413
+ /*FORM ELEMENTS*/
414
+ fieldset {
415
+ padding: 1rem;
416
+
417
+ border: 1px solid var(--text-color-base);
418
+ border-radius: var(--radius);
419
+ }
420
+ legend {
421
+ padding: 0 0.5rem;
422
+
423
+ font-weight: var(--font-weight-md);
424
+
425
+ color: var(--text-color-secondary);
426
+ }
427
+
428
+ label {
429
+ margin-left: 0.25rem;
430
+ margin-bottom: 0.5rem;
431
+
432
+ font-size: var(--font-size-6);
433
+
434
+ color: var(--text-color-secondary);
435
+ }
436
+ textarea {
437
+ height: auto;
438
+ min-height: 5.5rem;
439
+ }
440
+ input, textarea {
441
+ font-family: inherit;
442
+
443
+ margin-inline-end: 0.75rem;
444
+ margin-block-end: 0.75rem;
445
+ padding: 0.5rem;
446
+
447
+ font-size: var(--font-size-6);
448
+
449
+ border-style: none;
450
+ border-radius: var(--radius);
451
+
452
+ color: var(--text-color-base);
453
+ background-color: var(--background-color-secondary);
454
+ }
455
+ input:focus, textarea:focus {
456
+ outline: 1px solid var(--palette-secondary);
457
+ }
458
+ input:disabled {
459
+ opacity: 0.7;
460
+ }
461
+ input:disabled:hover {
462
+ cursor: not-allowed;
463
+ }
464
+
465
+ input[type = "submit"],
466
+ input[type = "reset"] {
467
+ -webkit-appearance: none;
468
+ appearance: none;
469
+
470
+ outline: none;
471
+
472
+ cursor: pointer;
473
+
474
+ margin: 0.25rem;
475
+ padding-block: 0.5rem;
476
+ padding-inline: 1rem;
477
+
478
+ width: fit-content;
479
+ }
480
+ input[type = "submit"] {
481
+ font-weight: var(--font-weight-md);
482
+
483
+ color: var(--palette-primary);
484
+ background-color: var(--palette-tertiary);
485
+ }
486
+ input[type = "reset"] {
487
+ background-color: transparent;
488
+
489
+ color: var(--text-color-secondary);
490
+ }
491
+
492
+ input[type = "color"] {
493
+ cursor: pointer;
494
+
495
+ width: 2.5rem;
496
+ height: 2.5rem;
497
+ }
498
+ input[type = "color"]::-webkit-color-swatch {
499
+ border: none;
500
+ }
501
+ input[type = "color"]::-moz-color-swatch {
502
+ border: none;
503
+ }
504
+
505
+ input[type = "file"] {
506
+ padding: 0.25rem;
507
+
508
+ width: 100%;
509
+
510
+ border: none;
511
+ }
512
+ input[type = "file"]::file-selector-button {
513
+ cursor: pointer;
514
+
515
+ padding-block: 0.5rem;
516
+
517
+ border-style: none;
518
+ border-radius: var(--radius);
519
+
520
+ color: var(--text-color-contrast);
521
+ background-color: var(--text-color-secondary);
522
+ }
523
+ input[type = "file"]::-moz-file-upload-button {
524
+ cursor: pointer;
525
+
526
+ padding-block: 0.5rem;
527
+
528
+ border-style: none;
529
+ border-radius: var(--radius);
530
+
531
+ color: var(--text-color-contrast);
532
+ background-color: var(--text-color-secondary);
533
+ }
534
+
535
+ input[type = "range"] {
536
+ -webkit-appearance: none;
537
+ appearance: none;
538
+
539
+ height: 0.5rem;
540
+ }
541
+ input[type = "range"]::-webkit-slider-thumb {
542
+ -webkit-appearance: none;
543
+ appearance: none;
544
+
545
+ cursor: pointer;
546
+
547
+ width: 20px;
548
+ height: 20px;
549
+
550
+ border-radius: 50%;
551
+
552
+ background: var(--palette-secondary);
553
+ }
554
+ input[type = "range"]::-moz-range-thumb {
555
+ width: 20px;
556
+ height: 20px;
557
+
558
+ border-radius: 50%;
559
+
560
+ background: var(--palette-secondary);
561
+ }
562
+ input[type = "range"]::-moz-range-track {
563
+ height: 0.5rem;
564
+ }
565
+
566
+ input[type = "checkbox"], input[type = "radio"] {
567
+ cursor: pointer;
568
+
569
+ accent-color: var(--palette-secondary);
570
+
571
+ width: 1rem;
572
+ height: 1rem;
573
+
574
+ border: none;
575
+ }
576
+
577
+ /*INTERACTIVE ELEMENTS*/
578
+ meter {
579
+ -webkit-appearance: none;
580
+ appearance: none;
581
+ }
582
+ meter::-webkit-meter-bar {
583
+ border-radius: 3px;
584
+ }
585
+ meter::-moz-meter-bar {
586
+ border-radius: 3px;
587
+ }
588
+
589
+ progress {
590
+ -webkit-appearance: none;
591
+ appearance: none;
592
+
593
+ border-radius: 10px;
594
+ }
595
+ progress::-webkit-progress-bar {
596
+ border-radius: 10px;
597
+
598
+ background-color: var(--background-color-secondary);
599
+ }
600
+ progress::-webkit-progress-value {
601
+ border-radius: 10px;
602
+
603
+ background-color: var(--palette-secondary);
604
+ }
605
+ progress::-moz-progress-bar {
606
+ border-radius: 10px;
607
+
608
+ background-color: var(--palette-secondary);
609
+ }
610
+
611
+ select {
612
+ cursor: pointer;
613
+
614
+ font-family: inherit;
615
+
616
+ padding: 0.5rem;
617
+
618
+ font-size: var(--font-size-6);
619
+
620
+ border: none;
621
+ border-radius: var(--radius);
622
+
623
+ color: var(--text-color-base);
624
+ background-color: var(--background-color-secondary);
625
+ }
626
+ select:focus {
627
+ outline: 1px solid var(--palette-secondary);
628
+ }
629
+ optgroup {
630
+ font-weight: var(--font-weight-md);
631
+ }
632
+
633
+ details {
634
+ padding: 0.25rem 0.75rem;
635
+
636
+ border: 1px solid var(--background-color-secondary);
637
+ border-radius: var(--radius);
638
+
639
+ background-color: transparent;
640
+ color: var(--text-color-base);
641
+ }
642
+
643
+ summary {
644
+ cursor: pointer;
645
+ font-family: inherit;
646
+
647
+ font-weight: var(--font-weight-md);
648
+ color: var(--text-color-secondary);
649
+ }
650
+
651
+ dialog {
652
+ padding-block: 1rem;
653
+
654
+ border: 1px solid var(--text-color-base);
655
+ border-radius: var(--radius);
656
+
657
+ color: var(--text-color-base);
658
+ background-color: var(--background-color);
659
+ }
660
+
661
+ /*BUTTON CLASSES*/
662
+ button {
663
+ cursor: pointer;
664
+
665
+ font-family: inherit;
666
+ text-wrap: nowrap;
667
+ letter-spacing: 1px;
668
+
669
+ margin: 0.25rem;
670
+ padding-block: 0.5rem;
671
+ padding-inline: 1rem;
672
+
673
+ font-weight: var(--font-weight-sm);
674
+ font-size: var(--font-size-6);
675
+
676
+ border-style: none;
677
+ border-radius: var(--radius);
678
+
679
+ color: var(--text-color-contrast);
680
+ background-color: var(--text-color-secondary);
681
+ }
682
+ .button-primary {
683
+ color: var(--palette-primary);
684
+ background-color: var(--palette-tertiary);
685
+ }
686
+ .button-secondary {
687
+ color: var(--text-color-base);
688
+ background-color: var(--background-color-secondary);
689
+ }
690
+ .button-tertiary {
691
+ background-color: transparent;
692
+
693
+ color: var(--text-color-secondary);
694
+ }
695
+ .button-fit {
696
+ width: fit-content;
697
+ }
698
+ .button-disabled {
699
+ cursor: not-allowed;
700
+ opacity: 0.5;
701
+ }
702
+
703
+ /*CONTAINER CLASSES*/
704
+ .container-bg-01 {
705
+ padding: 1rem;
706
+
707
+ color: var(--text-color-base);
708
+ background-color: var(--background-color-secondary);
709
+ }
710
+ .container-bg-02 {
711
+ padding: 1rem;
712
+
713
+ color: var(--text-color-base);
714
+ background-color: var(--palette-tertiary);
715
+ }
716
+ .container-border-01 {
717
+ padding: 1rem;
718
+
719
+ border: 2px solid var(--background-color-secondary);
720
+ }
721
+ .container-border-02 {
722
+ padding: 1rem;
723
+
724
+ border: 2px solid var(--palette-tertiary);
725
+ }
726
+ .container-radius {
727
+ border-radius: var(--radius);
728
+ }