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