@rokkit/themes 1.0.0-next.125 → 1.0.0-next.128

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.
Files changed (137) hide show
  1. package/README.md +118 -9
  2. package/build.mjs +237 -0
  3. package/package.json +43 -28
  4. package/src/base/breadcrumbs.css +46 -0
  5. package/src/base/button.css +247 -0
  6. package/src/base/card.css +36 -0
  7. package/src/base/carousel.css +122 -12
  8. package/src/base/connector.css +92 -0
  9. package/src/base/display.css +91 -0
  10. package/src/base/floating-action.css +388 -0
  11. package/src/base/floating-navigation.css +381 -0
  12. package/src/base/grid.css +93 -0
  13. package/src/base/index.css +39 -0
  14. package/src/base/input.css +198 -39
  15. package/src/base/item.css +78 -0
  16. package/src/base/list.css +179 -0
  17. package/src/base/menu.css +274 -0
  18. package/src/base/pill.css +57 -0
  19. package/src/base/progress.css +28 -15
  20. package/src/base/range.css +121 -0
  21. package/src/base/rating.css +40 -0
  22. package/src/base/reveal.css +37 -0
  23. package/src/base/search-filter.css +132 -0
  24. package/src/base/select.css +411 -0
  25. package/src/base/shine.css +14 -0
  26. package/src/base/stepper.css +140 -0
  27. package/src/base/switch.css +152 -0
  28. package/src/base/table.css +143 -33
  29. package/src/base/tabs.css +171 -0
  30. package/src/base/tilt.css +14 -0
  31. package/src/base/timeline.css +84 -0
  32. package/src/base/toggle.css +138 -0
  33. package/src/base/toolbar.css +337 -0
  34. package/src/base/tree.css +195 -11
  35. package/src/base/upload-progress.css +155 -0
  36. package/src/base/upload-target.css +67 -0
  37. package/src/glass/button.css +152 -0
  38. package/src/glass/floating-action.css +61 -0
  39. package/src/glass/floating-navigation.css +74 -0
  40. package/src/glass/index.css +23 -0
  41. package/src/glass/input.css +124 -0
  42. package/src/glass/list.css +122 -0
  43. package/src/glass/menu.css +92 -0
  44. package/src/glass/range.css +61 -0
  45. package/src/glass/search-filter.css +49 -0
  46. package/src/glass/select.css +178 -0
  47. package/src/glass/switch.css +28 -0
  48. package/src/glass/table.css +87 -0
  49. package/src/glass/tabs.css +58 -0
  50. package/src/glass/timeline.css +46 -0
  51. package/src/glass/toggle.css +48 -0
  52. package/src/glass/toolbar.css +84 -0
  53. package/src/glass/tree.css +104 -0
  54. package/src/index.css +18 -0
  55. package/src/index.js +25 -2
  56. package/src/material/button.css +153 -0
  57. package/src/material/floating-action.css +60 -0
  58. package/src/material/floating-navigation.css +74 -0
  59. package/src/material/index.css +23 -0
  60. package/src/material/input.css +118 -40
  61. package/src/material/list.css +90 -64
  62. package/src/material/menu.css +92 -0
  63. package/src/material/range.css +62 -0
  64. package/src/material/search-filter.css +49 -0
  65. package/src/material/select.css +170 -0
  66. package/src/material/switch.css +28 -0
  67. package/src/material/table.css +87 -0
  68. package/src/material/tabs.css +62 -0
  69. package/src/material/timeline.css +46 -0
  70. package/src/material/toggle.css +48 -0
  71. package/src/material/toolbar.css +84 -0
  72. package/src/material/tree.css +100 -0
  73. package/src/minimal/button.css +152 -0
  74. package/src/minimal/floating-action.css +59 -0
  75. package/src/minimal/floating-navigation.css +70 -0
  76. package/src/minimal/index.css +23 -0
  77. package/src/minimal/input.css +81 -120
  78. package/src/minimal/list.css +90 -104
  79. package/src/minimal/menu.css +88 -0
  80. package/src/minimal/range.css +61 -0
  81. package/src/minimal/search-filter.css +49 -0
  82. package/src/minimal/select.css +168 -0
  83. package/src/minimal/switch.css +28 -0
  84. package/src/minimal/table.css +87 -0
  85. package/src/minimal/tabs.css +53 -31
  86. package/src/minimal/timeline.css +45 -0
  87. package/src/minimal/toggle.css +48 -0
  88. package/src/minimal/toolbar.css +84 -0
  89. package/src/minimal/tree.css +100 -0
  90. package/src/rokkit/button.css +225 -0
  91. package/src/rokkit/connector.css +11 -0
  92. package/src/rokkit/floating-action.css +65 -0
  93. package/src/rokkit/floating-navigation.css +83 -0
  94. package/src/rokkit/grid.css +46 -0
  95. package/src/rokkit/index.css +27 -0
  96. package/src/rokkit/input.css +130 -0
  97. package/src/rokkit/list.css +127 -0
  98. package/src/rokkit/menu.css +93 -0
  99. package/src/rokkit/range.css +62 -0
  100. package/src/rokkit/search-filter.css +49 -0
  101. package/src/rokkit/select.css +185 -0
  102. package/src/rokkit/switch.css +28 -0
  103. package/src/rokkit/table.css +68 -38
  104. package/src/rokkit/tabs.css +82 -0
  105. package/src/rokkit/timeline.css +46 -0
  106. package/src/rokkit/toggle.css +36 -52
  107. package/src/rokkit/toolbar.css +84 -0
  108. package/src/rokkit/tree.css +123 -0
  109. package/src/rokkit/upload-progress.css +102 -0
  110. package/src/rokkit/upload-target.css +50 -0
  111. package/src/base/alert.css +0 -30
  112. package/src/base/animation.css +0 -37
  113. package/src/base/atoms.css +0 -58
  114. package/src/base/core.css +0 -107
  115. package/src/base/layout.css +0 -65
  116. package/src/base/molecules.css +0 -109
  117. package/src/base/organisms.css +0 -66
  118. package/src/base/scrollbar.css +0 -16
  119. package/src/base/toggles.css +0 -17
  120. package/src/base.css +0 -13
  121. package/src/markdown.css +0 -955
  122. package/src/material/base.css +0 -12
  123. package/src/material/form.css +0 -30
  124. package/src/material.css +0 -9
  125. package/src/minimal/base.css +0 -8
  126. package/src/minimal/form.css +0 -87
  127. package/src/minimal.css +0 -11
  128. package/src/mixins/mixins.scss +0 -66
  129. package/src/mixins/palette.scss +0 -48
  130. package/src/prism.css +0 -102
  131. package/src/rokkit/alert.css +0 -4
  132. package/src/rokkit/atoms.css +0 -52
  133. package/src/rokkit/carousel.css +0 -19
  134. package/src/rokkit/layout.css +0 -17
  135. package/src/rokkit/molecules.css +0 -124
  136. package/src/rokkit/organisms.css +0 -307
  137. package/src/rokkit.css +0 -11
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Toolbar - Rokkit Theme Styles
3
+ *
4
+ * Rich gradients and glowing borders.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Toolbar Container
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-toolbar] {
12
+ @apply from-surface-z2 to-surface-z1 bg-gradient-to-b;
13
+ }
14
+
15
+ /* Position-based borders */
16
+ [data-style='rokkit'] [data-toolbar][data-toolbar-position='top'],
17
+ [data-style='rokkit'] [data-toolbar]:not([data-toolbar-position]) {
18
+ @apply border-surface-z4 border-b shadow-sm;
19
+ }
20
+
21
+ [data-style='rokkit'] [data-toolbar][data-toolbar-position='bottom'] {
22
+ @apply border-surface-z4 border-t shadow-sm;
23
+ }
24
+
25
+ [data-style='rokkit'] [data-toolbar][data-toolbar-position='left'] {
26
+ @apply border-surface-z4 border-r shadow-sm;
27
+ }
28
+
29
+ [data-style='rokkit'] [data-toolbar][data-toolbar-position='right'] {
30
+ @apply border-surface-z4 border-l shadow-sm;
31
+ }
32
+
33
+ /* =============================================================================
34
+ Toolbar Items
35
+ ============================================================================= */
36
+
37
+ [data-style='rokkit'] [data-toolbar-item] {
38
+ @apply text-surface-z7;
39
+ }
40
+
41
+ [data-style='rokkit'] [data-toolbar-item]:hover:not(:disabled):not([data-disabled='true']) {
42
+ @apply from-surface-z3 to-surface-z2 text-surface-z10 bg-gradient-to-b;
43
+ }
44
+
45
+ [data-style='rokkit'] [data-toolbar-item]:focus-visible:not(:disabled):not([data-disabled='true']) {
46
+ @apply from-surface-z3 to-surface-z2 text-surface-z10 ring-primary-z4 bg-gradient-to-b ring-2 outline-none;
47
+ }
48
+
49
+ /* Active/pressed state */
50
+ [data-style='rokkit'] [data-toolbar-item][data-active='true'] {
51
+ @apply from-primary-z5 to-secondary-z5 text-primary-z9 border-primary-z5 border bg-gradient-to-b;
52
+ }
53
+
54
+ [data-style='rokkit'] [data-toolbar-item][data-active='true']:hover:not(:disabled) {
55
+ @apply from-primary-z5 to-primary-z4 text-primary-z10 bg-gradient-to-b;
56
+ }
57
+
58
+ /* =============================================================================
59
+ Toolbar Icon
60
+ ============================================================================= */
61
+
62
+ [data-style='rokkit'] [data-toolbar-item] [data-toolbar-icon] {
63
+ @apply text-surface-z6;
64
+ }
65
+
66
+ [data-style='rokkit'] [data-toolbar-item]:hover:not(:disabled) [data-toolbar-icon] {
67
+ @apply text-surface-z9;
68
+ }
69
+
70
+ [data-style='rokkit'] [data-toolbar-item][data-active='true'] [data-toolbar-icon] {
71
+ @apply text-primary-z7;
72
+ }
73
+
74
+ /* =============================================================================
75
+ Separator & Divider
76
+ ============================================================================= */
77
+
78
+ [data-style='rokkit'] [data-toolbar-separator] {
79
+ @apply from-surface-z5 to-surface-z3 bg-gradient-to-b;
80
+ }
81
+
82
+ [data-style='rokkit'] [data-toolbar-divider] {
83
+ @apply from-surface-z5 to-surface-z3 bg-gradient-to-r;
84
+ }
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Tree - Rokkit Theme Styles
3
+ *
4
+ * Rich gradients and glowing borders.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Tree Container
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-tree]:focus-within {
12
+ @apply ring-primary-z4 rounded ring-1;
13
+ }
14
+
15
+ /* =============================================================================
16
+ Tree Toggle Button
17
+ ============================================================================= */
18
+
19
+ [data-style='rokkit'] [data-tree-toggle-btn] {
20
+ @apply text-surface-z5;
21
+ }
22
+
23
+ [data-style='rokkit'] [data-tree-toggle-btn]:hover {
24
+ @apply from-surface-z3 to-surface-z2 text-surface-z8 bg-gradient-to-b;
25
+ }
26
+
27
+ /* =============================================================================
28
+ Tree Item Content
29
+ ============================================================================= */
30
+
31
+ [data-style='rokkit'] [data-tree-item-content] {
32
+ @apply text-surface-z8;
33
+ }
34
+
35
+ [data-style='rokkit'] [data-tree-item-content]:hover:not(:disabled),
36
+ [data-style='rokkit'] [data-tree-item-content]:focus:not(:disabled) {
37
+ @apply from-surface-z3 to-surface-z2 text-surface-z10 bg-gradient-to-r outline-none;
38
+ }
39
+
40
+ /* Focus visible for keyboard navigation */
41
+ [data-style='rokkit'] [data-tree-item-content]:focus-visible {
42
+ @apply ring-primary-z5 ring-2 outline-none;
43
+ }
44
+
45
+ /* Active/selected state - when focus is within tree */
46
+ [data-style='rokkit'] [data-tree]:focus-within [data-tree-item-content][data-active='true'] {
47
+ @apply from-primary-z5 to-secondary-z5 text-primary-z9 border-l-primary-z5 border-l-2 bg-gradient-to-r;
48
+ }
49
+
50
+ [data-style='rokkit'] [data-tree]:focus-within [data-tree-item-content][data-active='true']:hover:not(:disabled) {
51
+ @apply from-primary-z4 to-primary-z3 bg-gradient-to-r;
52
+ }
53
+
54
+ /* Active/selected state - when focus is outside tree (muted) */
55
+ [data-style='rokkit'] [data-tree]:not(:focus-within) [data-tree-item-content][data-active='true'] {
56
+ @apply from-surface-z3 to-surface-z2 text-surface-z9 border-l-surface-z5 border-l-2 bg-gradient-to-r;
57
+ }
58
+
59
+ /* =============================================================================
60
+ Item Elements
61
+ ============================================================================= */
62
+
63
+ [data-style='rokkit'] [data-tree-item-content] [data-item-icon] {
64
+ @apply text-surface-z5;
65
+ }
66
+
67
+ [data-style='rokkit'] [data-tree-item-content]:hover:not(:disabled) [data-item-icon] {
68
+ @apply text-surface-z7;
69
+ }
70
+
71
+ [data-style='rokkit'] [data-tree]:focus-within [data-tree-item-content][data-active='true'] [data-item-icon] {
72
+ @apply text-primary-z6;
73
+ }
74
+
75
+ [data-style='rokkit'] [data-tree]:not(:focus-within) [data-tree-item-content][data-active='true'] [data-item-icon] {
76
+ @apply text-surface-z6;
77
+ }
78
+
79
+ /* Item description */
80
+ [data-style='rokkit'] [data-tree-item-content] [data-item-description] {
81
+ @apply text-surface-z5;
82
+ }
83
+
84
+ [data-style='rokkit'] [data-tree]:focus-within [data-tree-item-content][data-active='true'] [data-item-description] {
85
+ @apply text-primary-z7;
86
+ }
87
+
88
+ [data-style='rokkit'] [data-tree]:not(:focus-within) [data-tree-item-content][data-active='true'] [data-item-description] {
89
+ @apply text-surface-z6;
90
+ }
91
+
92
+ /* Item badge */
93
+ [data-style='rokkit'] [data-tree-item-content] [data-item-badge] {
94
+ @apply text-surface-z6 from-surface-z3 to-surface-z2 border-surface-z4 border bg-gradient-to-b;
95
+ }
96
+
97
+ [data-style='rokkit'] [data-tree]:focus-within [data-tree-item-content][data-active='true'] [data-item-badge] {
98
+ @apply text-primary-z8 from-primary-z3 to-primary-z2 border-primary-z4 border bg-gradient-to-b;
99
+ }
100
+
101
+ [data-style='rokkit'] [data-tree]:not(:focus-within) [data-tree-item-content][data-active='true'] [data-item-badge] {
102
+ @apply text-surface-z7 from-surface-z4 to-surface-z3 bg-gradient-to-b;
103
+ }
104
+
105
+ /* =============================================================================
106
+ Multi-Selection
107
+ ============================================================================= */
108
+
109
+ [data-style='rokkit'] [data-tree-node][data-selected='true'] [data-tree-node-row] {
110
+ @apply bg-primary-z3;
111
+ }
112
+
113
+ [data-style='rokkit'] [data-tree]:focus-within [data-tree-node][data-selected='true'] [data-tree-node-row] {
114
+ @apply bg-primary-z4;
115
+ }
116
+
117
+ [data-style='rokkit'] [data-tree-node][data-selected='true'] [data-tree-item-content] {
118
+ @apply text-primary-z9;
119
+ }
120
+
121
+ [data-style='rokkit'] [data-tree-node][data-selected='true'] [data-tree-item-content] [data-item-icon] {
122
+ @apply text-primary-z6;
123
+ }
@@ -0,0 +1,102 @@
1
+ /**
2
+ * UploadProgress - Rokkit Theme Styles
3
+ *
4
+ * Status colors, progress fill, action buttons.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Header
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-upload-header] {
12
+ @apply text-surface-z7;
13
+ }
14
+
15
+ [data-style='rokkit'] [data-upload-clear] {
16
+ @apply border-surface-z4 text-surface-z6;
17
+ }
18
+
19
+ [data-style='rokkit'] [data-upload-clear]:hover {
20
+ @apply bg-surface-z3 text-surface-z9;
21
+ }
22
+
23
+ /* =============================================================================
24
+ File Rows
25
+ ============================================================================= */
26
+
27
+ [data-style='rokkit'] [data-upload-file-status] {
28
+ @apply text-surface-z7;
29
+ }
30
+
31
+ [data-style='rokkit'] [data-upload-file-status]:hover {
32
+ @apply bg-surface-z2;
33
+ }
34
+
35
+ /* =============================================================================
36
+ File Elements
37
+ ============================================================================= */
38
+
39
+ [data-style='rokkit'] [data-upload-file-icon] {
40
+ @apply text-surface-z5;
41
+ }
42
+
43
+ [data-style='rokkit'] [data-upload-file-size] {
44
+ @apply text-surface-z5;
45
+ }
46
+
47
+ /* =============================================================================
48
+ Progress Bar
49
+ ============================================================================= */
50
+
51
+ [data-style='rokkit'] [data-upload-bar] {
52
+ @apply bg-surface-z3;
53
+ }
54
+
55
+ [data-style='rokkit'] [data-upload-fill] {
56
+ @apply from-primary-z5 to-secondary-z5 bg-gradient-to-r;
57
+ }
58
+
59
+ /* =============================================================================
60
+ Status Colors
61
+ ============================================================================= */
62
+
63
+ [data-style='rokkit'] [data-upload-file-status][data-status='uploading'] [data-upload-status] {
64
+ @apply text-primary-z6;
65
+ }
66
+
67
+ [data-style='rokkit'] [data-upload-file-status][data-status='done'] [data-upload-status] {
68
+ @apply text-green-500;
69
+ }
70
+
71
+ [data-style='rokkit'] [data-upload-file-status][data-status='error'] [data-upload-status] {
72
+ @apply text-red-500;
73
+ }
74
+
75
+ [data-style='rokkit'] [data-upload-file-status][data-status='pending'] [data-upload-status] {
76
+ @apply text-surface-z5;
77
+ }
78
+
79
+ /* Status-based file icon tinting */
80
+ [data-style='rokkit'] [data-upload-file-status][data-status='done'] [data-upload-file-icon] {
81
+ @apply text-green-500;
82
+ }
83
+
84
+ [data-style='rokkit'] [data-upload-file-status][data-status='error'] [data-upload-file-icon] {
85
+ @apply text-red-500;
86
+ }
87
+
88
+ /* =============================================================================
89
+ Action Buttons
90
+ ============================================================================= */
91
+
92
+ [data-style='rokkit'] [data-upload-actions] button {
93
+ @apply text-surface-z5;
94
+ }
95
+
96
+ [data-style='rokkit'] [data-upload-actions] button:hover {
97
+ @apply bg-surface-z3 text-surface-z9;
98
+ }
99
+
100
+ [data-style='rokkit'] [data-upload-file-status][data-status='error'] [data-upload-retry]:hover {
101
+ @apply text-primary-z7;
102
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * UploadTarget - Rokkit Theme Styles
3
+ *
4
+ * Colors, drag-over highlight, hover/focus rings.
5
+ */
6
+
7
+ /* =============================================================================
8
+ Drop Zone
9
+ ============================================================================= */
10
+
11
+ [data-style='rokkit'] [data-upload-target] {
12
+ @apply border-surface-z4 text-surface-z6;
13
+ }
14
+
15
+ [data-style='rokkit'] [data-upload-target]:hover:not([data-disabled]) {
16
+ @apply border-surface-z5 text-surface-z7 bg-surface-z2;
17
+ }
18
+
19
+ [data-style='rokkit'] [data-upload-target]:focus-visible:not([data-disabled]) {
20
+ @apply border-primary-z5 ring-primary-z3 ring-2;
21
+ }
22
+
23
+ /* Drag-over highlight */
24
+ [data-style='rokkit'] [data-upload-target][data-dragging] {
25
+ @apply border-primary-z5 bg-primary-z2 text-primary-z7;
26
+ }
27
+
28
+ /* =============================================================================
29
+ Upload Icon
30
+ ============================================================================= */
31
+
32
+ [data-style='rokkit'] [data-upload-target] [data-upload-icon] {
33
+ @apply text-surface-z5;
34
+ }
35
+
36
+ [data-style='rokkit'] [data-upload-target][data-dragging] [data-upload-icon] {
37
+ @apply text-primary-z6;
38
+ }
39
+
40
+ /* =============================================================================
41
+ Browse Button
42
+ ============================================================================= */
43
+
44
+ [data-style='rokkit'] [data-upload-target] [data-upload-button] {
45
+ @apply border-surface-z4 text-surface-z7;
46
+ }
47
+
48
+ [data-style='rokkit'] [data-upload-target] [data-upload-button]:hover:not(:disabled) {
49
+ @apply bg-surface-z3 text-surface-z9;
50
+ }
@@ -1,30 +0,0 @@
1
- /* Alert styles */
2
- rk-alert-list {
3
- @apply right-8 top-12 w-80;
4
- }
5
-
6
- rk-alert,
7
- rk-error,
8
- rk-info,
9
- rk-warning,
10
- rk-success {
11
- @apply cursor-pointer rounded border px-4 py-2;
12
- }
13
-
14
- rk-alert.error,
15
- rk-alert.danger,
16
- rk-error {
17
- @apply bg-error text-error-z7 border-error-z3;
18
- }
19
- rk-alert.info,
20
- rk-info {
21
- @apply bg-info text-info-z7 border-info-z3;
22
- }
23
- rk-alert.warning,
24
- rk-warning {
25
- @apply bg-warn text-warn-z7 border-warn-z3;
26
- }
27
- rk-alert.success,
28
- rk-success {
29
- @apply bg-success text-success-z7 border-success-z3;
30
- }
@@ -1,37 +0,0 @@
1
- /* progress animation */
2
- @keyframes pendulum {
3
- from {
4
- left: -50%;
5
- }
6
- to {
7
- left: 100%;
8
- }
9
- }
10
-
11
- @keyframes shake {
12
- 0% {
13
- transform: translateX(0);
14
- }
15
- 25% {
16
- transform: translateX(1px);
17
- }
18
- 50% {
19
- transform: translateX(-1px);
20
- }
21
- 100% {
22
- transform: translateX(0);
23
- }
24
- }
25
-
26
- /* Button and focus animation */
27
- @keyframes button-pop {
28
- 0% {
29
- transform: scale(var(--btn-focus-scale, 0.95));
30
- }
31
- 40% {
32
- transform: scale(1.02);
33
- }
34
- 100% {
35
- transform: scale(1);
36
- }
37
- }
@@ -1,58 +0,0 @@
1
- /* Icon styles */
2
- rk-icon {
3
- @apply flex flex-shrink-0 flex-grow-0 items-center justify-center;
4
- /* @apply h-6 min-h-6 w-6; */
5
- }
6
- button > rk-icon {
7
- @apply text-md aspect-square cursor-pointer select-none;
8
- }
9
- rk-icon > i {
10
- @apply mx-auto aspect-square text-current;
11
- }
12
- rk-icon.large {
13
- @apply text-3xl;
14
- }
15
- rk-icon.medium {
16
- @apply text-lg leading-5;
17
- }
18
- rk-icon.small {
19
- @apply leading-4;
20
- font-size: 1rem;
21
- }
22
- button > rk-icon.large {
23
- @apply h-12 w-12;
24
- }
25
- button > rk-icon.medium {
26
- @apply h-8 w-8;
27
- }
28
- button > rk-icon.small {
29
- @apply h-6 w-6;
30
- }
31
-
32
- /* Scroll styles */
33
- rk-scroll {
34
- @apply flex flex-col overflow-y-scroll;
35
- }
36
-
37
- /* Square styles */
38
- square {
39
- @apply flex aspect-square flex-col items-center justify-center;
40
- /*h-full min-h-full*/
41
- }
42
- /* Item styles */
43
- rk-item,
44
- rk-list-item,
45
- .item {
46
- @apply flex flex-shrink-0 flex-grow-0 cursor-pointer items-center gap-2;
47
- }
48
-
49
- rk-item p,
50
- rk-list-item p,
51
- rk-summary p {
52
- @apply flex flex-grow;
53
- }
54
-
55
- /* Overlay styles */
56
- rk-overlay {
57
- @apply bg-surface-50 bg-opacity-50;
58
- }
package/src/base/core.css DELETED
@@ -1,107 +0,0 @@
1
- /* Global styles */
2
- *:focus {
3
- @apply outline-secondary outline outline-2 outline-offset-2;
4
- }
5
- *[tabindex='-1']:focus {
6
- @apply outline-none;
7
- }
8
- * {
9
- @apply box-border;
10
- }
11
-
12
- /* Body styles */
13
- body {
14
- @apply flex w-screen flex-col overflow-hidden;
15
- /* height: var(--viewport-height, 100dvh); */
16
- height: 100vh;
17
- height: --webkit-fill-available;
18
- height: 100dvh;
19
- max-height: 100dvh;
20
- }
21
-
22
- /* Link styles */
23
- a {
24
- @apply text-primary-800 hover:text-secondary-800 visited:text-secondary-700 cursor-pointer;
25
- }
26
- a:focus {
27
- @apply outline-none;
28
- }
29
- /* Code styles */
30
- code,
31
- kbd,
32
- samp,
33
- pre {
34
- @apply font-mono font-medium;
35
- }
36
-
37
- /* Disabled styles */
38
- .disabled {
39
- @apply text-disabled;
40
- }
41
-
42
- input[disabled='true'],
43
- textarea[disabled='true'],
44
- select[disabled='true'] {
45
- @apply outline-disabled;
46
- }
47
-
48
- /* plots*/
49
- rk-plot {
50
- @apply bg-surface-z0 rounded-md p-4;
51
- }
52
-
53
- g[aria-label='tip'] {
54
- --plot-background: rgb(var(--surface-200));
55
- }
56
-
57
- rk-input-field input,
58
- rk-input-field toggle-switch,
59
- rk-drop-down {
60
- @apply focus:outline-none;
61
- }
62
-
63
- rk-alert,
64
- rk-error,
65
- rk-info,
66
- rk-warning,
67
- rk-success {
68
- @apply cursor-pointer rounded border px-4 py-2;
69
- }
70
-
71
- rk-checkbox {
72
- @apply gap-2;
73
- }
74
-
75
- button:disabled {
76
- @apply bg-surface-z3 text-surface-500 cursor-not-allowed;
77
- }
78
-
79
- rk-cell.cell-type-string {
80
- @apply text-left;
81
- }
82
- rk-cell.cell-type-integer rk-item p,
83
- rk-cell.cell-type-number rk-item p {
84
- @apply text-right;
85
- }
86
-
87
- rk-cell rk-item {
88
- @apply flex w-full;
89
- }
90
-
91
- .dark ::-webkit-calendar-picker-indicator {
92
- filter: invert(1);
93
- }
94
-
95
- /* Autofill styles */
96
- input:-webkit-autofill,
97
- input:-webkit-autofill:hover,
98
- input:-webkit-autofill:focus,
99
- textarea:-webkit-autofill,
100
- textarea:-webkit-autofill:hover,
101
- textarea:-webkit-autofill:focus,
102
- select:-webkit-autofill,
103
- select:-webkit-autofill:hover,
104
- select:-webkit-autofill:focus {
105
- -webkit-text-fill-color: var(--surface-200);
106
- transition: background-color 5000s ease-in-out 0s;
107
- }
@@ -1,65 +0,0 @@
1
- rk-container > rk-segment {
2
- @apply h-full overflow-hidden;
3
- }
4
-
5
- .three-col,
6
- .two-col {
7
- @apply grid min-h-full w-full overflow-hidden;
8
- }
9
-
10
- .three-col.md {
11
- @apply grid-cols-2 grid-rows-2;
12
- /* grid-template-columns: repeat(2, 1fr); */
13
- /* grid-template-rows: repeat(2, 1fr); */
14
- grid-template-areas:
15
- 'c-1 c-2'
16
- 'c-1 c-3';
17
- }
18
- .three-col.md > .col-1,
19
- .three-col.lg > .col-1 {
20
- grid-area: c-1;
21
- }
22
- .three-col.md > .col-2,
23
- .three-col.lg > .col-2 {
24
- grid-area: c-2;
25
- }
26
- .three-col.md > .col-3,
27
- .three-col.lg > .col-3 {
28
- grid-area: c-3;
29
- }
30
- .three-col.lg {
31
- @apply grid-cols-5 grid-rows-2;
32
- /* grid-template-columns: repeat(5, 1fr); */
33
- /* grid-template-rows: repeat(2, 1fr); */
34
- grid-template-areas:
35
- 'c-1 c-1 c-2 c-2 c-2'
36
- 'c-1 c-1 c-3 c-3 c-3';
37
- }
38
- .three-col.sm,
39
- .two-col.sm {
40
- @apply grid-cols-1 grid-rows-1;
41
- }
42
-
43
- .two-col.md {
44
- @apply grid-cols-2 grid-rows-1;
45
- /* grid-template-columns: repeat(2, 1fr); */
46
- grid-template-areas: 'c-1 c-2';
47
- }
48
- .two-col.lg {
49
- @apply grid-cols-5 grid-rows-1;
50
- /* grid-template-columns: repeat(5, 1fr); */
51
- grid-template-areas: 'c-1 c-1 c-2 c-2 c-2';
52
- }
53
-
54
- .two-col.md > .col-1,
55
- .two-col.lg > .col-1 {
56
- grid-area: c-1;
57
- }
58
- .two-col.md > .col-2,
59
- .two-col.lg > .col-2 {
60
- grid-area: c-2;
61
- }
62
- .two-col.md > .col-3,
63
- .two-col.lg > .col-3 {
64
- display: none;
65
- }