From b2555ced61628008e9a1321921376c3f9fb53791 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 14 Jul 2022 19:02:54 +0000
Subject: [PATCH] feat: add description section to section/term/taxonomies, fix header margin
---
assets/styles/base.scss | 52 ++++++++++++++++++++++++++++++----------------------
1 files changed, 30 insertions(+), 22 deletions(-)
diff --git a/assets/styles/base.scss b/assets/styles/base.scss
index cec7b91..03561f7 100644
--- a/assets/styles/base.scss
+++ b/assets/styles/base.scss
@@ -169,7 +169,7 @@
background-color: transparent !important;
}
- & a[href$="#"] {
+ & a[href$="#"], &.active a {
opacity: 0.2;
}
}
@@ -177,6 +177,7 @@
article {
& > h1 {
+ margin-top: 2em;
font-size: 2em;
}
@@ -498,34 +499,41 @@
margin-top: 2em;
padding-left: 0;
- & > li {
- margin-bottom: 1em;
+}
- & > .section {
- display: flex;
- align-items: center;
-
- & h3 > a {
- font-weight: 700;
- margin: 0;
- }
-
- & p {
- margin: 0;
- padding-right: 1em;
- flex-basis: 6em;
+.section-li {
+ margin-bottom: 1em;
+
+ & > .section {
+ display: flex;
+ align-items: center;
+
+ @media all and (max-width: 600px) {
+ & .tags {
+ display: none;
}
}
- & h3 {
- opacity: 1;
+ & h3 > a {
font-weight: 700;
- margin: 0em;
+ margin: 0;
}
+
+ & p {
+ margin: 0;
+ padding-right: 1em;
+ flex-basis: 6em;
+ }
+ }
- & .meta {
- opacity: 0.6;
- }
+ & h3 {
+ opacity: 1;
+ font-weight: 700;
+ margin: 0em;
+ }
+
+ & .meta {
+ opacity: 0.6;
}
}
--
Gitblit v1.10.0