nuvio 0.0.3 → 1.2.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 (79) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +337 -6
  3. package/dist/nuvio-base-dark.css +1497 -0
  4. package/dist/nuvio-base-dark.min.css +1 -0
  5. package/dist/nuvio-base-light.css +1497 -0
  6. package/dist/nuvio-base-light.min.css +1 -0
  7. package/dist/nuvio-base-prefer.css +1549 -0
  8. package/dist/nuvio-base-prefer.min.css +1 -0
  9. package/dist/nuvio-base.css +1655 -0
  10. package/dist/nuvio-base.min.css +1 -0
  11. package/dist/nuvio-dark.css +9755 -0
  12. package/dist/nuvio-dark.min.css +1 -0
  13. package/dist/nuvio-light.css +9755 -0
  14. package/dist/nuvio-light.min.css +1 -0
  15. package/dist/nuvio-prefer.css +9876 -0
  16. package/dist/nuvio-prefer.min.css +1 -0
  17. package/dist/nuvio.css +10104 -17
  18. package/dist/nuvio.min.css +1 -1
  19. package/package.json +37 -22
  20. package/src/_config-base.scss +6 -0
  21. package/src/_includes-base.scss +10 -0
  22. package/src/_includes-full.scss +44 -0
  23. package/src/base/_index.scss +295 -0
  24. package/src/config/_index.scss +322 -0
  25. package/src/config/_layers.scss +27 -0
  26. package/src/config/themes.scss +308 -0
  27. package/src/config/utilities.scss +106 -0
  28. package/src/elements/accordion.scss +65 -0
  29. package/src/elements/block.scss +14 -0
  30. package/src/elements/box.scss +66 -0
  31. package/src/elements/dropdown.scss +149 -0
  32. package/src/elements/footer.scss +9 -0
  33. package/src/elements/icon.scss +63 -0
  34. package/src/elements/image.scss +36 -0
  35. package/src/elements/modal.scss +123 -0
  36. package/src/elements/navbar.scss +463 -0
  37. package/src/elements/notification.scss +53 -0
  38. package/src/elements/placeholder.scss +55 -0
  39. package/src/elements/progress.scss +85 -0
  40. package/src/elements/table.scss +149 -0
  41. package/src/elements/tag.scss +88 -0
  42. package/src/forms/button.scss +415 -0
  43. package/src/forms/checkbox-radio.scss +38 -0
  44. package/src/forms/controls.scss +181 -0
  45. package/src/forms/file.scss +237 -0
  46. package/src/forms/form-utilities.scss +109 -0
  47. package/src/forms/input.scss +27 -0
  48. package/src/forms/range.scss +96 -0
  49. package/src/forms/segmented.scss +130 -0
  50. package/src/forms/select.scss +100 -0
  51. package/src/forms/textarea.scss +26 -0
  52. package/src/forms/toggle.scss +106 -0
  53. package/src/layout/border.scss +34 -0
  54. package/src/layout/container.scss +36 -0
  55. package/src/layout/flexbox-base.scss +204 -0
  56. package/src/layout/flexbox-shorthands.scss +48 -0
  57. package/src/layout/grid.scss +72 -0
  58. package/src/layout/overflow.scss +23 -0
  59. package/src/layout/position.scss +16 -0
  60. package/src/layout/spacing.scss +70 -0
  61. package/src/layout/visibility.scss +50 -0
  62. package/src/main-base-auto.scss +4 -0
  63. package/src/main-base-dark.scss +4 -0
  64. package/src/main-base-light.scss +4 -0
  65. package/src/main-base-prefer.scss +4 -0
  66. package/src/main-full-auto.scss +4 -0
  67. package/src/main-full-dark.scss +6 -0
  68. package/src/main-full-light.scss +6 -0
  69. package/src/main-full-prefer.scss +6 -0
  70. package/src/typography/color.scss +25 -0
  71. package/src/typography/content.scss +185 -0
  72. package/src/typography/interaction.scss +20 -0
  73. package/src/typography/text.scss +71 -0
  74. package/src/typography/title.scss +76 -0
  75. package/src/_buttons.scss +0 -19
  76. package/src/_reset.scss +0 -5
  77. package/src/_typography.scss +0 -13
  78. package/src/_variables.scss +0 -5
  79. package/src/main.scss +0 -3
@@ -0,0 +1,72 @@
1
+ @use "sass:list";
2
+ @use "sass:map";
3
+ @use "sass:math";
4
+ @use "../config" as c;
5
+ @use "../config/utilities" as u;
6
+ @use "../config/layers" as l;
7
+
8
+ @mixin _col-widths($suffix: "") {
9
+ @for $i from 1 through c.$column-count {
10
+ &.is-#{$i}#{$suffix} { flex: none; width: math.percentage(math.div($i, c.$column-count)); }
11
+ &.has-offset-#{$i}#{$suffix} { margin-inline-start: math.percentage(math.div($i, c.$column-count)); }
12
+ }
13
+ }
14
+
15
+ @include l.layer("components") {
16
+ .col {
17
+ display: block;
18
+ flex-basis: 0;
19
+ flex-grow: 1;
20
+ flex-shrink: 1;
21
+ padding: var(--nv-column-gap, math.div(c.$block-spacing, 2));
22
+
23
+ $__bps: map.keys(c.$breakpoints);
24
+ @each $bp, $_ in c.$breakpoints {
25
+ @include u.bp-from($bp) {
26
+ @if list.index($__bps, $bp) == 1 {
27
+ @include _col-widths("");
28
+ @include _col-widths("-#{$bp}");
29
+ } @else {
30
+ @include _col-widths("-#{$bp}");
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ .row {
37
+ --nv-column-gap: #{math.div(c.$block-spacing, 2)};
38
+ flex-wrap: wrap;
39
+ margin-inline-start: calc(-1 * var(--nv-column-gap));
40
+ margin-inline-end: calc(-1 * var(--nv-column-gap));
41
+ margin-top: calc(-1 * var(--nv-column-gap));
42
+
43
+ &:last-child { margin-bottom: calc(-1 * var(--nv-column-gap)); }
44
+ &:not(:last-child) {
45
+ margin-bottom: calc(#{c.$block-spacing} - var(--nv-column-gap));
46
+ }
47
+
48
+ &.is-oneline { flex-wrap: nowrap; }
49
+ &.is-centered { justify-content: center; }
50
+ &.is-vcentered { align-items: center; }
51
+
52
+ @include u.bp-from("sm") {
53
+ display: flex;
54
+ }
55
+
56
+ // All base gaps before the -mobile ones, so a -mobile gap always wins.
57
+ @each $name, $value in c.$spacing-gaps {
58
+ &.has-gap-#{$name} {
59
+ --nv-column-gap: #{$value};
60
+ gap: 0 !important;
61
+ }
62
+ }
63
+ @include u.bp-below("sm") {
64
+ @each $name, $value in c.$spacing-gaps {
65
+ &.has-gap-#{$name}-mobile {
66
+ --nv-column-gap: #{$value};
67
+ gap: 0 !important;
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,23 @@
1
+ @use "../config/layers" as l;
2
+
3
+ @include l.layer("utilities") {
4
+ .is-clipped {
5
+ overflow: hidden !important;
6
+ }
7
+
8
+ $overflows: auto clip hidden scroll visible;
9
+
10
+ @each $overflow in $overflows {
11
+ .has-overflow-#{$overflow} {
12
+ overflow: $overflow !important;
13
+ }
14
+
15
+ .has-overflow-x-#{$overflow} {
16
+ overflow-x: $overflow !important;
17
+ }
18
+
19
+ .has-overflow-y-#{$overflow} {
20
+ overflow-y: $overflow !important;
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,16 @@
1
+ @use "../config/layers" as l;
2
+
3
+ @include l.layer("utilities") {
4
+ .overlay {
5
+ inset: 0;
6
+ position: absolute;
7
+ }
8
+
9
+ $positions: absolute fixed relative static sticky;
10
+
11
+ @each $position in $positions {
12
+ .is-pos-#{$position} {
13
+ position: $position !important;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,70 @@
1
+ @use "sass:map";
2
+ @use "../config" as c;
3
+ @use "../config/layers" as l;
4
+
5
+ $spacing-types: (
6
+ "margin": "m",
7
+ "padding": "p",
8
+ ) !default;
9
+
10
+ $spacing-directions: (
11
+ "top": "t",
12
+ "right": "r",
13
+ "bottom": "b",
14
+ "left": "l",
15
+ ) !default;
16
+
17
+ // Flow-relative counterparts to the physical "l" / "r" suffixes above: these two
18
+ // mirror under `dir="rtl"`, the physical ones deliberately do not.
19
+ $spacing-logical-directions: (
20
+ "inline-start": "s",
21
+ "inline-end": "e",
22
+ ) !default;
23
+
24
+ $spacing-horizontal: "x" !default;
25
+ $spacing-vertical: "y" !default;
26
+
27
+ $default-spacing-gaps: (
28
+ "auto": auto,
29
+ ) !default;
30
+
31
+ @include l.layer("utilities") {
32
+ @each $property, $shortcut in $spacing-types {
33
+ // `padding: auto` is not valid CSS – keep the keyword out of the padding set.
34
+ $gaps: map.merge($default-spacing-gaps, c.$spacing-gaps);
35
+ @if $property == "padding" {
36
+ $gaps: map.remove($gaps, "auto");
37
+ }
38
+
39
+ @each $name, $value in $gaps {
40
+
41
+ .#{$shortcut}-#{$name} {
42
+ #{$property}: $value !important;
43
+ }
44
+
45
+ @each $direction, $suffix in $spacing-directions {
46
+ .#{$shortcut}#{$suffix}-#{$name} {
47
+ #{$property}-#{$direction}: $value !important;
48
+ }
49
+ }
50
+
51
+ @if c.$spacing-logical {
52
+ @each $direction, $suffix in $spacing-logical-directions {
53
+ .#{$shortcut}#{$suffix}-#{$name} {
54
+ #{$property}-#{$direction}: $value !important;
55
+ }
56
+ }
57
+ }
58
+
59
+ .#{$shortcut}#{$spacing-horizontal}-#{$name} {
60
+ #{$property}-left: $value !important;
61
+ #{$property}-right: $value !important;
62
+ }
63
+
64
+ .#{$shortcut}#{$spacing-vertical}-#{$name} {
65
+ #{$property}-top: $value !important;
66
+ #{$property}-bottom: $value !important;
67
+ }
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,50 @@
1
+ @use "../config" as c;
2
+ @use "../config/utilities" as u;
3
+ @use "../config/layers" as l;
4
+
5
+ $displays: block flex inline inline-block inline-flex grid;
6
+
7
+ @include l.layer("utilities") {
8
+ @each $display in $displays {
9
+ .is-#{$display} {
10
+ display: $display !important;
11
+ }
12
+ }
13
+
14
+ .is-hidden {
15
+ display: none !important;
16
+ }
17
+
18
+ .is-invisible {
19
+ visibility: hidden !important;
20
+ }
21
+
22
+ @each $bp, $_ in c.$breakpoints {
23
+ @include u.bp-from($bp) {
24
+ @each $display in $displays {
25
+ .is-#{$display}-#{$bp} {
26
+ display: $display !important;
27
+ }
28
+ }
29
+
30
+ .is-hidden-#{$bp} {
31
+ display: none !important;
32
+ }
33
+
34
+ .is-invisible-#{$bp} {
35
+ visibility: hidden !important;
36
+ }
37
+ }
38
+ }
39
+
40
+ .sr-only {
41
+ border: none !important;
42
+ clip-path: inset(50%) !important;
43
+ height: 0.01em !important;
44
+ overflow: hidden !important;
45
+ padding: 0 !important;
46
+ position: absolute !important;
47
+ white-space: nowrap !important;
48
+ width: 0.01em !important;
49
+ }
50
+ }
@@ -0,0 +1,4 @@
1
+ // Compile mode: OS preference detection + html.is-light / html.is-dark class overrides (base feature set)
2
+
3
+ @use "config-base" with ($output-mode: "auto");
4
+ @use "includes-base";
@@ -0,0 +1,4 @@
1
+ // Compile mode: dark mode only (base feature set)
2
+
3
+ @use "config-base" with ($output-mode: "dark");
4
+ @use "includes-base";
@@ -0,0 +1,4 @@
1
+ // Compile mode: light mode only (base feature set)
2
+
3
+ @use "config-base" with ($output-mode: "light");
4
+ @use "includes-base";
@@ -0,0 +1,4 @@
1
+ // Compile mode: OS preference detection only – no html class override (base feature set)
2
+
3
+ @use "config-base" with ($output-mode: "prefer");
4
+ @use "includes-base";
@@ -0,0 +1,4 @@
1
+ // Compile mode: OS preference detection + html.is-light / html.is-dark class overrides
2
+
3
+ @use "config";
4
+ @use "includes-full";
@@ -0,0 +1,6 @@
1
+ // Compile mode: dark mode only
2
+
3
+ @use "config" with (
4
+ $output-mode: "dark",
5
+ );
6
+ @use "includes-full";
@@ -0,0 +1,6 @@
1
+ // Compile mode: light mode only
2
+
3
+ @use "config" with (
4
+ $output-mode: "light",
5
+ );
6
+ @use "includes-full";
@@ -0,0 +1,6 @@
1
+ // Compile mode: OS preference detection only – no html class override
2
+
3
+ @use "config" with (
4
+ $output-mode: "prefer",
5
+ );
6
+ @use "includes-full";
@@ -0,0 +1,25 @@
1
+ @use "../config" as c;
2
+ @use "../config/themes" as t;
3
+ @use "../config/layers" as l;
4
+
5
+ @include l.layer("utilities") {
6
+ .has-background { @include t.theme("background-color", "bg", $important: true); }
7
+ .has-text-normal { @include t.theme("color", "text", $important: true); }
8
+ .has-text-muted { @include t.theme("color", "text-muted", $important: true); }
9
+ .has-text-highlight { @include t.theme("color", "text-highlight", $important: true); }
10
+
11
+ .has-text-current { color: currentColor !important; }
12
+ .has-text-inherit { color: inherit !important; }
13
+ .has-background-current { background-color: currentColor !important; }
14
+ .has-background-inherit { background-color: inherit !important; }
15
+
16
+ @each $name, $_ in c.$semantic-colors {
17
+ .has-text-#{$name} { @include t.theme("color", "ink-#{$name}", $important: true); }
18
+ .has-text-#{$name}-invert { @include t.theme("color", "fill-text-#{$name}", $important: true); }
19
+ .has-text-#{$name}-light { @include t.theme("color", "tint-light-text-#{$name}", $important: true); }
20
+ .has-text-#{$name}-dark { @include t.theme("color", "tint-dark-text-#{$name}", $important: true); }
21
+ .has-background-#{$name} { @include t.theme("background-color", "fill-#{$name}", $important: true); }
22
+ .has-background-#{$name}-light { @include t.theme("background-color", "tint-light-#{$name}", $important: true); }
23
+ .has-background-#{$name}-dark { @include t.theme("background-color", "tint-dark-#{$name}", $important: true); }
24
+ }
25
+ }
@@ -0,0 +1,185 @@
1
+ @use "../config" as c;
2
+ @use "../config/themes" as t;
3
+ @use "../config/utilities" as u;
4
+ @use "../config/layers" as l;
5
+
6
+ @include l.layer("components") {
7
+ .content {
8
+ @include u.block;
9
+
10
+ // Inline
11
+ li + li {
12
+ margin-top: 0.25em;
13
+ }
14
+
15
+ // Block
16
+ p,
17
+ dl,
18
+ ol,
19
+ ul,
20
+ blockquote,
21
+ pre,
22
+ table {
23
+ &:not(:last-child) {
24
+ margin-bottom: 1em;
25
+ }
26
+ }
27
+
28
+ h1,
29
+ h2,
30
+ h3,
31
+ h4,
32
+ h5,
33
+ h6 {
34
+ @include t.theme("color", "text-highlight");
35
+ font-weight: c.$font-weight-extrabold;
36
+ line-height: 1.125;
37
+ }
38
+
39
+ h1 {
40
+ font-size: 2em;
41
+ margin-bottom: 0.5em;
42
+ &:not(:first-child) { margin-top: 1em; }
43
+ }
44
+
45
+ h2 {
46
+ font-size: 1.75em;
47
+ margin-bottom: 0.5714em;
48
+ &:not(:first-child) { margin-top: 1.1428em; }
49
+ }
50
+
51
+ h3 {
52
+ font-size: 1.5em;
53
+ margin-bottom: 0.6666em;
54
+ &:not(:first-child) { margin-top: 1.3333em; }
55
+ }
56
+
57
+ h4 {
58
+ font-size: 1.25em;
59
+ margin-bottom: 0.8em;
60
+ }
61
+
62
+ h5 {
63
+ font-size: 1.125em;
64
+ margin-bottom: 0.8888em;
65
+ }
66
+
67
+ h6 {
68
+ font-size: 1em;
69
+ margin-bottom: 1em;
70
+ }
71
+
72
+ blockquote {
73
+ @include t.theme("background-color", "surface-1");
74
+ @include t.theme("border-color", "border");
75
+ border-inline-start: 5px solid;
76
+ padding: 1.25em 1.5em;
77
+ }
78
+
79
+ ol {
80
+ list-style-position: outside;
81
+ margin-inline-start: 2em;
82
+
83
+ &:not(:first-child) { margin-top: 1em; }
84
+
85
+ &:not([type]) {
86
+ list-style-type: decimal;
87
+
88
+ &.is-lower-alpha { list-style-type: lower-alpha; }
89
+ &.is-lower-roman { list-style-type: lower-roman; }
90
+ &.is-upper-alpha { list-style-type: upper-alpha; }
91
+ &.is-upper-roman { list-style-type: upper-roman; }
92
+ }
93
+ }
94
+
95
+ ul {
96
+ list-style: disc outside;
97
+ margin-inline-start: 2em;
98
+
99
+ &:not(:first-child) { margin-top: 1em; }
100
+
101
+ ul {
102
+ list-style-type: circle;
103
+ margin-bottom: 0.25em;
104
+ margin-top: 0.25em;
105
+
106
+ ul { list-style-type: square; }
107
+ }
108
+ }
109
+
110
+ dd {
111
+ margin-inline-start: 2em;
112
+ }
113
+
114
+ figure:not([class]) {
115
+ margin-inline: 2em;
116
+ text-align: center;
117
+
118
+ &:not(:first-child) { margin-top: 2em; }
119
+ &:not(:last-child) { margin-bottom: 2em; }
120
+
121
+ img { display: inline-block; }
122
+ figcaption { font-style: italic; }
123
+ }
124
+
125
+ pre {
126
+ overflow-x: auto;
127
+ padding: 1.25em 1.5em;
128
+ white-space: pre;
129
+ word-wrap: normal;
130
+ }
131
+
132
+ sup,
133
+ sub {
134
+ font-size: 75%;
135
+ }
136
+
137
+ table {
138
+ td,
139
+ th {
140
+ border: 1px solid;
141
+ @include t.theme("border-color", "border");
142
+ border-width: 0 0 1px;
143
+ padding: 0.5em 0.75em;
144
+ vertical-align: top;
145
+ }
146
+
147
+ th {
148
+ @include t.theme("color", "text-highlight");
149
+
150
+ &:not([align]) { text-align: inherit; }
151
+ }
152
+
153
+ thead {
154
+ td,
155
+ th {
156
+ border-width: 0 0 2px;
157
+ @include t.theme("color", "text-highlight");
158
+ }
159
+ }
160
+
161
+ tfoot {
162
+ td,
163
+ th {
164
+ border-width: 2px 0 0;
165
+ @include t.theme("color", "text-highlight");
166
+ }
167
+ }
168
+
169
+ tbody tr:last-child {
170
+ td,
171
+ th {
172
+ border-bottom-width: 0;
173
+ }
174
+ }
175
+ }
176
+
177
+ .tabs li + li { margin-top: 0; }
178
+
179
+ // Sizes
180
+ &.is-small { font-size: c.$font-size-sm; }
181
+ &.is-normal { font-size: c.$font-size-base; }
182
+ &.is-medium { font-size: c.$font-size-lg; }
183
+ &.is-large { font-size: c.$font-size-xl; }
184
+ }
185
+ }
@@ -0,0 +1,20 @@
1
+ @use "../config/layers" as l;
2
+
3
+ @include l.layer("utilities") {
4
+ .is-clickable {
5
+ cursor: pointer !important;
6
+ pointer-events: all !important;
7
+ }
8
+
9
+ .is-unselectable {
10
+ -webkit-touch-callout: none;
11
+ -webkit-user-select: none;
12
+ -moz-user-select: none;
13
+ -ms-user-select: none;
14
+ user-select: none;
15
+ }
16
+
17
+ .no-pointer-events {
18
+ pointer-events: none;
19
+ }
20
+ }
@@ -0,0 +1,71 @@
1
+ @use "sass:list";
2
+ @use "../config" as c;
3
+ @use "../config/utilities" as u;
4
+ @use "../config/layers" as l;
5
+
6
+ $_font-sizes: (
7
+ c.$font-size-xs,
8
+ c.$font-size-sm,
9
+ c.$font-size-base,
10
+ c.$font-size-lg,
11
+ c.$font-size-xl,
12
+ c.$font-size-2xl,
13
+ c.$font-size-3xl,
14
+ c.$font-size-4xl,
15
+ c.$font-size-5xl,
16
+ );
17
+
18
+ @mixin _size($suffix: "") {
19
+ @each $size in $_font-sizes {
20
+ $i: list.index($_font-sizes, $size);
21
+ .is-size-#{$i}#{$suffix} { font-size: $size !important; }
22
+ }
23
+ }
24
+
25
+ @include l.layer("utilities") {
26
+ @include _size;
27
+ @include u.bp-below("sm") { @include _size("-mobile"); }
28
+
29
+ // "left" / "right" stay physical; "start" / "end" mirror under `dir="rtl"`.
30
+ $_alignments: (
31
+ "centered": "center",
32
+ "justified": "justify",
33
+ "left": "left",
34
+ "right": "right",
35
+ "start": "start",
36
+ "end": "end",
37
+ );
38
+
39
+ // All base alignments before the -mobile ones, so a -mobile one always wins.
40
+ @each $a, $v in $_alignments {
41
+ .is-aligned-#{$a} { text-align: #{$v} !important; }
42
+ }
43
+ @include u.bp-below("sm") {
44
+ @each $a, $v in $_alignments {
45
+ .is-aligned-#{$a}-mobile { text-align: #{$v} !important; }
46
+ }
47
+ }
48
+
49
+ .is-capitalized { text-transform: capitalize !important; }
50
+ .is-lower { text-transform: lowercase !important; }
51
+ .is-upper { text-transform: uppercase !important; }
52
+ .is-italic { font-style: italic !important; }
53
+ .is-underlined { text-decoration: underline !important; }
54
+ .is-not-decorated { text-decoration: none !important; }
55
+
56
+ .has-weight-light { font-weight: c.$font-weight-light !important; }
57
+ .has-weight-normal { font-weight: c.$font-weight-normal !important; }
58
+ .has-weight-medium { font-weight: c.$font-weight-medium !important; }
59
+ .has-weight-semibold { font-weight: c.$font-weight-semibold !important; }
60
+ .has-weight-bold { font-weight: c.$font-weight-bold !important; }
61
+ .has-weight-extrabold { font-weight: c.$font-weight-extrabold !important; }
62
+
63
+ .is-family-sans { font-family: c.$font-family-sans !important; }
64
+ .is-family-serif { font-family: c.$font-family-serif !important; }
65
+ .is-family-mono { font-family: c.$font-family-mono !important; }
66
+
67
+ .has-no-linebreak { white-space: nowrap; }
68
+
69
+ // Equal-width digits, so a live value does not jitter as it changes.
70
+ .has-tabular-nums { font-variant-numeric: tabular-nums !important; }
71
+ }
@@ -0,0 +1,76 @@
1
+ @use "sass:map";
2
+ @use "sass:math";
3
+ @use "../config" as c;
4
+ @use "../config/themes" as t;
5
+ @use "../config/utilities" as u;
6
+ @use "../config/layers" as l;
7
+
8
+ @include l.layer("components") {
9
+ .title,
10
+ .subtitle {
11
+ @include u.block(math.div(c.$block-spacing, 2));
12
+ word-break: break-word;
13
+
14
+ em,
15
+ span {
16
+ font-weight: inherit;
17
+ }
18
+
19
+ sub { font-size: 0.75em; }
20
+ sup { font-size: 0.75em; }
21
+
22
+ .tag { vertical-align: middle; }
23
+ }
24
+
25
+ .title {
26
+ @include t.theme("color", "text-highlight");
27
+ font-size: map.get(c.$heading-levels, 1, "title", "size");
28
+ font-weight: map.get(c.$heading-levels, 1, "title", "weight");
29
+ line-height: c.$heading-line-height;
30
+
31
+ strong {
32
+ color: inherit;
33
+ font-weight: c.$font-weight-extrabold;
34
+ }
35
+
36
+ &:not(.is-spaced):has(+ .title) {
37
+ margin-bottom: .6rem;
38
+ }
39
+
40
+ &:not(.is-spaced):has(+ .subtitle) {
41
+ margin-bottom: 0;
42
+ }
43
+
44
+ @each $level, $spec in c.$heading-levels {
45
+ $title-spec: map.get($spec, "title");
46
+ &.is-level-#{$level} {
47
+ font-size: map.get($title-spec, "size");
48
+ font-weight: map.get($title-spec, "weight");
49
+ }
50
+ }
51
+ }
52
+
53
+ .subtitle {
54
+ @include t.theme("color", "text-muted");
55
+ font-size: map.get(c.$heading-levels, 1, "subtitle", "size");
56
+ font-weight: map.get(c.$heading-levels, 1, "subtitle", "weight");
57
+ line-height: c.$heading-line-height;
58
+
59
+ strong {
60
+ color: inherit;
61
+ font-weight: c.$font-weight-semibold;
62
+ }
63
+
64
+ &:not(.is-spaced):has(+ .subtitle) {
65
+ margin-bottom: 0;
66
+ }
67
+
68
+ @each $level, $spec in c.$heading-levels {
69
+ $subtitle-spec: map.get($spec, "subtitle");
70
+ &.is-level-#{$level} {
71
+ font-size: map.get($subtitle-spec, "size");
72
+ font-weight: map.get($subtitle-spec, "weight");
73
+ }
74
+ }
75
+ }
76
+ }
package/src/_buttons.scss DELETED
@@ -1,19 +0,0 @@
1
- @use "variables";
2
-
3
- .button {
4
- padding: 0.6rem 1.2rem;
5
- border-radius: 0.5rem;
6
- border: none;
7
- cursor: pointer;
8
- font-weight: 500;
9
-
10
- &-primary {
11
- background: variables.$primary;
12
- color: #f9f9f9;
13
- }
14
-
15
- &-secondary {
16
- background: variables.$secondary;
17
- color: #f9f9f9;
18
- }
19
- }
package/src/_reset.scss DELETED
@@ -1,5 +0,0 @@
1
- * {
2
- margin: 0;
3
- padding: 0;
4
- box-sizing: border-box;
5
- }