Making scroll theme agnostic

This commit is contained in:
Stamm 2020-03-12 13:03:56 +01:00
parent 4de6315dda
commit 36cee2c1f7
5 changed files with 30 additions and 29 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/theme",
"version": "1.2.16",
"version": "1.2.17",
"description": "",
"main": " ",
"files": [

View File

@ -48,4 +48,3 @@ $on-button: #000000 !default;
@import "./theme/_header.scss";
@import "./theme/_card.scss";
@import "./theme/_table.scss";
@import "./theme/_scroll.scss";

View File

@ -1,27 +1,29 @@
/* latin */
@font-face {
font-family: 'Roboto';
font-family: "Roboto";
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'), local('Roboto-Regular'), url(../Roboto-Regular.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
src: local("Roboto"), local("Roboto-Regular"),
url(../Roboto-Regular.woff2) format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
U+2215, U+FEFF, U+FFFD;
}
:root {
--primary: #1E88E5;
--primary: #1e88e5;
// 1e88e5 or 196eb9 => Needs further investigations
--on-primary: white;
--secondary: #d8701b;
--on-secondary: black;
--error: rgb(255, 0, 0);
--on-error: white;
--primary-transparent: #196eb917;
--success: #28a745;
--on-success: white;
}
$primary: var(--primary) !default;
@ -44,4 +46,5 @@ $on-success: var(--on-success) !default;
@import "./base/_header.scss";
@import "./base/_card.scss";
@import "./base/_grid.scss";
@import "./base/table.scss";
@import "./base/_table.scss";
@import "./base/_scroll";

19
src/base/_scroll.scss Normal file
View File

@ -0,0 +1,19 @@
::-webkit-scrollbar {
margin-left: 4px;
}
::-webkit-scrollbar-track {
background: rgba(127, 127, 127, 0.1);
}
::-webkit-scrollbar-thumb {
background: rgba(127, 127, 127, 0.2);
}
::-webkit-scrollbar-thumb:hover {
background: rgba(127, 127, 127, 0.25);
}
::-webkit-scrollbar-thumb:active {
background: rgba(127, 127, 127, 0.3);
}

View File

@ -1,20 +0,0 @@
::-webkit-scrollbar {
margin-left: 4px;
}
::-webkit-scrollbar-track {
background: red;
background: darken-brighten-color($background, 5%);
}
::-webkit-scrollbar-thumb {
background: darken-brighten-color($background, 20%);
}
::-webkit-scrollbar-thumb:hover {
background: darken-brighten-color($background, 25%);
}
::-webkit-scrollbar-thumb:active {
background: darken-brighten-color($background, 30%);
}