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