@stnd/styles 0.10.12 → 0.10.14
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/CHANGELOG.md +12 -0
- package/_standard-01-token.scss +1 -1
- package/_standard-07-base.scss +3 -1
- package/_standard-11-forms.scss +5 -2
- package/_standard-13-components.scss +14 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/_standard-01-token.scss
CHANGED
package/_standard-07-base.scss
CHANGED
|
@@ -204,10 +204,12 @@ dt {
|
|
|
204
204
|
/* Safe default containment for direct body children:
|
|
205
205
|
every element placed directly in body is centered and padded
|
|
206
206
|
unless explicitly marked full-bleed, a header, or a footer. */
|
|
207
|
-
|
|
207
|
+
/*
|
|
208
|
+
body > :not(.full-bleed, .stnd-header, .stnd-footer, [data-full-bleed], script, style, template, astro-island) {
|
|
208
209
|
width: 100%;
|
|
209
210
|
max-width: var(--page-max-width);
|
|
210
211
|
margin-inline: auto;
|
|
211
212
|
padding-inline: var(--page-padding);
|
|
212
213
|
box-sizing: border-box;
|
|
213
214
|
}
|
|
215
|
+
*/
|
package/_standard-11-forms.scss
CHANGED
|
@@ -103,6 +103,8 @@ select {
|
|
|
103
103
|
@extend %padding-text;
|
|
104
104
|
font-size: 1em;
|
|
105
105
|
|
|
106
|
+
|
|
107
|
+
|
|
106
108
|
border-radius: var(--radius-sm);
|
|
107
109
|
color: var(--color-muted);
|
|
108
110
|
background-color: var(--color-surface-dark-1);
|
|
@@ -113,7 +115,9 @@ select {
|
|
|
113
115
|
cursor: pointer;
|
|
114
116
|
text-align: left;
|
|
115
117
|
text-shadow: none !important;
|
|
116
|
-
text-box-trim:
|
|
118
|
+
text-box-trim: trim;
|
|
119
|
+
|
|
120
|
+
padding: 0 var(--trim);
|
|
117
121
|
|
|
118
122
|
appearance: none;
|
|
119
123
|
/* Match Combobox double-chevron */
|
|
@@ -121,7 +125,6 @@ select {
|
|
|
121
125
|
background-repeat: no-repeat;
|
|
122
126
|
background-position: right var(--space-d8) center;
|
|
123
127
|
background-size: 1em;
|
|
124
|
-
padding-right: var(--space); /* Make space for the icon */
|
|
125
128
|
|
|
126
129
|
&:hover,
|
|
127
130
|
&:focus {
|
|
@@ -29,9 +29,9 @@ kbd {
|
|
|
29
29
|
border: none;
|
|
30
30
|
border-radius: 15%;
|
|
31
31
|
box-shadow: var(--shadow);
|
|
32
|
-
padding: var(--
|
|
32
|
+
padding: var(--trim);
|
|
33
33
|
font-family: var(--font-monospace);
|
|
34
|
-
font-size: var(--scale-
|
|
34
|
+
font-size: var(--scale-d2);
|
|
35
35
|
color: var(--color-foreground);
|
|
36
36
|
pointer-events: none;
|
|
37
37
|
}
|
|
@@ -99,7 +99,7 @@ a.btn {
|
|
|
99
99
|
text-decoration: none !important;
|
|
100
100
|
|
|
101
101
|
&:hover {
|
|
102
|
-
background-color: var(--color-surface-
|
|
102
|
+
background-color: var(--color-surface-dark-1);
|
|
103
103
|
/* Lift shadow slightly on hover */
|
|
104
104
|
color: var(--color-foreground);
|
|
105
105
|
box-shadow: var(--shadow-hover);
|
|
@@ -130,17 +130,19 @@ a.btn.destructive {
|
|
|
130
130
|
|
|
131
131
|
:where(button).secondary,
|
|
132
132
|
a.btn.secondary {
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
color: color-mix(in oklch, var(--color-accent) 90%, var(--color-foreground));
|
|
134
|
+
background-color: var(--color-surface-dark-1);
|
|
135
135
|
|
|
136
136
|
&:hover {
|
|
137
|
-
color: var(--color-accent);
|
|
138
|
-
|
|
137
|
+
background-color: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface-dark-1));
|
|
138
|
+
color: var(--color-foreground);
|
|
139
139
|
box-shadow: var(--shadow-raised), var(--shadow-glow);
|
|
140
|
+
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
&:active {
|
|
143
|
-
background-color: var(--color-
|
|
144
|
+
background-color: var(--color-accent);
|
|
145
|
+
color: var(--color-on-accent);
|
|
144
146
|
/* Flatten shadow on press */
|
|
145
147
|
box-shadow: var(--shadow-inset), var(--shadow-ring), var(--shadow-glow);
|
|
146
148
|
}
|
|
@@ -170,7 +172,7 @@ a.btn.outline {
|
|
|
170
172
|
|
|
171
173
|
&:hover {
|
|
172
174
|
color: var(--color-foreground);
|
|
173
|
-
background-color: var(--color-surface-
|
|
175
|
+
background-color: var(--color-surface-dark-1);
|
|
174
176
|
}
|
|
175
177
|
|
|
176
178
|
&:active {
|
|
@@ -190,7 +192,7 @@ a.btn.ghost {
|
|
|
190
192
|
|
|
191
193
|
&:hover {
|
|
192
194
|
color: var(--color-foreground);
|
|
193
|
-
background-color: var(--color-surface-
|
|
195
|
+
background-color: var(--color-surface-dark-1);
|
|
194
196
|
box-shadow: var(--shadow-hover);
|
|
195
197
|
}
|
|
196
198
|
|
|
@@ -275,18 +277,16 @@ a.btn:disabled {
|
|
|
275
277
|
color: var(--color-accent);
|
|
276
278
|
border-radius: 999px;
|
|
277
279
|
border: none;
|
|
278
|
-
box-shadow: var(--shadow
|
|
280
|
+
box-shadow: var(--shadow);
|
|
279
281
|
text-decoration: none;
|
|
280
282
|
user-select: none;
|
|
281
283
|
transition: all var(--transition-fast);
|
|
282
284
|
|
|
283
285
|
&.small {
|
|
284
|
-
padding: calc(var(--space-d5) / 2) var(--space-d4) !important;
|
|
285
286
|
font-size: var(--scale-d3);
|
|
286
287
|
}
|
|
287
288
|
|
|
288
289
|
&.smaller {
|
|
289
|
-
padding: calc(var(--space-d5) / 2) var(--space-d4) !important;
|
|
290
290
|
font-size: var(--scale-d4);
|
|
291
291
|
}
|
|
292
292
|
|
|
@@ -330,7 +330,7 @@ a.badge.secondary:hover,
|
|
|
330
330
|
&:hover,
|
|
331
331
|
a:hover {
|
|
332
332
|
color: var(--color-foreground);
|
|
333
|
-
background: var(--color-surface-
|
|
333
|
+
background: var(--color-surface-dark-1);
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
|