@plexui/styles 0.1.17 → 0.1.19
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.
|
@@ -205,6 +205,12 @@
|
|
|
205
205
|
grid-column: 1;
|
|
206
206
|
grid-row: auto;
|
|
207
207
|
justify-self: stretch;
|
|
208
|
+
}/* A framed field in a row: its width cannot follow what is typed, so it has one.
|
|
209
|
+
A ghost has the row for its frame, a Select follows its value. */.Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
|
|
210
|
+
[data-variant]:not([data-variant="ghost"]) > input,
|
|
211
|
+
[data-variant]:not([data-variant="ghost"]) > textarea
|
|
212
|
+
) {
|
|
213
|
+
width: var(--field-row-control-width);
|
|
208
214
|
}/* A ghost field in a row: the row is its frame. Beside the label the value takes
|
|
209
215
|
the rest of the line and ends at the row's edge, under it the value starts
|
|
210
216
|
where the label does. An error is the line of words under both, not a frame. */.Field:where([data-row]:not([data-orientation="vertical"])):has(
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
@layer components {.Page {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
height: 100%;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
background: var(--page-background);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.Page[data-width="wide"] {
|
|
12
|
+
--page-width: var(--page-width-wide);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.Page[data-width="column"] {
|
|
16
|
+
--page-width: var(--page-width-column);
|
|
17
|
+
}/* Header and content read one width, so the line, the title, the buttons and the content are one column. */.Head,
|
|
18
|
+
.Column {
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: var(--page-width, none);
|
|
21
|
+
margin-inline: auto;
|
|
22
|
+
}.Header {
|
|
23
|
+
flex: none;
|
|
24
|
+
padding: var(--page-header-padding-top) var(--page-gutter) 0;
|
|
25
|
+
}.Bar {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
gap: var(--page-bar-gap);
|
|
30
|
+
min-height: var(--page-bar-height);
|
|
31
|
+
}.Heading {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex: 1 1 auto;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
}.Title {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 4px;
|
|
40
|
+
min-height: var(--page-bar-height);
|
|
41
|
+
margin: 0;
|
|
42
|
+
color: var(--color-text);
|
|
43
|
+
font-size: var(--page-title-font-size);
|
|
44
|
+
font-weight: var(--font-weight-semibold);
|
|
45
|
+
line-height: var(--page-title-line-height);
|
|
46
|
+
}.Subtitle {
|
|
47
|
+
margin: 0;
|
|
48
|
+
color: var(--color-text-secondary);
|
|
49
|
+
font-size: var(--font-text-sm-size);
|
|
50
|
+
line-height: var(--font-text-sm-line-height);
|
|
51
|
+
}.Actions {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 8px;
|
|
55
|
+
}.Content {
|
|
56
|
+
position: relative;
|
|
57
|
+
flex: 1 1 0;
|
|
58
|
+
min-height: 0;
|
|
59
|
+
padding: var(--page-content-padding-top) var(--page-gutter) var(--page-content-padding-bottom);
|
|
60
|
+
overflow: auto;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.Content[data-fill] {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.Content[data-fill] > .Column {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex: 1 1 auto;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
}/* No line at rest: it comes when the content has scrolled under the header. An always-on scrollbar
|
|
73
|
+
narrows the scroll area only, so the band keeps the same gutter, or a centred header would stand
|
|
74
|
+
beside the content. */@media (min-width: 768px) {
|
|
75
|
+
.Page {
|
|
76
|
+
--page-gutter: var(--page-gutter-wide);
|
|
77
|
+
--page-content-padding-top: var(--page-gutter-wide);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.Header {
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
scrollbar-gutter: stable;
|
|
83
|
+
container-type: inline-size;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.Content {
|
|
87
|
+
scrollbar-gutter: stable;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.Content[data-fill] {
|
|
91
|
+
padding-bottom: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.Content[data-fill] > .Column {
|
|
95
|
+
min-height: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.Head {
|
|
99
|
+
padding-bottom: var(--page-header-padding-bottom);
|
|
100
|
+
border-bottom: 1px solid transparent;
|
|
101
|
+
transition: border-color var(--transition-duration-basic);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.Header[data-scrolled] > .Head {
|
|
105
|
+
border-color: var(--color-border);
|
|
106
|
+
}
|
|
107
|
+
}/* One row, the height of Apple's bar. It floats over the page: at rest nothing shows, and content
|
|
108
|
+
scrolled under it turns it to glass with a hairline. The blur sits on `::before`: on the bar itself
|
|
109
|
+
it would hold the bar's children inside its own backdrop. The first column keeps the place of a
|
|
110
|
+
sidebar's menu button. */@media (max-width: 767.98px) {
|
|
111
|
+
.Page {
|
|
112
|
+
--page-top: calc(max(10px, env(safe-area-inset-top)) + var(--page-bar-height-phone) + 10px);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.Header {
|
|
116
|
+
position: absolute;
|
|
117
|
+
z-index: 5;
|
|
118
|
+
inset: 0 0 auto;
|
|
119
|
+
padding-block: max(10px, env(safe-area-inset-top)) 10px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.Header::before {
|
|
123
|
+
position: absolute;
|
|
124
|
+
z-index: -1;
|
|
125
|
+
inset: 0;
|
|
126
|
+
border-bottom: 0.5px solid var(--page-bar-line);
|
|
127
|
+
background: var(--page-bar-veil);
|
|
128
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
129
|
+
content: "";
|
|
130
|
+
opacity: 0;
|
|
131
|
+
pointer-events: none;
|
|
132
|
+
transition: opacity var(--transition-duration-basic);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.Header[data-scrolled]::before {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.Bar {
|
|
140
|
+
display: grid;
|
|
141
|
+
grid-template-columns: minmax(52px, 1fr) minmax(0, max-content) minmax(max-content, 1fr);
|
|
142
|
+
gap: 0;
|
|
143
|
+
min-height: var(--page-bar-height-phone);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.Bar > :first-child {
|
|
147
|
+
grid-column: 2;
|
|
148
|
+
align-self: center;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.Heading {
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
gap: 0;
|
|
154
|
+
min-width: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.Title {
|
|
158
|
+
display: block;
|
|
159
|
+
min-height: 0;
|
|
160
|
+
overflow: hidden;
|
|
161
|
+
font-size: 17px;
|
|
162
|
+
line-height: 22px;
|
|
163
|
+
text-align: center;
|
|
164
|
+
text-overflow: ellipsis;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.Subtitle {
|
|
169
|
+
max-width: 100%;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
font-size: 13px;
|
|
172
|
+
line-height: 18px;
|
|
173
|
+
text-overflow: ellipsis;
|
|
174
|
+
white-space: nowrap;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.Actions {
|
|
178
|
+
grid-column: 3;
|
|
179
|
+
justify-content: flex-end;
|
|
180
|
+
min-width: 52px;
|
|
181
|
+
padding-left: 8px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.Content {
|
|
185
|
+
padding-top: calc(var(--page-top) + var(--page-content-padding-top));
|
|
186
|
+
scroll-padding-top: calc(var(--page-top) + var(--page-content-padding-top));
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -889,6 +889,155 @@ background: var(--gray-300);
|
|
|
889
889
|
transition: transform 0.15s;
|
|
890
890
|
}.MenuItem[data-expanded="true"] .DocsNavChevron {
|
|
891
891
|
transform: rotate(90deg);
|
|
892
|
+
}/* =============================================
|
|
893
|
+
App: the shell of a product
|
|
894
|
+
A quiet rail on the shell's ground, pill rows, and on a phone a drawer
|
|
895
|
+
that waits still under the page while the page moves aside.
|
|
896
|
+
============================================= */.App {
|
|
897
|
+
--sidebar-icon-size: 16px;
|
|
898
|
+
--sidebar-header-height: 36px;
|
|
899
|
+
--sidebar-menu-item-radius: var(--radius-full);
|
|
900
|
+
--sidebar-mobile-z-index: 40;
|
|
901
|
+
background-color: var(--color-surface-tertiary);
|
|
902
|
+
}.App[data-sidebar="collapsed"] {
|
|
903
|
+
--sidebar-icon-margin: 0 4px;
|
|
904
|
+
}.App .Sidebar {
|
|
905
|
+
padding-top: 12px;
|
|
906
|
+
}.App .Header {
|
|
907
|
+
background: none;
|
|
908
|
+
transition: padding var(--sidebar-collapse-duration) var(--cubic-move);
|
|
909
|
+
}.App[data-sidebar="expanded"] .Header {
|
|
910
|
+
gap: 4px;
|
|
911
|
+
padding-left: 12px;
|
|
912
|
+
}.App .Header span {
|
|
913
|
+
transition: opacity var(--sidebar-collapse-duration) var(--cubic-move);
|
|
914
|
+
}.App .Trigger {
|
|
915
|
+
--sidebar-icon-margin: 0 4px;
|
|
916
|
+
flex-shrink: 0;
|
|
917
|
+
width: 40px;
|
|
918
|
+
}.App .Footer {
|
|
919
|
+
--sidebar-menu-item-margin-desktop: 0;
|
|
920
|
+
position: relative;
|
|
921
|
+
min-height: 49px;
|
|
922
|
+
padding-block: 8px;
|
|
923
|
+
}/* The line stays whether or not the list scrolls, and takes no room of its own */.App .Sidebar .Footer > .FooterSeparator {
|
|
924
|
+
position: absolute;
|
|
925
|
+
top: 0;
|
|
926
|
+
display: block;
|
|
927
|
+
margin-bottom: 0;
|
|
928
|
+
}/* A group folds on its real height: set --sidebar-menu-sub-max-height on the SidebarMenuSub */.App .MenuSub {
|
|
929
|
+
transition:
|
|
930
|
+
max-height 200ms var(--cubic-move),
|
|
931
|
+
opacity 120ms linear;
|
|
932
|
+
}.App .Inset {
|
|
933
|
+
position: relative;
|
|
934
|
+
display: flex;
|
|
935
|
+
flex-direction: column;
|
|
936
|
+
margin: 0;
|
|
937
|
+
overflow: visible;
|
|
938
|
+
border-radius: 0;
|
|
939
|
+
}@media (max-width: 767.98px) {
|
|
940
|
+
.App {
|
|
941
|
+
--sidebar-drawer-width: min(20.625rem, calc(100vw - 4.5rem));
|
|
942
|
+
--sidebar-mobile-gutter: 16px;
|
|
943
|
+
--sidebar-mobile-header-height: 68px;
|
|
944
|
+
--sidebar-footer-shadow: none;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.App .Inset {
|
|
948
|
+
z-index: 41;
|
|
949
|
+
transition: transform 200ms var(--cubic-exit);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.App[data-mobile-menu="visible"] .Inset {
|
|
953
|
+
box-shadow: 0 0 2rem rgb(0 0 0 / 12%);
|
|
954
|
+
transform: translateX(var(--sidebar-drawer-width));
|
|
955
|
+
transition: transform var(--motion-enter-large) var(--cubic-enter);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.App .MobileBackdrop {
|
|
959
|
+
left: var(--sidebar-drawer-width);
|
|
960
|
+
z-index: 42;
|
|
961
|
+
background: transparent;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.App .MobileSidebar {
|
|
965
|
+
--sidebar-background: var(--color-surface-secondary);
|
|
966
|
+
--sidebar-menu-item-height: 44px;
|
|
967
|
+
--sidebar-menu-item-font-size: 17px;
|
|
968
|
+
--sidebar-menu-item-margin: 0;
|
|
969
|
+
--sidebar-icon-size: 20px;
|
|
970
|
+
--sidebar-icon-margin: 0 5px 0 11px;
|
|
971
|
+
right: auto;
|
|
972
|
+
left: 0;
|
|
973
|
+
width: var(--sidebar-drawer-width);
|
|
974
|
+
padding-top: 0;
|
|
975
|
+
transition: visibility 0s 200ms;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.App[data-mobile-menu="visible"] .MobileSidebar {
|
|
979
|
+
right: auto;
|
|
980
|
+
width: var(--sidebar-drawer-width);
|
|
981
|
+
transition: visibility 0s;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.App .MobileSidebar > * {
|
|
985
|
+
opacity: 1;
|
|
986
|
+
transform: none;
|
|
987
|
+
transition: none;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/* The drawer sits in the page's shadow until the page has moved off it */
|
|
991
|
+
.App .MobileSidebar::after {
|
|
992
|
+
position: absolute;
|
|
993
|
+
inset: 0;
|
|
994
|
+
background: rgb(0 0 0 / 40%);
|
|
995
|
+
content: "";
|
|
996
|
+
pointer-events: none;
|
|
997
|
+
transition: opacity 200ms var(--cubic-exit);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.App[data-mobile-menu="visible"] .MobileSidebar::after {
|
|
1001
|
+
opacity: 0;
|
|
1002
|
+
transition: opacity var(--motion-enter-large) var(--cubic-enter);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.App .MobileSidebar .Content {
|
|
1006
|
+
padding: 0;
|
|
1007
|
+
-webkit-mask-image: none;
|
|
1008
|
+
mask-image: none;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
.App .MobileSidebar .MenuButtonInner {
|
|
1012
|
+
padding-right: 8px;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
.App .MobileSidebar .MenuButtonLabel {
|
|
1016
|
+
line-height: 22px;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
.App .MobileSidebar .MenuChevron svg {
|
|
1020
|
+
width: 18px;
|
|
1021
|
+
height: 18px;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
.App .MobileSidebar .MenuBadge span {
|
|
1025
|
+
padding-right: 0;
|
|
1026
|
+
font-size: 17px;
|
|
1027
|
+
line-height: 22px;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.App .MobileSidebar .MenuSub .MenuSubButton.indent1 {
|
|
1031
|
+
padding: 11px 8px 11px 48px;
|
|
1032
|
+
font-size: 17px;
|
|
1033
|
+
line-height: 22px;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.App .MobileFooter {
|
|
1037
|
+
--sidebar-menu-item-margin: 0;
|
|
1038
|
+
padding-block: 8px;
|
|
1039
|
+
border-top: 1px solid var(--sidebar-border);
|
|
1040
|
+
}
|
|
892
1041
|
}/* =============================================
|
|
893
1042
|
RTL Support
|
|
894
1043
|
============================================= *//* Layout reverses for RTL with side="right" */.SidebarLayout[dir="rtl"] {
|
|
@@ -236,6 +236,7 @@
|
|
|
236
236
|
--field-row-text-padding-block: 10px;
|
|
237
237
|
--field-row-padding-inline: 16px;
|
|
238
238
|
--field-row-gap: 24px;
|
|
239
|
+
--field-row-control-width: 160px;
|
|
239
240
|
--field-row-row-gap: 2px;
|
|
240
241
|
--field-row-text-display: flex;
|
|
241
242
|
--field-row-label-font-size: var(--font-text-sm-size);
|
|
@@ -362,6 +363,24 @@
|
|
|
362
363
|
============================================= */
|
|
363
364
|
--modal-container-inner-padding: calc(var(--spacing) * 5);
|
|
364
365
|
|
|
366
|
+
/* =============================================
|
|
367
|
+
Page
|
|
368
|
+
============================================= */
|
|
369
|
+
--page-background: var(--color-surface);
|
|
370
|
+
--page-width-wide: 1280px;
|
|
371
|
+
--page-width-column: 768px;
|
|
372
|
+
--page-gutter: 16px;
|
|
373
|
+
--page-gutter-wide: 24px;
|
|
374
|
+
--page-header-padding-top: 12px;
|
|
375
|
+
--page-header-padding-bottom: 12px;
|
|
376
|
+
--page-bar-height: 36px;
|
|
377
|
+
--page-bar-height-phone: 44px;
|
|
378
|
+
--page-bar-gap: 24px;
|
|
379
|
+
--page-title-font-size: 20px;
|
|
380
|
+
--page-title-line-height: 26px;
|
|
381
|
+
--page-content-padding-top: 16px;
|
|
382
|
+
--page-content-padding-bottom: 48px;
|
|
383
|
+
|
|
365
384
|
/* =============================================
|
|
366
385
|
Popover
|
|
367
386
|
============================================= */
|
|
@@ -636,6 +655,8 @@
|
|
|
636
655
|
--dialog-backdrop-dim-background: rgb(0 0 0 / 30%);
|
|
637
656
|
--menu-item-background-color: var(--alpha-08);
|
|
638
657
|
--modal-backdrop-background: rgb(0 0 0 / 30%);
|
|
658
|
+
--page-bar-veil: rgb(255 255 255 / 72%);
|
|
659
|
+
--page-bar-line: rgb(0 0 0 / 10%);
|
|
639
660
|
--segmented-control-background: var(--gray-100);
|
|
640
661
|
--segmented-control-thumb-background: var(--gray-0);
|
|
641
662
|
--segmented-control-option-highlight-background-color: var(--gray-200);
|
|
@@ -674,6 +695,8 @@
|
|
|
674
695
|
--dialog-backdrop-dim-background: rgb(0 0 0 / 50%);
|
|
675
696
|
--menu-item-background-color: var(--alpha-10);
|
|
676
697
|
--modal-backdrop-background: rgb(0 0 0 / 50%);
|
|
698
|
+
--page-bar-veil: rgb(0 0 0 / 60%);
|
|
699
|
+
--page-bar-line: var(--color-border);
|
|
677
700
|
--segmented-control-background: var(--gray-0);
|
|
678
701
|
--segmented-control-thumb-background: var(--gray-300);
|
|
679
702
|
--segmented-control-option-highlight-background-color: var(--gray-300);
|