Papyrus skin for PmWiki.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

papyrus.css 8.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. /* PAPYRUS skin for PmWiki
  2. Copyright 2019 Said Achmiz
  3. Version: 2019-01-28-3
  4. More info at these URLs:
  5. * https://www.pmwiki.org/wiki/Skins/Papyrus
  6. * https://www.pmwiki.org/wiki/Profiles/SaidAchmiz
  7. The Papyrus skin includes:
  8. * papyrus.css (this file)
  9. * papyrus.jpg (background pattern)
  10. * papyrus.tmpl (skin template)
  11. * papyrus.php (skin script file)
  12. * ReadMe.txt (instructions & info)
  13. * wikilib.d/ (directory of bundled wikipages)
  14. */
  15. /*************/
  16. /* VARIABLES */
  17. /*************/
  18. :root {
  19. --papyrus-sidebar-width: 200px;
  20. --papyrus-sidebar-padding: 10px;
  21. --papyrus-content-padding: 20px;
  22. --papyrus-page-header-height: 50px;
  23. }
  24. /***********/
  25. /* GENERAL */
  26. /***********/
  27. html {
  28. font-size: 16px;
  29. box-sizing: border-box;
  30. }
  31. *, *::before, *::after {
  32. box-sizing: inherit;
  33. }
  34. /*==========*/
  35. /*= Layout =*/
  36. /*==========*/
  37. body {
  38. margin: 0;
  39. padding: 0;
  40. display: grid;
  41. grid-template:
  42. var(--papyrus-page-header-height) 1fr /
  43. 1fr var(--papyrus-sidebar-width);
  44. grid-template-areas:
  45. "header header"
  46. "main sidebar";
  47. }
  48. @media only screen and (max-width: 900px) {
  49. :root {
  50. --papyrus-content-padding: 10px;
  51. }
  52. body {
  53. grid-template:
  54. auto 1fr auto /
  55. 100%;
  56. grid-template-areas:
  57. "header"
  58. "main"
  59. "sidebar";
  60. }
  61. }
  62. /*===========*/
  63. /*= Styling =*/
  64. /*===========*/
  65. body {
  66. font-family: Verdana, Arial, sans-serif;
  67. background-color: Beige;
  68. background-image: url('papyrus.jpg');
  69. tab-size: 4;
  70. }
  71. #main,
  72. #sidebar,
  73. #header {
  74. font-size: 0.75rem;
  75. }
  76. /****************/
  77. /* MAIN CONTENT */
  78. /****************/
  79. #main {
  80. grid-area: main;
  81. padding: var(--papyrus-content-padding);
  82. display: flex;
  83. flex-flow: column;
  84. min-width: 0;
  85. }
  86. /*======================*/
  87. /*= Page title & group =*/
  88. /*======================*/
  89. #pageTitle {
  90. overflow: auto;
  91. position: relative;
  92. z-index: 1;
  93. margin-bottom: 20px;
  94. font-weight: bold;
  95. }
  96. #pageTitle a {
  97. font-weight: bold;
  98. }
  99. /*===============*/
  100. /*= Page footer =*/
  101. /*===============*/
  102. #footer {
  103. margin: 30px 0 0 0;
  104. border-color: #ccc;
  105. border-style: dotted;
  106. border-width: 1px 0 0 0;
  107. padding: 1px 12px 0 0;
  108. display: flex;
  109. flex-flow: row wrap;
  110. }
  111. #footer .page-actions {
  112. margin: 0 12px 0 1px;
  113. }
  114. @media only screen and (max-width: 900px) {
  115. #footer {
  116. border-width: 1px 0;
  117. padding: 2px 0;
  118. justify-content: space-around;
  119. align-items: center;
  120. font-size: 0.875rem;
  121. }
  122. #footer .page-actions {
  123. text-align: center;
  124. margin: 2px;
  125. }
  126. #footer a {
  127. display: inline-block;
  128. padding: 5px 3px;
  129. }
  130. #footer a::before {
  131. content: "[ ";
  132. }
  133. #footer a::after {
  134. content: " ]";
  135. }
  136. }
  137. /*==================*/
  138. /*= Wiki page text =*/
  139. /*==================*/
  140. #wikitext {
  141. line-height: 1.5;
  142. hyphens: auto;
  143. }
  144. #wikitext p {
  145. margin: 1em 0;
  146. }
  147. /**********/
  148. /* HEADER */
  149. /**********/
  150. #header {
  151. grid-area: header;
  152. display: flex;
  153. }
  154. /*=============*/
  155. /*= Page logo =*/
  156. /*=============*/
  157. #pageLogo {
  158. padding: 10px;
  159. }
  160. #pageLogo img {
  161. max-width: 100%;
  162. max-height: 100%;
  163. }
  164. /*================*/
  165. /*= Page actions =*/
  166. /*================*/
  167. #pageActions {
  168. padding: 5px 10px 0 0;
  169. flex: 1 1 auto;
  170. }
  171. #pageActions ul {
  172. display: flex;
  173. list-style-type: none;
  174. list-style-image: none;
  175. margin: 0;
  176. padding: 0;
  177. justify-content: flex-end;
  178. }
  179. #pageActions li {
  180. margin: 0 0 0 10px;
  181. }
  182. @media only screen and (max-width: 900px) {
  183. #header {
  184. border-bottom: 1px solid #ccc;
  185. flex-flow: row wrap;
  186. }
  187. #pageLogo {
  188. flex-basis: calc(var(--papyrus-page-header-height) + var(--papyrus-sidebar-width) + 10px);
  189. height: var(--papyrus-page-header-height);
  190. }
  191. #pageActions {
  192. align-self: center;
  193. padding: 10px;
  194. }
  195. #pageActions li {
  196. margin: 2px;
  197. }
  198. #pageActions a {
  199. display: inline-block;
  200. border: 1px solid #ccc;
  201. padding: 3px 6px;
  202. }
  203. }
  204. /***********/
  205. /* SIDEBAR */
  206. /***********/
  207. #sidebar {
  208. grid-area: sidebar;
  209. padding: var(--papyrus-sidebar-padding);
  210. line-height: 1.5;
  211. }
  212. .sidehead,
  213. .sidehead a {
  214. font-weight: bold;
  215. }
  216. #sidebar p {
  217. margin: 20px 2px 2px 2px;
  218. font-size: 1.1em;
  219. }
  220. #sidebar ul {
  221. list-style-type: none;
  222. padding: 0px;
  223. margin: 0px;
  224. }
  225. #sidebar li {
  226. padding-left: 6px;
  227. }
  228. @media only screen and (max-width: 900px) {
  229. #sidebar ul {
  230. font-size: 0.875rem;
  231. line-height: 1.8;
  232. display: flex;
  233. flex-flow: row wrap;
  234. justify-content: center;
  235. }
  236. #sidebar li {
  237. flex: 1 1 auto;
  238. text-align: center;
  239. padding: 0;
  240. }
  241. #sidebar li a {
  242. display: block;
  243. background-color: #c3571b;
  244. color: Beige;
  245. padding: 5px 8px;
  246. margin: 3px;
  247. }
  248. #sidebar ul li:only-child a {
  249. max-width: 50%;
  250. margin: 3px auto;
  251. }
  252. }
  253. /*======================*/
  254. /*= Sidebar search box =*/
  255. /*======================*/
  256. #sideSearch {
  257. margin: 20px 0 0 0;
  258. display: flex;
  259. align-items: stretch;
  260. }
  261. #sideSearch .searchbox {
  262. flex: 1 1 auto;
  263. }
  264. #sideSearch .searchbutton {
  265. color: transparent;
  266. width: 2.5em;
  267. padding: 0;
  268. margin: 0 0 0 2px;
  269. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAAAAAC4QtCeAAAAAnRSTlMA/1uRIrUAAABpSURBVHgBY/j//+7c2tq5d/8DAcP//TlgsB/EuZuXv+fjxz35efeBnElgMaD8FCCnLOcLiPMlpwyZU4yiDGLAwU+fDoIMQBidswvIAVlaXT23GsgDciDgfSeQB+P8/zkzZxWc8//vtc8AJiB5qbEm4UgAAAAASUVORK5CYII=');
  270. background-position: center center;
  271. background-repeat: no-repeat;
  272. font-size: inherit;
  273. cursor: pointer;
  274. }
  275. @media only screen and (max-width: 900px) {
  276. #sideSearch {
  277. position: absolute;
  278. top: 0;
  279. left: var(--papyrus-page-header-height);
  280. height: var(--papyrus-page-header-height);
  281. padding: calc((var(--papyrus-page-header-height) - 1.5rem) / 2);
  282. margin: 0 20px;
  283. }
  284. }
  285. /*************/
  286. /* EDIT VIEW */
  287. /*************/
  288. #wikiedit textarea {
  289. font-size: inherit;
  290. width: 100%;
  291. min-height: calc(100vh - 360px);
  292. }
  293. #wikiedit input[type='text'],
  294. #wikiedit input[type='submit'] {
  295. -webkit-appearance: none;
  296. -moz-appearance: none;
  297. }
  298. #wikiedit .edit-summary input[type='text'] {
  299. width: 100%;
  300. }
  301. .preview-warning {
  302. color: #c00;
  303. font-weight: bold;
  304. font-size: 1.25em;
  305. }
  306. #wikitext .preview-begin,
  307. #wikitext .preview-end {
  308. text-align: center;
  309. text-transform: uppercase;
  310. font-weight: bold;
  311. color: #c00;
  312. }
  313. #wikitext .preview-begin {
  314. border-bottom: 2px solid #c00;
  315. }
  316. #wikitext .preview-end {
  317. border-top: 2px solid #c00;
  318. }
  319. #wikiedit .edit-action-buttons {
  320. display: flex;
  321. justify-content: center;
  322. }
  323. #wikiedit .edit-action-buttons input {
  324. margin: 0 4px;
  325. }
  326. #wikiedit input {
  327. font-size: 1.125rem;
  328. }
  329. @media only screen and (max-width: 900px) {
  330. #wikiedit input {
  331. font-size: 1.25rem;
  332. }
  333. }
  334. /*===================*/
  335. /*= GUIEdit buttons =*/
  336. /*===================*/
  337. @media only screen and (max-width: 900px) {
  338. #wikiedit .guibuttons {
  339. margin: 0 0 4px 0;
  340. }
  341. #wikiedit .guibuttons a,
  342. #wikiedit .guibuttons > img {
  343. margin: 2px;
  344. padding: 6px;
  345. display: inline-block;
  346. vertical-align: text-bottom;
  347. border: 1px solid #ddd;
  348. background-color: #fff;
  349. }
  350. }
  351. /*========================*/
  352. /*= Edit quick reference =*/
  353. /*========================*/
  354. #wikitext .quickref {
  355. display: flex;
  356. flex-flow: row wrap;
  357. margin: 1em 0;
  358. color: #444;
  359. border-style: solid;
  360. border-color: #bbb;
  361. border-width: 1px 0;
  362. hyphens: none;
  363. }
  364. #wikitext .quickref p {
  365. flex: 1 1 50%;
  366. padding: 0.5em 0.25em;
  367. margin: 0;
  368. }
  369. #wikitext .quickref p:nth-last-of-type(n+2) {
  370. border-bottom: 1px solid #ddd;
  371. }
  372. #wikitext .quickref p:nth-of-type(2n) {
  373. text-align: right;
  374. }
  375. #wikitext .quickref strong {
  376. color: #000;
  377. }
  378. #wikitext .quickref code.escaped {
  379. font-weight: bold;
  380. color: #b00;
  381. padding: 0 1px;
  382. text-shadow: 0.5px 0.5px 0.5px #f88;
  383. font-size: 1.1em;
  384. }
  385. #wikitext .quickref code.escaped + code.escaped {
  386. margin: 0 0 0 -2px;
  387. }
  388. /**********/
  389. /* FRAMES */
  390. /**********/
  391. .frame {
  392. border: 1px solid #cccccc;
  393. padding: 4px;
  394. background-color: #f9f9f9;
  395. max-width: 50%;
  396. }
  397. .lfloat {
  398. float: left;
  399. margin-right: 0.5em;
  400. }
  401. .rfloat {
  402. float: right;
  403. margin-left: 0.5em;
  404. }
  405. /*********/
  406. /* LINKS */
  407. /*********/
  408. a {
  409. text-decoration: none;
  410. font-weight: normal;
  411. color: #a74000;
  412. }
  413. #wikitext a {
  414. overflow-wrap: break-word;
  415. word-break: break-all;
  416. }
  417. a:visited {
  418. text-decoration: none;
  419. font-weight: normal;
  420. }
  421. #wikitext a:visited {
  422. color: #765193;
  423. }
  424. a:hover {
  425. text-decoration: underline;
  426. color: #e00004;
  427. }
  428. a.createlinktext {
  429. color: red;
  430. }
  431. /*********/
  432. /* LISTS */
  433. /*********/
  434. ul {
  435. list-style-type: square;
  436. margin: 0px 0px 10px 10px;
  437. padding-left: 10px;
  438. }
  439. /********/
  440. /* MISC */
  441. /********/
  442. hr {
  443. height: 0;
  444. border-width: 0;
  445. border-bottom: 1px solid #aaa;
  446. }
  447. h2 {
  448. font-size: 1.7em;
  449. font-weight: normal;
  450. }
  451. .frame h2 {
  452. margin-top: 0;
  453. }
  454. pre {
  455. white-space: pre-wrap;
  456. }
  457. input {
  458. font-size: inherit;
  459. font-family: inherit;
  460. font-weight: inherit;
  461. font-variant: inherit;
  462. }