summaryrefslogtreecommitdiffstats
path: root/templates/55/ad-hominem/css/_edit.css
blob: 32889e432eecd002922d2490cd5a1153b1016af6 (plain)
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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
/**
 * This file provides styles for the edit view (?do=edit), preview
 * and section edit buttons.
 */

/* edit view
********************************************************************/

.mode_edit div.editBox {
}

.mode_edit div.editBox button {
	border:				#666 solid 1px;
	border-radius:		1px;
	padding:			3pt 6pt;
	margin:				0 2px;
	cursor:				pointer;
}

.mode_edit div.editButtons button:hover {
	text-decoration:	underline;
}
.mode_edit div.editBox button:focus {
	outline:			@ini_focus_color solid 2px;
	background-color:	@ini_background;
}

/*____________ toolbar ____________*/

.mode_edit .editBox > .toolbar,
.mode_preview .editBox > .toolbar {
    display: block;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	background-color:	@ini_background;
	padding-bottom: 2px;
	z-index: 9;
}


.mode_edit div.toolbar,
.mode_preview div.toolbar {
    display: inline-block;
}
#draft__status {
    font-size: small;
    color: @ini_text_alt;
    background-color: inherit;
}
[dir=rtl] #draft__status {
    /* float: left; */
}
#tool__bar {
    float: left;
}
[dir=rtl] #tool__bar {
    float: right;
}

/* hide the hard-coded button images */
#tool__bar button>img {
	visibility: hidden;
}

#tool__bar button {
	background:	#E9E9ED url('images/editor/default.svg') center no-repeat;
	background-size: 20px;
	padding: 3pt 6pt;
	border:	@ini_border solid 1px;
}
#tool__bar button[aria-haspopup=true]:after,
#tool__bar button:nth-child(10):after,
#tool__bar button:nth-child(15):after {
	content: '';
	display: inline-block;
	position: absolute;
	width: 8px;
	height: 8px;
	margin-left: -2px;
	margin-top: 14px;
	background:	transparent none center no-repeat;
	background-size: 13px;
}

#tool__bar button[aria-haspopup=true]:after {
	background-image: url('images/editor/overlay-menu.svg');
}
#tool__bar button:nth-child(10):after,
#tool__bar button:nth-child(15):after {
	background-image: url('images/editor/overlay-popup.svg');
}

/* import the new icons */
#tool__bar button[accesskey="b"] { background-image: url('images/editor/format-bold.svg'); margin-left: 1.5pt; }
#tool__bar button[accesskey="i"] { background-image: url('images/editor/format-italic.svg'); }
#tool__bar button[accesskey="u"] { background-image: url('images/editor/format-underline.svg'); }
#tool__bar button[accesskey="m"] { background-image: url('images/editor/format-monospace.svg'); }
#tool__bar button[accesskey="d"] { background-image: url('images/editor/format-strikethrough.svg'); }
#tool__bar button[accesskey="8"] { background-image: url('images/editor/format-header-equal.svg'); margin-left: 4pt; }
#tool__bar button[accesskey="9"] { background-image: url('images/editor/format-header-decrease.svg'); }
#tool__bar button[accesskey="0"] { background-image: url('images/editor/format-header-increase.svg'); }
#tool__bar button:nth-child(9) { background-image: url('images/editor/format-header-menu.svg'); }
#tool__bar button[accesskey="l"] { background-image: url('images/editor/insert-link.svg');margin-left:4pt; }
#tool__bar button:nth-child(11) { background-image: url('images/editor/insert-external-link.svg'); }
#tool__bar button[accesskey="-"] { background-image: url('images/editor/format-list-numbered.svg');  margin-left:4pt;}
#tool__bar button[accesskey="."] { background-image: url('images/editor/format-list-bulleted.svg'); }
#tool__bar button:nth-child(14) { background-image: url('images/editor/insert-hr.svg');margin-left:4pt;}
#tool__bar button:nth-child(15) { background-image: url('images/editor/insert-media.svg');margin-left:4pt; }
#tool__bar button:nth-child(16) { background-image: url('images/editor/insert-emoticon.svg');margin-left:4pt; }
#tool__bar button:nth-child(17) { background-image: url('images/editor/insert-symbol.svg'); }
#tool__bar button[accesskey="y"] { background-image: url('images/editor/insert-signature.svg');margin-left:4pt; }

/* set icons for known plugins: */
#tool__bar #tbbtn_adhoctagsInline { background-image: url('../../plugins/adhoctags/images/code-tags.svg');margin-left:4pt; }
#tool__bar #tbbtn_adhoctagsBlocks { background-image: url('../../plugins/adhoctags/images/code-brackets.svg'); }

/* buttons inside of toolbar */
.mode_edit div.toolbar button.toolbutton {
	margin:		0;
}
/* picker popups (outside of .dokuwiki) */
div.picker {
    width: 300px;
    border: 1px solid #CCC;
    background-color: #EEE;
    color: inherit;
}
/* picker for headlines */
div.picker.pk_hl {
    width: auto;
}

/* buttons inside of picker */
div.picker button.pickerbutton,
div.picker button.toolbutton {
    padding: .1em .35em;
    border-width: 0;
}

/*____________ edit textarea ____________*/

.dokuwiki textarea.edit {
    width: 100%;
	padding: 1px 0 0 2px;
    margin-bottom: .5em;
	min-height: 52pt;
	background-color: #EEE;
	font-family: 'Source Code Pro',Menlo,Consolas,'Courier New',Courier,monospace;
	font-size: 12pt;
	line-height: 17pt;
	caret-color: #0078D7;
	resize: vertical;
}
.dokuwiki textarea.edit:focus {
	outline: transparent none 0;
}

.dokuwiki textarea::-webkit-scrollbar-track {
	background: @ini_background_alt; 
}
.dokuwiki textarea::-webkit-scrollbar-thumb {
	background: @ini_blockquote; 
}
.dokuwiki textarea::-webkit-scrollbar-thumb:hover {
	background: @ini_separator; 
}
.dokuwiki textarea::-webkit-resizer {
	background-color: @ini_background_alt;
	background: linear-gradient(135deg, @ini_background_alt 0%, @ini_background_alt 50%, @ini_blockquote 50%, @ini_blockquote 100%);
}

.dokuwiki textarea { scrollbar-color: @ini_blockquote @ini_background_alt; }

/*____________ below the textarea ____________*/

.dokuwiki div.editBar {
    display: grid;
	grid-template-columns: 320px minmax(500px, 1fr) auto;
	align-items: start;
    margin-bottom: .5em;
}

/* size and wrap controls */
#size__ctl {
	grid-row: 1;
    grid-column: 3;
	min-width: 64px;
}
#size__ctl img {
    cursor: pointer;
}

/* edit buttons */
.dokuwiki .editBar .editButtons {
	grid-row: 1;
	grid-column: 1;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}
[dir=rtl] .dokuwiki .editBar .editButtons {
    margin-right: 0;
    margin-left: 1em;
}
.dokuwiki .editBar .editButtons button {
	border: #CCC solid 1.5pt;
	padding: .25em .5em;
	margin: 0 2pt;
}
.dokuwiki .editBar .editButtons button::before {
	content: ' ';
	display: inline-block;
	position: relative;
	top: .1em;
	width: 1em;
	height: 1em;
	background: none center bottom no-repeat;
	background-size: 1em;
	margin-right: 4px;
}

.dokuwiki .editBar .editButtons button#edbtn__save {
	background-color: #ccddff;
}
.dokuwiki .editBar .editButtons button#edbtn__save::before {
	background-image: url('images/editor/edit-save.svg');
}
.dokuwiki .editBar .editButtons button#edbtn__preview {
	background-color: #ccffdd;
}
.dokuwiki .editBar .editButtons button#edbtn__preview::before {
	background-image: url('images/editor/edit-preview.svg');
}
.dokuwiki .editBar .editButtons button[name="do[cancel]"] {
	background-color: #ffccdd;
}
.dokuwiki .editBar .editButtons button[name="do[cancel]"]::before {
	background-image: url('images/editor/edit-cancel.svg');
}

/* summary input and minor changes checkbox */
.dokuwiki .editBar .summary {
	grid-row: 1;
	grid-column: 2;
    display: grid;
	grid-template-columns: 1fr auto;
	line-height: 1em;
	padding-top: 2pt;
	padding-right: 5pt;
}

.dokuwiki .editBar .summary #edit__summary {
	background-color: @ini_background_alt;
	border-color: @ini_border;
	color: @ini_text;
	border-radius: 3pt;
	margin-left: 0;
	width: 100%;
}

.dokuwiki .editBar .summary label {
    white-space: nowrap;
}
.dokuwiki .editBar .summary label:last-child  {
	padding: 2pt 0 2pt 4pt;
}
.dokuwiki .editBar .summary > label:first-child {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 10px;
	padding: 2pt 5pt 0 0;
}
.dokuwiki .editBar .summary label span {
    font-size: small;
	margin: 0 1pt 0 3pt;
}
.dokuwiki .editBar .summary input {
}
/* change background colour if summary is missing */
.dokuwiki .editBar .summary input.missing {
    color: @ini_text;
    background-color: #ffcccc;
}

/* toolbar popups */
.dokuwiki div.picker {
	& {
		background-color: @ini_background_alt;
		border: @ini_border solid 1px;
		padding: .125rem;
		-webkit-box-shadow: .125rem .125rem .5rem 0 rgba(0,0,0,.2);
		-moz-box-shadow: .125rem .125rem .5rem 0 rgba(0,0,0,.2);
		box-shadow: .125rem .125rem .5rem 0 rgba(0,0,0,.2);
	}
	button {
		& {
			color: @ini_text;
			background-color: @ini_background;
			border: @ini_border solid 1px;
			min-width: 24px; min-height: 24px;
			cursor: pointer;
			margin: 1px;
		}
		&:hover {
			background-color: @ini_text;
			color: @ini_background;
		}
	}
	&#picker1 {
		/* width: 308px; max-width: 308px; min-width: 308px; */
		resize: both;
		overflow: auto;
	}
	&#picker2 {
		/* width: 585px; max-width: 585px; min-width: 585px; */
		resize: both;
		overflow: auto;
	}
}	

/* preview
********************************************************************/

.dokuwiki div.preview {
    border: dotted #CCC;
    border-width: .2em 0;
    padding: 1.4em 0;
    margin-bottom: 1.4em;
}

/* narrow screen overrides: */
@media (max-width: @ini_tablet_width) {

	.dokuwiki div.editBar {
		grid-template-columns: 1fr 5px auto;
	}
	.dokuwiki div.editBar .summary {
		grid-row: 2;
		grid-column: 1 / span 3;
	}
	.dokuwiki .editBar .summary #edit__summary {
		margin-left: 8pt;
		width: ~"calc(100% - 8px)";
	}
	.dokuwiki .editBar .summary label:last-child {
		/*text-align: right;*/
	}
}
@media (max-width: @ini_phone_width) {

	.dokuwiki .editBar .summary,
	.dokuwiki .editBar .summary > label:first-child {
		grid-template-columns: 100%;
	}
}
@media (max-width: 390px) {

	.dokuwiki .editBar .editButtons button {
		overflow: hidden;
		height: 30px;
		line-height: 24px;
	}
	.dokuwiki .editBar .summary #edit__summary {
		margin-left: 4px;
		width: 100%;
	}

}
/* dark mode overrides */
@media (prefers-color-scheme: dark) {

	body.darkmode .editBox > .toolbar {
		background-color:	@ini_background_dark;
	}
	body.darkmode textarea.edit {
		background-color:	@ini_background_alt_dark;
		border:				@ini_headlines_dark solid 1px;
		color:				@ini_text_dark;
	}

	body.darkmode textarea::-webkit-scrollbar-track {
		background: @ini_background_alt_dark; 
	}
	body.darkmode textarea::-webkit-scrollbar-thumb {
		background: @ini_background_dark; 
	}
	body.darkmode textarea::-webkit-scrollbar-thumb:hover {
		background: @ini_background_site_dark; 
	}
	body.darkmode  textarea { scrollbar-color: @ini_background_dark @ini_background_alt_dark; }
	.dokuwiki textarea::-webkit-resizer {
		background-color: @ini_background_alt_dark;
		background: linear-gradient(135deg, @ini_background_alt_dark 0%, @ini_background_alt_dark 50%, @ini_text_alt_dark 50%, @ini_text_alt_dark 100%);
	}

	body.mode_edit.darkmode div.editBox button,
	body.mode_preview.darkmode div.editBox button {
		background-color: @ini_headlines_dark;
		border-color: @ini_border_dark;
	}
	body.mode_edit.darkmode .editBar .editButtons button::before,
	body.mode_preview.darkmode .editBar .editButtons button::before {
		filter: invert(.9); 
	}
	body.darkmode .editBar .editButtons button#edbtn__save {
		background-color: #334466;
		color: #CCDDFF;
	}
	body.darkmode .editBar .editButtons button#edbtn__preview {
		background-color: #226633;
		color: #CCFFDD;
	}
	body.darkmode .editBar .editButtons button[name="do[cancel]"] {
		background-color: #663344;
		color: #FFCCDD;
	}

	body.mode_edit.darkmode #tool__bar button,
	body.mode_preview.darkmode #tool__bar button {
		border-color:	@ini_border_dark;
		filter: invert(.8);
	}
	body.mode_edit.darkmode .editBar .editButtons button,
	body.mode_preview.darkmode .editBar .editButtons button {
		border-color: @ini_border_dark;
	}
	
	body.mode_edit.darkmode .editBar .summary #edit__summary,
	body.mode_preview.darkmode .editBar .summary #edit__summary {
		background-color:	@ini_background_alt_dark;
		border-color: @ini_headlines_dark;
		color: @ini_text_dark;
	}

	body.darkmode div.picker {
		& {
			background-color: @ini_background_dark;
			border: @ini_border_dark solid 1px;
		}
		button {
			& {
				color: @ini_text_dark;
				background-color: @ini_background_alt_dark;
				border-color: @ini_border_dark;
			}
			&:hover {
				background-color: @ini_text_dark;
				color: @ini_background_alt_dark;
			}
		}
	}	

}