Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/queensferryme/hugo-theme-texify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQueensferry <queensferry.me@gmail.com>2020-07-01 11:09:06 +0300
committerQueensferry <queensferry.me@gmail.com>2020-07-01 11:09:06 +0300
commitd258a356bf11e4ec87eebe6254d4dd5a0126abbb (patch)
treea6cd21eb239aba702a71881afc0a3f281a345e40
parentec67735c214f9fcbb86f1f2284621948b98775f5 (diff)
feat: custom scrollbar
-rw-r--r--static/css/common.css14
-rw-r--r--static/css/content.css3
2 files changed, 15 insertions, 2 deletions
diff --git a/static/css/common.css b/static/css/common.css
index aedf3a5..2b419fd 100644
--- a/static/css/common.css
+++ b/static/css/common.css
@@ -82,6 +82,19 @@ body {
text-decoration: underline;
}
+::-webkit-scrollbar {
+ height: 8px;
+ width: 8px;
+}
+
+::-webkit-scrollbar-thumb {
+ background-color: #AAAAAA;
+}
+
+::-webkit-scrollbar-thumb:hover {
+ background-color: #888888;
+}
+
/* header */
#header {
@@ -140,4 +153,3 @@ body {
#footer .footnote {
text-align: center;
}
-
diff --git a/static/css/content.css b/static/css/content.css
index 6bb8e8c..413f449 100644
--- a/static/css/content.css
+++ b/static/css/content.css
@@ -68,6 +68,7 @@
background-color: #F5F5F5;
border-radius: .2rem;
font-family: 'Latin Modern Mono', Courier, monospace;
+ margin-top: .5rem;
overflow-x: auto;
padding: .5rem;
}
@@ -77,7 +78,7 @@
}
.content td, .content th {
- border: #575c61 1px solid;
+ border: #575C61 1px solid;
padding: .1rem .5rem;
}