Papyrus skin for PmWiki.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

papyrus.css 7.2KB

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