@spiritov/ds.css 1.0.0 → 1.0.1

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.
package/src/ds.css DELETED
@@ -1,723 +0,0 @@
1
- @import 'tailwindcss';
2
-
3
- @font-face {
4
- font-family: 'ds-system';
5
- src: url('./assets/fonts/nitrods-font.ttf') format('truetype');
6
- }
7
-
8
- @theme {
9
- /* font */
10
- --font-system: 'ds-system', 'system-ui';
11
-
12
- /* colors */
13
- --color-ds-darkgrey: #494949;
14
- --color-ds-info-bg: #282828;
15
-
16
- --color-ds-pictochat-bg: #aaaaaa;
17
- --color-ds-pictochat-border: #bababa;
18
-
19
- --color-ds-grid-border: #c3c3c3;
20
- --color-ds-grid-bg: #e3e3e3;
21
-
22
- --color-ds-text-focus: #e36100;
23
-
24
- --color-ds-loading: #fbd300;
25
-
26
- --color-ds-theme-slate: #61829a;
27
- --color-ds-theme-maroon: #ba4900;
28
- --color-ds-theme-red: #fb0018;
29
- --color-ds-theme-pink: #fb8afb;
30
- --color-ds-theme-orange: #fb9200;
31
- --color-ds-theme-yellow: #f3e300;
32
- --color-ds-theme-neonyellow: #aafb00;
33
- --color-ds-theme-lime: #00fb00;
34
- --color-ds-theme-green: #00a238;
35
- --color-ds-theme-teal: #49db8a;
36
- --color-ds-theme-turquoise: #30baf3;
37
- --color-ds-theme-blue: #0059f3;
38
- --color-ds-theme-navy: #000092;
39
- --color-ds-theme-darkpurple: #8a00d3;
40
- --color-ds-theme-magenta: #d300eb;
41
- --color-ds-theme-fuschia: #fb0092;
42
- }
43
-
44
- .ds-slate {
45
- background-color: var(--color-ds-theme-slate);
46
- }
47
- .ds-maroon {
48
- background-color: var(--color-ds-theme-maroon);
49
- }
50
- .ds-red {
51
- background-color: var(--color-ds-theme-red);
52
- }
53
- .ds-pink {
54
- background-color: var(--color-ds-theme-pink);
55
- }
56
- .ds-orange {
57
- background-color: var(--color-ds-theme-orange);
58
- }
59
- .ds-yellow {
60
- background-color: var(--color-ds-theme-yellow);
61
- }
62
- .ds-neonyellow {
63
- background-color: var(--color-ds-theme-neonyellow);
64
- }
65
- .ds-lime {
66
- background-color: var(--color-ds-theme-lime);
67
- }
68
- .ds-green {
69
- background-color: var(--color-ds-theme-green);
70
- }
71
- .ds-teal {
72
- background-color: var(--color-ds-theme-teal);
73
- }
74
- .ds-turquoise {
75
- background-color: var(--color-ds-theme-turquoise);
76
- }
77
- .ds-blue {
78
- background-color: var(--color-ds-theme-blue);
79
- }
80
- .ds-navy {
81
- background-color: var(--color-ds-theme-navy);
82
- }
83
- .ds-darkpurple {
84
- background-color: var(--color-ds-theme-darkpurple);
85
- }
86
- .ds-magenta {
87
- background-color: var(--color-ds-theme-magenta);
88
- }
89
- .ds-fuschia {
90
- background-color: var(--color-ds-theme-fuschia);
91
- }
92
-
93
- @layer base {
94
- :root {
95
- font-family: var(--font-system);
96
- -webkit-font-smoothing: none;
97
- }
98
- }
99
-
100
- /* input & button elements */
101
-
102
- button,
103
- input[type='text'] {
104
- border-style: solid;
105
- border-width: 2px;
106
- padding-inline: 0.25rem;
107
- text-wrap: nowrap;
108
- }
109
-
110
- input[type='text'] {
111
- height: calc(0.25rem * 8.5);
112
- width: calc(0.25rem * 80.5);
113
- border-color: black;
114
- color: white;
115
- outline-style: none;
116
- & *::selection {
117
- background-color: var(--color-ds-text-focus);
118
- }
119
- &::selection {
120
- background-color: var(--color-ds-text-focus);
121
- }
122
-
123
- background: url('./assets/svg/input.svg') -1px;
124
- }
125
-
126
- input[type='radio'] {
127
- height: calc(0.25rem * 15.5);
128
- width: calc(0.25rem * 48);
129
- appearance: none;
130
- border-style: solid;
131
- border-width: 2px;
132
- border-color: var(--color-ds-darkgrey);
133
- background-image: url('./assets/svg/button_radio.svg');
134
- }
135
-
136
- input[type='radio']:checked {
137
- background-blend-mode: hard-light;
138
- }
139
-
140
- button {
141
- height: calc(0.25rem * 9);
142
- width: calc(0.25rem * 40);
143
- cursor: pointer;
144
- border-color: var(--color-ds-darkgrey);
145
- padding-inline: calc(0.25rem * 0.5);
146
- background-blend-mode: hard-light;
147
- background-image: url('./assets/svg/button.svg');
148
- clip-path: polygon(
149
- 2px 100%,
150
- 2px calc(100% - 2px),
151
- 0 calc(100% - 2px),
152
- 0 2px,
153
- 2px 2px,
154
- 2px 0,
155
- calc(100% - 2px) 0,
156
- calc(100% - 2px) 2px,
157
- 100% 2px,
158
- 100% calc(100% - 2px),
159
- calc(100% - 2px) calc(100% - 2px),
160
- calc(100% - 2px) 100%
161
- );
162
- }
163
-
164
- label {
165
- display: flex;
166
- flex-direction: column;
167
- -webkit-user-select: none;
168
- user-select: none;
169
- }
170
-
171
- button:active {
172
- background-image: url('./assets/svg/button_active.svg');
173
- }
174
-
175
- details > summary {
176
- height: calc(0.25rem * 8.5);
177
- width: calc(0.25rem * 111.5);
178
- border-style: solid;
179
- border-width: 2px;
180
- padding-top: 1px;
181
- text-align: center;
182
-
183
- background-image: url('./assets/svg/details_head.svg');
184
- list-style: none;
185
- }
186
-
187
- details:open > p {
188
- height: calc(0.25rem * 23.5);
189
- width: calc(0.25rem * 111);
190
- border-inline-style: solid;
191
- border-inline-width: 2px;
192
- border-bottom-style: solid;
193
- border-bottom-width: 2px;
194
- padding-inline: calc(0.25rem * 0.5);
195
- padding-top: 1px;
196
- text-align: center;
197
-
198
- background-image: url('./assets/svg/details.svg');
199
- }
200
-
201
- label > span,
202
- legend {
203
- height: calc(0.25rem * 7.5);
204
- padding-left: 0.25rem;
205
- vertical-align: text-bottom;
206
- }
207
-
208
- /* classes */
209
-
210
- .alert {
211
- display: flex;
212
- height: calc(0.25rem * 33.5);
213
- width: calc(0.25rem * 103);
214
- align-content: center;
215
- align-items: center;
216
- justify-content: space-between;
217
- gap: calc(0.25rem * 5.5);
218
- border-style: solid;
219
- border-width: 16px;
220
- padding-inline: calc(0.25rem * 5);
221
- text-align: center;
222
- color: var(--color-white);
223
- & *::selection {
224
- background-color: var(--color-ds-text-focus);
225
- }
226
- &::selection {
227
- background-color: var(--color-ds-text-focus);
228
- }
229
-
230
- border-image: url('./assets/svg/alert_border.svg') 15;
231
- background: repeating-linear-gradient(
232
- black,
233
- black 2px,
234
- var(--color-ds-darkgrey) 2px,
235
- var(--color-ds-darkgrey) 4px
236
- );
237
- background-size: 100% 4px;
238
- clip-path: polygon(
239
- /* bottom left */ 10px 100%,
240
- 10px calc(100% - 2px),
241
- 8px calc(100% - 2px),
242
- 8px calc(100% - 4px),
243
- 6px calc(100% - 4px),
244
- 6px calc(100% - 6px),
245
- 4px calc(100% - 6px),
246
- 4px calc(100% - 8px),
247
- 2px calc(100% - 8px),
248
- 2px calc(100% - 10px),
249
- 0 calc(100% - 10px),
250
- /* top left */ 0 10px,
251
- 2px 10px,
252
- 2px 8px,
253
- 4px 8px,
254
- 4px 6px,
255
- 6px 6px,
256
- 6px 4px,
257
- 8px 4px,
258
- 8px 2px,
259
- 10px 2px,
260
- 10px 0,
261
- /* top right */ calc(100% - 10px) 0,
262
- calc(100% - 10px) 2px,
263
- calc(100% - 8px) 2px,
264
- calc(100% - 8px) 4px,
265
- calc(100% - 6px) 4px,
266
- calc(100% - 6px) 6px,
267
- calc(100% - 4px) 6px,
268
- calc(100% - 4px) 8px,
269
- calc(100% - 2px) 8px,
270
- calc(100% - 2px) 10px,
271
- 100% 10px,
272
- /* bottom left */ 100% calc(100% - 10px),
273
- calc(100% - 2px) calc(100% - 10px),
274
- calc(100% - 2px) calc(100% - 8px),
275
- calc(100% - 4px) calc(100% - 8px),
276
- calc(100% - 4px) calc(100% - 6px),
277
- calc(100% - 6px) calc(100% - 6px),
278
- calc(100% - 6px) calc(100% - 4px),
279
- calc(100% - 8px) calc(100% - 4px),
280
- calc(100% - 8px) calc(100% - 2px),
281
- calc(100% - 10px) calc(100% - 2px),
282
- calc(100% - 10px) 100%
283
- );
284
- }
285
-
286
- .bar {
287
- height: calc(0.25rem * 8);
288
- border-bottom-style: solid;
289
- border-bottom-width: 2px;
290
- background-blend-mode: hard-light;
291
-
292
- background-image: url('./assets/svg/top_bar.svg');
293
- }
294
-
295
- .bar-lg {
296
- height: calc(0.25rem * 11.5);
297
- border-bottom-style: solid;
298
- border-bottom-width: 2px;
299
- background-blend-mode: hard-light;
300
-
301
- background-image: url('./assets/svg/bottom_bar_top.svg');
302
- }
303
-
304
- .bar-lg-reverse {
305
- height: calc(0.25rem * 11.5);
306
- border-top-style: solid;
307
- border-top-width: 2px;
308
- background-blend-mode: hard-light;
309
-
310
- background-image: url('./assets/svg/bottom_bar_bottom.svg');
311
- background-position-y: -2px;
312
- }
313
-
314
- .button-lg {
315
- @apply w-55;
316
- background-image: url('./assets/svg/button_lg.svg');
317
- }
318
-
319
- .button-square {
320
- @apply size-9;
321
- background-image: url('./assets/svg/button_square.svg');
322
- }
323
-
324
- .button-square:active {
325
- background-image: url('./assets/svg/button_square_active.svg');
326
- }
327
-
328
- .button-lg:active {
329
- background-image: url('./assets/svg/button_lg_active.svg');
330
- }
331
-
332
- button:active:not(:hover),
333
- .button-lg:active:not(:hover),
334
- .button-square:active:not(:hover) {
335
- background-blend-mode: normal;
336
- }
337
-
338
- .ds-grid {
339
- background:
340
- repeating-linear-gradient(
341
- transparent,
342
- transparent 30px,
343
- var(--color-ds-grid-border) 30px,
344
- var(--color-ds-grid-border) 32px
345
- ),
346
- repeating-linear-gradient(
347
- to right,
348
- transparent,
349
- transparent 30px,
350
- var(--color-ds-grid-border) 30px,
351
- var(--color-ds-grid-border) 32px
352
- ),
353
- repeating-linear-gradient(
354
- white,
355
- white 2px,
356
- var(--color-ds-grid-bg) 2px,
357
- var(--color-ds-grid-bg) 4px
358
- );
359
- }
360
-
361
- .ds-grid-lg {
362
- background-image: url('./assets/svg/grid_lg.svg');
363
- }
364
-
365
- /* .info-wrapper {
366
- @apply flex pl-1 gap-0.5;
367
- } */
368
-
369
- .info {
370
- display: flex;
371
- height: calc(0.25rem * 24);
372
- width: var(--container-lg);
373
- gap: calc(0.25rem * 0.5);
374
- border-top-style: solid;
375
- border-top-width: 2px;
376
- padding-block: calc(0.25rem * 0.5);
377
- padding-left: 0.25rem;
378
- background-blend-mode: hard-light;
379
-
380
- background-image: url('./assets/svg/info.svg');
381
- }
382
-
383
- .info-container {
384
- height: calc(0.25rem * 22.5);
385
- width: calc(0.25rem * 104);
386
- }
387
-
388
- .info-label {
389
- height: calc(0.25rem * 6.5);
390
- padding-right: 0.25rem;
391
- padding-left: calc(0.25rem * 2);
392
- }
393
-
394
- .info-square {
395
- display: grid;
396
- width: calc(0.25rem * 22.5);
397
- height: calc(0.25rem * 22.5);
398
- place-items: center;
399
- border-style: solid;
400
- border-width: 2px;
401
- background-blend-mode: hard-light;
402
-
403
- background-image: url('./assets/svg/info_square.svg');
404
- }
405
-
406
- .info-text {
407
- height: calc(0.25rem * 16);
408
- border-style: solid;
409
- border-width: 4px;
410
- background-color: var(--color-ds-info-bg);
411
- padding-inline: 0.25rem;
412
- color: var(--color-white);
413
-
414
- border-image: url('./assets/svg/info_border.svg') 4;
415
- clip-path: polygon(
416
- /* bottom left */ 4px 100%,
417
- 4px calc(100% - 2px),
418
- 2px calc(100% - 2px),
419
- 2px calc(100% - 4px),
420
- 0px calc(100% - 4px),
421
- /* top left */ 0 4px,
422
- 2px 4px,
423
- 2px 2px,
424
- 4px 2px,
425
- 4px 0px,
426
- /* top right */ calc(100% - 4px) 0,
427
- calc(100% - 4px) 2px,
428
- calc(100% - 2px) 2px,
429
- calc(100% - 2px) 4px,
430
- calc(100% - 0px) 4px,
431
- /* bottom left */ 100% calc(100% - 4px),
432
- calc(100% - 2px) calc(100% - 4px),
433
- calc(100% - 2px) calc(100% - 2px),
434
- calc(100% - 4px) calc(100% - 2px),
435
- calc(100% - 4px) calc(100% - 0px)
436
- );
437
- }
438
-
439
- .input-lg {
440
- width: calc(0.25rem * 104.5);
441
- }
442
-
443
- .input-wrapper {
444
- display: flex;
445
- align-items: center;
446
- gap: calc(0.25rem * 0.5);
447
- }
448
-
449
- .input-before {
450
- height: calc(0.25rem * 7.5);
451
- width: calc(0.25rem * 7);
452
- background-repeat: no-repeat;
453
-
454
- background-image: url('./assets/svg/input_before.svg');
455
- }
456
-
457
- .input-after {
458
- @apply h-7.5 w-7 bg-no-repeat;
459
- background-image: url('./assets/svg/input_after.svg');
460
- }
461
-
462
- p,
463
- .pictochat-window,
464
- .pictochat-message,
465
- .pictochat-status,
466
- .pictochat-board {
467
- clip-path: polygon(
468
- /* bottom left */ 8px 100%,
469
- 8px calc(100% - 2px),
470
- 6px calc(100% - 2px),
471
- 6px calc(100% - 4px),
472
- 4px calc(100% - 4px),
473
- 4px calc(100% - 6px),
474
- 2px calc(100% - 6px),
475
- 2px calc(100% - 8px),
476
- 0 calc(100% - 8px),
477
- /* top left */ 0 8px,
478
- 2px 8px,
479
- 2px 6px,
480
- 4px 6px,
481
- 4px 4px,
482
- 6px 4px,
483
- 6px 2px,
484
- 8px 2px,
485
- 8px 0px,
486
- /* top right */ calc(100% - 8px) 0,
487
- calc(100% - 8px) 2px,
488
- calc(100% - 6px) 2px,
489
- calc(100% - 6px) 4px,
490
- calc(100% - 4px) 4px,
491
- calc(100% - 4px) 6px,
492
- calc(100% - 2px) 6px,
493
- calc(100% - 2px) 8px,
494
- 100% 8px,
495
- /* bottom left */ 100% calc(100% - 8px),
496
- calc(100% - 2px) calc(100% - 8px),
497
- calc(100% - 2px) calc(100% - 6px),
498
- calc(100% - 4px) calc(100% - 6px),
499
- calc(100% - 4px) calc(100% - 4px),
500
- calc(100% - 6px) calc(100% - 4px),
501
- calc(100% - 6px) calc(100% - 2px),
502
- calc(100% - 8px) calc(100% - 2px),
503
- calc(100% - 8px) 100%
504
- );
505
- }
506
-
507
- /* todo: include extra line at top? */
508
- .pictochat-window {
509
- display: flex;
510
- flex-direction: column;
511
- border-style: solid;
512
- border-width: 8px;
513
- gap: calc(0.25rem * 2);
514
-
515
- background: repeating-linear-gradient(
516
- var(--color-ds-pictochat-bg),
517
- var(--color-ds-pictochat-bg) 6px,
518
- var(--color-ds-pictochat-border) 6px,
519
- var(--color-ds-pictochat-border) 8px
520
- );
521
- border-image: url('./assets/svg/pictochat_border.svg') 8;
522
- }
523
-
524
- .pictochat-window > div {
525
- margin-inline: --calc(0.25rem * 0.5);
526
- }
527
-
528
- p,
529
- .pictochat-message {
530
- border-style: solid;
531
- border-width: 8px;
532
- background-color: white;
533
- padding-inline: 0.25rem;
534
-
535
- border-image: url('./assets/svg/pictochat_message_border.svg') 8;
536
- }
537
-
538
- .pictochat-status {
539
- border-style: solid;
540
- border-width: 8px;
541
- background-color: black;
542
- color: white;
543
- padding-inline: 0.25rem;
544
-
545
- border-image: url('./assets/svg/pictochat_status.svg') 8;
546
- }
547
-
548
- .radio-button {
549
- position: relative;
550
- height: calc(0.25rem * 15.5);
551
- width: calc(0.25rem * 48);
552
- background-clip: border-box;
553
- }
554
-
555
- .radio-button > label {
556
- position: absolute;
557
- top: calc(1 / 2 * 100%);
558
- z-index: 10;
559
- width: 100%;
560
- translate: 0 calc(calc(1 / 2 * 100%) * -1);
561
- text-align: center;
562
- }
563
-
564
- /* loading animation */
565
-
566
- .loading-container {
567
- display: grid;
568
- width: fit-content;
569
- height: fit-content;
570
- flex-shrink: 0;
571
- grid-template-columns: repeat(3, minmax(0, 1fr));
572
- gap: calc(0.25rem * 0.5);
573
- }
574
-
575
- .loading-container > div {
576
- background-color: var(--color-ds-loading);
577
- width: calc(0.25rem * 1.5);
578
- height: calc(0.25rem * 1.5);
579
- }
580
-
581
- @keyframes loading-1 {
582
- 12.5%,
583
- 37.5% {
584
- opacity: 1;
585
- }
586
- 37.51%,
587
- 75% {
588
- opacity: 0;
589
- }
590
- 75.01%,
591
- 100% {
592
- opacity: 1;
593
- }
594
- }
595
-
596
- @keyframes loading-2 {
597
- 0%,
598
- 50% {
599
- opacity: 1;
600
- }
601
- 50.01%,
602
- 87.5% {
603
- opacity: 0;
604
- }
605
- 87.51%,
606
- 100% {
607
- opacity: 1;
608
- }
609
- }
610
-
611
- @keyframes loading-3 {
612
- 0%,
613
- 62.5% {
614
- opacity: 1;
615
- }
616
- 62.51%,
617
- 100% {
618
- opacity: 0;
619
- }
620
- }
621
-
622
- @keyframes loading-6 {
623
- 0%,
624
- 12.5% {
625
- opacity: 0;
626
- }
627
- 12.51%,
628
- 75% {
629
- opacity: 1;
630
- }
631
- 75.01%,
632
- 100% {
633
- opacity: 0;
634
- }
635
- }
636
-
637
- @keyframes loading-9 {
638
- 0%,
639
- 25% {
640
- opacity: 0;
641
- }
642
- 25.51%,
643
- 87.5% {
644
- opacity: 1;
645
- }
646
- 87.51%,
647
- 100% {
648
- opacity: 0;
649
- }
650
- }
651
-
652
- @keyframes loading-8 {
653
- 0%,
654
- 37.5% {
655
- opacity: 0;
656
- }
657
- 37.51%,
658
- 100% {
659
- opacity: 1;
660
- }
661
- }
662
-
663
- @keyframes loading-7 {
664
- 0%,
665
- 12.5% {
666
- opacity: 1;
667
- }
668
- 12.51%,
669
- 50% {
670
- opacity: 0;
671
- }
672
- 50.01%,
673
- 100% {
674
- opacity: 1;
675
- }
676
- }
677
-
678
- @keyframes loading-4 {
679
- 0%,
680
- 25% {
681
- opacity: 1;
682
- }
683
- 25.01%,
684
- 62.5% {
685
- opacity: 0;
686
- }
687
- 62.51%,
688
- 100% {
689
- opacity: 1;
690
- }
691
- }
692
-
693
- .loading-1 {
694
- animation: 533.33ms infinite loading-1;
695
- }
696
-
697
- .loading-2 {
698
- animation: 533.33ms infinite loading-2;
699
- }
700
-
701
- .loading-3 {
702
- animation: 533.33ms infinite loading-3;
703
- }
704
-
705
- .loading-4 {
706
- animation: 533.33ms infinite loading-4;
707
- }
708
-
709
- .loading-6 {
710
- animation: 533.33ms infinite loading-6;
711
- }
712
-
713
- .loading-7 {
714
- animation: 533.33ms infinite loading-7;
715
- }
716
-
717
- .loading-8 {
718
- animation: 533.33ms infinite loading-8;
719
- }
720
-
721
- .loading-9 {
722
- animation: 533.33ms infinite loading-9;
723
- }