Papyrus skin for PmWiki.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

papyrus.css 6.7KB

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