generated from ztimson/template
Compare commits
2 Commits
7663899759
...
2.0.3
| Author | SHA1 | Date | |
|---|---|---|---|
| f018bae865 | |||
| 93f33cf4a5 |
@@ -18,6 +18,11 @@
|
|||||||
--page-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
|
--page-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:root .theme-dark {
|
||||||
|
--theme-background: #1a1a1a !important;
|
||||||
|
--theme-background-contrast: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
* { box-sizing: border-box; transition: var(--page-transition); }
|
* { box-sizing: border-box; transition: var(--page-transition); }
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/css-utils",
|
"name": "@ztimson/css-utils",
|
||||||
"version": "2.0.1",
|
"version": "2.0.3",
|
||||||
"description": "CSS Utility Classes",
|
"description": "CSS Utility Classes",
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
// Colors
|
// Colors
|
||||||
:root {
|
:root {
|
||||||
// Theme colors -- what ever you like
|
// Theme colors -- what ever you like
|
||||||
|
--theme-background: #fafafa;
|
||||||
|
--theme-background-contrast: black;
|
||||||
--theme-primary: #4979de;
|
--theme-primary: #4979de;
|
||||||
--theme-primary-contrast: black;
|
--theme-primary-contrast: black;
|
||||||
--theme-accent: #2caec0;
|
--theme-accent: #2caec0;
|
||||||
@@ -24,9 +26,6 @@
|
|||||||
|
|
||||||
// Light theme
|
// Light theme
|
||||||
&, .theme-light {
|
&, .theme-light {
|
||||||
--theme-background: #fafafa;
|
|
||||||
--theme-background-contrast: white;
|
|
||||||
|
|
||||||
--theme-surface: #ffffff;
|
--theme-surface: #ffffff;
|
||||||
--theme-border: #E5E7EB;
|
--theme-border: #E5E7EB;
|
||||||
--theme-muted: #6c757d;
|
--theme-muted: #6c757d;
|
||||||
@@ -38,9 +37,6 @@
|
|||||||
|
|
||||||
// Dark theme
|
// Dark theme
|
||||||
.theme-dark {
|
.theme-dark {
|
||||||
--theme-background: #1a1a1a;
|
|
||||||
--theme-background-contrast: black;
|
|
||||||
|
|
||||||
--theme-surface: #2e2e2e;
|
--theme-surface: #2e2e2e;
|
||||||
--theme-border: #374151;
|
--theme-border: #374151;
|
||||||
--theme-muted: #cccccc;
|
--theme-muted: #cccccc;
|
||||||
@@ -112,7 +108,7 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
.fix-scrollbar {
|
.fix-scrollbar {
|
||||||
* {
|
* {
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
scrollbar-color: var(--theme-primary) var(--theme-background);
|
scrollbar-color: var(--theme-surface) transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
*::-webkit-scrollbar {
|
*::-webkit-scrollbar {
|
||||||
@@ -121,17 +117,17 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
}
|
}
|
||||||
|
|
||||||
*::-webkit-scrollbar-track {
|
*::-webkit-scrollbar-track {
|
||||||
background: var(--theme-background);
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
*::-webkit-scrollbar-thumb {
|
*::-webkit-scrollbar-thumb {
|
||||||
background-color: var(--theme-primary);
|
background-color: var(--theme-surface);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: 2px solid var(--theme-background);
|
border: 2px solid var(--theme-surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
*::-webkit-scrollbar-thumb:hover {
|
*::-webkit-scrollbar-thumb:hover {
|
||||||
background-color: var(--theme-accent);
|
background-color: var(--theme-primary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user