@soxa-ui/theme-base 0.7.0 → 0.7.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/package.json +1 -1
- package/src/components/tree.css +35 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soxa-ui/theme-base",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Общий слой тем Soxa UI: сброс частей библиотеки, знак направления письма и структура частей с числами в переменных — чистый CSS, без препроцессора, — и плагины раскладки для поведения темы",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"soxa",
|
package/src/components/tree.css
CHANGED
|
@@ -73,6 +73,37 @@
|
|
|
73
73
|
padding-inline-start: calc(var(--so-tree-indent, 1.25rem) / 2 - 1px);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
@supports (anchor-scope: --so-tree-toggle) and (inset-inline-start: anchor(center)) {
|
|
77
|
+
.so-tree[data-guides='true'] .so-tree-item {
|
|
78
|
+
position: relative;
|
|
79
|
+
anchor-scope: --so-tree-toggle, --so-tree-group;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.so-tree[data-guides='true'] .so-tree-item__toggle {
|
|
83
|
+
anchor-name: --so-tree-toggle;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.so-tree[data-guides='true'] .so-tree-item__group {
|
|
87
|
+
anchor-name: --so-tree-group;
|
|
88
|
+
border-inline-start-width: 0;
|
|
89
|
+
padding-inline-start: calc(var(--so-tree-indent, 1.25rem) / 2);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Each guide follows its own toggle, including rows with custom padding or font sizes. */
|
|
93
|
+
.so-tree[data-guides='true'] .so-tree-item__group::before {
|
|
94
|
+
content: '';
|
|
95
|
+
position: absolute;
|
|
96
|
+
inset-block: anchor(--so-tree-group start) anchor(--so-tree-group end);
|
|
97
|
+
inset-inline-start: calc(
|
|
98
|
+
anchor(--so-tree-toggle center, calc(var(--so-tree-indent, 1.25rem) / 2 + 0.5px)) -
|
|
99
|
+
0.5px
|
|
100
|
+
);
|
|
101
|
+
inline-size: 1px;
|
|
102
|
+
border-inline-start: 1px solid var(--so-tree-guide-color, currentColor);
|
|
103
|
+
pointer-events: none;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
76
107
|
.so-tree-item__toggle,
|
|
77
108
|
.so-tree-item__spacer {
|
|
78
109
|
display: inline-grid;
|
|
@@ -81,6 +112,10 @@
|
|
|
81
112
|
flex: 0 0 auto;
|
|
82
113
|
}
|
|
83
114
|
|
|
115
|
+
.so-tree-item__toggle {
|
|
116
|
+
block-size: 1.25em;
|
|
117
|
+
}
|
|
118
|
+
|
|
84
119
|
.so-tree-item__selection-indicator {
|
|
85
120
|
display: inline-flex;
|
|
86
121
|
flex-shrink: 0;
|