oficina / docs Public

Clone
git clone https://amadan.net/oficina/docs

Plain git — no account needed to clone.

Download

Download this file

1/* share-pop.css: the editor's Share popover (brand/share-pop.js) and the
2 panel the server renders into it ("docs-share-panel", views/share.html).
3 From 36rem a panel under the Share button, 420px wide; below that a
4 full-width sheet from the top, opened as a modal dialog. Values from
5 the I2 mock-up (design/editor-looks, looks.css). */
6[docs-share-pop] {
7 position: fixed;
8 inset: auto;
9 margin: 0;
10 box-sizing: border-box;
11 inline-size: min(420px, calc(100vw - 16px));
12 max-block-size: calc(100dvh - var(--estilo-bar-block-size, 52px) - 24px);
13 overflow: auto;
14 padding: var(--rst-sp-4);
15 border: 1px solid var(--rst-line);
16 border-radius: 14px;
17 background: var(--rst-surface);
18 color: var(--rst-text);
19 box-shadow: 0 2px 4px rgb(23 32 60 / 0.06), 0 24px 48px -16px rgb(23 32 60 / 0.35);
20 font-size: 13px;
21}
22[docs-share-pop][aria-busy="true"] {
23 min-block-size: 120px;
24}
25@media (prefers-reduced-motion: no-preference) {
26 [docs-share-pop]:popover-open,
27 [docs-share-pop][open] {
28 animation: docs-share-in 140ms cubic-bezier(.2, .7, .3, 1);
29 }
30}
31@keyframes docs-share-in {
32 from { opacity: 0; translate: 0 -4px; }
33}
34/* The phone sheet: a modal dialog across the top. */
35@media (max-width: 35.99rem) {
36 [docs-share-pop] {
37 inset-block-start: 0;
38 inset-inline: 0;
39 /* 100vw, not 100%: Chromium resolves a modal dialog's 100% against
40 the body's box, a classic scrollbar narrower than the screen. */
41 inline-size: 100vw;
42 max-inline-size: 100vw;
43 max-block-size: 100dvh;
44 border-radius: 0 0 14px 14px;
45 border-block-start: 0;
46 }
47 [docs-share-pop]::backdrop {
48 background: rgb(15 18 25 / 0.35);
49 }
50}
51@media print {
52 [docs-share-pop] { display: none !important; }
53}
54
55[docs-share-head] {
56 display: flex;
57 align-items: center;
58 justify-content: space-between;
59 gap: var(--rst-sp-2);
60 margin-block-end: var(--rst-sp-3);
61}
62[docs-share-head] h2 {
63 margin: 0;
64 font-size: 15px;
65 font-weight: 650;
66 letter-spacing: -0.01em;
67 overflow: hidden;
68 text-overflow: ellipsis;
69 white-space: nowrap;
70}
71[docs-share-close],
72[docs-share-remove] {
73 display: grid;
74 place-items: center;
75 flex: none;
76 inline-size: 28px;
77 block-size: 28px;
78 padding: 0;
79 border: 0;
80 border-radius: 999px;
81 background: none;
82 color: var(--rst-text-muted);
83 cursor: pointer;
84}
85[docs-share-close]:hover,
86[docs-share-remove]:hover {
87 background: var(--rst-surface-2);
88 color: var(--rst-text);
89}
90[docs-share-error] {
91 margin: 0 0 var(--rst-sp-3);
92 padding: var(--rst-sp-2) var(--rst-sp-3);
93 border-radius: 8px;
94 background: var(--rst-tone-negative-bg);
95 color: var(--rst-tone-negative-fg);
96 font-size: 12.5px;
97}
98[docs-share-invite] {
99 display: flex;
100 align-items: center;
101 gap: var(--rst-sp-2);
102 margin: 0;
103 /* spacing-allow: a 3px inset all round the 28px select and button, so they sit evenly inside the 36px field */
104 padding-block: 3px;
105 /* spacing-allow: the same 3px inset at the end, after the button */
106 padding-inline: var(--rst-sp-3) 3px;
107 border: 1px solid var(--rst-line-strong);
108 border-radius: 10px;
109 background: var(--rst-surface);
110}
111[docs-share-invite]:focus-within {
112 border-color: var(--rst-accent);
113 box-shadow: 0 0 0 3px color-mix(in srgb, var(--rst-accent) 20%, transparent);
114}
115[docs-share-invite] input {
116 flex: 1 1 auto;
117 min-inline-size: 0;
118 block-size: 30px;
119 padding: 0;
120 border: 0;
121 outline: 0;
122 background: none;
123 font: 13px var(--rst-font, system-ui), sans-serif;
124 color: var(--rst-text);
125}
126[docs-share-invite] select {
127 flex: none;
128 block-size: 28px;
129 box-sizing: border-box;
130 padding-block: 0;
131 /* spacing-allow: the chevron's room, drawn 7px from the edge at 10px wide (background-position below) */
132 padding-inline: 7px 21px;
133 /* Transparent, not none: forced colours draw it, so the control keeps
134 an edge there (review on #106). */
135 border: 1px solid transparent;
136 border-radius: 7px;
137 background-color: var(--rst-surface-2);
138 font: 500 12.5px var(--rst-font, system-ui), sans-serif;
139 color: var(--rst-text);
140 cursor: pointer;
141 appearance: none;
142 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%23565c69' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
143 background-repeat: no-repeat;
144 background-position: right 7px center;
145 background-size: 10px;
146}
147[dir="rtl"] [docs-share-invite] select {
148 background-position: left 7px center;
149}
150[docs-share-submit],
151[docs-share-copy] {
152 flex: none;
153 box-sizing: border-box;
154 block-size: 28px;
155 padding: 0 var(--rst-sp-3);
156 border: 1px solid transparent;
157 border-radius: 7px;
158 background: var(--rst-accent);
159 color: var(--rst-on-accent);
160 font: 600 13px var(--rst-font, system-ui), sans-serif;
161 cursor: pointer;
162}
163[docs-share-submit]:hover,
164[docs-share-copy]:hover {
165 background: var(--rst-accent-strong);
166}
167/* iOS zooms into any field under 16px (tokens.css's touch rule, at this
168 selector's weight; TestNoZoomOnTap). */
169@media (pointer: coarse) {
170 [docs-share-invite] input,
171 [docs-share-invite] select,
172 [docs-share-link] input {
173 font-size: max(1rem, 1em);
174 }
175 [docs-share-close],
176 [docs-share-remove] {
177 inline-size: 32px;
178 block-size: 32px;
179 }
180}
181[docs-share-panel] h3 {
182 margin: var(--rst-sp-4) 0 var(--rst-sp-2);
183 font-size: 11px;
184 font-weight: 650;
185 color: var(--rst-text-muted);
186 letter-spacing: 0.01em;
187}
188[docs-share-people] {
189 margin: 0;
190 padding: 0;
191 list-style: none;
192}
193[docs-share-people] li {
194 display: flex;
195 align-items: center;
196 gap: var(--rst-sp-3);
197 min-block-size: 36px;
198}
199[docs-share-people] form {
200 display: contents;
201}
202[docs-share-avatar] {
203 display: grid;
204 place-items: center;
205 flex: none;
206 inline-size: 26px;
207 block-size: 26px;
208 border-radius: 999px;
209 background: var(--rst-surface-2);
210 color: var(--rst-text-muted);
211 font-size: 12px;
212 font-weight: 650;
213}
214[docs-share-avatar][data-me] {
215 background: var(--rst-accent-soft);
216 color: var(--rst-accent);
217}
218[docs-share-name] {
219 flex: 1 1 auto;
220 min-inline-size: 0;
221 overflow: hidden;
222 text-overflow: ellipsis;
223 white-space: nowrap;
224}
225[docs-share-name] em {
226 font-style: normal;
227 color: var(--rst-text-muted);
228}
229[docs-share-access] {
230 flex: none;
231 font-size: 12.5px;
232 color: var(--rst-text-muted);
233}
234[docs-share-general] {
235 display: grid;
236 gap: var(--rst-sp-1);
237}
238[docs-share-rung] {
239 display: flex;
240 align-items: center;
241 gap: var(--rst-sp-3);
242 min-block-size: 44px;
243 margin: 0;
244}
245[docs-share-icon] {
246 display: grid;
247 place-items: center;
248 flex: none;
249 inline-size: 26px;
250 block-size: 26px;
251 border-radius: 8px;
252 background: var(--rst-surface-2);
253 color: var(--rst-text-muted);
254}
255[docs-share-icon] svg {
256 inline-size: 16px;
257 block-size: 16px;
258}
259[docs-share-rung-text] {
260 flex: 1 1 auto;
261 min-inline-size: 0;
262 display: grid;
263 gap: 0;
264}
265[docs-share-rung-text] strong {
266 font-size: 13px;
267 font-weight: 600;
268}
269[docs-share-rung-text] small {
270 font-size: 12px;
271 color: var(--rst-text-muted);
272}
273[docs-share-switch] {
274 flex: none;
275 margin: 0;
276}
277/* A request past 500ms: the control it came from says so. */
278[docs-share-pop] [aria-busy="true"] {
279 opacity: 0.6;
280 cursor: progress;
281}
282[docs-sr] {
283 position: absolute;
284 inline-size: 1px;
285 block-size: 1px;
286 overflow: hidden;
287 clip-path: inset(50%);
288 white-space: nowrap;
289}
290[docs-share-link] {
291 display: flex;
292 gap: var(--rst-sp-2);
293 margin-block-start: var(--rst-sp-2);
294}
295[docs-share-link] input {
296 flex: 1 1 auto;
297 min-inline-size: 0;
298 block-size: 30px;
299 padding: 0 var(--rst-sp-3);
300 border: 1px solid var(--rst-line);
301 border-radius: 8px;
302 background: var(--rst-surface-2);
303 font: 12.5px var(--rst-font, system-ui), sans-serif;
304 color: var(--rst-text);
305}
306[docs-share-link] [docs-share-copy] {
307 block-size: 32px;
308}
309[docs-share-once] {
310 margin: var(--rst-sp-2) 0 0;
311 font-size: 12px;
312 color: var(--rst-text-muted);
313}
314[docs-share-once] button {
315 padding: 0;
316 border: 0;
317 background: none;
318 color: var(--rst-accent);
319 font: inherit;
320 cursor: pointer;
321 text-decoration: underline;
322}
323