1/** 2 * This contains the content styling 3 * @author Sascha Leib <sascha@leib.be> 4 */ 5 6main p, 7main blockquote, 8main div.table { 9 margin-bottom: 1em; 10} 11 12/* headlines: */ 13main h1, main h2, main h3, main h4, main h5, main h6 { 14 font-family: @ini_alt_fonts; 15 color: @ini_headlines; 16 margin: 1em 0 1em 0; 17 line-height: 1.1em; 18} 19 20main h1 { font-size: 2em; } 21main h2 { font-size: 1.5em; } 22main h3 { font-size: 1.125em; } 23main h4 { font-size: 1em; } 24main h5 { font-size: .875em; } 25main h6 { font-size: .75em; } 26 27main h1 *, main h2 *, main h3 *, main h4 *, main h5 *, main h6 * { 28 font-family: inherit; 29 font-size: inherit; 30 color: inherit; 31 margin: inherit; 32 line-height: inherit; 33} 34 35/* on the homepage only, reduce the H1 top margin: */ 36body.home h1:first-child { margin-top: .5em; } 37 38/* make strike-through and underline more useful! */ 39main u { 40 -webkit-text-decoration-color: #F30; 41 -webkit-text-decoration-line: underline; 42 -webkit-text-decoration-style: wavy; 43 -webkit-text-decoration-thickness: .7pt; 44 text-decoration: underline #F30 wavy .7pt; 45} 46main s { 47 -webkit-text-decoration-color: rgba(255,0,0,.5); 48 -webkit-text-decoration-line: line-through; 49 -webkit-text-decoration-style: solid; 50 -webkit-text-decoration-thickness: 1pt; 51 text-decoration: line-through rgba(255,0,0,.5) solid 1pt; 52} 53 54/* lists: */ 55main ul, main ol { 56 margin: 0 2em 1em 1em; 57 padding-left: 1.75em; 58} 59main ul { list-style: square outside; } 60main ul ul { list-style-type: disc; } 61main ul ul ul { list-style-type: none; } 62main ul ul ul li {margin-left: 1em; } 63main ul ul ul li:before { display: block; content: '\2043'; text-align:center; float: left; width: 1em; margin-left: -1em; } 64main ul ul ul ul li:before { content: '\FE63' } 65main ul ul ul ul ul li:before { content: '\00B7' } 66 67/* numbered lists vary by nestling: */ 68main ol { list-style: decimal outside; } 69main ol ol { list-style-type: lower-alpha; } 70main ol ol ol { list-style-type: lower-roman; } 71main ol ol ol ol { list-style-type: lower-greek; } 72main ol ol ol ol ol { list-style-type: decimal-leading-zero; } 73main ul ul ul ol li { margin-left: 0; } 74main ul ul ul ol li:before { display: none; content: ''; } 75 76main li::marker { 77 color: #666; 78} 79 80main ul ul, main ul ol, 81main ol ul, main ol ol { 82 margin-bottom: 0; 83 padding-left: .25em; 84} 85 86/* horizontal rules */ 87main hr { 88 border: #666 solid 0; 89 border-top-width: 1pt; 90 height: 0; 91 margin: 3pt 0; 92} 93 94main tt, main blockquote tt, 95main pre, main pre *, 96main code, main blockquote code { 97 font-family: @ini_mono_fonts; 98} 99main code, main blockquote code { 100 border: @ini_border solid 1px; 101 border-radius: 3pt; 102 padding: 0 2pt; 103} 104 105/* quotes: */ 106main blockquote { 107 border-left: @ini_blockquote solid .4em; 108 border-radius: .5em; 109 padding: .25em 0 .25em .75em; 110 margin: 0 2em 1em 1em; 111 font-family: @ini_alt_fonts; 112 font-size: 1.1rem; 113} 114main blockquote * { 115 font-family: @ini_alt_fonts; 116 font-size: 1.1rem; 117} 118 119main svg { 120 display: block; 121 fill-rule: evenodd; 122 clip-rule: evenodd; 123 stroke-linejoin: round; 124 stroke-miterlimit: 1.5; 125} 126main svg.math { 127 margin-left: 15px 128} 129 130/* tables */ 131main div.table { 132 overflow-x: auto; 133} 134 135main table { 136 border-collapse: collapse; 137 empty-cells: show; 138 border-spacing: 0; 139 font-size: smaller; 140 border: 1px solid @ini_border; 141 margin-bottom: 1em; 142} 143 144main table.inline { 145 min-width: 50%; 146} 147 148main table th, 149main table td { 150 padding: .5em .3em; 151 vertical-align: top; 152 border: 1px solid @ini_border; 153 line-height: 1.25em; 154} 155main table th { 156 font-weight: bold; 157 background-color: @ini_background_alt; 158 text-align: left; 159} 160 161main table.inline tr:hover td { 162 background-color: @ini_background_alt; 163} 164 165main table.inline tr:hover th { 166 background-color: @ini_border; 167} 168 169/* asides */ 170main aside { 171 width: 50%; 172 max-width: 220px; 173 min-width: 150px; 174 float: right; 175 text-align: center; 176 font-size: smaller; 177 margin-left: .5em; 178 font-size: small; 179 line-height: 1.5em; 180} 181main aside footer { 182 line-height: 1.1em; 183} 184 185/* images */ 186main img { 187 max-width: 100%; 188 height: auto; 189} 190 191/* tablet break point: */ 192@media (max-width: @ini_tablet_width) { 193 194 /* use hyphenation rules */ 195 main p { 196 hyphens: auto; 197 -webkit-hyphens: auto; 198 -moz-hyphens: auto; 199 -ms-hyphens: auto; 200 hyphenate-limit-chars: 6 2 3; 201 -ms-hyphenate-limit-chars: 6 2 3; 202 -webkit-hyphenate-limit-before: 2; 203 -webkit-hyphenate-limit-after: 3; 204 hyphenate-limit-lines: 3; 205 -ms-hyphenate-limit-lines: 3; 206 } 207} 208 209/* phone break point: */ 210@media (max-width: @ini_phone_width) { 211 212 .nophone { 213 display: none !important; 214 } 215 216 main aside { 217 width: 100%; 218 max-width: initial; 219 float: none; 220 margin-left: 0; 221 } 222} 223 224/* dark mode overrides */ 225@media (prefers-color-scheme: dark) { 226 body.darkmode main h1, body.darkmode main h2, 227 body.darkmode main h3, body.darkmode main h4, 228 body.darkmode main h5, body.darkmode main h6 { color: @ini_headlines_dark; } 229 body.darkmode main table { border-color: @ini_border_dark; } 230 body.darkmode main table th { background-color: rgba(255,255,255,0.05); } 231 body.darkmode main table.inline tr:hover td, 232 body.darkmode #acl_manager table tr:hover { background-color: rgba(255,255,255,0.1); } 233 body.darkmode main code, main blockquote code { border-color: @ini_border_dark; } 234 body.darkmode main table.inline tr:hover th { background-color: @ini_border_dark; } 235 body.darkmode main blockquote { border-left-color: @ini_blockquote_dark } 236 237 body.darkmode div.error { background-color: #4B2F36; color: #FFB3D2; border-color: #743E4C; } 238 body.darkmode div.success { background-color: #28381F; color: #FBE2A1; border-color: #37562E; } 239 body.darkmode div.notify { background-color: #42381F; color: #FCE2A1; border-color: #56562E; } 240} 241 242