From b46f0c99bb6f73ddc2ecdc0e47655b7110251cc9 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 20 Aug 2020 00:14:07 +0200 Subject: viewer: moved scrollbar SCSS definition to its own file --- viewer/src/assets/scss/scrollbar.scss | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 viewer/src/assets/scss/scrollbar.scss (limited to 'viewer/src/assets/scss/scrollbar.scss') diff --git a/viewer/src/assets/scss/scrollbar.scss b/viewer/src/assets/scss/scrollbar.scss new file mode 100644 index 0000000..cfca929 --- /dev/null +++ b/viewer/src/assets/scss/scrollbar.scss @@ -0,0 +1,20 @@ +@import "~@/assets/scss/theme.scss"; + +// === Scrollbar styling + +.scrollbar { + overflow: auto; + scrollbar-color: $scrollbar-color transparent; + scrollbar-width: thin; + &::-webkit-scrollbar { + width: $scrollbar-width; + height: $scrollbar-width; + } + &::-webkit-scrollbar-corner { + background-color: transparent; + } + &::-webkit-scrollbar-thumb { + box-shadow: inset 0 0 1px black; + background-color: $scrollbar-color; + } +} -- cgit v1.2.3 From f89ed0bd94ea570d9e6533301783d13b13033db0 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 11 Sep 2020 20:10:56 +0200 Subject: viewer: PR #238 code review changes --- viewer/src/assets/scss/scrollbar.scss | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'viewer/src/assets/scss/scrollbar.scss') diff --git a/viewer/src/assets/scss/scrollbar.scss b/viewer/src/assets/scss/scrollbar.scss index cfca929..eb34d1e 100644 --- a/viewer/src/assets/scss/scrollbar.scss +++ b/viewer/src/assets/scss/scrollbar.scss @@ -1,3 +1,22 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2020 Pacien TRAN-GIRARD +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + @import "~@/assets/scss/theme.scss"; // === Scrollbar styling -- cgit v1.2.3 From 1e5a1a51d21d78a4a717e9434932be9da20d3115 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 11 Sep 2020 21:10:09 +0200 Subject: viewer: PR #238 code review changes (2nd) --- viewer/src/assets/scss/scrollbar.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'viewer/src/assets/scss/scrollbar.scss') diff --git a/viewer/src/assets/scss/scrollbar.scss b/viewer/src/assets/scss/scrollbar.scss index eb34d1e..a00b4c2 100644 --- a/viewer/src/assets/scss/scrollbar.scss +++ b/viewer/src/assets/scss/scrollbar.scss @@ -1,7 +1,7 @@ /* ldgallery - A static generator which turns a collection of tagged -- pictures into a searchable web gallery. -- --- Copyright (C) 2020 Pacien TRAN-GIRARD +-- Copyright (C) 2020 Guillaume FOUET -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as -- cgit v1.2.3