PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.13
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.13
1.1.13 1.1.12 1.1.11 1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 All 37 releases
desktop-mode / apps / users / users.css

users.css in OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin 1.1.13, at apps/users/users.css

197 lines 5.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * OpenStation — Users app styles.
3 *
4 * The tab strip, the Add User panel, the Profile tab and the
5 * `<os-user-profile>` layout. The User Edit app points its
6 * `->style()` at this same sheet: it hosts the same component, and
7 * one sheet is one place to keep the two in step. The list layout
8 * (toolbar, body, pager, phone bulk footer) is the framework's
9 * `.os-app-list__*` family in `assets/css/app-runtime.css`.
10 *
11 * Cell-content styles are NOT here — `<os-table>` renders into its
12 * own shadow DOM; the cells carry inline styles.
13 */
14
15 /* Tab strip — auto-height, so the active panel below fills the
16 column. Without `flex: 0 0 auto` the strip grows and the panel
17 collapses to zero height — the "no table" regression. */
18 .os-users__tabs {
19 flex: 0 0 auto;
20 padding: var( --os-ui-tabs-padding, 0 18px );
21 }
22
23 /* The Add User tab. Padding lives on the host so the form's own
24 footer separator sits flush with the panel edges; the active tab
25 fills the remaining height and the inactive one is fully hidden. */
26 .os-users__add-panel {
27 flex: 1 1 auto;
28 min-height: 0;
29 display: block;
30 padding: 32px 24px 28px;
31 box-sizing: border-box;
32 overflow-y: auto;
33 }
34 .os-users__add-panel[ hidden ] {
35 display: none;
36 }
37
38 /* Center the form at a comfortable reading width; the os-form does
39 the column layout. `min(760px, 100%)` keeps it inside narrow panels. */
40 .os-users__add-panel > os-form {
41 display: block;
42 margin-inline: auto;
43 width: min( 760px, 100% );
44 }
45
46 .os-users__add-panel [ slot="header" ] {
47 margin-bottom: 4px;
48 }
49 .os-users__add-panel [ slot="header" ] h2 {
50 margin: 0 0 6px;
51 font-size: 20px;
52 font-weight: 600;
53 letter-spacing: -0.01em;
54 color: var( --os-ui-fg, #1d2327 );
55 }
56 .os-users__form-lede {
57 margin: 0 0 8px;
58 color: var( --os-ui-fg-muted, #50575e );
59 font-size: 13px;
60 line-height: 1.5;
61 }
62 .os-users__form-pwd-actions {
63 display: flex;
64 align-items: center;
65 gap: 12px;
66 flex-wrap: wrap;
67 margin-top: -4px;
68 }
69 .os-users__form-hint {
70 margin: 0;
71 font-size: 12px;
72 color: var( --os-ui-fg-muted, #50575e );
73 }
74
75 /* The bulk bar's clusters: the role pick + Apply, and the reassign
76 picker + Delete. */
77 .os-users__bulk-group {
78 display: inline-flex;
79 align-items: center;
80 gap: 6px;
81 flex-wrap: wrap;
82 }
83 .os-users__bulk-role {
84 min-width: 160px;
85 }
86 .os-users__reassign {
87 display: inline-flex;
88 align-items: center;
89 gap: 6px;
90 font-size: 12px;
91 color: var( --os-ui-fg-muted, #50575e );
92 }
93 .os-users__reassign-name {
94 color: var( --os-ui-fg, #1d2327 );
95 }
96 .os-users__reassign-search {
97 min-width: 160px;
98 }
99
100 /* Narrow-window trim — at < 540px the side padding gets in the way
101 more than it helps. Same breakpoint the form's own grid uses to
102 collapse to one column. */
103 @media ( max-width: 540px ) {
104 .os-users__add-panel {
105 padding: 20px 14px 16px;
106 }
107 .os-users__tabs {
108 padding: 0 12px;
109 }
110 }
111
112 /* Profile tab — the active tabpanel fills the remaining height,
113 scrolls its own content, leaves the tab strip pinned at the top. */
114 .os-users__edit-panel {
115 flex: 1 1 auto;
116 min-height: 0;
117 display: flex;
118 flex-direction: column;
119 overflow: hidden;
120 }
121 .os-users__edit-panel[ hidden ] {
122 display: none;
123 }
124 /* The User Edit window. The body is a chromeless host;
125 `<os-user-profile>` fills the whole space and owns its own scroll.
126 Without `min-height: 0` on the chain, the inner `overflow-y: auto`
127 never gets a chance to clip and scroll. */
128 .os-user-edit-window {
129 display: flex;
130 flex-direction: column;
131 flex: 1 1 auto;
132 height: 100%;
133 min-height: 0;
134 }
135 /* The component — the light-DOM host of the layout — fills whatever
136 hosts it (the Profile tab panel, the User Edit window) so its
137 internal scroll container takes the remaining space. */
138 os-user-profile {
139 flex: 1 1 auto;
140 display: flex;
141 flex-direction: column;
142 min-height: 0;
143 }
144 os-user-profile > .os-users__edit-layout {
145 flex: 1 1 auto;
146 min-height: 0;
147 }
148
149 /* Sidebar layout — at-a-glance summary on the left, editable form +
150 activity feed in the main column on the right. One container query
151 collapses the two columns to one stack on narrow widths, where the
152 aside moves above the form. */
153 .os-users__edit-layout {
154 flex: 1 1 auto;
155 min-height: 0;
156 overflow-y: auto;
157 display: grid;
158 grid-template-columns: 280px minmax( 0, 1fr );
159 gap: 28px;
160 padding: 28px 32px 32px;
161 container-type: inline-size;
162 container-name: desktop-mode-user-edit;
163 }
164 @container desktop-mode-user-edit ( max-width: 800px ) {
165 .os-users__edit-layout {
166 grid-template-columns: minmax( 0, 1fr );
167 }
168 }
169 .os-users__edit-aside {
170 display: flex;
171 flex-direction: column;
172 gap: 8px;
173 min-width: 0;
174 position: sticky;
175 top: 0;
176 align-self: start;
177 }
178 @container desktop-mode-user-edit ( max-width: 800px ) {
179 .os-users__edit-aside {
180 position: static;
181 }
182 }
183 .os-users__edit-main {
184 min-width: 0;
185 width: 100%;
186 max-width: 720px;
187 /* Center within the `minmax(0, 1fr)` grid cell so the form stays
188 readable on wide windows instead of leaving a large empty band
189 on the right edge. */
190 margin-inline: auto;
191 display: flex;
192 flex-direction: column;
193 }
194 .os-users__edit-activity {
195 min-width: 0;
196 }
197