2 * Nick's web site: default stylesheet
4 * Copyright © 2018-2020 Nick Bowler
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
21 $backgroundcolour: #ffffff;
22 $foregroundcolour: #000000;
24 $linkdefaultcolour: #0000cd;
25 $linkactivecolour: #ff0000;
26 $linkvisitedcolour: #800080;
28 $ruledefaultcolour: #d3d3d3;
30 $annotationcolour: #708090;
32 @mixin header_size($maxwidth, $fontsize) {
34 max-width: 1em * ($maxwidth / $fontsize);
38 background-color: $backgroundcolour;
39 color: $foregroundcolour;
40 font-family: sans-serif;
44 a:link { color: $linkdefaultcolour; }
45 a:visited { color: $linkvisitedcolour; }
46 a:active { color: $linkactivecolour; }
48 h1 { @include header_size(60em, 2em); }
49 h2 { @include header_size(60em, 1.5em); }
57 p, div, ul, ol, dl, hr {
63 p, body>div { margin: 1em 0; }
65 li { margin: 0 0 0 2em; }
66 dd { margin: 0 0 0 1em; }
72 border-top: 1px solid $ruledefaultcolour;
76 font-family: monospace;
78 &:before { content: "% "; }
83 color: $annotationcolour;
85 a:link, a:visited { color: inherit; }
88 .permalink { visibility: hidden; }
92 #breadcrumbs>*, #sitetitle>* { font-size: 0.8em; }
96 list-style-type: none;
102 li + li:before { content: "/ "; }
105 display: inline-block;
117 color: $annotationcolour;
118 display: inline-block;
125 // "unordered" lists with explicit ordering in content
127 li { list-style: none; }
128 li>span:first-child, li>*:first-child>span:first-child {
129 display: inline-block;
136 @media (max-width: 512px) {
137 body { margin: 0.6em; }
138 ul ul { margin-left: -1.2em; }
142 @media (max-width: 35em) {
143 #sitetitle * { float: none; }
144 #footer { padding: 0 1em; }
146 @media (max-width: 28em) {
147 * { text-align: left; }