From f195cab1f6230bc5b98e6368983dd148dea115df Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 30 Apr 2022 22:54:58 +0200 Subject: [PATCH] Customizacja scrollbara --- src/components/InputsSection.vue | 2 +- src/components/TrainImage.vue | 163 +++++++++++++++++++++++++++++++ src/styles/global.scss | 15 +++ 3 files changed, 179 insertions(+), 1 deletion(-) create mode 100644 src/components/TrainImage.vue diff --git a/src/components/InputsSection.vue b/src/components/InputsSection.vue index c548dca..801b69f 100644 --- a/src/components/InputsSection.vue +++ b/src/components/InputsSection.vue @@ -122,7 +122,7 @@ + + diff --git a/src/styles/global.scss b/src/styles/global.scss index 7038f95..1f90002 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -4,6 +4,21 @@ $bgColor: #2C3149; $textColor: #fff; $accentColor: #FFD600; +::-webkit-scrollbar { + width: 0.5rem; + height: 0.5rem; + + &-track { + background: #222; + border-radius: 0.5rem; + } + + &-thumb { + border-radius: 1rem; + background: #777; + } +} + body, html { margin: 0;