@rt-tools/ui-kit-v2 0.4.0 → 0.6.0
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/README.md +71 -0
- package/fesm2022/rt-tools-ui-kit-v2.mjs +395 -188
- package/fesm2022/rt-tools-ui-kit-v2.mjs.map +1 -1
- package/package.json +1 -1
- package/rt-tools-ui-kit-v2-0.6.0.tgz +0 -0
- package/src/lib/components/aside/_rt-aside-overlay.scss +73 -71
- package/src/lib/components/aside/footer/rt-aside-footer.component.scss +20 -16
- package/src/lib/components/aside/header/rt-aside-header.component.scss +72 -70
- package/src/lib/components/aside/rt-aside.component.scss +107 -105
- package/src/lib/components/aside/unsaved-dialog/rt-aside-unsaved-dialog.component.scss +33 -31
- package/src/lib/components/aside-section/rt-aside-section.component.scss +27 -23
- package/src/lib/components/autocomplete/rt-autocomplete.component.scss +124 -118
- package/src/lib/components/bar-list/rt-bar-list.component.scss +85 -81
- package/src/lib/components/bottom-sheet/rt-bottom-sheet.component.scss +64 -57
- package/src/lib/components/button/rt-button.directive.scss +319 -280
- package/src/lib/components/calendar/rt-calendar.component.scss +106 -102
- package/src/lib/components/card/rt-card.component.scss +53 -45
- package/src/lib/components/chat/rt-chat.component.scss +312 -306
- package/src/lib/components/checkbox/rt-checkbox.component.scss +61 -54
- package/src/lib/components/collapsible-text/rt-collapsible-text.component.scss +36 -34
- package/src/lib/components/confirm-popover/rt-confirm-popover.component.scss +36 -30
- package/src/lib/components/container/CONTEXT.md +22 -0
- package/src/lib/components/container/rt-container.component.scss +91 -87
- package/src/lib/components/counter/rt-counter.component.scss +14 -12
- package/src/lib/components/counter-row/rt-counter-row.component.scss +31 -27
- package/src/lib/components/date-picker/rt-date-picker.component.scss +73 -71
- package/src/lib/components/delta-view/rt-delta-view.component.scss +27 -25
- package/src/lib/components/detail-list/rt-detail-list.component.scss +8 -6
- package/src/lib/components/detail-list/rt-detail-row.component.scss +18 -16
- package/src/lib/components/dialog/footer/rt-dialog-footer.component.scss +19 -17
- package/src/lib/components/dialog/header/rt-dialog-header.component.scss +27 -25
- package/src/lib/components/dialog/rt-dialog.component.scss +59 -56
- package/src/lib/components/download-link/rt-download-link.component.scss +32 -27
- package/src/lib/components/empty-state/rt-empty-state.component.scss +50 -46
- package/src/lib/components/field/rt-field.component.scss +63 -61
- package/src/lib/components/file-card/rt-file-card.component.scss +84 -78
- package/src/lib/components/file-drop/rt-file-drop.component.scss +83 -77
- package/src/lib/components/file-input/rt-file-input.component.scss +20 -18
- package/src/lib/components/file-list/rt-file-list.component.scss +9 -7
- package/src/lib/components/filter-control/rt-filter-control.component.scss +16 -14
- package/src/lib/components/header/rt-header.component.scss +61 -55
- package/src/lib/components/icon/rt-icon.component.scss +14 -12
- package/src/lib/components/icon-button/CONTEXT.md +4 -2
- package/src/lib/components/icon-button/rt-icon-button.component.scss +128 -112
- package/src/lib/components/info-item/rt-info-item.component.scss +38 -36
- package/src/lib/components/input/rt-input.component.scss +102 -98
- package/src/lib/components/input-number/rt-input-number.component.scss +84 -82
- package/src/lib/components/live-badge/rt-live-badge.component.scss +27 -23
- package/src/lib/components/logo/rt-logo.component.scss +54 -52
- package/src/lib/components/menu/rt-menu-confirm-dialog.component.scss +30 -28
- package/src/lib/components/menu/rt-menu-item.component.scss +47 -42
- package/src/lib/components/menu/rt-menu.component.scss +23 -15
- package/src/lib/components/message/rt-message.component.scss +53 -49
- package/src/lib/components/message-composer/rt-message-composer.component.scss +55 -49
- package/src/lib/components/money-list/rt-money-list.component.scss +13 -9
- package/src/lib/components/money-list/rt-money-row.component.scss +23 -19
- package/src/lib/components/multiselect/rt-multiselect.component.scss +169 -161
- package/src/lib/components/night-grid/rt-night-grid.component.scss +47 -42
- package/src/lib/components/note/rt-note.component.scss +15 -11
- package/src/lib/components/notifications-bell/rt-notifications-bell.component.scss +34 -27
- package/src/lib/components/page-header/rt-page-header-mobile.scss +142 -134
- package/src/lib/components/page-header/rt-page-header-submenu.scss +130 -123
- package/src/lib/components/page-header/rt-page-header.component.scss +221 -210
- package/src/lib/components/pagination/rt-pagination.component.scss +88 -81
- package/src/lib/components/photo-viewer/rt-photo-viewer.component.scss +109 -105
- package/src/lib/components/rich-editor/rt-rich-editor.component.scss +63 -59
- package/src/lib/components/section-nav/rt-section-nav.component.scss +53 -47
- package/src/lib/components/select/rt-select.component.scss +146 -138
- package/src/lib/components/skeleton/rt-skeleton.component.scss +50 -41
- package/src/lib/components/skeleton-wrapper/rt-skeleton-wrapper.component.scss +8 -6
- package/src/lib/components/spinner/rt-spinner.component.scss +35 -32
- package/src/lib/components/split-button/rt-split-button.component.scss +74 -62
- package/src/lib/components/stat-tile/rt-stat-tile.component.scss +95 -91
- package/src/lib/components/stepper/rt-stepper.component.scss +107 -101
- package/src/lib/components/table/copy-cell/rt-copy-cell.component.scss +34 -30
- package/src/lib/components/table/rt-table.component.scss +260 -252
- package/src/lib/components/table/settings-aside/rt-table-settings-aside.component.scss +7 -5
- package/src/lib/components/table/settings-panel/rt-table-settings-panel.component.scss +71 -61
- package/src/lib/components/table/sort-header/CONTEXT.md +40 -0
- package/src/lib/components/table/sort-header/rt-table-sort-header.component.scss +31 -29
- package/src/lib/components/tabs/CONTEXT.md +5 -0
- package/src/lib/components/tabs/rt-tabs.component.scss +184 -175
- package/src/lib/components/tag/rt-tag.component.scss +97 -92
- package/src/lib/components/textarea/rt-textarea.component.scss +62 -60
- package/src/lib/components/theme-toggle/rt-theme-toggle.component.scss +7 -5
- package/src/lib/components/thread-list/rt-thread-list.component.scss +221 -212
- package/src/lib/components/timeline/rt-timeline.component.scss +82 -76
- package/src/lib/components/toast/CONTEXT.md +8 -0
- package/src/lib/components/toast/rt-toast.component.scss +169 -160
- package/src/lib/components/toast/rt-toaster.component.scss +37 -35
- package/src/lib/components/toggle-button-group/rt-toggle-button-group.component.scss +129 -122
- package/src/lib/components/toggle-switch/rt-toggle-switch.component.scss +97 -91
- package/src/lib/components/toolbar/rt-toolbar.component.scss +56 -54
- package/src/lib/components/tooltip/rt-tooltip.component.scss +20 -15
- package/src/lib/components/welcome-dialog/rt-welcome-dialog.component.scss +46 -44
- package/src/lib/components/workspace/rt-workspace.component.scss +139 -131
- package/src/lib/components/workspace-details/rt-workspace-details.component.scss +105 -101
- package/src/styles/_index.scss +4 -0
- package/src/styles/_layers.scss +22 -0
- package/src/styles/_login.scss +87 -85
- package/src/styles/_mixins.scss +1 -1
- package/src/styles/_primitives.scss +126 -67
- package/src/styles/_scrollbar.scss +21 -19
- package/src/styles/_semantic.scss +140 -56
- package/src/styles/_theme-dark.scss +60 -27
- package/styles/tokens.css +628 -408
- package/types/rt-tools-ui-kit-v2.d.ts +9 -16
- package/rt-tools-ui-kit-v2-0.4.0.tgz +0 -0
|
@@ -1,156 +1,164 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
min-height: 0;
|
|
13
|
-
max-height: 100%;
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
padding: var(--rt-space-2);
|
|
17
|
-
border: var(--rt-border-width-thin) solid var(--rt-nav-panel-color-border);
|
|
18
|
-
border-radius: var(--rt-radius-md);
|
|
19
|
-
background-color: var(--rt-nav-panel-color-bg);
|
|
20
|
-
box-shadow: var(--rt-nav-panel-shadow);
|
|
21
|
-
gap: var(--rt-space-2xs);
|
|
22
|
-
overflow-y: auto;
|
|
23
|
-
|
|
24
|
-
&__link,
|
|
25
|
-
&__section {
|
|
26
|
-
position: relative;
|
|
1
|
+
@layer rt-kit.components {
|
|
2
|
+
/* Мобильная панель навигации (гамбургер). Рендерится в CDK Overlay, поэтому
|
|
3
|
+
отдельный корневой блок. Раздел — аккордеон, внутри него те же группы, что и в
|
|
4
|
+
панели на широком экране, только без колонок: они сюда не помещаются. */
|
|
5
|
+
.rt-page-header-mobile {
|
|
6
|
+
--rt-nav-panel-radius: var(--rt-radius-md);
|
|
7
|
+
--rt-nav-panel-border-width: var(--rt-border-width-thin);
|
|
8
|
+
--rt-nav-panel-item-radius: var(--rt-radius-md);
|
|
9
|
+
--rt-nav-panel-item-transition-duration: var(--rt-duration-fast);
|
|
10
|
+
--rt-nav-marker-radius: var(--rt-radius-full);
|
|
11
|
+
|
|
27
12
|
display: flex;
|
|
28
|
-
width:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
13
|
+
min-width: 240px;
|
|
14
|
+
max-width: 320px;
|
|
15
|
+
|
|
16
|
+
/* Панель ужимается до свободного места под гамбургером, а список прокручивается
|
|
17
|
+
внутри неё: на низком экране раскрытый раздел уводит половину пунктов под
|
|
18
|
+
нижний край, а страница за оверлеем панель не двигает. */
|
|
19
|
+
min-height: 0;
|
|
20
|
+
max-height: 100%;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
padding: var(--rt-space-2);
|
|
24
|
+
border: var(--rt-nav-panel-border-width) solid var(--rt-nav-panel-color-border);
|
|
25
|
+
border-radius: var(--rt-nav-panel-radius);
|
|
26
|
+
background-color: var(--rt-nav-panel-color-bg);
|
|
27
|
+
box-shadow: var(--rt-nav-panel-shadow);
|
|
28
|
+
gap: var(--rt-space-2xs);
|
|
29
|
+
overflow-y: auto;
|
|
30
|
+
|
|
31
|
+
&__link,
|
|
32
|
+
&__section {
|
|
33
|
+
position: relative;
|
|
34
|
+
display: flex;
|
|
35
|
+
width: 100%;
|
|
36
|
+
align-items: center;
|
|
37
|
+
padding: var(--rt-nav-item-padding);
|
|
38
|
+
border: 0;
|
|
39
|
+
border-radius: var(--rt-nav-panel-item-radius);
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
color: var(--rt-nav-item-color);
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
font-size: var(--rt-nav-item-font-size);
|
|
44
|
+
font-weight: var(--rt-nav-item-font-weight);
|
|
45
|
+
gap: var(--rt-nav-item-content-gap);
|
|
46
|
+
line-height: var(--rt-leading-tight);
|
|
47
|
+
text-align: left;
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
transition:
|
|
50
|
+
background-color var(--rt-nav-panel-item-transition-duration) linear,
|
|
51
|
+
color var(--rt-nav-panel-item-transition-duration) linear;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
background-color: var(--rt-nav-panel-item-color-bg-hover);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:focus {
|
|
59
|
+
outline: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:focus-visible {
|
|
63
|
+
outline: 2px dashed var(--rt-nav-color-focus);
|
|
64
|
+
outline-offset: 2px;
|
|
65
|
+
}
|
|
49
66
|
}
|
|
50
67
|
|
|
51
|
-
|
|
52
|
-
|
|
68
|
+
/* Пункт второго уровня набран легче раздела — как в панели на широком
|
|
69
|
+
экране; сам раздел остаётся полужирным. */
|
|
70
|
+
&__link--child {
|
|
71
|
+
color: var(--rt-nav-panel-item-color);
|
|
72
|
+
font-weight: var(--rt-nav-panel-item-font-weight);
|
|
53
73
|
}
|
|
54
74
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
75
|
+
&__link--is-active {
|
|
76
|
+
background-color: var(--rt-nav-panel-item-color-bg-active);
|
|
77
|
+
color: var(--rt-nav-panel-item-color-active);
|
|
58
78
|
}
|
|
59
|
-
}
|
|
60
79
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
color: var(--rt-nav-panel-item-color);
|
|
65
|
-
font-weight: var(--rt-nav-panel-item-font-weight);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&__link--is-active {
|
|
69
|
-
background-color: var(--rt-nav-panel-item-color-bg-active);
|
|
70
|
-
color: var(--rt-nav-panel-item-color-active);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&__link--disabled,
|
|
74
|
-
&__link:disabled,
|
|
75
|
-
&__link[aria-disabled='true'] {
|
|
76
|
-
background-color: transparent;
|
|
77
|
-
color: var(--rt-nav-color-disabled);
|
|
78
|
-
cursor: not-allowed;
|
|
79
|
-
|
|
80
|
-
&:hover {
|
|
80
|
+
&__link--disabled,
|
|
81
|
+
&__link:disabled,
|
|
82
|
+
&__link[aria-disabled='true'] {
|
|
81
83
|
background-color: transparent;
|
|
84
|
+
color: var(--rt-nav-color-disabled);
|
|
85
|
+
cursor: not-allowed;
|
|
86
|
+
|
|
87
|
+
&:hover {
|
|
88
|
+
background-color: transparent;
|
|
89
|
+
}
|
|
82
90
|
}
|
|
83
|
-
}
|
|
84
91
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
&__disabled-slot {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
align-items: stretch;
|
|
96
|
+
}
|
|
90
97
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
&__section--is-active {
|
|
99
|
+
background-color: var(--rt-color-bg-surface-subtle);
|
|
100
|
+
}
|
|
94
101
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
&__caret {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
flex-shrink: 0;
|
|
105
|
+
margin-left: auto;
|
|
106
|
+
color: var(--rt-nav-item-color-caret);
|
|
107
|
+
transition: transform var(--rt-nav-panel-item-transition-duration) linear;
|
|
108
|
+
}
|
|
102
109
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
110
|
+
&__section--is-expanded &__caret {
|
|
111
|
+
transform: rotate(180deg);
|
|
112
|
+
}
|
|
106
113
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
/* Точка идёт следом за подписью, а не поверх неё: указатель раскрытия здесь
|
|
115
|
+
отжат к правому краю, и место у текста свободно. */
|
|
116
|
+
&__marker {
|
|
117
|
+
width: var(--rt-nav-marker-size);
|
|
118
|
+
height: var(--rt-nav-marker-size);
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
border-radius: var(--rt-nav-marker-radius);
|
|
121
|
+
background-color: var(--rt-nav-marker-color);
|
|
122
|
+
}
|
|
116
123
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
&__children {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
padding-left: var(--rt-space-4);
|
|
128
|
+
gap: var(--rt-nav-panel-group-gap);
|
|
129
|
+
}
|
|
123
130
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
&__group {
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
gap: var(--rt-space-2xs);
|
|
135
|
+
}
|
|
129
136
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
&__group-title {
|
|
138
|
+
display: flex;
|
|
139
|
+
min-height: var(--rt-nav-panel-item-height);
|
|
140
|
+
align-items: center;
|
|
141
|
+
padding: var(--rt-nav-panel-item-padding);
|
|
142
|
+
color: var(--rt-nav-panel-group-color);
|
|
143
|
+
cursor: default;
|
|
144
|
+
font-size: var(--rt-nav-panel-group-font-size);
|
|
145
|
+
font-weight: var(--rt-nav-panel-group-font-weight);
|
|
146
|
+
gap: var(--rt-nav-panel-group-content-gap);
|
|
147
|
+
line-height: var(--rt-leading-none);
|
|
148
|
+
}
|
|
142
149
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
&__group-label {
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
text-overflow: ellipsis;
|
|
153
|
+
white-space: nowrap;
|
|
154
|
+
}
|
|
148
155
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
156
|
+
&__group-icon {
|
|
157
|
+
flex-shrink: 0;
|
|
158
|
+
}
|
|
152
159
|
|
|
153
|
-
|
|
154
|
-
|
|
160
|
+
&__icon {
|
|
161
|
+
flex-shrink: 0;
|
|
162
|
+
}
|
|
155
163
|
}
|
|
156
164
|
}
|
|
@@ -1,147 +1,154 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
border: var(--rt-border-width-thin) solid var(--rt-nav-panel-color-border);
|
|
18
|
-
border-radius: var(--rt-radius-md);
|
|
19
|
-
background-color: var(--rt-nav-panel-color-bg);
|
|
20
|
-
box-shadow: var(--rt-nav-panel-shadow);
|
|
21
|
-
color: var(--rt-nav-panel-item-color);
|
|
22
|
-
font-size: var(--rt-nav-panel-item-font-size);
|
|
23
|
-
font-weight: var(--rt-nav-panel-item-font-weight);
|
|
24
|
-
gap: var(--rt-nav-panel-column-gap);
|
|
25
|
-
|
|
26
|
-
&__column {
|
|
27
|
-
display: flex;
|
|
28
|
-
min-width: 0;
|
|
29
|
-
flex: 0 0 var(--rt-nav-panel-column-width);
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
gap: var(--rt-nav-panel-group-gap);
|
|
32
|
-
}
|
|
1
|
+
@layer rt-kit.components {
|
|
2
|
+
/* Панель второго уровня. Рендерится в CDK Overlay (вне DOM хедера), поэтому
|
|
3
|
+
отдельный корневой блок, а не элемент rt-page-header.
|
|
4
|
+
|
|
5
|
+
Ширина считается числом колонок, а не содержимым: колонки разной длины иначе
|
|
6
|
+
меняли бы габарит панели при каждом переходе между разделами. Число колонок
|
|
7
|
+
приходит инлайн-переменной `--rt-nav-panel-columns` из шаблона. */
|
|
8
|
+
.rt-page-header-submenu {
|
|
9
|
+
--rt-nav-panel-columns-width: calc(var(--rt-nav-panel-columns) * var(--rt-nav-panel-column-width));
|
|
10
|
+
--rt-nav-panel-gaps-width: calc((var(--rt-nav-panel-columns) - 1) * var(--rt-nav-panel-column-gap));
|
|
11
|
+
--rt-nav-panel-padding-width: calc(var(--rt-nav-panel-padding) + var(--rt-nav-panel-padding));
|
|
12
|
+
--rt-nav-panel-radius: var(--rt-radius-md);
|
|
13
|
+
--rt-nav-panel-border-width: var(--rt-border-width-thin);
|
|
14
|
+
--rt-nav-panel-item-radius: var(--rt-radius-md);
|
|
15
|
+
--rt-nav-panel-item-transition-duration: var(--rt-duration-fast);
|
|
16
|
+
--rt-nav-marker-radius: var(--rt-radius-full);
|
|
33
17
|
|
|
34
|
-
/* Пункты обжимают подпись, поэтому колонка выравнивает их по левому краю:
|
|
35
|
-
растянутый на всю ширину пункт давал бы подсветку во всю колонку. */
|
|
36
|
-
&__group {
|
|
37
18
|
display: flex;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
gap: var(--rt-nav-panel-item-gap);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__group-title {
|
|
44
|
-
display: inline-flex;
|
|
45
|
-
max-width: 100%;
|
|
46
|
-
min-height: var(--rt-nav-panel-item-height);
|
|
47
|
-
align-items: center;
|
|
48
|
-
padding: var(--rt-nav-panel-item-padding);
|
|
49
|
-
color: var(--rt-nav-panel-group-color);
|
|
50
|
-
cursor: default;
|
|
51
|
-
font-size: var(--rt-nav-panel-group-font-size);
|
|
52
|
-
font-weight: var(--rt-nav-panel-group-font-weight);
|
|
53
|
-
gap: var(--rt-nav-panel-group-content-gap);
|
|
54
|
-
line-height: var(--rt-leading-none);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&__group-label {
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
text-overflow: ellipsis;
|
|
60
|
-
white-space: nowrap;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&__group-icon {
|
|
64
|
-
flex-shrink: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&__disabled-slot {
|
|
68
|
-
display: inline-flex;
|
|
69
|
-
max-width: 100%;
|
|
70
|
-
flex-direction: column;
|
|
19
|
+
width: calc(var(--rt-nav-panel-columns-width) + var(--rt-nav-panel-gaps-width) + var(--rt-nav-panel-padding-width));
|
|
20
|
+
box-sizing: border-box;
|
|
71
21
|
align-items: flex-start;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
min-height: var(--rt-nav-panel-item-height);
|
|
78
|
-
align-items: center;
|
|
79
|
-
padding: var(--rt-nav-panel-item-padding);
|
|
80
|
-
border: 0;
|
|
81
|
-
border-radius: var(--rt-radius-md);
|
|
82
|
-
background-color: transparent;
|
|
22
|
+
padding: var(--rt-nav-panel-padding-y) var(--rt-nav-panel-padding);
|
|
23
|
+
border: var(--rt-nav-panel-border-width) solid var(--rt-nav-panel-color-border);
|
|
24
|
+
border-radius: var(--rt-nav-panel-radius);
|
|
25
|
+
background-color: var(--rt-nav-panel-color-bg);
|
|
26
|
+
box-shadow: var(--rt-nav-panel-shadow);
|
|
83
27
|
color: var(--rt-nav-panel-item-color);
|
|
84
|
-
cursor: pointer;
|
|
85
28
|
font-size: var(--rt-nav-panel-item-font-size);
|
|
86
29
|
font-weight: var(--rt-nav-panel-item-font-weight);
|
|
87
|
-
gap: var(--rt-nav-panel-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
30
|
+
gap: var(--rt-nav-panel-column-gap);
|
|
31
|
+
|
|
32
|
+
&__column {
|
|
33
|
+
display: flex;
|
|
34
|
+
min-width: 0;
|
|
35
|
+
flex: 0 0 var(--rt-nav-panel-column-width);
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: var(--rt-nav-panel-group-gap);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Пункты обжимают подпись, поэтому колонка выравнивает их по левому краю:
|
|
41
|
+
растянутый на всю ширину пункт давал бы подсветку во всю колонку. */
|
|
42
|
+
&__group {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
gap: var(--rt-nav-panel-item-gap);
|
|
99
47
|
}
|
|
100
48
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
49
|
+
&__group-title {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
max-width: 100%;
|
|
52
|
+
min-height: var(--rt-nav-panel-item-height);
|
|
53
|
+
align-items: center;
|
|
54
|
+
padding: var(--rt-nav-panel-item-padding);
|
|
55
|
+
color: var(--rt-nav-panel-group-color);
|
|
56
|
+
cursor: default;
|
|
57
|
+
font-size: var(--rt-nav-panel-group-font-size);
|
|
58
|
+
font-weight: var(--rt-nav-panel-group-font-weight);
|
|
59
|
+
gap: var(--rt-nav-panel-group-content-gap);
|
|
60
|
+
line-height: var(--rt-leading-none);
|
|
104
61
|
}
|
|
105
62
|
|
|
106
|
-
|
|
107
|
-
|
|
63
|
+
&__group-label {
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
text-overflow: ellipsis;
|
|
66
|
+
white-space: nowrap;
|
|
108
67
|
}
|
|
109
68
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
outline-offset: 2px;
|
|
69
|
+
&__group-icon {
|
|
70
|
+
flex-shrink: 0;
|
|
113
71
|
}
|
|
114
72
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
73
|
+
&__disabled-slot {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
max-width: 100%;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
align-items: flex-start;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__link {
|
|
81
|
+
display: inline-flex;
|
|
82
|
+
max-width: 100%;
|
|
83
|
+
min-height: var(--rt-nav-panel-item-height);
|
|
84
|
+
align-items: center;
|
|
85
|
+
padding: var(--rt-nav-panel-item-padding);
|
|
86
|
+
border: 0;
|
|
87
|
+
border-radius: var(--rt-nav-panel-item-radius);
|
|
118
88
|
background-color: transparent;
|
|
119
|
-
color: var(--rt-nav-color
|
|
120
|
-
cursor:
|
|
89
|
+
color: var(--rt-nav-panel-item-color);
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
font-size: var(--rt-nav-panel-item-font-size);
|
|
92
|
+
font-weight: var(--rt-nav-panel-item-font-weight);
|
|
93
|
+
gap: var(--rt-nav-panel-item-content-gap);
|
|
94
|
+
line-height: var(--rt-leading-none);
|
|
95
|
+
text-align: left;
|
|
96
|
+
text-decoration: none;
|
|
97
|
+
transition:
|
|
98
|
+
background-color var(--rt-nav-panel-item-transition-duration) linear,
|
|
99
|
+
color var(--rt-nav-panel-item-transition-duration) linear;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
|
|
102
|
+
&--is-active {
|
|
103
|
+
background-color: var(--rt-nav-panel-item-color-bg-active);
|
|
104
|
+
color: var(--rt-nav-panel-item-color-active);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:not(&--is-active):hover,
|
|
108
|
+
&:not(&--is-active):active {
|
|
109
|
+
background-color: var(--rt-nav-panel-item-color-bg-hover);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:focus {
|
|
113
|
+
outline: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:focus-visible {
|
|
117
|
+
outline: 2px dashed var(--rt-nav-color-focus);
|
|
118
|
+
outline-offset: 2px;
|
|
119
|
+
}
|
|
121
120
|
|
|
122
|
-
|
|
121
|
+
&--disabled,
|
|
122
|
+
&:disabled,
|
|
123
|
+
&[aria-disabled='true'] {
|
|
123
124
|
background-color: transparent;
|
|
125
|
+
color: var(--rt-nav-color-disabled);
|
|
126
|
+
cursor: not-allowed;
|
|
127
|
+
|
|
128
|
+
&:hover {
|
|
129
|
+
background-color: transparent;
|
|
130
|
+
}
|
|
124
131
|
}
|
|
125
132
|
}
|
|
126
|
-
}
|
|
127
133
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
&__label {
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
text-overflow: ellipsis;
|
|
137
|
+
}
|
|
132
138
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
/* Пункт панели обжимает подпись и стоит на своей строке, поэтому точка идёт
|
|
140
|
+
следом за текстом: соседей она не сдвигает, а у правого края колонки
|
|
141
|
+
оторвалась бы от подписи, к которой относится. */
|
|
142
|
+
&__marker {
|
|
143
|
+
width: var(--rt-nav-marker-size);
|
|
144
|
+
height: var(--rt-nav-marker-size);
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
border-radius: var(--rt-nav-marker-radius);
|
|
147
|
+
background-color: var(--rt-nav-marker-color);
|
|
148
|
+
}
|
|
143
149
|
|
|
144
|
-
|
|
145
|
-
|
|
150
|
+
&__icon {
|
|
151
|
+
flex-shrink: 0;
|
|
152
|
+
}
|
|
146
153
|
}
|
|
147
154
|
}
|