diff options
| author | Charlie Root <root@web.ccc.local> | 2025-01-28 22:47:15 +0100 |
|---|---|---|
| committer | Charlie Root <root@web.ccc.local> | 2025-01-28 22:47:15 +0100 |
| commit | c4296b59a7f9d667d295f9c37b71f7849b818fb3 (patch) | |
| tree | ccbace3a183c075991a0dfeb1dd9e6f25e901cf3 /public | |
| parent | dfbaadf0210b02a8bb54380c2c50302413dcf6d6 (diff) | |
Big overhaul patch and style changes
Diffstat (limited to 'public')
| -rw-r--r-- | public/stylesheets/ccc.css | 297 |
1 files changed, 233 insertions, 64 deletions
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css index c58e3ae..c782b1f 100644 --- a/public/stylesheets/ccc.css +++ b/public/stylesheets/ccc.css | |||
| @@ -1,28 +1,51 @@ | |||
| 1 | body { | 1 | body { |
| 2 | background-color: #FFFFFF; | ||
| 3 | margin: 0; | 2 | margin: 0; |
| 4 | padding: 0; | 3 | padding: 0; |
| 5 | text-align: center; | 4 | text-align: center; |
| 6 | font-family: Verdana, Helvetica, Arial, sans-serif; | 5 | font-family: Verdana, Helvetica, Arial, sans-serif; |
| 7 | font-size: 11px; | 6 | background-color: Canvas; |
| 8 | line-height: 16px; | 7 | hyphens: auto; |
| 9 | background-color: #ffffff; | 8 | color: color-mix(in srgb, CanvasText, #808080 30%); |
| 10 | color: #535353; | 9 | color-scheme: light dark; |
| 10 | } | ||
| 11 | |||
| 12 | body:has(#light-mode:checked) { | ||
| 13 | color-scheme: light; | ||
| 14 | } | ||
| 15 | |||
| 16 | @media (prefers-color-scheme: light) { | ||
| 17 | #light-mode-li, #light-mode, label[for=light-mode] { | ||
| 18 | display: none; | ||
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | @media (prefers-color-scheme: dark) { | ||
| 23 | body:not(:has(#light-mode:checked)) #header img, | ||
| 24 | body:not(:has(#light-mode:checked)) div#left_column::before | ||
| 25 | { | ||
| 26 | filter: invert(50%); | ||
| 27 | } | ||
| 11 | } | 28 | } |
| 12 | 29 | ||
| 13 | div#header { | 30 | p { |
| 14 | height: 224px; | 31 | line-height: 1.5em; |
| 32 | } | ||
| 33 | |||
| 34 | img { | ||
| 35 | max-width: 100%; | ||
| 15 | } | 36 | } |
| 16 | 37 | ||
| 17 | div#header img { | 38 | div#header img { |
| 18 | border: none; | 39 | border: none; |
| 19 | } | 40 | } |
| 20 | 41 | ||
| 21 | div#wrapper { | 42 | @media(min-width:1016px) { |
| 22 | position: relative; | 43 | div#wrapper { |
| 23 | width: 909px; | 44 | position: relative; |
| 24 | margin-left: 90px; | 45 | width: 909px; |
| 25 | text-align: left; | 46 | margin: 0 auto 0 auto; |
| 47 | text-align: left; | ||
| 48 | } | ||
| 26 | } | 49 | } |
| 27 | 50 | ||
| 28 | pre { | 51 | pre { |
| @@ -51,18 +74,17 @@ a:hover { | |||
| 51 | /*------------------headlines-------------------*/ | 74 | /*------------------headlines-------------------*/ |
| 52 | 75 | ||
| 53 | h2 { | 76 | h2 { |
| 54 | font-size: 15px; | 77 | font-size: 1.5rem; |
| 55 | line-height: 20px; | 78 | font-family: Helvetica, Arial, sans-serif; |
| 56 | font-family: Helvetica; | ||
| 57 | } | 79 | } |
| 58 | 80 | ||
| 59 | div#center_column h2 a { | 81 | div#center_column h2 a { |
| 60 | color: #535353; | 82 | color: color-mix(in srgb, CanvasText, #808080 80%); |
| 61 | text-decoration: none; | 83 | text-decoration: none; |
| 62 | } | 84 | } |
| 63 | 85 | ||
| 64 | div#center_column h2 a:hover { | 86 | div#center_column h2 a:hover { |
| 65 | color: #8e8e8e; | 87 | color: color-mix(in srgb, CanvasText, #808080 10%); |
| 66 | } | 88 | } |
| 67 | 89 | ||
| 68 | div#center_column h2.headline { | 90 | div#center_column h2.headline { |
| @@ -76,31 +98,65 @@ div.article_partial h2 a { | |||
| 76 | } | 98 | } |
| 77 | 99 | ||
| 78 | h3 { | 100 | h3 { |
| 79 | font-size: 13px; | 101 | font-size: 1.3rem; |
| 80 | text-decoration: none; | 102 | text-decoration: none; |
| 81 | 103 | ||
| 82 | } | 104 | } |
| 83 | 105 | ||
| 84 | h4 { | 106 | h4 { |
| 85 | font-size: 11px; | 107 | font-size: 1.0rem; |
| 86 | text-decoration: bold; | 108 | text-decoration: bold; |
| 87 | } | 109 | } |
| 88 | 110 | ||
| 111 | #left_column { | ||
| 112 | font-size: .8em; | ||
| 113 | line-height: 1.5em; | ||
| 114 | } | ||
| 115 | |||
| 89 | /*------------------main-navigation-------------------*/ | 116 | /*------------------main-navigation-------------------*/ |
| 90 | 117 | ||
| 91 | div.main_navigation ul { | 118 | div.main_navigation ul { |
| 92 | margin-left: 0; | 119 | margin-left: 0; |
| 93 | padding-left: 0; | 120 | padding-left: 0; |
| 94 | line-height: 18px; | 121 | padding-left: 15px; |
| 122 | padding-right: 15px; | ||
| 123 | text-align: left; | ||
| 95 | } | 124 | } |
| 96 | 125 | ||
| 97 | div.main_navigation li { | 126 | div.main_navigation li { |
| 98 | list-style-type: none; | 127 | list-style-type: none; |
| 128 | display: inline-block; | ||
| 129 | line-height: 1.75em; | ||
| 130 | } | ||
| 131 | |||
| 132 | div.main_navigation li::after { | ||
| 133 | content: '-'; | ||
| 134 | color: #aeadad; | ||
| 135 | margin-left: .3em; | ||
| 136 | } | ||
| 137 | |||
| 138 | div.main_navigation li:last-child::after { | ||
| 139 | content: none; | ||
| 140 | } | ||
| 141 | |||
| 142 | @media(min-width:1016px) { | ||
| 143 | div.main_navigation ul { | ||
| 144 | padding: 0; | ||
| 145 | text-align: right; | ||
| 146 | } | ||
| 147 | |||
| 148 | div.main_navigation li { | ||
| 149 | display: block; | ||
| 150 | line-height: 1.45em; | ||
| 151 | } | ||
| 152 | |||
| 153 | div.main_navigation li::after { | ||
| 154 | content: none; | ||
| 155 | } | ||
| 99 | } | 156 | } |
| 100 | 157 | ||
| 101 | div.main_navigation a { | 158 | div.main_navigation a { |
| 102 | text-decoration: none; | 159 | text-decoration: none; |
| 103 | font-size: 14px; | ||
| 104 | } | 160 | } |
| 105 | 161 | ||
| 106 | div.main_navigation a.inactive:hover { | 162 | div.main_navigation a.inactive:hover { |
| @@ -108,34 +164,68 @@ div.main_navigation a.inactive:hover { | |||
| 108 | } | 164 | } |
| 109 | 165 | ||
| 110 | div.main_navigation a.active { | 166 | div.main_navigation a.active { |
| 111 | color: #000000; | 167 | color: CanvasText; |
| 112 | text-decoration: none; | 168 | text-decoration: none; |
| 113 | font-size: 13px; | ||
| 114 | } | 169 | } |
| 115 | 170 | ||
| 116 | div.main_navigation a.inactive { | 171 | div.main_navigation a.inactive { |
| 117 | color: #aeadad; | 172 | color: #aeadad; |
| 118 | font-size: 13px; | ||
| 119 | } | 173 | } |
| 120 | 174 | ||
| 121 | /*------------------calendar-featured-tags-------------------*/ | 175 | /*------------------calendar-featured-tags-------------------*/ |
| 122 | 176 | ||
| 123 | div#frontpage_calendar { | 177 | div#frontpage_calendar { |
| 124 | margin-top: 30px; | 178 | display: none; |
| 179 | margin-top: 10px; | ||
| 180 | } | ||
| 181 | |||
| 182 | @media(min-width:1016px) { | ||
| 183 | div#frontpage_calendar { | ||
| 184 | margin-top: 30px; | ||
| 185 | } | ||
| 125 | } | 186 | } |
| 126 | 187 | ||
| 127 | div#frontpage_calendar h2, div#tags h2, div#featured_articles h2 { | 188 | div#frontpage_calendar h2, div#tags h2, div#featured_articles h2 { |
| 128 | color: #aeadad; | 189 | color: #aeadad; |
| 129 | border-top: 2px solid #aeadad; | 190 | border-top: 2px solid #aeadad; |
| 130 | border-bottom: 2px solid #aeadad; | 191 | border-bottom: 2px solid #aeadad; |
| 131 | font-size: 16px; | 192 | font-size: 1.1em; |
| 132 | padding-top: 2px; | 193 | padding-top: 2px; |
| 133 | padding-bottom: 2px; | 194 | padding-bottom: 2px; |
| 134 | } | 195 | } |
| 135 | 196 | ||
| 197 | div#frontpage_calendar h2 { | ||
| 198 | display: none; | ||
| 199 | border-top: none; | ||
| 200 | margin-left: auto; | ||
| 201 | margin-right: auto; | ||
| 202 | padding-left: 0.5em; | ||
| 203 | padding-right: 0.5em; | ||
| 204 | margin-top: 0; | ||
| 205 | } | ||
| 206 | |||
| 207 | @media(min-width:1016px) { | ||
| 208 | div#frontpage_calendar h2, div#tags h2, div#featured_articles h2 { | ||
| 209 | font-size: 16px; | ||
| 210 | } | ||
| 211 | |||
| 212 | div#frontpage_calendar h2 { | ||
| 213 | display: block; | ||
| 214 | border-top: 2px solid #aeadad; | ||
| 215 | padding: 2px 0; | ||
| 216 | } | ||
| 217 | } | ||
| 218 | |||
| 136 | div#frontpage_calendar ul, div#tags ul, div#featured_articles ul { | 219 | div#frontpage_calendar ul, div#tags ul, div#featured_articles ul { |
| 137 | padding: 0px; | 220 | padding: 0px; |
| 138 | font-size: 11px; | 221 | font-size: 0.8em; |
| 222 | line-height: 1.5em; | ||
| 223 | } | ||
| 224 | |||
| 225 | @media(min-width:1016px) { | ||
| 226 | div#tags ul { | ||
| 227 | font-size: 0.8rem; | ||
| 228 | } | ||
| 139 | } | 229 | } |
| 140 | 230 | ||
| 141 | div#featured_articles #ds_icon img { | 231 | div#featured_articles #ds_icon img { |
| @@ -170,40 +260,63 @@ div#featured_articles li a:hover { | |||
| 170 | 260 | ||
| 171 | div.author_and_date { | 261 | div.author_and_date { |
| 172 | font-style: italic; | 262 | font-style: italic; |
| 173 | padding-left: 15px; | 263 | padding-left: 2em; |
| 174 | font-family: Georgia; | 264 | font-family: Georgia; |
| 175 | } | 265 | } |
| 176 | 266 | ||
| 177 | div#left_column { | 267 | @media(min-width:1016px) { |
| 178 | position: absolute; | 268 | div#left_column::before { |
| 179 | background-image: url(/images/left_column.png); | 269 | content: " "; |
| 180 | background-position: top right; | 270 | position: absolute; |
| 181 | background-repeat: no-repeat; | 271 | left: 0; |
| 182 | left: 0px; | 272 | top: 0; |
| 183 | width: 115px; | 273 | width: 100%; |
| 184 | min-height: 100px; | 274 | height: 100%; |
| 185 | text-align: right; | 275 | box-sizing: border-box; |
| 186 | padding-right: 70px; | 276 | background-image: url(/images/left_column.png); |
| 277 | background-position: top right; | ||
| 278 | background-repeat: no-repeat; | ||
| 279 | z-index: -10; | ||
| 280 | } | ||
| 281 | div#left_column { | ||
| 282 | position: absolute; | ||
| 283 | left: 0px; | ||
| 284 | width: 115px; | ||
| 285 | min-height: 100px; | ||
| 286 | text-align: right; | ||
| 287 | padding-right: 70px; | ||
| 288 | } | ||
| 289 | |||
| 290 | div#left_column > a { | ||
| 291 | font-size: 0.8rem; | ||
| 292 | } | ||
| 187 | } | 293 | } |
| 188 | 294 | ||
| 189 | 295 | ||
| 190 | div#center_column { | 296 | div#center_column { |
| 191 | position: absolute; | ||
| 192 | background-color: #ffffff; | ||
| 193 | left: 200px; | ||
| 194 | width: 460px; | ||
| 195 | padding-left: 15px; | 297 | padding-left: 15px; |
| 196 | padding-right: 15px; | 298 | padding-right: 15px; |
| 197 | padding-bottom: 40px; | 299 | padding-bottom: 40px; |
| 198 | } | 300 | } |
| 199 | 301 | ||
| 200 | div#right_column { | 302 | @media(min-width: 1016px) { |
| 201 | position: absolute; | 303 | div#center_column { |
| 202 | background-color: #ffffff; | 304 | position: absolute; |
| 203 | padding-left: 70px; | 305 | background-color: Canvas; |
| 204 | left: 675px; | 306 | left: 200px; |
| 205 | width: 155px; | 307 | width: 460px; |
| 206 | height: 100px; | 308 | } |
| 309 | } | ||
| 310 | |||
| 311 | @media(min-width:1016px) { | ||
| 312 | div#right_column { | ||
| 313 | position: absolute; | ||
| 314 | background-color: Canvas; | ||
| 315 | padding-left: 70px; | ||
| 316 | left: 675px; | ||
| 317 | width: 155px; | ||
| 318 | height: 100px; | ||
| 319 | } | ||
| 207 | } | 320 | } |
| 208 | 321 | ||
| 209 | div.teaser_ruler { | 322 | div.teaser_ruler { |
| @@ -219,21 +332,26 @@ div.article_partial { | |||
| 219 | 332 | ||
| 220 | 333 | ||
| 221 | div.article_partial p.excerpt { | 334 | div.article_partial p.excerpt { |
| 222 | color: #404040; | 335 | color: color-mix(in srgb, CanvasText, #808080 50%); |
| 223 | } | 336 | } |
| 224 | 337 | ||
| 225 | div#center_column div.body, | 338 | /* Search bar */ |
| 226 | div#center_column div.abstract { | 339 | #search form table { |
| 227 | font-size: 11px; | 340 | display: inline-table; |
| 228 | line-height: 16px; | ||
| 229 | } | 341 | } |
| 230 | 342 | ||
| 231 | div#search { | 343 | @media(min-width:1016px) { |
| 232 | position: absolute; | 344 | #search form table { |
| 233 | top: 145px; | 345 | display: table; |
| 234 | left: 676px; | 346 | } |
| 235 | height: 20px; | 347 | |
| 236 | vertical-align: top; | 348 | div#search { |
| 349 | position: absolute; | ||
| 350 | top: 145px; | ||
| 351 | left: 676px; | ||
| 352 | height: 20px; | ||
| 353 | vertical-align: top; | ||
| 354 | } | ||
| 237 | } | 355 | } |
| 238 | 356 | ||
| 239 | div#search input[type=button] { | 357 | div#search input[type=button] { |
| @@ -248,10 +366,61 @@ div#search input[type=text] { | |||
| 248 | height: 20px; | 366 | height: 20px; |
| 249 | width: 132px; | 367 | width: 132px; |
| 250 | line-height: 20px; | 368 | line-height: 20px; |
| 251 | border: none; | 369 | border: solid Canvas 1px; |
| 370 | border-radius: 5px; | ||
| 252 | background-image: url(/images/search_field.png); | 371 | background-image: url(/images/search_field.png); |
| 253 | background-repeat:no-repeat; | 372 | background-repeat:no-repeat; |
| 254 | padding-right: 5px; | ||
| 255 | margin-right: 5px; | 373 | margin-right: 5px; |
| 256 | background-position: top top; | 374 | text-indent: 0.5rem; |
| 257 | } \ No newline at end of file | 375 | background-position: top; |
| 376 | color: #000; | ||
| 377 | } | ||
| 378 | |||
| 379 | /* Header */ | ||
| 380 | #header > a { | ||
| 381 | display: block; | ||
| 382 | line-height: 0; | ||
| 383 | } | ||
| 384 | |||
| 385 | /* Main section */ | ||
| 386 | .article, .article_partial { | ||
| 387 | font-size: .9rem; | ||
| 388 | text-align: left; | ||
| 389 | } | ||
| 390 | |||
| 391 | /* | ||
| 392 | @media(min-width:1016px) { | ||
| 393 | .article, .article_partial { | ||
| 394 | font-size: 11px; | ||
| 395 | } | ||
| 396 | } | ||
| 397 | */ | ||
| 398 | |||
| 399 | h1, h2, h3 { | ||
| 400 | word-wrap: anywhere; | ||
| 401 | hyphens:auto; | ||
| 402 | } | ||
| 403 | |||
| 404 | .pagination { | ||
| 405 | margin-bottom: .5em; | ||
| 406 | } | ||
| 407 | |||
| 408 | li { | ||
| 409 | line-height: 1.5em; | ||
| 410 | margin-block-start: 1em; | ||
| 411 | margin-block-end: 1em; | ||
| 412 | } | ||
| 413 | |||
| 414 | /* Footer */ | ||
| 415 | #footer { | ||
| 416 | border-bottom: 2px solid #aeadad; | ||
| 417 | border-top: 2px solid #aeadad; | ||
| 418 | } | ||
| 419 | |||
| 420 | #footer > br { | ||
| 421 | display: none; | ||
| 422 | } | ||
| 423 | |||
| 424 | #footer p { | ||
| 425 | margin: .5em auto; | ||
| 426 | } | ||
