aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/_markdown.scss16
-rw-r--r--assets/_shortcode.scss10
-rw-r--r--assets/_utils.scss8
-rw-r--r--assets/book.scss14
4 files changed, 20 insertions, 28 deletions
diff --git a/assets/_markdown.scss b/assets/_markdown.scss
index 2844d22..466a1d5 100644
--- a/assets/_markdown.scss
+++ b/assets/_markdown.scss
@@ -8,12 +8,12 @@ $block-border-radius: 0.15rem;
h1, h2, h3, h4, h5 {
font-weight: 400;
line-height: 1.25;
+ }
- // remove padding at the beginning of page
- &> :first-child {
- margin-top: 0;
- line-height: 1em;
- }
+ // remove padding at the beginning of page
+ > :first-child {
+ margin-top: 0;
+ line-height: 1;
}
b, optgroup, strong {
@@ -72,4 +72,10 @@ $block-border-radius: 0.15rem;
background: $gray-100;
}
}
+
+ hr {
+ height: $padding-1;
+ border: none;
+ background: $gray-200;
+ }
}
diff --git a/assets/_shortcode.scss b/assets/_shortcode.scss
index 3174bc4..db62617 100644
--- a/assets/_shortcode.scss
+++ b/assets/_shortcode.scss
@@ -1,10 +1,10 @@
@import "variables";
.markdown-inner {
- :first-child {
+ > :first-child {
margin-top: 0;
}
- :last-child {
+ > :last-child {
margin-bottom: 0;
}
}
@@ -50,3 +50,9 @@
display: block;
}
}
+
+.book-columns > {
+ div + div {
+ margin-left: $padding-16 * 2;
+ }
+}
diff --git a/assets/_utils.scss b/assets/_utils.scss
index 1474bec..62085d1 100644
--- a/assets/_utils.scss
+++ b/assets/_utils.scss
@@ -34,14 +34,6 @@
margin: 0 auto;
}
-.mr-auto {
- margin-right: auto;
-}
-
-.hide {
- display: none;
-}
-
@mixin fixed {
position: fixed;
top: 0;
diff --git a/assets/book.scss b/assets/book.scss
index 0a3ff4b..1e8ea26 100644
--- a/assets/book.scss
+++ b/assets/book.scss
@@ -149,21 +149,9 @@ ul.pagination {
}
}
-.book-git-footer {
- display: flex;
- margin-top: $padding-16;
- font-size: $font-size-14;
- align-items: baseline;
-
- img {
- width: $font-size-14;
- vertical-align: bottom;
- }
-}
-
.book-footer {
display: flex;
- margin-top: $padding-16;
+ padding-top: $padding-16;
font-size: $font-size-14;
align-items: baseline;