@newtone-dev/ui-react-web 0.14.0 → 0.15.1
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/dist/on-media/on-media.css +17 -5
- package/dist/text/text.css +10 -0
- package/package.json +1 -1
|
@@ -116,10 +116,10 @@
|
|
|
116
116
|
--newtone-control-primary-rest-text: var(--newtone-on-media-control-rest-text);
|
|
117
117
|
--newtone-control-primary-rest-border: transparent;
|
|
118
118
|
--newtone-control-primary-hover-fill: var(--newtone-on-media-control-hover-fill);
|
|
119
|
-
--newtone-control-primary-hover-text: var(--newtone-on-media-control-
|
|
119
|
+
--newtone-control-primary-hover-text: var(--newtone-on-media-control-hover-text);
|
|
120
120
|
--newtone-control-primary-hover-border: transparent;
|
|
121
121
|
--newtone-control-primary-pressed-fill: var(--newtone-on-media-control-pressed-fill);
|
|
122
|
-
--newtone-control-primary-pressed-text: var(--newtone-on-media-control-
|
|
122
|
+
--newtone-control-primary-pressed-text: var(--newtone-on-media-control-pressed-text);
|
|
123
123
|
--newtone-control-primary-pressed-border: transparent;
|
|
124
124
|
--newtone-control-primary-disabled-fill: var(--newtone-on-media-control-rest-fill);
|
|
125
125
|
--newtone-control-primary-disabled-text: var(--newtone-on-media-control-rest-text);
|
|
@@ -130,20 +130,31 @@
|
|
|
130
130
|
--newtone-control-secondary-rest-text: var(--newtone-on-media-control-rest-text);
|
|
131
131
|
--newtone-control-secondary-rest-border: transparent;
|
|
132
132
|
--newtone-control-secondary-hover-fill: var(--newtone-on-media-control-hover-fill);
|
|
133
|
-
--newtone-control-secondary-hover-text: var(--newtone-on-media-control-
|
|
133
|
+
--newtone-control-secondary-hover-text: var(--newtone-on-media-control-hover-text);
|
|
134
134
|
--newtone-control-secondary-hover-border: transparent;
|
|
135
135
|
--newtone-control-secondary-pressed-fill: var(--newtone-on-media-control-pressed-fill);
|
|
136
|
-
--newtone-control-secondary-pressed-text: var(--newtone-on-media-control-
|
|
136
|
+
--newtone-control-secondary-pressed-text: var(--newtone-on-media-control-pressed-text);
|
|
137
137
|
--newtone-control-secondary-pressed-border: transparent;
|
|
138
138
|
--newtone-control-secondary-disabled-fill: var(--newtone-on-media-control-rest-fill);
|
|
139
139
|
--newtone-control-secondary-disabled-text: var(--newtone-on-media-control-rest-text);
|
|
140
140
|
--newtone-control-secondary-disabled-border: transparent;
|
|
141
141
|
--newtone-control-secondary-focus-ring: var(--newtone-on-media-focus-ring);
|
|
142
142
|
|
|
143
|
+
/* The ring's gradient, by state, from 0.15.0: rest here, hover and pressed below. */
|
|
144
|
+
--_on-media-rim: var(--newtone-on-media-control-rest-border);
|
|
145
|
+
|
|
143
146
|
-webkit-backdrop-filter: blur(16px);
|
|
144
147
|
backdrop-filter: blur(16px);
|
|
145
148
|
}
|
|
146
149
|
|
|
150
|
+
.newtone-on-media-control:hover {
|
|
151
|
+
--_on-media-rim: var(--newtone-on-media-control-hover-border);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.newtone-on-media-control:active {
|
|
155
|
+
--_on-media-rim: var(--newtone-on-media-control-pressed-border);
|
|
156
|
+
}
|
|
157
|
+
|
|
147
158
|
/* THE RIM, FROM 0.14.0 (2026-09-29) -- "maybe a gradient border from 75% white on the top to 50% black
|
|
148
159
|
* on the bottom." The colour is the token `on-media.control.rest.border`, a `linear-gradient`, and a
|
|
149
160
|
* gradient cannot be a `border-color`; painted on the border box as a background it would show through
|
|
@@ -158,7 +169,8 @@
|
|
|
158
169
|
inset: -1px;
|
|
159
170
|
padding: 1px;
|
|
160
171
|
border-radius: inherit;
|
|
161
|
-
|
|
172
|
+
/* The control's ring follows its state (0.15.0); the disc has no states, so it is rest. */
|
|
173
|
+
background: var(--_on-media-rim, var(--newtone-on-media-control-rest-border));
|
|
162
174
|
-webkit-mask:
|
|
163
175
|
linear-gradient(#000 0 0) content-box,
|
|
164
176
|
linear-gradient(#000 0 0);
|
package/dist/text/text.css
CHANGED
|
@@ -326,3 +326,13 @@
|
|
|
326
326
|
.newtone-text:where([data-ligatures='none']) {
|
|
327
327
|
font-variant-ligatures: none;
|
|
328
328
|
}
|
|
329
|
+
|
|
330
|
+
/* SELECTED TEXT WEARS THE SELECTION GROUP, 2026-09-29 -- Joshua: "why, when I select text on my deck, it
|
|
331
|
+
doesn't show those colors, which I just fine-tuned". The one GLOBAL rule in this library: what a reader
|
|
332
|
+
selects is any text, and a deck's paragraphs are plain <p>, not Text. It is 0,0,1, under any class a
|
|
333
|
+
consumer writes. Each theme's pair resolves inside that theme's surface. components/text.md,
|
|
334
|
+
*Selected text*. */
|
|
335
|
+
::selection {
|
|
336
|
+
background-color: var(--newtone-selection-fill);
|
|
337
|
+
color: var(--newtone-selection-text);
|
|
338
|
+
}
|