Fossil SCM
The new skin's table styling now applies to docs served via /dir and /file URLs as well.
Commit
a974210166464b5926f53bdeb0aacc51d9908322bd24131e5076cbc146cc7b13
Parent
f19f5369f9a9418…
1 file changed
+45
-10
+45
-10
| --- skins/default/css.txt | ||
| +++ skins/default/css.txt | ||
| @@ -213,14 +213,22 @@ | ||
| 213 | 213 | |
| 214 | 214 | |
| 215 | 215 | /* Markdown and Wiki-formatted pages: /wiki, /doc, /file... */ |
| 216 | 216 | |
| 217 | 217 | .markdown blockquote, p.blockquote, .sidebar { |
| 218 | - /* Override default.css version with our accent colors. */ | |
| 219 | - background-color: rgba(65, 131, 196, 0.1); | |
| 218 | + /* Override default.css version with our accent colors. Background is | |
| 219 | + * the solid version of rgba(65, 131, 196, 0.1) on white, needed to | |
| 220 | + * avoid tinting pre block backgrounds going "under" them. */ | |
| 221 | + background-color: #ebf2f9; | |
| 220 | 222 | border-left-color: #4183c4; |
| 221 | 223 | } |
| 224 | +div.sidebar { | |
| 225 | + /* Add extra whitespace between sidebar and content, both for spacing | |
| 226 | + * and to put a gap between it and any <pre> blocks that happen to run | |
| 227 | + * up against it. */ | |
| 228 | + outline: 1em solid white; | |
| 229 | +} | |
| 222 | 230 | |
| 223 | 231 | /* Mark inline code fragments in the near-universal manner pioneered by |
| 224 | 232 | * Stack Overflow, then picked up by approximately everyone, including |
| 225 | 233 | * us, now. |
| 226 | 234 | * |
| @@ -243,12 +251,14 @@ | ||
| 243 | 251 | * .artifact, .dir, .doc, .forum, .wiki // the page types we target |
| 244 | 252 | * > .content // hands off header & footer |
| 245 | 253 | * &, > .fossil-doc, > .markdown // wiki, HTML & MD emb docs |
| 246 | 254 | * > p // in top-level paras only |
| 247 | 255 | * > code, > kbd, > samp, > tt, > var // monospaced tag types |
| 248 | - * background-color: #eee // pale gray box which… | |
| 256 | + * background-color: #f4f4f4 // pale gray box which… | |
| 249 | 257 | * padding: 0 4px // …extends around the sides |
| 258 | + * | |
| 259 | + * We then need something similar for the block-level pre elements. | |
| 250 | 260 | * |
| 251 | 261 | * The CSS below is based on feeding that Sass code through this: |
| 252 | 262 | * |
| 253 | 263 | * $ sassc code.sass | sed -e 's/, /,\n/g' |
| 254 | 264 | * |
| @@ -323,12 +333,27 @@ | ||
| 323 | 333 | .wiki > .content > .fossil-doc > p > var, |
| 324 | 334 | .wiki > .content > .markdown > p > code, |
| 325 | 335 | .wiki > .content > .markdown > p > kbd, |
| 326 | 336 | .wiki > .content > .markdown > p > samp, |
| 327 | 337 | .wiki > .content > .markdown > p > tt, |
| 328 | -.wiki > .content > .markdown > p > var { | |
| 329 | - background-color: #eee; | |
| 338 | +.wiki > .content > .markdown > p > var, | |
| 339 | +.artifact > .content > pre, | |
| 340 | +.artifact > .content > .fossil-doc > pre, | |
| 341 | +.artifact > .content > .markdown > pre, | |
| 342 | +.dir > .content > pre, | |
| 343 | +.dir > .content > .fossil-doc > pre, | |
| 344 | +.dir > .content > .markdown > pre, | |
| 345 | +.doc > .content > pre, | |
| 346 | +.doc > .content > .fossil-doc > pre, | |
| 347 | +.doc > .content > .markdown > pre, | |
| 348 | +.forum > .content > pre, | |
| 349 | +.forum > .content > .fossil-doc > pre, | |
| 350 | +.forum > .content > .markdown > pre, | |
| 351 | +.wiki > .content > pre, | |
| 352 | +.wiki > .content > .fossil-doc > pre, | |
| 353 | +.wiki > .content > .markdown > pre { | |
| 354 | + background-color: #f4f4f4; | |
| 330 | 355 | padding: 0 4px; |
| 331 | 356 | } |
| 332 | 357 | .content pre, table.numbered-lines > tbody > tr { |
| 333 | 358 | hyphens: none; |
| 334 | 359 | line-height: 1.25; |
| @@ -336,30 +361,40 @@ | ||
| 336 | 361 | |
| 337 | 362 | .content ul li { |
| 338 | 363 | list-style-type: disc; |
| 339 | 364 | } |
| 340 | 365 | |
| 341 | -.doc > .content table { | |
| 366 | +.artifact > .content table, | |
| 367 | +.dir > .content table, | |
| 368 | +.doc > .content table { | |
| 342 | 369 | background-color: #f0f5f9; |
| 343 | 370 | border: 1px solid #a7c2dc; |
| 344 | 371 | border-radius: 0.5em; |
| 345 | 372 | border-spacing: 0; |
| 346 | 373 | padding: 6px; |
| 347 | 374 | } |
| 348 | -.doc > .content th { | |
| 375 | +.artifact > .content th, | |
| 376 | +.dir > .content th, | |
| 377 | +.doc > .content th { | |
| 349 | 378 | border-bottom: 1px solid #dee8f2; |
| 350 | 379 | padding-bottom: 4px; |
| 351 | 380 | padding-right: 6px; |
| 352 | 381 | text-align: left; |
| 353 | 382 | } |
| 354 | -.doc > .content tr > th { | |
| 383 | +.artifact > .content tr > th, | |
| 384 | +.dir > .content tr > th, | |
| 385 | +.doc > .content tr > th { | |
| 355 | 386 | background-color: #dee8f0; |
| 356 | 387 | } |
| 357 | -.doc > .content tr:nth-child(odd) { | |
| 388 | +.artifact > .content tr:nth-child(odd), | |
| 389 | +.dir > .content tr:nth-child(odd), | |
| 390 | +.doc > .content tr:nth-child(odd) { | |
| 358 | 391 | background-color: #e0e8ee; |
| 359 | 392 | } |
| 360 | -.doc > .content td { | |
| 393 | +.artifact > .content td, | |
| 394 | +.dir > .content td, | |
| 395 | +.doc > .content td { | |
| 361 | 396 | padding-bottom: 4px; |
| 362 | 397 | padding-right: 6px; |
| 363 | 398 | text-align: left; |
| 364 | 399 | } |
| 365 | 400 | |
| 366 | 401 |
| --- skins/default/css.txt | |
| +++ skins/default/css.txt | |
| @@ -213,14 +213,22 @@ | |
| 213 | |
| 214 | |
| 215 | /* Markdown and Wiki-formatted pages: /wiki, /doc, /file... */ |
| 216 | |
| 217 | .markdown blockquote, p.blockquote, .sidebar { |
| 218 | /* Override default.css version with our accent colors. */ |
| 219 | background-color: rgba(65, 131, 196, 0.1); |
| 220 | border-left-color: #4183c4; |
| 221 | } |
| 222 | |
| 223 | /* Mark inline code fragments in the near-universal manner pioneered by |
| 224 | * Stack Overflow, then picked up by approximately everyone, including |
| 225 | * us, now. |
| 226 | * |
| @@ -243,12 +251,14 @@ | |
| 243 | * .artifact, .dir, .doc, .forum, .wiki // the page types we target |
| 244 | * > .content // hands off header & footer |
| 245 | * &, > .fossil-doc, > .markdown // wiki, HTML & MD emb docs |
| 246 | * > p // in top-level paras only |
| 247 | * > code, > kbd, > samp, > tt, > var // monospaced tag types |
| 248 | * background-color: #eee // pale gray box which… |
| 249 | * padding: 0 4px // …extends around the sides |
| 250 | * |
| 251 | * The CSS below is based on feeding that Sass code through this: |
| 252 | * |
| 253 | * $ sassc code.sass | sed -e 's/, /,\n/g' |
| 254 | * |
| @@ -323,12 +333,27 @@ | |
| 323 | .wiki > .content > .fossil-doc > p > var, |
| 324 | .wiki > .content > .markdown > p > code, |
| 325 | .wiki > .content > .markdown > p > kbd, |
| 326 | .wiki > .content > .markdown > p > samp, |
| 327 | .wiki > .content > .markdown > p > tt, |
| 328 | .wiki > .content > .markdown > p > var { |
| 329 | background-color: #eee; |
| 330 | padding: 0 4px; |
| 331 | } |
| 332 | .content pre, table.numbered-lines > tbody > tr { |
| 333 | hyphens: none; |
| 334 | line-height: 1.25; |
| @@ -336,30 +361,40 @@ | |
| 336 | |
| 337 | .content ul li { |
| 338 | list-style-type: disc; |
| 339 | } |
| 340 | |
| 341 | .doc > .content table { |
| 342 | background-color: #f0f5f9; |
| 343 | border: 1px solid #a7c2dc; |
| 344 | border-radius: 0.5em; |
| 345 | border-spacing: 0; |
| 346 | padding: 6px; |
| 347 | } |
| 348 | .doc > .content th { |
| 349 | border-bottom: 1px solid #dee8f2; |
| 350 | padding-bottom: 4px; |
| 351 | padding-right: 6px; |
| 352 | text-align: left; |
| 353 | } |
| 354 | .doc > .content tr > th { |
| 355 | background-color: #dee8f0; |
| 356 | } |
| 357 | .doc > .content tr:nth-child(odd) { |
| 358 | background-color: #e0e8ee; |
| 359 | } |
| 360 | .doc > .content td { |
| 361 | padding-bottom: 4px; |
| 362 | padding-right: 6px; |
| 363 | text-align: left; |
| 364 | } |
| 365 | |
| 366 |
| --- skins/default/css.txt | |
| +++ skins/default/css.txt | |
| @@ -213,14 +213,22 @@ | |
| 213 | |
| 214 | |
| 215 | /* Markdown and Wiki-formatted pages: /wiki, /doc, /file... */ |
| 216 | |
| 217 | .markdown blockquote, p.blockquote, .sidebar { |
| 218 | /* Override default.css version with our accent colors. Background is |
| 219 | * the solid version of rgba(65, 131, 196, 0.1) on white, needed to |
| 220 | * avoid tinting pre block backgrounds going "under" them. */ |
| 221 | background-color: #ebf2f9; |
| 222 | border-left-color: #4183c4; |
| 223 | } |
| 224 | div.sidebar { |
| 225 | /* Add extra whitespace between sidebar and content, both for spacing |
| 226 | * and to put a gap between it and any <pre> blocks that happen to run |
| 227 | * up against it. */ |
| 228 | outline: 1em solid white; |
| 229 | } |
| 230 | |
| 231 | /* Mark inline code fragments in the near-universal manner pioneered by |
| 232 | * Stack Overflow, then picked up by approximately everyone, including |
| 233 | * us, now. |
| 234 | * |
| @@ -243,12 +251,14 @@ | |
| 251 | * .artifact, .dir, .doc, .forum, .wiki // the page types we target |
| 252 | * > .content // hands off header & footer |
| 253 | * &, > .fossil-doc, > .markdown // wiki, HTML & MD emb docs |
| 254 | * > p // in top-level paras only |
| 255 | * > code, > kbd, > samp, > tt, > var // monospaced tag types |
| 256 | * background-color: #f4f4f4 // pale gray box which… |
| 257 | * padding: 0 4px // …extends around the sides |
| 258 | * |
| 259 | * We then need something similar for the block-level pre elements. |
| 260 | * |
| 261 | * The CSS below is based on feeding that Sass code through this: |
| 262 | * |
| 263 | * $ sassc code.sass | sed -e 's/, /,\n/g' |
| 264 | * |
| @@ -323,12 +333,27 @@ | |
| 333 | .wiki > .content > .fossil-doc > p > var, |
| 334 | .wiki > .content > .markdown > p > code, |
| 335 | .wiki > .content > .markdown > p > kbd, |
| 336 | .wiki > .content > .markdown > p > samp, |
| 337 | .wiki > .content > .markdown > p > tt, |
| 338 | .wiki > .content > .markdown > p > var, |
| 339 | .artifact > .content > pre, |
| 340 | .artifact > .content > .fossil-doc > pre, |
| 341 | .artifact > .content > .markdown > pre, |
| 342 | .dir > .content > pre, |
| 343 | .dir > .content > .fossil-doc > pre, |
| 344 | .dir > .content > .markdown > pre, |
| 345 | .doc > .content > pre, |
| 346 | .doc > .content > .fossil-doc > pre, |
| 347 | .doc > .content > .markdown > pre, |
| 348 | .forum > .content > pre, |
| 349 | .forum > .content > .fossil-doc > pre, |
| 350 | .forum > .content > .markdown > pre, |
| 351 | .wiki > .content > pre, |
| 352 | .wiki > .content > .fossil-doc > pre, |
| 353 | .wiki > .content > .markdown > pre { |
| 354 | background-color: #f4f4f4; |
| 355 | padding: 0 4px; |
| 356 | } |
| 357 | .content pre, table.numbered-lines > tbody > tr { |
| 358 | hyphens: none; |
| 359 | line-height: 1.25; |
| @@ -336,30 +361,40 @@ | |
| 361 | |
| 362 | .content ul li { |
| 363 | list-style-type: disc; |
| 364 | } |
| 365 | |
| 366 | .artifact > .content table, |
| 367 | .dir > .content table, |
| 368 | .doc > .content table { |
| 369 | background-color: #f0f5f9; |
| 370 | border: 1px solid #a7c2dc; |
| 371 | border-radius: 0.5em; |
| 372 | border-spacing: 0; |
| 373 | padding: 6px; |
| 374 | } |
| 375 | .artifact > .content th, |
| 376 | .dir > .content th, |
| 377 | .doc > .content th { |
| 378 | border-bottom: 1px solid #dee8f2; |
| 379 | padding-bottom: 4px; |
| 380 | padding-right: 6px; |
| 381 | text-align: left; |
| 382 | } |
| 383 | .artifact > .content tr > th, |
| 384 | .dir > .content tr > th, |
| 385 | .doc > .content tr > th { |
| 386 | background-color: #dee8f0; |
| 387 | } |
| 388 | .artifact > .content tr:nth-child(odd), |
| 389 | .dir > .content tr:nth-child(odd), |
| 390 | .doc > .content tr:nth-child(odd) { |
| 391 | background-color: #e0e8ee; |
| 392 | } |
| 393 | .artifact > .content td, |
| 394 | .dir > .content td, |
| 395 | .doc > .content td { |
| 396 | padding-bottom: 4px; |
| 397 | padding-right: 6px; |
| 398 | text-align: left; |
| 399 | } |
| 400 | |
| 401 |