summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-03-03 10:49:12 +0100
committerVolpeon <git@volpeon.ink>2021-03-03 10:49:12 +0100
commit86ce64d45fc94545846e86fe53f7d427fdb2ac82 (patch)
tree4d9a2b372430c85782b8afb092a41fde6eea8a1b
parentAdd PeerTube to profile list (diff)
downloadvolpeon.ink-86ce64d45fc94545846e86fe53f7d427fdb2ac82.tar.gz
volpeon.ink-86ce64d45fc94545846e86fe53f7d427fdb2ac82.tar.bz2
volpeon.ink-86ce64d45fc94545846e86fe53f7d427fdb2ac82.zip
Remove unused components from CSS output
-rw-r--r--assets/css/components/_nav.scss12
-rw-r--r--assets/css/components/_page.scss4
-rw-r--r--assets/css/style.scss4
-rwxr-xr-xscripts/build_sass.sh1
4 files changed, 3 insertions, 18 deletions
diff --git a/assets/css/components/_nav.scss b/assets/css/components/_nav.scss
index dc33d1e..6bed7ae 100644
--- a/assets/css/components/_nav.scss
+++ b/assets/css/components/_nav.scss
@@ -53,16 +53,4 @@
53 margin-left: $nav--item--spacing--sm - $nav--item--pad-h; 53 margin-left: $nav--item--spacing--sm - $nav--item--pad-h;
54 } 54 }
55 } 55 }
56
57 /*
58 @media (max-width: map-get($breakpoints, "xs")) {
59 &__logo {
60 display: none;
61 }
62
63 &__logo + &__item {
64 margin-left: -1ch;
65 }
66 }
67 */
68} 56}
diff --git a/assets/css/components/_page.scss b/assets/css/components/_page.scss
index 435d696..67e5387 100644
--- a/assets/css/components/_page.scss
+++ b/assets/css/components/_page.scss
@@ -27,10 +27,6 @@
27 font-size: $h1-unscale-factor; 27 font-size: $h1-unscale-factor;
28 } 28 }
29 } 29 }
30
31 &--h1 + &--h1 {
32 margin-top: $line-height * $h1-unscale-factor;
33 }
34 30
35 &--h2::before { 31 &--h2::before {
36 content: '##'; 32 content: '##';
diff --git a/assets/css/style.scss b/assets/css/style.scss
index 60fa4ff..6ffab5f 100644
--- a/assets/css/style.scss
+++ b/assets/css/style.scss
@@ -2,8 +2,8 @@
2@import 'functions'; 2@import 'functions';
3@import 'basics'; 3@import 'basics';
4 4
5@import 'components/spacer'; 5//@import 'components/spacer';
6@import 'components/hlist'; 6//@import 'components/hlist';
7@import 'components/nav'; 7@import 'components/nav';
8@import 'components/page'; 8@import 'components/page';
9@import 'components/hero'; 9@import 'components/hero';
diff --git a/scripts/build_sass.sh b/scripts/build_sass.sh
index 2f3d169..c65389e 100755
--- a/scripts/build_sass.sh
+++ b/scripts/build_sass.sh
@@ -4,3 +4,4 @@ source "site.defaults.conf"
4 4
5echo -e "\033[0;32m[COMPILE ]\033[0m ${ASSETS_DIR}css/style.scss -> ${OUTPUT_DIR}style.css" 5echo -e "\033[0;32m[COMPILE ]\033[0m ${ASSETS_DIR}css/style.scss -> ${OUTPUT_DIR}style.css"
6sassc ${ASSETS_DIR}css/style.scss | node_modules/.bin/csso > "${OUTPUT_DIR}style.css" 6sassc ${ASSETS_DIR}css/style.scss | node_modules/.bin/csso > "${OUTPUT_DIR}style.css"
7#sassc ${ASSETS_DIR}css/style.scss > "${OUTPUT_DIR}style.css"