2023-03-26 18:05:22 +02:00
|
|
|
#!/usr/bin/env node
|
|
|
|
require('../../Scripts/Lib/SelfBuild.js').importAll();
|
|
|
|
|
|
|
|
Fs.writeFileSync(__filename.split('.SelfBuild.js')[0], `
|
2022-10-27 11:10:44 +02:00
|
|
|
/* Global styles applied to all pages with any base template.
|
|
|
|
*
|
|
|
|
* Note to future self:
|
|
|
|
* colors and things like that should **never** go here,
|
|
|
|
* only formatting/layout rules and reusable classes
|
|
|
|
* needed to fix HTML quirks.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.Center { Text-Align: Center; }
|
|
|
|
.Inline { Display: Inline; }
|
|
|
|
.InlineBlock { Display: Inline-Block; }
|
|
|
|
.NoCol { Color: Transparent !Important; }
|
2023-03-26 18:05:22 +02:00
|
|
|
.NoDisp, .NoDisplay, .DispNone { Display: None; }
|
2022-11-22 00:22:25 +01:00
|
|
|
.DispBlock { Display: Block; }
|
2022-10-27 11:10:44 +02:00
|
|
|
.NoWrap { White-Space: NoWrap; }
|
|
|
|
|
2023-02-01 13:07:12 +01:00
|
|
|
.NoSelect {
|
|
|
|
User-Select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-khtml-user-select: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
}
|
|
|
|
|
2022-11-22 00:22:25 +01:00
|
|
|
.i1em {
|
|
|
|
Max-Width: 1em;
|
|
|
|
Max-Height: 1em;
|
|
|
|
}
|
|
|
|
|
2022-10-27 11:10:44 +02:00
|
|
|
/* Set Headings as Inline when inside Details Summaries and List Items */
|
2023-03-26 18:05:22 +02:00
|
|
|
/*:Where(Summary, Li) > :Where(H1, H2, H3, H4, H5, H6) {*/
|
|
|
|
${Where('summary >', CssAllHeadings, '')},
|
|
|
|
${Where('li >', CssAllHeadings, '')} {
|
2022-10-27 11:10:44 +02:00
|
|
|
Display: Inline;
|
|
|
|
}
|
2022-12-26 15:34:37 +01:00
|
|
|
|
2023-03-26 18:05:22 +02:00
|
|
|
/* Python-Markdown can put a <p> for list text items, forming spacing between it and sublists.
|
|
|
|
Wrapping a list in a div with this class when this effect is unwanted.
|
|
|
|
*/
|
|
|
|
.ListNoInMargin > * > li > p { margin-bottom: 0; }
|
|
|
|
/* Strange <br>s are sometimes formed */
|
|
|
|
/*.ListNoInMargin > * > li > p > br:last-of-type { display: none; }*/
|
|
|
|
`);
|