@fluixi-ui/skin-soft 0.1.0-alpha.2 → 0.1.0-alpha.4
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/package.json +1 -1
- package/soft.css +23 -4
package/package.json
CHANGED
package/soft.css
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* Colour stays theme-driven: this skin only touches shape, elevation, density and
|
|
17
17
|
* motion, so it inherits `data-theme` (light/dark/hc) and `data-accent` untouched.
|
|
18
18
|
*/
|
|
19
|
-
@layer flx.base, flx.tokens, flx.components, flx.skin;
|
|
19
|
+
@layer flx.reset, flx.base, flx.tokens, flx.components, flx.skin;
|
|
20
20
|
|
|
21
21
|
@layer flx.skin {
|
|
22
22
|
/* ---- Global soft tokens --------------------------------------------------
|
|
@@ -164,11 +164,30 @@
|
|
|
164
164
|
padding: 6px;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
/* ---- Sidenav: rounded, soft active pill
|
|
168
|
-
[data-ui='soft'] :where([data-sidenav-link]) {
|
|
169
|
-
border-radius: var(--flx-ui-radius-
|
|
167
|
+
/* ---- Sidenav: rounded rows, soft active pill, gently-elevated flyouts ---- */
|
|
168
|
+
[data-ui='soft'] :where([data-sidenav-link], [data-sidenav-sub-trigger]) {
|
|
169
|
+
border-radius: var(--flx-ui-radius-lg);
|
|
170
170
|
font-weight: 500;
|
|
171
171
|
}
|
|
172
|
+
[data-ui='soft'] :where([data-sidenav-link][data-active], [data-sidenav-sub-trigger][data-active]) {
|
|
173
|
+
background: var(--flx-ui-color-primary-subtle);
|
|
174
|
+
color: var(--flx-ui-color-primary-active);
|
|
175
|
+
font-weight: 600;
|
|
176
|
+
}
|
|
177
|
+
[data-ui='soft'] :where([data-sidenav-trigger]) {
|
|
178
|
+
border-radius: var(--flx-ui-radius-lg);
|
|
179
|
+
}
|
|
180
|
+
/* Flyout + mobile drawer: rounder corners, softer shadow. */
|
|
181
|
+
[data-ui='soft'] :where([data-sidenav-sub-content][data-flyout]) {
|
|
182
|
+
border-radius: var(--flx-ui-radius-lg);
|
|
183
|
+
box-shadow: var(--flx-ui-shadow-lg);
|
|
184
|
+
}
|
|
185
|
+
[data-ui='soft'] :where([data-sidenav][data-mobile]) {
|
|
186
|
+
border-radius: 0 var(--flx-ui-radius-xl) var(--flx-ui-radius-xl) 0;
|
|
187
|
+
}
|
|
188
|
+
[data-ui='soft'] :where([data-sidenav][data-mobile][data-side='right']) {
|
|
189
|
+
border-radius: var(--flx-ui-radius-xl) 0 0 var(--flx-ui-radius-xl);
|
|
190
|
+
}
|
|
172
191
|
|
|
173
192
|
/* ---- Tabs: enclosed segmented control (not an underline) ----------------- */
|
|
174
193
|
[data-ui='soft'] :where([role='tablist']) {
|