Skip to content

Commit

Permalink
scss
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomashighbaugh committed Jan 14, 2023
1 parent 447a9fe commit dddebf5
Show file tree
Hide file tree
Showing 164 changed files with 21,004 additions and 17,525 deletions.
11,668 changes: 5,819 additions & 5,849 deletions src/library/_darkmatter.scss → TEST/userChrome.css

Large diffs are not rendered by default.

6,228 changes: 6,228 additions & 0 deletions TEST/userChrome.scss

Large diffs are not rendered by default.

2,422 changes: 2,422 additions & 0 deletions TEST/userContent.css

Large diffs are not rendered by default.

2,148 changes: 2,148 additions & 0 deletions TEST/userContent.scss

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions css.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
var fs = require('fs');
var cssscss = require('css-scss');
/* ------------- CSS to SCSS Converter ------------- */
// This will convert userChrome and userContent to SCSS files, which was somewhat helpful when working with the Dark Matter CSS

var src = fs.readFileSync('./userChrome.css', 'utf8');
var scss = cssscss(src);
// WARNING: if working with firefox variables, first you will need to remove them from the file as they will be horribly scrambled by this,
var fs = require("fs");
var cssScss = require("css-scss");

fs.writeFileSync('./src/higgsBosonChrome.scss', scss);
// var src = fs.readFileSync('./userChrome.css', 'utf8');
// var scss = cssScss(src);

var src = fs.readFileSync('./userContent.css', 'utf8');
var scss = cssscss(src);
// fs.writeFileSync('./userChrome.scss', scss);

fs.writeFileSync('./src/higgsBosonContent.scss', scss);
var src = fs.readFileSync("./userContent.css", "utf8");
var scss = cssScss(src);

fs.writeFileSync("./userContent.scss", scss);
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
"prettier": "^2.6.1",
"sass": "^1.49.0",
"sass-true": "^6.1.0"
},
"dependencies": {
"css-scss": "^0.1.1"
}
}
8 changes: 8 additions & 0 deletions resources/in-content/custom-content.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* a stylesheet for custom user rules. this way you can customize the theme,
and when you update you can preserve your modifications by just updating everything except this file. */

/* add a dummy rule so this will be loaded by the style editor on any page. */

:root {
--uc-dummy-custom-property:initial;
}
16 changes: 0 additions & 16 deletions src/autohide/_back_button.scss

This file was deleted.

30 changes: 0 additions & 30 deletions src/autohide/_bookmarkbar.scss

This file was deleted.

50 changes: 0 additions & 50 deletions src/autohide/_common.scss

This file was deleted.

30 changes: 0 additions & 30 deletions src/autohide/_fill_urlbar.scss

This file was deleted.

16 changes: 0 additions & 16 deletions src/autohide/_forward_button.scss

This file was deleted.

11 changes: 0 additions & 11 deletions src/autohide/_index.scss

This file was deleted.

32 changes: 0 additions & 32 deletions src/autohide/_infobar.scss

This file was deleted.

22 changes: 0 additions & 22 deletions src/autohide/_navbar.scss

This file was deleted.

29 changes: 0 additions & 29 deletions src/autohide/_page_action.scss

This file was deleted.

20 changes: 0 additions & 20 deletions src/autohide/_sidebar.scss

This file was deleted.

68 changes: 0 additions & 68 deletions src/autohide/_toolbar_overlap.scss

This file was deleted.

Loading

0 comments on commit dddebf5

Please sign in to comment.