Papyrus skin for PmWiki.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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