@nuvoui/core 1.4.7 → 1.5.2

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.
@@ -1,132 +1,136 @@
1
- // Box sizing rules
2
- *,
3
- ::before,
4
- ::after,
5
- ::backdrop,
6
- ::file-selector-button {
7
- box-sizing: border-box;
8
- }
9
-
10
- // Remove default margin and padding
11
- body,
12
- h1,
13
- h2,
14
- h3,
15
- h4,
16
- h5,
17
- h6,
18
- p,
19
- figure,
20
- blockquote,
21
- dl,
22
- dd {
23
- margin: 0;
24
- padding: 0;
25
- }
26
-
27
- // Prevent font size inflation
28
- html {
29
- text-size-adjust: none;
30
- }
31
-
32
- // Set core root defaults
33
- html:focus-within {
34
- scroll-behavior: smooth;
35
- }
36
-
37
- // Set core body defaults
38
- body {
39
- min-height: 100vh;
40
- min-height: 100dvh;
41
- text-rendering: optimizespeed;
42
- line-height: 1.5;
43
- -webkit-font-smoothing: antialiased;
44
- -moz-osx-font-smoothing: grayscale;
45
- }
46
-
47
- // Set shorter line heights on headings and interactive elements
48
- h1,
49
- h2,
50
- h3,
51
- h4,
52
- button,
53
- input,
54
- label {
55
- line-height: 1.1;
56
- }
57
-
58
- // Make images easier to work with
59
- img,
60
- picture,
61
- video,
62
- canvas,
63
- svg,
64
- audio,
65
- iframe,
66
- embed,
67
- object {
68
- display: block;
69
- vertical-align: middle;
70
- }
71
-
72
- img,
73
- picture,
74
- video,
75
- svg {
76
- max-width: 100%;
77
- height: auto;
78
- }
79
-
80
- // Inherit fonts for inputs and buttons
81
- input,
82
- button,
83
- textarea,
84
- select {
85
- font: inherit;
86
- cursor: pointer;
87
-
88
- &:disabled {
89
- cursor: not-allowed;
1
+ @layer reset, base, components;
2
+
3
+ @layer reset {
4
+ // Box sizing rules
5
+ *,
6
+ ::before,
7
+ ::after,
8
+ ::backdrop,
9
+ ::file-selector-button {
10
+ box-sizing: border-box;
90
11
  }
91
- }
92
12
 
93
- // Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed
94
- ul[role="list"],
95
- ol[role="list"] {
96
- list-style: none;
97
- padding-inline-start: 0; // Replaces padding-left
98
- margin-block: 0; // Replaces margin-top/bottom
13
+ // Remove default margin and padding
14
+ body,
15
+ h1,
16
+ h2,
17
+ h3,
18
+ h4,
19
+ h5,
20
+ h6,
21
+ p,
22
+ figure,
23
+ blockquote,
24
+ dl,
25
+ dd {
26
+ margin: 0;
27
+ padding: 0;
28
+ }
99
29
 
100
- & > li {
101
- margin-block: 0;
30
+ // Prevent font size inflation
31
+ html {
32
+ text-size-adjust: none;
102
33
  }
103
- }
104
-
105
- // Remove underline from links
106
- a {
107
- text-decoration-skip-ink: auto;
108
- text-decoration: none;
109
- color: inherit;
110
- }
111
-
112
- // Make sure text areas without a rows attribute are not tiny
113
- textarea:not([rows]) {
114
- min-height: 10em;
115
- }
116
-
117
- // Anything that has been anchored to should have extra scroll margin
118
- :target {
119
- scroll-margin-block: 5ex;
120
- }
121
-
122
- // Remove all animations and transitions for people that prefer not to see them
123
- @media (prefers-reduced-motion: reduce) {
124
- *,
125
- *::before,
126
- *::after {
127
- animation-duration: 0.01ms !important;
128
- animation-iteration-count: 1 !important;
129
- transition-duration: 0.01ms !important;
130
- scroll-behavior: auto !important;
34
+
35
+ // Set core root defaults
36
+ html:focus-within {
37
+ scroll-behavior: smooth;
38
+ }
39
+
40
+ // Set core body defaults
41
+ body {
42
+ min-height: 100vh;
43
+ min-height: 100dvh;
44
+ text-rendering: optimizespeed;
45
+ line-height: 1.5;
46
+ -webkit-font-smoothing: antialiased;
47
+ -moz-osx-font-smoothing: grayscale;
48
+ }
49
+
50
+ // Set shorter line heights on headings and interactive elements
51
+ h1,
52
+ h2,
53
+ h3,
54
+ h4,
55
+ button,
56
+ input,
57
+ label {
58
+ line-height: 1.1;
59
+ }
60
+
61
+ // Make images easier to work with
62
+ img,
63
+ picture,
64
+ video,
65
+ canvas,
66
+ svg,
67
+ audio,
68
+ iframe,
69
+ embed,
70
+ object {
71
+ display: block;
72
+ vertical-align: middle;
73
+ }
74
+
75
+ img,
76
+ picture,
77
+ video,
78
+ svg {
79
+ max-width: 100%;
80
+ height: auto;
81
+ }
82
+
83
+ // Inherit fonts for inputs and buttons
84
+ input,
85
+ button,
86
+ textarea,
87
+ select {
88
+ font: inherit;
89
+ cursor: pointer;
90
+
91
+ &:disabled {
92
+ cursor: not-allowed;
93
+ }
94
+ }
95
+
96
+ // Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed
97
+ ul[role="list"],
98
+ ol[role="list"] {
99
+ list-style: none;
100
+ padding-inline-start: 0; // Replaces padding-left
101
+ margin-block: 0; // Replaces margin-top/bottom
102
+
103
+ & > li {
104
+ margin-block: 0;
105
+ }
106
+ }
107
+
108
+ // Remove underline from links
109
+ a {
110
+ text-decoration-skip-ink: auto;
111
+ text-decoration: none;
112
+ color: inherit;
113
+ }
114
+
115
+ // Make sure text areas without a rows attribute are not tiny
116
+ textarea:not([rows]) {
117
+ min-height: 10em;
118
+ }
119
+
120
+ // Anything that has been anchored to should have extra scroll margin
121
+ :target {
122
+ scroll-margin-block: 5ex;
123
+ }
124
+
125
+ // Remove all animations and transitions for people that prefer not to see them
126
+ @media (prefers-reduced-motion: reduce) {
127
+ *,
128
+ *::before,
129
+ *::after {
130
+ animation-duration: 0.01ms !important;
131
+ animation-iteration-count: 1 !important;
132
+ transition-duration: 0.01ms !important;
133
+ scroll-behavior: auto !important;
134
+ }
131
135
  }
132
- }
136
+ } // end @layer reset