Making scroll theme agnostic
This commit is contained in:
parent
4de6315dda
commit
36cee2c1f7
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hibas123/theme",
|
||||
"version": "1.2.16",
|
||||
"version": "1.2.17",
|
||||
"description": "",
|
||||
"main": " ",
|
||||
"files": [
|
||||
|
@ -48,4 +48,3 @@ $on-button: #000000 !default;
|
||||
@import "./theme/_header.scss";
|
||||
@import "./theme/_card.scss";
|
||||
@import "./theme/_table.scss";
|
||||
@import "./theme/_scroll.scss";
|
||||
|
@ -1,15 +1,18 @@
|
||||
/* 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;
|
||||
@ -21,7 +24,6 @@
|
||||
|
||||
--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
19
src/base/_scroll.scss
Normal 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);
|
||||
}
|
@ -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%);
|
||||
}
|
Loading…
Reference in New Issue
Block a user