@semanticus/semanticus-css 0.8.0 → 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.
Files changed (166) hide show
  1. package/NOTICE +16 -16
  2. package/README.md +128 -29
  3. package/dist/semanticus-no-utilities.css +11 -0
  4. package/dist/semanticus-semantics.css +3 -4
  5. package/dist/semanticus-utilities.css +11 -0
  6. package/dist/semanticus.css +4 -12
  7. package/dist/semanticus.palette.amber.css +1 -1
  8. package/dist/semanticus.palette.azure.css +1 -0
  9. package/dist/semanticus.palette.blue.css +1 -1
  10. package/dist/semanticus.palette.cyan.css +1 -1
  11. package/dist/semanticus.palette.fuchsia.css +1 -1
  12. package/dist/semanticus.palette.green.css +1 -1
  13. package/dist/semanticus.palette.grey.css +1 -1
  14. package/dist/semanticus.palette.indigo.css +1 -1
  15. package/dist/semanticus.palette.jade.css +1 -1
  16. package/dist/semanticus.palette.lime.css +1 -1
  17. package/dist/semanticus.palette.orange.css +1 -1
  18. package/dist/semanticus.palette.pink.css +1 -1
  19. package/dist/semanticus.palette.pumpkin.css +1 -1
  20. package/dist/semanticus.palette.purple.css +1 -1
  21. package/dist/semanticus.palette.red.css +1 -1
  22. package/dist/semanticus.palette.sand.css +1 -1
  23. package/dist/semanticus.palette.slate.css +1 -1
  24. package/dist/semanticus.palette.violet.css +1 -1
  25. package/dist/semanticus.palette.yellow.css +1 -1
  26. package/dist/semanticus.palette.zinc.css +1 -1
  27. package/dist/semanticus.size.pico.css +1 -1
  28. package/package.json +28 -16
  29. package/src/components/_card.css +84 -0
  30. package/src/components/_sidebar.css +49 -0
  31. package/src/components/modules.css +2 -0
  32. package/src/index.css +8 -10
  33. package/src/no-utilities.css +22 -0
  34. package/src/palettes/amber.css +28 -53
  35. package/src/palettes/azure.css +31 -0
  36. package/src/palettes/blue.css +28 -53
  37. package/src/palettes/cyan.css +28 -53
  38. package/src/palettes/fuchsia.css +28 -53
  39. package/src/palettes/green.css +28 -53
  40. package/src/palettes/grey.css +28 -53
  41. package/src/palettes/indigo.css +28 -53
  42. package/src/palettes/jade.css +28 -53
  43. package/src/palettes/lime.css +28 -53
  44. package/src/palettes/orange.css +28 -53
  45. package/src/palettes/pink.css +28 -53
  46. package/src/palettes/pumpkin.css +28 -53
  47. package/src/palettes/purple.css +28 -53
  48. package/src/palettes/red.css +28 -53
  49. package/src/palettes/sand.css +28 -53
  50. package/src/palettes/slate.css +28 -53
  51. package/src/palettes/violet.css +28 -53
  52. package/src/palettes/yellow.css +28 -53
  53. package/src/palettes/zinc.css +28 -53
  54. package/src/semantics/{_aria-busy.css → attributes/_aria-busy.css} +0 -3
  55. package/src/semantics/{_hidden.css → attributes/_hidden.css} +0 -3
  56. package/src/semantics/attributes/_popover.css +13 -0
  57. package/src/semantics/attributes/_role-group-search.css +137 -0
  58. package/src/semantics/{_role-toolbar.css → attributes/_role-toolbar.css} +2 -5
  59. package/src/semantics/{_role-tooltip.css → attributes/_role-tooltip.css} +6 -9
  60. package/src/semantics/elements/_abbr.css +5 -0
  61. package/src/semantics/elements/_address.css +7 -0
  62. package/src/semantics/elements/_article.css +3 -0
  63. package/src/semantics/elements/_aside.css +10 -0
  64. package/src/semantics/elements/_blockquote.css +18 -0
  65. package/src/semantics/elements/_body.css +5 -0
  66. package/src/semantics/{_button.css → elements/_button.css} +23 -26
  67. package/src/semantics/{_code.css → elements/_code.css} +11 -11
  68. package/src/semantics/elements/_del.css +3 -0
  69. package/src/semantics/{_details.css → elements/_details.css} +42 -43
  70. package/src/semantics/elements/_dialog.css +113 -0
  71. package/src/semantics/{_document.css → elements/_document.css} +10 -4
  72. package/src/semantics/{_embedded.css → elements/_embedded.css} +0 -3
  73. package/src/semantics/{_figure.css → elements/_figure.css} +0 -3
  74. package/src/semantics/elements/_footer.css +10 -0
  75. package/src/semantics/elements/_header.css +10 -0
  76. package/src/semantics/elements/_headings.css +24 -0
  77. package/src/semantics/elements/_hgroup.css +14 -0
  78. package/src/semantics/{_hr.css → elements/_hr.css} +1 -4
  79. package/src/semantics/{_input.css → elements/_input.css} +34 -38
  80. package/src/semantics/elements/_ins.css +4 -0
  81. package/src/semantics/elements/_links.css +61 -0
  82. package/src/semantics/elements/_lists.css +22 -0
  83. package/src/semantics/elements/_main.css +3 -0
  84. package/src/semantics/elements/_mark.css +6 -0
  85. package/src/semantics/{_nav.css → elements/_nav.css} +5 -8
  86. package/src/semantics/elements/_p.css +11 -0
  87. package/src/semantics/{_progress.css → elements/_progress.css} +5 -8
  88. package/src/semantics/elements/_section.css +4 -0
  89. package/src/semantics/elements/_small.css +3 -0
  90. package/src/semantics/elements/_strong.css +4 -0
  91. package/src/semantics/elements/_sub.css +7 -0
  92. package/src/semantics/elements/_sup.css +7 -0
  93. package/src/semantics/{_table.css → elements/_table.css} +10 -7
  94. package/src/semantics/{_type-checkbox-radio.css → elements/_type-checkbox-radio.css} +19 -22
  95. package/src/semantics/{_type-color.css → elements/_type-color.css} +2 -5
  96. package/src/semantics/{_type-date.css → elements/_type-date.css} +1 -4
  97. package/src/semantics/elements/_type-file.css +23 -0
  98. package/src/semantics/{_type-range.css → elements/_type-range.css} +11 -14
  99. package/src/semantics/elements/_type-search.css +30 -0
  100. package/src/semantics/index.css +2 -5
  101. package/src/semantics/modules.css +46 -37
  102. package/src/sizes/pico.css +21 -29
  103. package/src/utilities/_grid.css +306 -0
  104. package/src/utilities/_variables.css +27 -42
  105. package/src/utilities/borders/_border-radius.css +54 -79
  106. package/src/utilities/borders/_border-style.css +15 -5
  107. package/src/utilities/borders/_border-width.css +0 -28
  108. package/src/utilities/colors/_bg-colors.css +75 -0
  109. package/src/utilities/colors/_border-colors.css +17 -39
  110. package/src/utilities/colors/_subtle-colors.css +145 -0
  111. package/src/utilities/colors/_text-bg-colors.css +62 -0
  112. package/src/utilities/colors/_text-colors.css +32 -409
  113. package/src/utilities/effects/_focus-ring.css +33 -0
  114. package/src/utilities/effects/_shadows.css +0 -33
  115. package/src/utilities/index.css +16 -0
  116. package/src/utilities/layout/_misc.css +2 -5
  117. package/src/utilities/layout/{_grid.css → _ratio.css} +0 -19
  118. package/src/utilities/modules.css +9 -3
  119. package/src/utilities/sizing/_width.css +8 -0
  120. package/src/utilities/spacing/_gap.css +144 -144
  121. package/src/utilities/spacing/_margin.css +324 -324
  122. package/src/utilities/spacing/_padding.css +324 -324
  123. package/src/utilities/typography/_font-sizes.css +6 -6
  124. package/src/variables/_all.css +2 -20
  125. package/src/variables/_elements.css +29 -33
  126. package/src/variables/_theme.css +336 -0
  127. package/src/variants/_variables.css +24 -0
  128. package/src/variants/intent/_contrast.css +46 -0
  129. package/src/variants/intent/_danger.css +38 -0
  130. package/src/variants/intent/_info.css +38 -0
  131. package/src/variants/intent/_primary.css +38 -0
  132. package/src/variants/intent/_secondary.css +38 -0
  133. package/src/variants/intent/_success.css +38 -0
  134. package/src/variants/intent/_warning.css +38 -0
  135. package/src/variants/{_container.css → modifiers/_container.css} +3 -10
  136. package/src/variants/modifiers/_ghost.css +164 -0
  137. package/src/variants/modifiers/_striped.css +11 -0
  138. package/src/variants/modifiers/_subtle.css +133 -0
  139. package/src/variants/modules.css +12 -15
  140. package/src/_normalize.css +0 -214
  141. package/src/semantics/_article.css +0 -12
  142. package/src/semantics/_aside.css +0 -16
  143. package/src/semantics/_body.css +0 -8
  144. package/src/semantics/_dialog.css +0 -157
  145. package/src/semantics/_footer.css +0 -12
  146. package/src/semantics/_header.css +0 -12
  147. package/src/semantics/_links.css +0 -50
  148. package/src/semantics/_main.css +0 -10
  149. package/src/semantics/_role-group-search.css +0 -129
  150. package/src/semantics/_section.css +0 -9
  151. package/src/semantics/_type-file.css +0 -26
  152. package/src/semantics/_type-search.css +0 -34
  153. package/src/semantics/_typography.css +0 -146
  154. package/src/utilities/colors/_background-colors.css +0 -248
  155. package/src/variables/_colors.css +0 -366
  156. package/src/variables/_components.css +0 -318
  157. package/src/variables/_icons.css +0 -43
  158. package/src/variables/_layout.css +0 -128
  159. package/src/variants/_card.css +0 -45
  160. package/src/variants/_contained.css +0 -43
  161. package/src/variants/_contrast.css +0 -47
  162. package/src/variants/_ghost.css +0 -61
  163. package/src/variants/_panel.css +0 -18
  164. package/src/variants/_secondary.css +0 -35
  165. package/src/variants/_sidebar.css +0 -11
  166. package/src/variants/_striped.css +0 -10
@@ -1,43 +0,0 @@
1
- /* ==========================================================================
2
- Theme-Aware Icon Variables
3
- ==========================================================================
4
-
5
- Validation icons that change color based on the current theme.
6
- These are defined separately from base icons because they use
7
- theme-specific colors (success/danger) for stroke values.
8
-
9
- Base icons (checkbox, chevron, date, time, search, close, loading)
10
- are defined in _layout.css as they use consistent colors across themes.
11
- ========================================================================== */
12
-
13
- /* ==========================================================================
14
- Light Theme Validation Icons
15
- ========================================================================== */
16
-
17
- [data-theme="light"],
18
- :root:not([data-theme="dark"]),
19
- :host(:not([data-theme="dark"])) {
20
- --icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(43, 122, 76)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
21
- --icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(197, 47, 33)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
22
- }
23
-
24
- /* ==========================================================================
25
- Dark Theme Validation Icons (System Preference)
26
- ========================================================================== */
27
-
28
- @media only screen and (prefers-color-scheme: dark) {
29
- :root:not([data-theme]),
30
- :host(:not([data-theme])) {
31
- --icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(110, 213, 157)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
32
- --icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(243, 143, 121)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
33
- }
34
- }
35
-
36
- /* ==========================================================================
37
- Dark Theme Validation Icons (Explicit)
38
- ========================================================================== */
39
-
40
- [data-theme="dark"] {
41
- --icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(110, 213, 157)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
42
- --icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(243, 143, 121)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
43
- }
@@ -1,128 +0,0 @@
1
- /* ==========================================================================
2
- Layout & Typography Variables
3
- ==========================================================================
4
-
5
- Global sizing, spacing, and typography variables. These define the
6
- foundational rhythm of the design system.
7
-
8
- Includes:
9
- - Font families and typography scale
10
- - Spacing units and component padding
11
- - Border radius and border widths
12
- - Responsive typography adjustments
13
- ========================================================================== */
14
-
15
- :root,
16
- :host {
17
- /* Font Families */
18
- --font-family-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
19
- --font-family-sans-serif: system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif, var(--font-family-emoji);
20
- --font-family-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace, var(--font-family-emoji);
21
- --font-family: var(--font-family-sans-serif);
22
-
23
- /* Typography - base defaults */
24
- --line-height: 1.5;
25
- --font-weight: 400;
26
- --font-size: 97%;
27
- --text-underline-offset: 0.1rem;
28
-
29
- /* Font Size Scale - semantic heading sizes (h1-h6) */
30
- --fs-1: 2rem;
31
- --fs-2: 1.75rem;
32
- --fs-3: 1.5rem;
33
- --fs-4: 1.25rem;
34
- --fs-5: 1.125rem;
35
- --fs-6: 1rem;
36
-
37
- /* Borders & Effects */
38
- --border-radius: 0.25rem;
39
- --border-width: 0.0625rem;
40
- --outline-width: 0.125rem;
41
- --transition: 0.2s ease-in-out;
42
-
43
- /* Spacing - shared base unit */
44
- --spacing: 0.75rem;
45
- --responsive-multiplier: 1;
46
- --typography-spacing-vertical: 1rem;
47
- --block-spacing-vertical: 1.2rem;
48
- --block-spacing-horizontal: 1.2rem;
49
- --grid-column-gap: var(--spacing);
50
- --grid-row-gap: var(--spacing);
51
- --form-element-spacing-vertical: 0.5rem;
52
- --form-element-spacing-horizontal: 0.7rem;
53
-
54
- /* Group Shadows */
55
- --group-shadow: 0 0 0 rgba(0, 0, 0, 0);
56
- --group-shadow-focus-with-button: 0 0 0 var(--outline-width) var(--color-primary-focus);
57
- --group-shadow-focus-with-input: 0 0 0 0.0625rem var(--form-border-color);
58
-
59
- /* Modal */
60
- --modal-overlay-backdrop-filter: blur(0.375rem);
61
-
62
- /* Navigation */
63
- --nav-link-spacing-vertical: 0.5rem;
64
- --nav-link-spacing-horizontal: 0.5rem;
65
- --nav-breadcrumb-divider: ">";
66
-
67
- /* Sidebar */
68
- --sidebar-width: 25%;
69
-
70
- /* Icons - inline SVG data-URIs used by form elements and UI components */
71
- --icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
72
- --icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
73
- --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
74
- --icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
75
- --icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
76
- --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
77
- --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
78
- --icon-loading: url("data:image/svg+xml,%3Csvg fill='none' height='24' width='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E g %7B animation: rotate 2s linear infinite; transform-origin: center center; %7D circle %7B stroke-dasharray: 75,100; stroke-dashoffset: -5; animation: dash 1.5s ease-in-out infinite; stroke-linecap: round; %7D @keyframes rotate %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D @keyframes dash %7B 0%25 %7B stroke-dasharray: 1,100; stroke-dashoffset: 0; %7D 50%25 %7B stroke-dasharray: 44.5,100; stroke-dashoffset: -17.5; %7D 100%25 %7B stroke-dasharray: 44.5,100; stroke-dashoffset: -62; %7D %7D %3C/style%3E%3Cg%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='rgb(136, 145, 164)' stroke-width='4' /%3E%3C/g%3E%3C/svg%3E");
79
- }
80
-
81
- /* ==========================================================================
82
- Responsive Typography & Layout Adjustments
83
- ========================================================================== */
84
-
85
- @media (--breakpoint-sm) {
86
- :root,
87
- :host {
88
- --font-size: 98%;
89
- --sidebar-width: max(25%, 150px);
90
- --responsive-multiplier: 1.25;
91
- }
92
- }
93
-
94
- @media (--breakpoint-md) {
95
- :root,
96
- :host {
97
- --font-size: 99%;
98
- --sidebar-width: max(22%, 180px);
99
- --responsive-multiplier: 1.5;
100
- }
101
- }
102
-
103
- @media (--breakpoint-lg) {
104
- :root,
105
- :host {
106
- --font-size: 100%;
107
- --sidebar-width: max(20%, 200px);
108
- --responsive-multiplier: 1.75;
109
- }
110
- }
111
-
112
- @media (--breakpoint-xl) {
113
- :root,
114
- :host {
115
- --font-size: 101%;
116
- --sidebar-width: max(18%, 220px);
117
- --responsive-multiplier: 1.85;
118
- }
119
- }
120
-
121
- @media (--breakpoint-xxl) {
122
- :root,
123
- :host {
124
- --font-size: 102%;
125
- --sidebar-width: clamp(240px, 16%, 300px);
126
- --responsive-multiplier: 2;
127
- }
128
- }
@@ -1,45 +0,0 @@
1
- /**
2
- * Card (.card)
3
- * A container component for grouped content with visual card styling
4
- * Can be applied to any element (article, div, section, etc.)
5
- */
6
- .card {
7
- --block-spacing-vertical: calc(var(--spacing) * var(--responsive-multiplier));
8
- --block-spacing-horizontal: calc(var(--spacing) * var(--responsive-multiplier));
9
-
10
- margin-bottom: var(--block-spacing-vertical);
11
- padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);
12
- border-radius: var(--border-radius);
13
- background: var(--card-bg);
14
- box-shadow: var(--card-shadow);
15
-
16
- & > header,
17
- & > footer {
18
- width: calc(100% + var(--block-spacing-horizontal) * 2);
19
- margin-right: calc(var(--block-spacing-horizontal) * -1);
20
- margin-left: calc(var(--block-spacing-horizontal) * -1);
21
- padding: calc(var(--block-spacing-vertical) * 0.66) var(--block-spacing-horizontal);
22
- background-color: var(--card-section-bg);
23
- }
24
-
25
- & > header {
26
- margin-top: calc(var(--block-spacing-vertical) * -1);
27
- margin-bottom: var(--block-spacing-vertical);
28
- border-bottom: var(--border-width) solid var(--card-border);
29
- border-top-right-radius: var(--border-radius);
30
- border-top-left-radius: var(--border-radius);
31
- }
32
-
33
- & > footer {
34
- margin-top: var(--block-spacing-vertical);
35
- margin-bottom: calc(var(--block-spacing-vertical) * -1);
36
- border-top: var(--border-width) solid var(--card-border);
37
- border-bottom-right-radius: var(--border-radius);
38
- border-bottom-left-radius: var(--border-radius);
39
- }
40
-
41
- & > header > :last-child,
42
- & > footer > :last-child {
43
- margin-bottom: 0;
44
- }
45
- }
@@ -1,43 +0,0 @@
1
- /**
2
- * Contained
3
- * Applies container constraints (max-width and horizontal margins) to all direct children
4
- * instead of the container itself
5
- */
6
- .contained,
7
- .contained-fluid {
8
- width: 100%;
9
-
10
- & > * {
11
- margin-right: auto;
12
- margin-left: auto;
13
- padding-right: var(--spacing);
14
- padding-left: var(--spacing);
15
- width: 100%;
16
- }
17
- }
18
-
19
- .contained {
20
- & > * {
21
- @media (--breakpoint-sm) {
22
- max-width: 510px;
23
- padding-right: 0;
24
- padding-left: 0;
25
- }
26
-
27
- @media (--breakpoint-md) {
28
- max-width: 700px;
29
- }
30
-
31
- @media (--breakpoint-lg) {
32
- max-width: 950px;
33
- }
34
-
35
- @media (--breakpoint-xl) {
36
- max-width: 1200px;
37
- }
38
-
39
- @media (--breakpoint-xxl) {
40
- max-width: 1450px;
41
- }
42
- }
43
- }
@@ -1,47 +0,0 @@
1
- /**
2
- * Contrast variant
3
- * Used on links, buttons, and accordion elements
4
- */
5
-
6
- /* Links */
7
- :where(a:not([role="button"])),
8
- [role="link"] {
9
- &.contrast {
10
- --color-text: rgb(var(--color-contrast-rgb));
11
- --underline: var(--color-contrast-underline);
12
-
13
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
14
- --color-text: var(--color-contrast-hover);
15
- --underline: var(--color-contrast-hover-underline);
16
- }
17
- }
18
- }
19
-
20
- :is(.panel, button, [type="submit"], [type="button"], [role="button"]).contrast {
21
- --color-background: var(--color-contrast-bg);
22
- --border-color: var(--color-contrast-border);
23
- --color-text: var(--color-contrast-inverse);
24
- }
25
-
26
- :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
27
- --color-background: var(--color-contrast-hover-bg);
28
- --border-color: var(--color-contrast-hover-border);
29
- --color-text: var(--color-contrast-inverse);
30
- }
31
-
32
- :is(button, [type="submit"], [type="button"], [role="button"]).contrast:focus,
33
- :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is([aria-current]:not([aria-current="false"])):focus {
34
- --shadow-lg: var(--button-shadow-hover, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--outline-width) var(--color-contrast-focus);
35
- }
36
-
37
- /* Accordion chevron dark mode override */
38
- @media only screen and (prefers-color-scheme: dark) {
39
- :root:not([data-theme]) details summary[role="button"].contrast::after,
40
- :host(:not([data-theme])) details summary[role="button"].contrast::after {
41
- filter: brightness(0);
42
- }
43
- }
44
-
45
- [data-theme="dark"] details summary[role="button"].contrast::after {
46
- filter: brightness(0);
47
- }
@@ -1,61 +0,0 @@
1
- /**
2
- * Ghost variant
3
- * Transparent background with colored text/border
4
- * Used on buttons and accordion elements
5
- */
6
-
7
- .ghost {
8
- --color-background: transparent;
9
-
10
- background-color: var(--color-background) !important;
11
- }
12
-
13
- :is(button, [type="submit"], [type="button"], [role="button"]).ghost {
14
- --color-background: transparent;
15
- --color-text: rgb(var(--color-primary-rgb));
16
- --border-color: rgb(var(--color-primary-rgb));
17
- }
18
-
19
- :is(button, [type="submit"], [type="button"], [role="button"]).ghost:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
20
- --color-background: transparent;
21
- --color-text: var(--color-primary-hover);
22
- --border-color: var(--color-primary-hover);
23
- }
24
-
25
- :is(.panel, button, [type="submit"], [type="button"], [role="button"]).ghost.secondary {
26
- --color-text: rgb(var(--color-secondary-rgb));
27
- --border-color: rgb(var(--color-secondary-rgb));
28
- }
29
-
30
- :is(button, [type="submit"], [type="button"], [role="button"]).ghost.secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
31
- --color-text: var(--color-secondary-hover);
32
- --border-color: var(--color-secondary-hover);
33
- }
34
-
35
- :is(.panel, button, [type="submit"], [type="button"], [role="button"]).ghost.contrast {
36
- --color-text: rgb(var(--color-contrast-rgb));
37
- --border-color: rgb(var(--color-contrast-rgb));
38
- }
39
-
40
- :is(button, [type="submit"], [type="button"], [role="button"]).ghost.contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
41
- --color-text: var(--color-contrast-hover);
42
- --border-color: var(--color-contrast-hover);
43
- }
44
-
45
- /* Reset buttons */
46
- [type="reset"].ghost {
47
- --color-background: transparent;
48
- --color-text: rgb(var(--color-secondary-rgb));
49
- --border-color: rgb(var(--color-secondary-rgb));
50
-
51
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
52
- --color-text: var(--color-secondary-hover);
53
- --border-color: var(--color-secondary-hover);
54
- }
55
- }
56
-
57
- /* Accordion - ghost buttons have transparent backgrounds with colored text,
58
- so the chevron should remain dark to match the text color */
59
- details summary[role="button"].ghost::after {
60
- filter: none;
61
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * Panel akin to a flat card.
3
- */
4
- .panel {
5
- --block-spacing-vertical: calc(var(--spacing) * var(--responsive-multiplier));
6
- --block-spacing-horizontal: calc(var(--spacing) * var(--responsive-multiplier));
7
-
8
- --color-background: var(--card-bg);
9
- --border-color: var(--card-border);
10
- --color-text: var(--color-text);
11
-
12
- background-color: var(--color-background);
13
- border-radius: var(--border-radius);
14
- border: var(--border-width) solid var(--border-color);
15
- color: var(--color-text);
16
- margin-bottom: var(--block-spacing-vertical);
17
- padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);
18
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * Secondary variant
3
- * Used on links, buttons, and form elements
4
- */
5
-
6
- /* Links */
7
- :where(a:not([role="button"])),
8
- [role="link"] {
9
- &.secondary {
10
- --color-text: rgb(var(--color-secondary-rgb));
11
- --underline: var(--color-secondary-underline);
12
-
13
- &:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
14
- --color-text: var(--color-secondary-hover);
15
- --underline: var(--color-secondary-hover-underline);
16
- }
17
- }
18
- }
19
-
20
- :is(.panel, button, [type="submit"], [type="button"], [role="button"]).secondary {
21
- --color-background: var(--color-secondary-bg);
22
- --border-color: var(--color-secondary-border);
23
- --color-text: var(--color-secondary-inverse);
24
- }
25
-
26
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
27
- --color-background: var(--color-secondary-hover-bg);
28
- --border-color: var(--color-secondary-hover-border);
29
- --color-text: var(--color-secondary-inverse);
30
- }
31
-
32
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary:focus,
33
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is([aria-current]:not([aria-current="false"])):focus {
34
- --shadow-lg: var(--button-shadow-hover, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--outline-width) var(--color-secondary-focus);
35
- }
@@ -1,11 +0,0 @@
1
- aside {
2
- &.sidebar {
3
- z-index: 1020;
4
- position: sticky;
5
- top: 0;
6
- max-height: 100svh;
7
- align-self: stretch;
8
- display: flex;
9
- flex-direction: column;
10
- }
11
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Striped variant
3
- * Alternating row background colors for tables
4
- */
5
- table.striped tbody tr:nth-child(odd) {
6
- & th,
7
- & td {
8
- background-color: var(--table-row-stripe-bg);
9
- }
10
- }