Papyrus skin for PmWiki.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

papyrus.css 7.1KB

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