-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Expand file tree
/
Copy pathpad.css
More file actions
348 lines (328 loc) · 10 KB
/
Copy pathpad.css
File metadata and controls
348 lines (328 loc) · 10 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
@import url("pad/normalize.css");
@import url("pad/layout.css");
@import url("pad/fonts.css");
@import url("pad/toolbar.css");
@import url("pad/popup.css");
@import url("pad/popup_connectivity.css");
@import url("pad/popup_import_export.css");
@import url("pad/popup_users.css");
@import url("pad/icons.css");
@import url("pad/chat.css");
@import url("pad/gritter.css");
@import url("pad/loadingbox.css");
@import url("pad/form.css");
/* Screen reader only — visually hidden but announced by assistive technology */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/*
* Skip link — hidden until keyboard focus reveals it at the top-left of the
* viewport, giving screen-reader and keyboard-only users an immediate jump
* past the toolbar to the editor (WCAG 2.4.1 Bypass Blocks).
*/
.skip-link {
position: absolute;
top: -100px;
left: 8px;
z-index: 10000;
padding: 8px 12px;
background: #2c3e50;
color: #fff;
text-decoration: none;
border-radius: 0 0 4px 4px;
}
.skip-link:focus {
top: 0;
outline: 2px solid #fff;
outline-offset: 2px;
}
html {
font-size: 15px;
color: #3e3e3e;
}
html,
#sidedivinner > div:before {
font-family: Roboto;
}
.clear {
clear: both
}
a {
color: inherit;
overflow-x: auto;
white-space: nowrap;
}
a img {
border: 0
}
.thin-scrollbar::-webkit-scrollbar-track {
background-color: #f6f6f6;
border: 1px solid #f0f0f0;
}
.thin-scrollbar::-webkit-scrollbar {
width: 7px;
}
.thin-scrollbar::-webkit-scrollbar-thumb {
background-color: #C5C5C5;
}
.buttontext::-moz-focus-inner {
padding: 0;
border: 0;
}
.buttontext:focus{
/* Not sure why important is required here but it is */
border: 1px solid #666 !important;
}
.rtl {
direction: RTL
}
/* fix for misaligned checkboxes */
input[type=checkbox] {
vertical-align: -1px
}
input {
color: inherit;
}
.right {
float: right
}
@media (max-width: 800px) {
.hide-for-mobile { display: none; }
}
.etherpadBrand{
width:20%;
max-width:100px;
margin-left:auto;
margin-right:auto;
}
/* ----------------------------------------------------------------------- */
/* History mode (issue #7659): timeslider rendered in-place inside the */
/* pad page. The live editor stays mounted but hidden; a sibling iframe */
/* hosts the existing timeslider replay code. */
/* ----------------------------------------------------------------------- */
.history-banner {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
background: #fff8e1;
border-bottom: 1px solid #f0d27a;
color: #5b4b00;
font-size: 14px;
z-index: 5;
}
.history-banner[hidden] { display: none; }
.history-banner-label { font-weight: 600; }
.history-banner-rev,
.history-banner-date { opacity: 0.85; }
.history-banner #history-banner-return { margin-left: auto; }
/* The history iframe takes the place of the live ACE editor by occupying the
* same in-flow flex slot that #editorcontainer fills in live mode (flex: 1 1
* auto inside the row-flex #editorcontainerbox). This keeps the layout
* identical between modes — crucially including any in-flow side panels in
* #editorcontainerbox, such as ep_webrtc's video column, which now sit beside
* the history iframe exactly as they sit beside the live editor.
*
* This used to be an absolute, inset:0 overlay: it filled the editor area but
* took the iframe out of flow, so an in-flow side panel ended up hidden
* beneath it (see ether/ep_webrtc rendering nothing in the timeslider). */
.history-frame-mount {
display: none;
flex: 1 1 auto;
min-width: 0; /* allow the iframe to shrink to make room for a side panel */
border: 0;
background: var(--bg-color, #f2f3f4);
}
.history-frame-mount[hidden] { display: none; }
.history-frame-mount > iframe {
width: 100%;
height: 100%;
border: 0;
display: block;
}
/* While in history mode, hide the live ACE editor and show the history */
/* iframe in its place. The formatting menu on the left side of the */
/* toolbar (Bold/Italic/Lists/Indent/Undo/etc.) targets the hidden live */
/* editor, so we swap it for the history controls (slider + play/step */
/* buttons) that drive the iframe. The right-side menu (Settings / Share / */
/* Users / Chat / Home) stays fully interactive across modes. */
/* The two-id `#editorcontainerbox #editorcontainer { display: flex }` layout
* rule (specificity 0-2-0) outranks a plain `body.history-mode #editorcontainer`
* (0-1-1), so match the same container path here to actually win the cascade
* and remove the live editor from flow. This was latent before: the old
* absolute, inset:0 iframe overlay painted over the still-in-flow editor, so
* nobody noticed it wasn't hidden. Now that the iframe sits in the normal
* flex flow, the editor must genuinely be gone or the two would split the row. */
body.history-mode #editorcontainerbox #editorcontainer { display: none; }
body.history-mode .history-frame-mount { display: block; }
body.history-mode #editbar .menu_left { display: none; }
body.history-mode #editbar .show-more-icon-btn { display: none; }
body.history-mode #history-controls { display: flex; }
/* History toolbar controls (issue #7659): a slider + play/pause/step */
/* buttons + Follow/Speed controls that remote-control the embedded */
/* timeslider iframe. Take the place of the formatting menu while */
/* scrubbing. align-items + min-height keep the toolbar the same vertical */
/* size as in live mode so swapping modes doesn't reflow the layout. */
.history-controls {
display: none;
flex: 1 1 auto;
align-items: center;
gap: 8px;
padding: 0 12px;
min-width: 0;
min-height: 40px;
}
.history-controls[hidden] { display: none; }
.history-controls button.buttonicon {
flex: 0 0 auto;
/* Match the live-toolbar buttonicon visual weight (no <li><a> wrapper */
/* gives us a smaller default; bump padding so the icon hit area lines */
/* up vertically with menu_right's settings/share/users/etc. icons). */
padding: 6px 8px;
background: transparent;
border: 0;
cursor: pointer;
font-size: 15px;
color: inherit;
}
.history-controls button.buttonicon:hover { background: rgba(0,0,0,0.06); border-radius: 4px; }
.history-controls button.buttonicon.buttonicon-play.pause::before {
content: "\e829";
}
.history-slider-wrap {
position: relative;
flex: 1 1 auto;
min-width: 80px;
margin: 0 6px;
display: flex;
align-items: center;
}
.history-slider-input {
flex: 1 1 auto;
min-width: 0;
width: 100%;
cursor: pointer;
}
/* Saved-revision markers overlaid on the slider track (issue #7946). Inset
* left/right by ~half the native range thumb so a marker lines up with the
* thumb centre at the track extremes. pointer-events:none on the layer keeps
* slider dragging unobstructed; the stars themselves re-enable clicks to seek. */
.history-slider-stars {
position: absolute;
left: 8px;
right: 8px;
top: 0;
bottom: 0;
pointer-events: none;
}
.history-slider-stars .history-star {
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
width: 16px;
height: 16px;
padding: 0;
margin: 0;
border: 0;
background: none;
line-height: 1;
cursor: pointer;
pointer-events: auto;
}
.history-slider-stars .history-star::before {
font-family: fontawesome-etherpad;
content: "\e856";
color: #da9700;
font-size: 14px;
}
.history-timer {
flex: 0 0 auto;
font-size: 12px;
font-variant-numeric: tabular-nums;
opacity: 0.85;
white-space: nowrap;
}
.history-toggle {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 13px;
white-space: nowrap;
cursor: pointer;
}
.history-toggle input[type="checkbox"] { margin: 0; }
/* Follow toggle — eye icon, with a diagonal slash that appears only when
* the underlying checkbox is unchecked (auto-follow disabled). The hidden
* input still drives state (so pad_mode.ts's bridge code reads .checked
* and the existing label-for relationship handles click). */
.history-follow-toggle {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
cursor: pointer;
border-radius: 4px;
color: inherit;
}
.history-follow-toggle:hover { background: rgba(0,0,0,0.06); }
.history-follow-eye-slash { display: none; }
#history-options-followContents:not(:checked) + .history-follow-toggle .history-follow-eye-slash {
display: inline;
}
#history-options-followContents:not(:checked) + .history-follow-toggle {
opacity: 0.55;
}
/* Keep the checkbox in the DOM (label-for needs a present target) but
* hidden visually + accessibly redundant since the label conveys state. */
#history-options-followContents.sr-only {
position: absolute;
width: 1px; height: 1px;
margin: -1px; padding: 0; border: 0;
clip: rect(0 0 0 0); overflow: hidden;
}
.history-speed {
flex: 0 0 auto;
font-size: 13px;
padding: 2px 4px;
max-width: 130px;
}
/* Responsive — Follow + Speed inherit .hide-for-mobile (already collapses */
/* at <=800px). Pack the remaining play/slider/step buttons tighter so */
/* they always fit. At ultra-narrow widths the step buttons compact too. */
@media (max-width: 800px) {
.history-controls { padding: 0 6px; gap: 4px; min-height: 36px; }
.history-controls button.buttonicon { padding: 4px 6px; min-width: 32px; }
.history-slider-wrap { min-width: 60px; margin: 0 2px; }
}
@media (max-width: 480px) {
.history-controls #history-leftstep,
.history-controls #history-rightstep { min-width: 28px; padding: 2px; }
}
/* Chat replay header — appears above the chat log while scrubbing so the */
/* user knows the message list is filtered to a historical timestamp. */
.history-chat-header {
display: none;
padding: 6px 10px;
font-size: 12px;
font-weight: 600;
background: #fff8e1;
color: #5b4b00;
border-bottom: 1px solid #f0d27a;
}
body.history-mode .history-chat-header { display: block; }
body.history-mode .history-authors-row {
font-style: italic;
opacity: 0.85;
padding: 6px 8px;
}