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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork <68973000+moll-y@users.noreply.github.com>2021-06-12 12:32:54 +0300
committerGitHub <noreply@github.com>2021-06-12 12:32:54 +0300
commit58e8fadafe0df84da77d5c6f7d933cdc21a725cf (patch)
tree5ebf2dcbe2da743609be20575023cd90c5f5fdda /assets/scss/partials
parent2c0bf8c940a6b11ed1945b8f93174c3c02e3ab2c (diff)
feat: change horizontal scrollbar styles (#211)
* feat: change horizontal scrollbar styles Change the horizontal scrollbar styles in Archives page following the dark and light themes styles. This horizontal scrollbar is at the top of the Archives page. When I visit this page, the scrollbar stole my attention. Unfortunately, it's the client (our browser) who decides its styles; this change is introduced to avoid that situation. Co-authored-by: Miguel Angel <man98@me.com> * remove scrollbar height and border-radius In order to match the theme presentation (https://i.imgur.com/cCiHOGS.jpg), the previous defined `height: 7px` and `border-radius: 10px` for the scrollbar have been deleted. * fix: set the horizontal scrollbar's height and width to `auto` In Firefox the horizontal scrollbar looks very small. With a width set to `auto`, it looks bigger and better. In Chromium, without an automatic height, the new color changes do not appear. Now the horizontal scrollbar looks consistent in both chromium and firefox. * style: format list.scss Co-authored-by: Miguel Angel <man98@me.com> Co-authored-by: Jimmy Cai <github@jimmycai.com> Co-authored-by: Jimmy Cai <jimmehcai@gmail.com>
Diffstat (limited to 'assets/scss/partials')
-rw-r--r--assets/scss/partials/layout/list.scss18
1 files changed, 18 insertions, 0 deletions
diff --git a/assets/scss/partials/layout/list.scss b/assets/scss/partials/layout/list.scss
index 1a0e346..bcb276c 100644
--- a/assets/scss/partials/layout/list.scss
+++ b/assets/scss/partials/layout/list.scss
@@ -52,6 +52,24 @@
margin-bottom: var(--section-separation);
overflow-x: auto;
+ /* scrollbar styles for Firefox */
+ scrollbar-width: auto;
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
+
+ /* scrollbar styles for Chromium */
+ &::-webkit-scrollbar {
+ height: auto;
+ }
+
+ &::-webkit-scrollbar-thumb {
+ background-color: var(--scrollbar-thumb);
+ }
+
+ &::-webkit-scrollbar-track {
+ background-color: var(--scrollbar-track);
+ }
+ /**/
+
.article-list--tile {
display: flex;
padding-bottom: 15px;