Revamped edit quick reference
[papyrus.git] / papyrus.css
blob9063d8dc7f28584cd7286a5c43fd3948d55a47db
1 /* PAPYRUS skin for PmWiki
2 Copyright 2019 Said Achmiz
4 Version: 2019-01-28-2
6 More info at these URLs:
8 * https://www.pmwiki.org/wiki/Skins/Papyrus
9 * https://www.pmwiki.org/wiki/Profiles/SaidAchmiz
11 The Papyrus skin includes:
13 * papyrus.css (this file)
14 * papyrus.jpg (background pattern)
15 * papyrus.tmpl (skin template)
16 * papyrus.php (skin script file)
17 * ReadMe.txt (instructions & info)
20 /*************/
21 /* VARIABLES */
22 /*************/
24 :root {
25 --papyrus-sidebar-width: 200px;
26 --papyrus-sidebar-padding: 10px;
27 --papyrus-content-padding: 20px;
28 --papyrus-page-header-height: 50px;
31 /***********/
32 /* GENERAL */
33 /***********/
35 html {
36 font-size: 16px;
38 box-sizing: border-box;
40 *, *::before, *::after {
41 box-sizing: inherit;
44 /*==========*/
45 /*= Layout =*/
46 /*==========*/
48 body {
49 margin: 0;
50 padding: 0;
51 display: grid;
52 grid-template:
53 var(--papyrus-page-header-height) 1fr /
54 1fr var(--papyrus-sidebar-width);
55 grid-template-areas:
56 "header header"
57 "main sidebar";
60 @media only screen and (max-width: 900px) {
61 :root {
62 --papyrus-content-padding: 10px;
64 body {
65 grid-template:
66 auto 1fr auto /
67 100%;
68 grid-template-areas:
69 "header"
70 "main"
71 "sidebar";
75 /*===========*/
76 /*= Styling =*/
77 /*===========*/
79 body {
80 font-family: Verdana, Arial, sans-serif;
81 background-color: Beige;
82 background-image: url('papyrus.jpg');
83 tab-size: 4;
86 #main,
87 #sidebar,
88 #header {
89 font-size: 0.75rem;
92 /****************/
93 /* MAIN CONTENT */
94 /****************/
96 #main {
97 grid-area: main;
99 padding: var(--papyrus-content-padding);
100 display: flex;
101 flex-flow: column;
102 min-width: 0;
105 /*======================*/
106 /*= Page title & group =*/
107 /*======================*/
109 #pageTitle {
110 overflow: auto;
111 position: relative;
112 z-index: 1;
113 margin-bottom: 20px;
114 font-weight: bold;
116 #pageTitle a {
117 font-weight: bold;
120 /*===============*/
121 /*= Page footer =*/
122 /*===============*/
124 #footer {
125 margin: 30px 0 0 0;
126 border-color: #ccc;
127 border-style: dotted;
128 border-width: 1px 0 0 0;
129 padding: 1px 12px 0 0;
130 display: flex;
131 flex-flow: row wrap;
134 #footer .page-actions {
135 margin: 0 12px 0 1px;
138 @media only screen and (max-width: 900px) {
139 #footer {
140 border-width: 1px 0;
141 padding: 2px 0;
142 justify-content: space-around;
143 align-items: center;
144 font-size: 0.875rem;
146 #footer .page-actions {
147 text-align: center;
148 margin: 2px;
150 #footer a {
151 display: inline-block;
152 padding: 5px 3px;
154 #footer a::before {
155 content: "[ ";
157 #footer a::after {
158 content: " ]";
162 /*==================*/
163 /*= Wiki page text =*/
164 /*==================*/
166 #wikitext {
167 line-height: 1.5;
168 hyphens: auto;
171 #wikitext p {
172 margin: 1em 0;
175 /**********/
176 /* HEADER */
177 /**********/
179 #header {
180 grid-area: header;
182 display: flex;
185 /*=============*/
186 /*= Page logo =*/
187 /*=============*/
189 #pageLogo {
190 padding: 10px;
192 #pageLogo img {
193 max-width: 100%;
194 max-height: 100%;
197 /*================*/
198 /*= Page actions =*/
199 /*================*/
201 #pageActions {
202 padding: 5px 10px 0 0;
203 flex: 1 1 auto;
205 #pageActions ul {
206 display: flex;
207 list-style-type: none;
208 list-style-image: none;
209 margin: 0;
210 padding: 0;
211 justify-content: flex-end;
213 #pageActions li {
214 margin: 0 0 0 10px;
217 @media only screen and (max-width: 900px) {
218 #header {
219 border-bottom: 1px solid #ccc;
220 flex-flow: row wrap;
222 #pageLogo {
223 flex-basis: calc(var(--papyrus-page-header-height) + var(--papyrus-sidebar-width) + 10px);
224 height: var(--papyrus-page-header-height);
226 #pageActions {
227 align-self: center;
228 padding: 10px;
230 #pageActions li {
231 margin: 2px;
233 #pageActions a {
234 display: inline-block;
235 border: 1px solid #ccc;
236 padding: 3px 6px;
240 /***********/
241 /* SIDEBAR */
242 /***********/
244 #sidebar {
245 grid-area: sidebar;
247 padding: var(--papyrus-sidebar-padding);
248 line-height: 1.5;
251 .sidehead,
252 .sidehead a {
253 font-weight: bold;
256 #sidebar p {
257 margin: 20px 2px 2px 2px;
258 font-size: 1.1em;
260 #sidebar ul {
261 list-style-type: none;
262 padding: 0px;
263 margin: 0px;
265 #sidebar li {
266 padding-left: 6px;
269 @media only screen and (max-width: 900px) {
270 #sidebar ul {
271 font-size: 0.875rem;
272 line-height: 1.8;
273 display: flex;
274 flex-flow: row wrap;
275 justify-content: center;
277 #sidebar li {
278 flex: 1 1 auto;
279 text-align: center;
280 padding: 0;
282 #sidebar li a {
283 display: block;
284 background-color: #c3571b;
285 color: Beige;
286 padding: 5px 8px;
287 margin: 3px;
289 #sidebar ul li:only-child a {
290 max-width: 50%;
291 margin: 3px auto;
295 /*======================*/
296 /*= Sidebar search box =*/
297 /*======================*/
299 #sideSearch {
300 margin: 20px 0 0 0;
301 display: flex;
302 align-items: stretch;
304 #sideSearch .searchbox {
305 flex: 1 1 auto;
307 #sideSearch .searchbutton {
308 color: transparent;
309 width: 2.5em;
310 padding: 0;
311 margin: 0 0 0 2px;
312 background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAAAAAC4QtCeAAAAAnRSTlMA/1uRIrUAAABpSURBVHgBY/j//+7c2tq5d/8DAcP//TlgsB/EuZuXv+fjxz35efeBnElgMaD8FCCnLOcLiPMlpwyZU4yiDGLAwU+fDoIMQBidswvIAVlaXT23GsgDciDgfSeQB+P8/zkzZxWc8//vtc8AJiB5qbEm4UgAAAAASUVORK5CYII=');
313 background-position: center center;
314 background-repeat: no-repeat;
315 font-size: inherit;
316 cursor: pointer;
319 @media only screen and (max-width: 900px) {
320 #sideSearch {
321 position: absolute;
322 top: 0;
323 left: var(--papyrus-page-header-height);
324 height: var(--papyrus-page-header-height);
325 padding: calc((var(--papyrus-page-header-height) - 1.5rem) / 2);
326 margin: 0 20px;
330 /*************/
331 /* EDIT VIEW */
332 /*************/
334 #wikiedit textarea {
335 font-size: inherit;
336 width: 100%;
338 #wikiedit .edit-summary input[type='text'] {
339 width: 100%;
342 #wikiedit input[type='text'],
343 #wikiedit input[type='submit'] {
344 -webkit-appearance: none;
345 -moz-appearance: none;
348 .preview-warning {
349 color: #c00;
350 font-weight: bold;
351 font-size: 1.25em;
353 #wikitext .preview-begin,
354 #wikitext .preview-end {
355 text-align: center;
356 text-transform: uppercase;
357 font-weight: bold;
358 color: #c00;
360 #wikitext .preview-begin {
361 border-bottom: 2px solid #c00;
363 #wikitext .preview-end {
364 border-top: 2px solid #c00;
367 #wikiedit .edit-action-buttons {
368 display: flex;
369 justify-content: center;
371 #wikiedit .edit-action-buttons input {
372 margin: 0 4px;
375 #wikiedit input {
376 font-size: 1.125rem;
379 @media only screen and (max-width: 900px) {
380 #wikiedit input {
381 font-size: 1.25rem;
385 /*===================*/
386 /*= GUIEdit buttons =*/
387 /*===================*/
389 @media only screen and (max-width: 900px) {
390 #wikiedit .guibuttons {
391 margin: 0 0 4px 0;
393 #wikiedit .guibuttons a,
394 #wikiedit .guibuttons > img {
395 margin: 2px;
396 padding: 6px;
397 display: inline-block;
398 vertical-align: text-bottom;
399 border: 1px solid #ddd;
400 background-color: #fff;
404 /*========================*/
405 /*= Edit quick reference =*/
406 /*========================*/
408 #wikitext .quickref {
409 display: flex;
410 flex-flow: row wrap;
411 margin: 1em 0;
412 color: #444;
413 border-style: solid;
414 border-color: #bbb;
415 border-width: 1px 0;
416 hyphens: none;
419 #wikitext .quickref p {
420 flex: 1 1 50%;
421 padding: 0.5em 0.25em;
422 margin: 0;
424 #wikitext .quickref p:nth-last-of-type(n+2) {
425 border-bottom: 1px solid #ddd;
427 #wikitext .quickref p:nth-of-type(2n) {
428 text-align: right;
431 #wikitext .quickref strong {
432 color: #000;
434 #wikitext .quickref code.escaped {
435 font-weight: bold;
436 color: #b00;
437 padding: 0 1px;
438 text-shadow: 0.5px 0.5px 0.5px #f88;
439 font-size: 1.1em;
441 #wikitext .quickref code.escaped + code.escaped {
442 margin: 0 0 0 -2px;
445 /**********/
446 /* FRAMES */
447 /**********/
449 .frame {
450 border: 1px solid #cccccc;
451 padding: 4px;
452 background-color: #f9f9f9;
453 max-width: 50%;
456 .lfloat {
457 float: left;
458 margin-right: 0.5em;
461 .rfloat {
462 float: right;
463 margin-left: 0.5em;
466 /*********/
467 /* LINKS */
468 /*********/
471 text-decoration: none;
472 font-weight: normal;
473 color: #a74000;
475 #wikitext a {
476 overflow-wrap: break-word;
477 word-break: break-all;
480 a:visited {
481 text-decoration: none;
482 font-weight: normal;
484 #wikitext a:visited {
485 color: #765193;
488 a:hover {
489 text-decoration: underline;
490 color: #e00004;
493 a.createlinktext {
494 color: red;
497 /*********/
498 /* LISTS */
499 /*********/
501 ul {
502 list-style-type: square;
503 margin: 0px 0px 10px 10px;
504 padding-left: 10px;
507 /********/
508 /* MISC */
509 /********/
511 hr {
512 height: 0;
513 border-width: 0;
514 border-bottom: 1px solid #aaa;
517 h2 {
518 font-size: 1.7em;
519 font-weight: normal;
522 .frame h2 {
523 margin-top: 0;
526 pre {
527 white-space: pre-wrap;
530 input {
531 font-size: inherit;
532 font-family: inherit;
533 font-weight: inherit;
534 font-variant: inherit;