From fcd5d2807d2bab68c6776e031e85d65fe88a6f7a Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 16 Feb 2022 00:39:14 +0000
Subject: [PATCH] feat: dynamically fetch indices
---
assets/base.scss | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/assets/base.scss b/assets/base.scss
index dcb0ae7..6f47da3 100644
--- a/assets/base.scss
+++ b/assets/base.scss
@@ -6,7 +6,7 @@
--lt-colours-gray: var(--outlinegray) !important;
}
-h1, h2, h3, h4, ol, ul, thead {
+h1, h2, h3, h4, h5, h6, ol, ul, thead {
font-family: Inter;
color: var(--dark);
font-weight: revert;
@@ -81,10 +81,6 @@
line-height: 1.5em;
}
-h2, h3 {
- opacity: 0.9;
-}
-
blockquote {
margin-left: 0em;
border-left: 3px solid var(--secondary);
@@ -229,6 +225,13 @@
html {
scroll-behavior: smooth;
+
+ &:lang(ar) {
+ & p, & h1, & h2, & h3, article {
+ direction: rtl;
+ text-align: right;
+ }
+ }
}
body {
@@ -468,7 +471,8 @@
z-index: 999;
position: absolute;
width: 15em;
- display: inline;
+ display: inline-block;
+ visibility: hidden;
background-color: var(--light);
padding: 1em;
border: 1px solid var(--outlinegray);
@@ -478,9 +482,11 @@
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
transition-delay: 0.3s;
+ user-select: none;
&.visible {
opacity: 1;
+ visibility: visible;
transform: translate(-50%, 20%);
}
@@ -492,4 +498,4 @@
margin: 0;
font-weight: 400;
}
-}
\ No newline at end of file
+}
--
Gitblit v1.10.0