Fossil SCM
Simplified the SCSS example code by use of the language's "&" feature and an extra layer to handle the .content commonality.
Commit
6ad8bc587fa24297925803085a472a9ef88c21cfedaf7838fb4ddb2b6dc6cccf
Parent
3f21415f41afa3d…
1 file changed
+6
-4
+6
-4
| --- skins/default/css.txt | ||
| +++ skins/default/css.txt | ||
| @@ -502,19 +502,21 @@ | ||
| 502 | 502 | * embedded doc type (plain HTML, wiki, and MD) equals 12 selectors, |
| 503 | 503 | * plus another 4 to account for the two supported types of markup |
| 504 | 504 | * preview in /fileedit and /wikiedit. In SCSS form, this is simply: |
| 505 | 505 | * |
| 506 | 506 | * .artifact, .dir, .doc, .wiki { |
| 507 | - * > .content, > .content > .markdown, > .content > .fossil-doc { | |
| 508 | - * > pre { | |
| 509 | - * @import 'margins.scss'; | |
| 507 | + * > .content { | |
| 508 | + * &, > .markdown, > .fossil-doc { | |
| 509 | + * > pre { | |
| 510 | + * @import 'margins.scss'; | |
| 511 | + * } | |
| 510 | 512 | * } |
| 511 | 513 | * } |
| 512 | 514 | * } |
| 513 | 515 | * #fileedit-tab-preview-wrapper, |
| 514 | 516 | * #wikiedit-tab-preview-wrapper { |
| 515 | - * > .content, > .content > .markdown { | |
| 517 | + * &, > .markdown { | |
| 516 | 518 | * > pre { |
| 517 | 519 | * @import 'margins.scss'; |
| 518 | 520 | * } |
| 519 | 521 | * } |
| 520 | 522 | * } |
| 521 | 523 |
| --- skins/default/css.txt | |
| +++ skins/default/css.txt | |
| @@ -502,19 +502,21 @@ | |
| 502 | * embedded doc type (plain HTML, wiki, and MD) equals 12 selectors, |
| 503 | * plus another 4 to account for the two supported types of markup |
| 504 | * preview in /fileedit and /wikiedit. In SCSS form, this is simply: |
| 505 | * |
| 506 | * .artifact, .dir, .doc, .wiki { |
| 507 | * > .content, > .content > .markdown, > .content > .fossil-doc { |
| 508 | * > pre { |
| 509 | * @import 'margins.scss'; |
| 510 | * } |
| 511 | * } |
| 512 | * } |
| 513 | * #fileedit-tab-preview-wrapper, |
| 514 | * #wikiedit-tab-preview-wrapper { |
| 515 | * > .content, > .content > .markdown { |
| 516 | * > pre { |
| 517 | * @import 'margins.scss'; |
| 518 | * } |
| 519 | * } |
| 520 | * } |
| 521 |
| --- skins/default/css.txt | |
| +++ skins/default/css.txt | |
| @@ -502,19 +502,21 @@ | |
| 502 | * embedded doc type (plain HTML, wiki, and MD) equals 12 selectors, |
| 503 | * plus another 4 to account for the two supported types of markup |
| 504 | * preview in /fileedit and /wikiedit. In SCSS form, this is simply: |
| 505 | * |
| 506 | * .artifact, .dir, .doc, .wiki { |
| 507 | * > .content { |
| 508 | * &, > .markdown, > .fossil-doc { |
| 509 | * > pre { |
| 510 | * @import 'margins.scss'; |
| 511 | * } |
| 512 | * } |
| 513 | * } |
| 514 | * } |
| 515 | * #fileedit-tab-preview-wrapper, |
| 516 | * #wikiedit-tab-preview-wrapper { |
| 517 | * &, > .markdown { |
| 518 | * > pre { |
| 519 | * @import 'margins.scss'; |
| 520 | * } |
| 521 | * } |
| 522 | * } |
| 523 |