| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529 |
- /* Papyrus skin for PmWiki
- Copyright 2017-2021 Said Achmiz
-
- https://www.pmwiki.org/wiki/Skins/Papyrus
-
- Version: 2021-12-12
- */
-
- /*************/
- /* VARIABLES */
- /*************/
-
- :root {
- --papyrus-sidebar-width: 200px;
- --papyrus-sidebar-padding: 10px;
- --papyrus-content-padding: 20px;
- --papyrus-page-header-height: 50px;
- }
-
- /***********/
- /* GENERAL */
- /***********/
-
- html {
- font-size: 16px;
-
- box-sizing: border-box;
- }
- *, *::before, *::after {
- box-sizing: inherit;
- }
-
- /*==========*/
- /*= Layout =*/
- /*==========*/
-
- body {
- margin: 0;
- padding: 0;
- display: grid;
- grid-template:
- var(--papyrus-page-header-height) 1fr /
- 1fr var(--papyrus-sidebar-width);
- grid-template-areas:
- "header header"
- "main sidebar";
- }
-
- @media only screen and (max-width: 900px) {
- :root {
- --papyrus-content-padding: 10px;
- }
- body {
- grid-template:
- auto 1fr auto /
- 100%;
- grid-template-areas:
- "header"
- "main"
- "sidebar";
- }
- }
-
- /*===========*/
- /*= Styling =*/
- /*===========*/
-
- body {
- font-family: Verdana, Arial, sans-serif;
- background-color: Beige;
- background-image: url('papyrus.jpg');
- tab-size: 4;
- }
-
- #main,
- #sidebar,
- #header {
- font-size: 0.75rem;
- }
-
- /****************/
- /* MAIN CONTENT */
- /****************/
-
- #main {
- grid-area: main;
-
- padding: var(--papyrus-content-padding);
- display: flex;
- flex-flow: column;
- min-width: 0;
- }
-
- /*======================*/
- /*= Page title & group =*/
- /*======================*/
-
- #pageTitle {
- overflow: auto;
- position: relative;
- z-index: 1;
- margin-bottom: 20px;
- font-weight: bold;
- }
- #pageTitle a {
- font-weight: bold;
- }
-
- /*===============*/
- /*= Page footer =*/
- /*===============*/
-
- #footer {
- margin: 30px 0 0 0;
- border-color: #ccc;
- border-style: dotted;
- border-width: 1px 0 0 0;
- padding: 1px 12px 0 0;
- display: flex;
- flex-flow: row wrap;
- }
-
- #footer .page-actions {
- margin: 0 12px 0 1px;
- }
-
- @media only screen and (max-width: 900px) {
- #footer {
- border-width: 1px 0;
- padding: 2px 0;
- justify-content: space-around;
- align-items: center;
- font-size: 0.875rem;
- }
- #footer .page-actions {
- text-align: center;
- margin: 2px;
- }
- #footer a {
- display: inline-block;
- padding: 5px 3px;
- }
- #footer a::before {
- content: "[ ";
- }
- #footer a::after {
- content: " ]";
- }
- }
-
- /*==================*/
- /*= Wiki page text =*/
- /*==================*/
-
- #wikitext {
- line-height: 1.5;
- hyphens: auto;
- }
-
- #wikitext p {
- margin: 1em 0;
- }
-
- /**********/
- /* HEADER */
- /**********/
-
- #header {
- grid-area: header;
-
- display: flex;
- }
-
- /*=============*/
- /*= Page logo =*/
- /*=============*/
-
- #pageLogo {
- padding: 10px;
- }
- #pageLogo img {
- max-width: 100%;
- max-height: 100%;
- }
-
- /*================*/
- /*= Page actions =*/
- /*================*/
-
- #pageActions {
- padding: 5px 10px 0 0;
- flex: 1 1 auto;
- }
- #pageActions ul {
- display: flex;
- list-style-type: none;
- list-style-image: none;
- margin: 0;
- padding: 0;
- justify-content: flex-end;
- }
- #pageActions li {
- margin: 0 0 0 10px;
- }
-
- @media only screen and (max-width: 900px) {
- #header {
- border-bottom: 1px solid #ccc;
- flex-flow: row wrap;
- }
- #pageLogo {
- flex-basis: calc(var(--papyrus-page-header-height) + var(--papyrus-sidebar-width) + 10px);
- height: var(--papyrus-page-header-height);
- }
- #pageActions {
- align-self: center;
- padding: 10px;
- }
- #pageActions li {
- margin: 2px;
- }
- #pageActions a {
- display: inline-block;
- border: 1px solid #ccc;
- padding: 3px 6px;
- }
- }
-
- /***********/
- /* SIDEBAR */
- /***********/
-
- #sidebar {
- grid-area: sidebar;
-
- padding: var(--papyrus-sidebar-padding);
- line-height: 1.5;
- }
-
- .sidehead,
- .sidehead a {
- font-weight: bold;
- }
-
- #sidebar p {
- margin: 20px 2px 2px 2px;
- font-size: 1.1em;
- }
- #sidebar ul {
- list-style-type: none;
- padding: 0px;
- margin: 0px;
- }
- #sidebar li {
- padding-left: 6px;
- }
-
- @media only screen and (max-width: 900px) {
- #sidebar ul {
- font-size: 0.875rem;
- line-height: 1.8;
- display: flex;
- flex-flow: row wrap;
- justify-content: center;
- }
- #sidebar li {
- flex: 1 1 auto;
- text-align: center;
- padding: 0;
- }
- #sidebar li a {
- display: block;
- background-color: #c3571b;
- color: Beige;
- padding: 5px 8px;
- margin: 3px;
- }
- #sidebar ul li:only-child a {
- max-width: 50%;
- margin: 3px auto;
- }
- }
-
- /*======================*/
- /*= Sidebar search box =*/
- /*======================*/
-
- #sideSearch {
- margin: 20px 0 0 0;
- display: flex;
- align-items: stretch;
- }
- #sideSearch .searchbox {
- flex: 1 1 auto;
- }
- #sideSearch .searchbutton {
- color: transparent;
- width: 2.5em;
- padding: 0;
- margin: 0 0 0 2px;
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAAAAAC4QtCeAAAAAnRSTlMA/1uRIrUAAABpSURBVHgBY/j//+7c2tq5d/8DAcP//TlgsB/EuZuXv+fjxz35efeBnElgMaD8FCCnLOcLiPMlpwyZU4yiDGLAwU+fDoIMQBidswvIAVlaXT23GsgDciDgfSeQB+P8/zkzZxWc8//vtc8AJiB5qbEm4UgAAAAASUVORK5CYII=');
- background-position: center center;
- background-repeat: no-repeat;
- font-size: inherit;
- cursor: pointer;
- }
-
- @media only screen and (max-width: 900px) {
- #sideSearch {
- position: absolute;
- top: 0;
- left: var(--papyrus-page-header-height);
- height: var(--papyrus-page-header-height);
- padding: calc((var(--papyrus-page-header-height) - 1.5rem) / 2);
- margin: 0 20px;
- }
- }
-
- /*************/
- /* EDIT VIEW */
- /*************/
-
- #wikiedit textarea {
- font-size: inherit;
- width: 100%;
- min-height: calc(100vh - 360px);
- }
-
- #wikiedit input[type='text'],
- #wikiedit input[type='submit'] {
- -webkit-appearance: none;
- -moz-appearance: none;
- }
- #wikiedit .edit-summary input[type='text'] {
- width: 100%;
- }
-
- .preview-warning {
- color: #c00;
- font-weight: bold;
- font-size: 1.25em;
- }
- #wikitext .preview-begin,
- #wikitext .preview-end {
- text-align: center;
- text-transform: uppercase;
- font-weight: bold;
- color: #c00;
- }
- #wikitext .preview-begin {
- border-bottom: 2px solid #c00;
- }
- #wikitext .preview-end {
- border-top: 2px solid #c00;
- }
-
- #wikiedit .edit-action-buttons {
- display: flex;
- justify-content: center;
- }
- #wikiedit .edit-action-buttons input {
- margin: 0 4px;
- }
-
- #wikiedit input {
- font-size: 1.125rem;
- }
-
- @media only screen and (max-width: 900px) {
- #wikiedit input {
- font-size: 1.25rem;
- }
- }
-
- /*===================*/
- /*= GUIEdit buttons =*/
- /*===================*/
-
- @media only screen and (max-width: 900px) {
- #wikiedit .guibuttons {
- margin: 0 0 4px 0;
- }
- #wikiedit .guibuttons a,
- #wikiedit .guibuttons > img {
- margin: 2px;
- padding: 6px;
- display: inline-block;
- vertical-align: text-bottom;
- border: 1px solid #ddd;
- background-color: #fff;
- }
- }
-
- /*========================*/
- /*= Edit quick reference =*/
- /*========================*/
-
- #wikitext .quickref {
- display: flex;
- flex-flow: row wrap;
- margin: 1em 0;
- color: #444;
- border-style: solid;
- border-color: #bbb;
- border-width: 1px 0;
- hyphens: none;
- }
-
- #wikitext .quickref p {
- flex: 1 1 50%;
- padding: 0.5em 0.25em;
- margin: 0;
- }
- #wikitext .quickref p:nth-last-of-type(n+2) {
- border-bottom: 1px solid #ddd;
- }
- #wikitext .quickref p:nth-of-type(2n) {
- text-align: right;
- }
-
- #wikitext .quickref strong {
- color: #000;
- }
- #wikitext .quickref code.escaped {
- font-weight: bold;
- color: #b00;
- padding: 0 1px;
- text-shadow: 0.5px 0.5px 0.5px #f88;
- font-size: 1.1em;
- }
- #wikitext .quickref code.escaped + code.escaped {
- margin: 0 0 0 -2px;
- }
-
- /**********/
- /* FRAMES */
- /**********/
-
- .frame {
- border: 1px solid #cccccc;
- padding: 4px;
- background-color: #f9f9f9;
- max-width: 50%;
- }
-
- .lfloat {
- float: left;
- margin-right: 0.5em;
- }
-
- .rfloat {
- float: right;
- margin-left: 0.5em;
- }
-
- /*********/
- /* LINKS */
- /*********/
-
- a {
- text-decoration: none;
- font-weight: normal;
- color: #a74000;
- }
- #wikitext a {
- overflow-wrap: break-word;
- word-break: break-all;
- }
-
- a:visited {
- text-decoration: none;
- font-weight: normal;
- }
- #wikitext a:visited {
- color: #765193;
- }
-
- a:hover {
- text-decoration: underline;
- color: #e00004;
- }
-
- a.createlinktext {
- color: red;
- }
-
- /*********/
- /* LISTS */
- /*********/
-
- ul {
- list-style-type: square;
- margin: 0px 0px 10px 10px;
- padding-left: 10px;
- }
-
- /********/
- /* MISC */
- /********/
-
- hr {
- height: 0;
- border-width: 0;
- border-bottom: 1px solid #aaa;
- }
-
- h2 {
- font-size: 1.7em;
- font-weight: normal;
- }
-
- .frame h2 {
- margin-top: 0;
- }
-
- pre {
- white-space: pre-wrap;
- }
-
- code {
- font-size: inherit;
- }
-
- input {
- font-size: inherit;
- font-family: inherit;
- font-weight: inherit;
- font-variant: inherit;
- }
|