summaryrefslogtreecommitdiff
path: root/themes/hugo-book/assets/_markdown.scss
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-09-20 22:27:35 +0000
committeraethrvmn <me@aethrvmn.gr>2025-09-20 22:27:35 +0000
commit9b5f3fad7068298265dbbc8a65077f7917a090a5 (patch)
tree0905b29eb7c03d6bc6e16dd1ebcd1ec9b6b83320 /themes/hugo-book/assets/_markdown.scss
parentsuper simple setup guide (diff)
updated hugo-book theme
Diffstat (limited to '')
-rw-r--r--themes/hugo-book/assets/_markdown.scss46
1 files changed, 23 insertions, 23 deletions
diff --git a/themes/hugo-book/assets/_markdown.scss b/themes/hugo-book/assets/_markdown.scss
index 2a95453..3f40f59 100644
--- a/themes/hugo-book/assets/_markdown.scss
+++ b/themes/hugo-book/assets/_markdown.scss
@@ -14,7 +14,7 @@
h4,
h5,
h6 {
- font-weight: normal;
+ font-weight: $body-font-weight;
line-height: 1;
margin-top: 1.5em;
margin-bottom: $padding-16;
@@ -32,19 +32,12 @@
}
}
- h4,
- h5,
- h6 {
- font-weight: bolder;
- }
-
- h5 {
- font-size: 0.875em;
- }
-
- h6 {
- font-size: 0.75em;
- }
+ h1 { font-size: $font-size-16 * 2; }
+ h2 { font-size: $font-size-16 * 1.5; }
+ h3 { font-size: $font-size-16 * 1.25; }
+ h4 { font-size: $font-size-16 * 1.125; }
+ h5 { font-size: $font-size-16 * 1; }
+ h6 { font-size: $font-size-16 * 0.875; }
b,
optgroup,
@@ -55,10 +48,10 @@
a {
text-decoration: none;
- &:hover {
+ &[href]:hover {
text-decoration: underline;
}
- &:visited {
+ &[href]:visited {
color: var(--color-visited-link);
}
}
@@ -78,8 +71,6 @@
}
pre {
- direction: ltr;
- unicode-bidi: embed;
padding: $padding-16;
background: var(--gray-100);
border-radius: $border-radius;
@@ -122,6 +113,7 @@
tr td {
padding: $padding-8 $padding-16;
border: $padding-1 solid var(--gray-200);
+ text-align: start;
}
tr:nth-child(2n) {
@@ -158,7 +150,6 @@
direction: ltr;
unicode-bidi: embed;
border-radius: $border-radius;
- overflow: hidden;
table tr {
td pre code > span {
@@ -186,23 +177,32 @@
padding: $padding-16;
margin: -$padding-16;
cursor: pointer;
+ list-style: none;
+
+ &::before {
+ content: "▸";
+ display: inline-block;
+ margin-inline-end: $padding-8;
+ transition: transform 0.1s ease-in-out;
+ }
}
&[open] summary {
margin-bottom: 0;
+
+ &::before {
+ transform: rotate(90deg);
+ }
}
}
figure {
margin: $padding-16 0;
- figcaption p {
- margin-top: 0;
- }
}
}
.markdown-inner {
- // Util class to remove extra margin in nested markdown content
+ // Utility class to remove extra margin in nested markdown content
> :first-child {
margin-top: 0;
}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.