From a275123be2b1d528dbde23beb9880933c4e22c3e Mon Sep 17 00:00:00 2001
From: DhammaCharts <100090806+DhammaCharts@users.noreply.github.com>
Date: Thu, 02 Jun 2022 07:35:28 +0000
Subject: [PATCH] better font behaviour
---
assets/styles/base.scss | 96 ++++++++++++++++++++++++++++++------------------
1 files changed, 60 insertions(+), 36 deletions(-)
diff --git a/assets/styles/base.scss b/assets/styles/base.scss
index 0c7d957..1c353f3 100644
--- a/assets/styles/base.scss
+++ b/assets/styles/base.scss
@@ -12,6 +12,19 @@
font-weight: revert;
margin: revert;
padding: revert;
+
+ &:hover > .hanchor {
+ opacity: 1;
+ }
+}
+
+.hanchor {
+ font-family: Inter;
+ margin-left: -1em;
+ opacity: 0.3;
+ transition: opacity 0.3s ease;
+ color: var(--secondary);
+
}
p, ul, text {
@@ -158,34 +171,6 @@
opacity: 0.7;
}
- & > .tags {
- list-style: none;
- padding-left: 0;
-
- & .meta {
- & > h1 {
- margin: 0;
- }
- & > p {
- margin: 0;
- }
- }
-
- & > li {
- display: inline-block;
- }
- & > li > a {
- border-radius: 8px;
- border: var(--outlinegray) 1px solid;
- padding: 0.2em 0.5em;
- &::before {
- content: "#";
- margin-right: 0.3em;
- color: var(--outlinegray);
- }
- }
- }
-
& a {
font-family: Source Sans Pro;
font-weight: 600;
@@ -209,6 +194,36 @@
}
}
+.tags {
+ list-style: none;
+ padding-left: 0;
+
+ & .meta {
+ & > h1 {
+ margin: 0;
+ }
+ & > p {
+ margin: 0;
+ }
+ }
+
+ & > li {
+ display: inline-block;
+ margin: 0.4em 0;
+ }
+
+ & > li > a {
+ border-radius: 8px;
+ border: var(--outlinegray) 1px solid;
+ padding: 0.2em 0.5em;
+ &::before {
+ content: "#";
+ margin-right: 0.3em;
+ color: var(--outlinegray);
+ }
+ }
+}
+
.backlinks a {
font-weight: 600;
font-size: 0.9rem;
@@ -329,6 +344,13 @@
& #graph-container {
border: var(--outlinegray) 1px solid;
border-radius: 5px;
+ box-sizing: border-box;
+ min-height: 250px;
+
+ & > svg {
+ margin-bottom: -5px;
+
+ }
}
}
@@ -421,7 +443,7 @@
}
& > #results-container {
- & > .result-card {
+ & .result-card {
padding: 1em;
cursor: pointer;
transition: background 0.2s ease;
@@ -458,17 +480,17 @@
& > h3, & > p {
margin: 0;
}
-
- & .search-highlight {
- background-color: #afbfc966;
- padding: 0.05em 0.2em;
- border-radius: 3px;
- }
}
}
}
}
+.search-highlight {
+ background-color: #afbfc966;
+ padding: 0.05em 0.2em;
+ border-radius: 3px;
+}
+
.section-ul {
list-style: none;
padding-left: 0;
@@ -549,7 +571,7 @@
font-size: 0.8rem;
}
- & > p {
+ & > p, & > a {
margin: 0;
font-weight: 400;
user-select: none;
@@ -569,3 +591,5 @@
padding: 0 1em;
}
}
+
+
--
Gitblit v1.10.0