aboutsummaryrefslogtreecommitdiff
path: root/src/site/assets
diff options
context:
space:
mode:
authorPitu <[email protected]>2020-04-11 00:36:14 +0900
committerPitu <[email protected]>2020-04-11 00:36:14 +0900
commit3fb303380e2f284e2a64b17020e280bf7847356c (patch)
tree175c0cf7bfa11f8d386b5e3ca5d9da608f105816 /src/site/assets
parentchore: update deps (diff)
downloadhost.fuwn.me-3fb303380e2f284e2a64b17020e280bf7847356c.tar.xz
host.fuwn.me-3fb303380e2f284e2a64b17020e280bf7847356c.zip
chore: make use of sass
Diffstat (limited to 'src/site/assets')
-rw-r--r--src/site/assets/styles/style.scss21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/site/assets/styles/style.scss b/src/site/assets/styles/style.scss
index 6486878..c9bf290 100644
--- a/src/site/assets/styles/style.scss
+++ b/src/site/assets/styles/style.scss
@@ -23,21 +23,12 @@ h4 {
line-height: 1.25em;
}
-.mt1 { margin-top: 1em; }
-.mt2 { margin-top: 2em; }
-.mt3 { margin-top: 3em; }
-.mt4 { margin-top: 4em; }
-.mt5 { margin-top: 5em; }
-.mt6 { margin-top: 6em; }
-.mt7 { margin-top: 7em; }
-
-.mb1 { margin-bottom: 1em; }
-.mb2 { margin-bottom: 2em; }
-.mb3 { margin-bottom: 3em; }
-.mb4 { margin-bottom: 4em; }
-.mb5 { margin-bottom: 5em; }
-.mb6 { margin-bottom: 6em; }
-.mb7 { margin-bottom: 7em; }
+@for $i from 1 through 10 {
+ .mt#{$i} { margin-top: $i + em; }
+ .mb#{$i} { margin-bottom: $i + em; }
+ .ml#{$i} { margin-left: $i + em; }
+ .mr#{$i} { margin-right: $i + em; }
+}
.text-center {
text-align: center;