Adds fancy scrollbar
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
--dimming-factor: 0.7; // Opacity for semi-transparent components
|
||||
|
||||
/* Settings for specific components */
|
||||
--scroll-bar-width: 8px;
|
||||
--item-group-padding: 5px; // Determines width of item-group outline
|
||||
--item-shadow: 1px 1px 2px #130f23;
|
||||
--item-hover-shadow: 1px 2px 4px #373737;
|
||||
@@ -74,4 +75,6 @@
|
||||
--config-settings-background: var(--background-darker);
|
||||
--toast-background: var(--primary);
|
||||
--toast-color: var(--background);
|
||||
--scroll-bar-color: var(--primary);
|
||||
--scroll-bar-background: var(--background-darker);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
|
||||
@import '@/styles/style-helpers.scss';
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inconsolata';
|
||||
src: url('./assets/fonts/Inconsolata-Light.ttf');
|
||||
@@ -8,6 +10,8 @@ html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
transition: all 1s;
|
||||
margin-top: -3px;
|
||||
@extend .scroll-bar;
|
||||
}
|
||||
|
||||
/* Default app font face */
|
||||
@@ -19,33 +23,3 @@ body, div, p, a, span, label, input, button {
|
||||
h1, h2, h3, h4, h5 {
|
||||
font-family: 'Inconsolata', sans-serif;
|
||||
}
|
||||
|
||||
.bold { font-weight: bold; }
|
||||
.light { font-weight: lighter; }
|
||||
.text-left { text-align: left;}
|
||||
.text-right { text-align: right;}
|
||||
.text-center { text-align: center;}
|
||||
.horizontal-center { margin: 0 auto; }
|
||||
.border-box { box-sizing: border-box; }
|
||||
|
||||
/* Overiding styles for the global toast component */
|
||||
.toast-message {
|
||||
background: var(--toast-background) !important;
|
||||
color: var(--toast-color) !important;
|
||||
border: 1px solid var(--toast-color) !important;
|
||||
border-radius: var(--curve-factor) !important;
|
||||
font-size: 1.25rem !important;
|
||||
}
|
||||
|
||||
.toast-error {
|
||||
background: var(--danger) !important;
|
||||
color: var(--white) !important;
|
||||
font-size: 1.25rem !important;
|
||||
}
|
||||
.toast-success {
|
||||
background: var(--success) !important;
|
||||
color: var(--white) !important;
|
||||
font-size: 1.25rem !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
44
src/styles/style-helpers.scss
Normal file
44
src/styles/style-helpers.scss
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
/* Fancy scrollbar */
|
||||
.scroll-bar {
|
||||
&::-webkit-scrollbar {
|
||||
width: var(--scroll-bar-width);
|
||||
height: var(--scroll-bar-width);
|
||||
}
|
||||
&::-webkit-scrollbar-track {
|
||||
border-radius: var(--curve-factor);
|
||||
background-color: var(--scroll-bar-background);
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: var(--scroll-bar-color);
|
||||
border-radius: var(--curve-factor);
|
||||
}
|
||||
}
|
||||
|
||||
/* Single-style helpers */
|
||||
.bold { font-weight: bold; }
|
||||
.light { font-weight: lighter; }
|
||||
.text-left { text-align: left;}
|
||||
.text-right { text-align: right;}
|
||||
.text-center { text-align: center;}
|
||||
.horizontal-center { margin: 0 auto; }
|
||||
.border-box { box-sizing: border-box; }
|
||||
|
||||
/* Overiding styles for the global toast component */
|
||||
.toast-message {
|
||||
background: var(--toast-background) !important;
|
||||
color: var(--toast-color) !important;
|
||||
border: 1px solid var(--toast-color) !important;
|
||||
border-radius: var(--curve-factor) !important;
|
||||
font-size: 1.25rem !important;
|
||||
}
|
||||
.toast-error {
|
||||
background: var(--danger) !important;
|
||||
color: var(--white) !important;
|
||||
font-size: 1.25rem !important;
|
||||
}
|
||||
.toast-success {
|
||||
background: var(--success) !important;
|
||||
color: var(--white) !important;
|
||||
font-size: 1.25rem !important;
|
||||
}
|
||||
Reference in New Issue
Block a user