/* ---------------------------------------------------------------------------- EmacsWiki light theme ---------------------------------------------------------------------------- A combination of some of the existing themes on the EmacsWiki at http://emacswiki.org, with various other additions. The base theme was the cali2.css theme - question marks indicate things left over which might be removable. Released under the MIT License. ---------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */ /* Base */ /* ---------------------------------------------------------------------- */ body { margin: 0 0 1.5em 0; padding: 1em 1em; color: #111; background-color: #fffefe; font-size: 100%; } @media (prefers-color-scheme: dark) { body { color: #ccc; background-color: #181818; } } /* Screenshots, Images */ img { max-width: 100%; } /* Code - used for keysequences, function references (anything in `...') */ /* Pre - used for blocks of code */ code, pre { color: #444; background-color: #f9f8f8; border: 1px solid #ddd; font-family: monospace; /* For some reason, using a different font than the default monospace */ /* increases the size of the text, so need to counteract that here */ /* font-size: 0.8em; */ } @media (prefers-color-scheme: dark) { code, pre { color: #ccc; background-color: #222; border: 1px solid #333; } } code { padding: 1px; } pre { margin: 1em 0; padding: 1em 2em; overflow: auto; /* add horizontal scrollbar if necessary */ } /* Links */ a { color: #06b; background-color: inherit; /* This works on firefox, but just shows as a plain underline in chrome, which looks terrible */ /* text-decoration: underline dotted #09c; */ /* Faking a dotted underline, works on all browsers but can't adjust position */ text-decoration: none; /* border-bottom: 1px dotted #09c; */ } a:link, a:visited { background-color: inherit; } a:active, a:hover { color: #09d; } @media (prefers-color-scheme: dark) { a { color: #9c5; } a:active, a:hover { color: #ae6; } } /* external links */ /* a.url:before { content: "\2197"; } */ /* .safari a.url:before { content: url(http://www.emacswiki.org/alex/pics/arrow.png); } */ /* image links */ a.image img { border: none; } a.left { float: left; margin: 20px; } a.right { float: right; margin: 20px; } /* Images */ /* dim images for dark theme */ @media (prefers-color-scheme: dark) { img {filter: brightness(70%);} img:hover {filter: brightness(100%);} } /* Headers */ h1, h2, h3, h4 { margin: 0; padding: 0; font-weight: normal; line-height: normal; clear: both; } @media (max-width: 580px) { h2 {font-size: 1.5em;} h3 {font-size: 1.2em;} h4 {font-size: 1.7em;} } @media (min-width: 580px) { h2 {font-size: 1.7em;} h3 {font-size: 1.3em;} h4 {font-size: 1em;} } /* h1 */ /* defined further below */ /* h2 */ h2 { /* line under header */ margin-top: 1.2em; margin-bottom: 1em; border-bottom: 1px solid #aaa; /* divider between sections */ /* margin-top: 1em; */ /* padding-top: 1em; */ /* border-top: 1px solid #bbb; */ /* margin-bottom: 1em; */ } /* h3 */ h3 { font-style: italic; margin-top: 0.1em; padding-top: 0.5em; margin-bottom: 0.5em; } /* h4 */ h4 { font-style: italic; margin-top: 0.1em; padding-top: 0.5em; } /* hr */ hr { border: 0; height: 0; border-bottom: 1px solid #ccc; padding-top: 1em; margin-bottom: 2em; width: 100%; clear: both; } /* Tables */ table { /* border-collapse: collapse; /\* otherwise leaves gaps in between cell outlines *\/ */ } table tr.first td { border-bottom: 1px solid #bbb; } table td,th { padding: 0 1ex; text-align: left; } /* odd/even rows */ /* table tr.odd { */ /* background-color: #fcfbfb; */ /* } */ /* Table on the new page */ /* ? */ p.table a { float: left; width: 20ex; } p.table + p { clear: both; padding-top: 10px; } /* Definition lists */ dt { font-weight: bold; } /* ---------------------------------------------------------------------- */ /* Layout */ /* ---------------------------------------------------------------------- */ /* Header - includes logo, search bar, goto bar, and article title */ .specialdays { display: block; position: absolute; top: 10px; } /* Logo */ /* hide the existing logo and override it with a different image */ img.logo { display: none; } a.logo { display: block; /* just a placeholder for the moment */ background: url(./images/logo218x38.png); width: 218px; height: 38px; top: 22px; left: 22px; border-bottom: none; text-decoration: none; float: left; } @media (prefers-color-scheme: dark) { a.logo { filter: invert(90%) hue-rotate(150deg) saturate(0.9); } } /* Search bar */ /* don't let search bar overwrite logo */ @media (max-width: 580px) { form.search { margin-top: 0.5em; } } nav { float: right; height: 2.5em; } form.search { float: right; clear: both; } nav p { margin: 0; margin-top: 0.1em; padding: 0; } label[for="searchlang"], input#searchlang { display: none; } /* Bars (Goto bar, Translation bar, Edit bar) */ span.bar a { font-size: 1em; color: #444; } @media (prefers-color-scheme: dark) { span.bar a { color: #888; } } /* Goto bar (SiteMap, HowTo, etc) */ @media (max-width: 580px) { /* show along top */ span.gotobar { float: left; margin-top: 0.5em; } span.gotobar a + a:before { content: "|"; color: #ccc; } } @media (min-width: 580px) { /* show on left side */ span.gotobar { position: absolute; top: 3.5em; left: 20px; width: 140px; /* left+width=160px */ padding-right: 1em; padding-top: 30px; border-top: 1px solid #aaa; } @media (prefers-color-scheme: dark) { span.gotobar { border-top: 1px solid #444; } } span.gotobar a { display: block; margin-top: 0.5em; } } span.gotobar { line-height: 1em; } span.gotobar a { border-bottom: none; text-decoration: none; } span.gotobar a:hover { color: #09d; } @media (prefers-color-scheme: dark) { span.bar a:hover { color: #ae6; } } /* Messages */ div.message { position: absolute; left: 300px; top: 1em; height: 1.4em; margin: 0; padding: 5px 2em 2px; background-color: MediumTurquoise; color: #000; box-shadow: 2px 2px 2px 0 #888; } div.message p { margin: 0; } @media (prefers-color-scheme: dark) { div.message { border: solid 1px #08f; background-color: black; color: #08f; box-shadow: none; } } /* h1 (title) */ @media (max-width: 580px) { header h1 { margin-top: 1em; float: left; clear: both; font-size: 2em; } } @media (min-width: 580px) { header h1 { margin-left: 160px; border-left: 1px solid #aaa; border-top: 1px solid #aaa; padding-left: 20px; font-size: 2.5em; } @media (prefers-color-scheme: dark) { header h1 { border-left: 1px solid #444; border-top: 1px solid #444; } } } header h1 { padding-top: 30px; } header h1 a { color: inherit; background-color: inherit; border-bottom: none; text-decoration: none; } /* Content */ @media (max-width: 580px) { div.wrapper { clear: both; } } @media (min-width: 580px) { div.wrapper { margin-left: 160px; /* see gotobar */ border-left: 1px solid #aaa; padding: 1em; } @media (prefers-color-scheme: dark) { div.wrapper { border-left: 1px solid #444; } } } div.wrapper { min-height: 14em; /* so gotobar won't overwrite footer on small pages */ } div.wrapper { padding-top: 0.5em; } div.close { display: none; } /* Table of contents */ .toc { width: 50%; font-size: 90%; padding: 0 1em; margin: 2em 0; line-height: 1.4em; border: 1px solid #ccc; } .toc a { color: #666; /* color: #09d; */ /* border-bottom: 1px dotted #09c; */ } .toc a:hover { color: #09d; } @media (prefers-color-scheme: dark) { .toc { border: 1px solid #333; } .toc a { color: #999; } .toc a:hover { color: #ae6; } } /* Portraits */ /* see https://oddmuse.org/wiki/Portraits_Support_Extension */ /* see also News page, below */ div.portrait { margin: 0; float: left; clear: left; font-size: 0.75em; text-align: center; } div.portrait p { margin: 0; padding-top: 1ex; } /* for the image inside a.newauthor */ img.portrait { margin: 0; margin-right: 0.5em; float: left; clear: left; /* picture frame */ padding: 6px; background-color: white; border: 1px solid #999; /* scale the image */ width: 100%; /* preferred image size is 48x48px */ max-width: 62px; } /* portrait caption */ div.portrait a.local { float: left; display: block; clear: both; text-decoration: none; border-bottom: none; min-width: 74px; /* 62px from above + 2*6px padding */ margin-right: 1em; } div.comment { clear: both; } /* IRC */ .irc .time { display: none; } dl.irc dt { float: left; text-align: right; width: 20ex; } dl.irc dd { display: block; margin-left: 22ex; } /* Calendar */ /* (pre gets different colors below) */ div.month { padding: 0; margin: 0 2ex; } div.month a { text-decoration: none; } div.month pre { color: inherit; background-color: inherit; } body div.month { float: right; padding: 0 1ex; } .year div.month { float: left; padding: 0; } div.month a.edit { color: inherit; background-color: inherit; font-weight: inherit; } /* diff */ div.diff { padding-left: 5%; padding-right: 5%; } div.old p, div.new p { margin: 0; } /* so padding below will work right */ div.old, div.new { padding: 0.5em; } div.old { background-color: #f98; color: #000; } div.new { background-color: #aea; color: #000; } @media (prefers-color-scheme: dark) { div.old { background-color: #911; color: inherit; } div.new { background-color: #393; color: inherit; } /* inner shadow */ div.old, div.new { -moz-box-shadow: inset 0 0 5px #000; -webkit-box-shadow: inset 0 0 5px #000; box-shadow: inset 0 0 5px #000; } } /* Footer */ footer { clear: both; font-size: 0.9em; } footer hr { margin: 0; padding: 0; margin-bottom: 1em; border-bottom: 1px solid #aaa; } @media (prefers-color-scheme: dark) { footer hr { border-bottom: 1px solid #444; } } /* Footer edit bar */ footer span.edit { display: block; position: absolute; top: 30px; left: 206px; white-space: nowrap; } div.time a.author, div.time a.diff { color: gray; border-bottom: 1px dotted #09c; } div.time a.author:hover, div.time a.diff:hover { color: #09d; } @media (prefers-color-scheme: dark) { div.time a.author, footer .time .diff, .footer div.time a.diff { color: gray; border-bottom: 1px dotted #cf8; } div.time a.author, div.time a.diff { border-bottom: none; } div.time a.author:hover, footer .time .diff:hover, .footer div.time a.diff:hover { color: #ae6; } } /* Legal */ @media (max-width: 580px) { /* hide CC logo */ .licence { display: none; } } p.legal { margin: 0; padding: 0; font-style: italic; font-size: 1.1em; } p.legal a { color: gray; border-bottom: 1px dotted #09c; } p.legal a:hover { color: #09d; } @media (prefers-color-scheme: dark) { p.legal a { color: gray; border-bottom: 1px dotted #cfc; } p.legal a:hover { color: #ae6; } } /* also has