Papyrus skin for PmWiki.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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