Fossil SCM

Simplified the SCSS example code by use of the language's "&" feature and an extra layer to handle the .content commonality.

wyoung 2024-02-09 01:19 inskinerator-modern-backport
Commit 6ad8bc587fa24297925803085a472a9ef88c21cfedaf7838fb4ddb2b6dc6cccf
1 file changed +6 -4
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -502,19 +502,21 @@
502502
* embedded doc type (plain HTML, wiki, and MD) equals 12 selectors,
503503
* plus another 4 to account for the two supported types of markup
504504
* preview in /fileedit and /wikiedit. In SCSS form, this is simply:
505505
*
506506
* .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
+ * }
510512
* }
511513
* }
512514
* }
513515
* #fileedit-tab-preview-wrapper,
514516
* #wikiedit-tab-preview-wrapper {
515
- * > .content, > .content > .markdown {
517
+ * &, > .markdown {
516518
* > pre {
517519
* @import 'margins.scss';
518520
* }
519521
* }
520522
* }
521523
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button