mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-23 04:34:44 +03:00
♻️ Ensures all colors are using variables
This commit is contained in:
parent
9f70181422
commit
3d342bb43d
@ -137,6 +137,7 @@ export default {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
span.text {
|
span.text {
|
||||||
|
position: absolute;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
transition: 1s;
|
transition: 1s;
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -35,9 +35,9 @@ footer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
footer a{
|
footer a{
|
||||||
color: var(--medium-grey);
|
color: var(--footer-text-color);
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--primary);
|
color: var(--footer-text-color-link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,18 +36,17 @@ nav {
|
|||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: var(--curve-factor);
|
border-radius: var(--curve-factor);
|
||||||
background: #607d8b33;
|
|
||||||
-webkit-box-shadow: 1px 1px 2px #232323;
|
-webkit-box-shadow: 1px 1px 2px #232323;
|
||||||
box-shadow: 1px 1px 2px #232323;
|
box-shadow: 1px 1px 2px #232323;
|
||||||
color: var(--primary);
|
color: var(--nav-link-text-color);
|
||||||
|
background: var(--nav-link-background-color);
|
||||||
|
border: 1px solid var(--nav-link-border-color);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
&:hover {
|
&.router-link-active, &:hover {
|
||||||
background: #607d8b1c;
|
color: var(--nav-link-text-color-hover);
|
||||||
box-shadow: 1px 4px 3px #232323;
|
background: var(--nav-link-background-color-hover);
|
||||||
|
border: 1px solid var(--nav-link-border-color-hover);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.router-link-active {
|
|
||||||
border: 1px solid var(--primary);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -22,12 +22,12 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
h1 {
|
h1 {
|
||||||
color: var(--primary);
|
color: var(--heading-text-color);
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
span.subtitle {
|
span.subtitle {
|
||||||
color: var(--primary);
|
color: var(--heading-text-color);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
text-shadow: 1px 1px 2px #130f23;
|
text-shadow: 1px 1px 2px #130f23;
|
||||||
opacity: var(--dimming-factor);
|
opacity: var(--dimming-factor);
|
||||||
|
@ -84,7 +84,7 @@ export default {
|
|||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: var(--curve-factor);
|
border-radius: var(--curve-factor);
|
||||||
background: var(--background);
|
background: var(--search-field-background);
|
||||||
color: var(--settings-text-color);
|
color: var(--settings-text-color);
|
||||||
border: 1px solid var(--outline-color);
|
border: 1px solid var(--outline-color);
|
||||||
&:focus {
|
&:focus {
|
||||||
|
@ -31,6 +31,13 @@
|
|||||||
--item-group-shadow: var(--item-shadow);
|
--item-group-shadow: var(--item-shadow);
|
||||||
|
|
||||||
/* Specific components, using variables allows them to be overridden individually */
|
/* Specific components, using variables allows them to be overridden individually */
|
||||||
|
--heading-text-color: var(--primary);
|
||||||
|
--nav-link-text-color: var(--primary);
|
||||||
|
--nav-link-background-color: #607d8b33;
|
||||||
|
--nav-link-text-color-hover: var(--primary);
|
||||||
|
--nav-link-background-color-hover: #607d8b33;
|
||||||
|
--nav-link-border-color: transparent;
|
||||||
|
--nav-link-border-color-hover: var(--primary);
|
||||||
--item-text-color: var(--primary);
|
--item-text-color: var(--primary);
|
||||||
--item-group-outer-background: var(--primary);
|
--item-group-outer-background: var(--primary);
|
||||||
--item-group-heading-text-color: var(--item-group-background);
|
--item-group-heading-text-color: var(--item-group-background);
|
||||||
@ -38,4 +45,7 @@
|
|||||||
--settings-background: var(--background);
|
--settings-background: var(--background);
|
||||||
--settings-text-color: var(--primary);
|
--settings-text-color: var(--primary);
|
||||||
--search-container-background: var(--background-darker);
|
--search-container-background: var(--background-darker);
|
||||||
|
--search-field-background: var(--background);
|
||||||
|
--footer-text-color: var(--medium-grey);
|
||||||
|
--footer-text-color-link: var(--primary);
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,8 @@ html[data-theme='thebe'] {
|
|||||||
--item-background-hover: #060913;
|
--item-background-hover: #060913;
|
||||||
--item-hover-shadow: 0 1px 3px #9660ecb3, 0 1px 2px #9660ecbf;
|
--item-hover-shadow: 0 1px 3px #9660ecb3, 0 1px 2px #9660ecbf;
|
||||||
--primary: #9660ec;
|
--primary: #9660ec;
|
||||||
|
--item-group-outer-background: #9660EC
|
||||||
|
linear-gradient(45deg, #9660ec 2%,#5f60ea 51%,#9660ec 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-theme='dracula'] {
|
html[data-theme='dracula'] {
|
||||||
@ -38,17 +40,23 @@ html[data-theme='dracula'] {
|
|||||||
|
|
||||||
html[data-theme='bee'] {
|
html[data-theme='bee'] {
|
||||||
--primary: #c3eb5c;
|
--primary: #c3eb5c;
|
||||||
|
--item-background: #1c2636;
|
||||||
--item-group-background: #0b1021;
|
--item-group-background: #0b1021;
|
||||||
|
--nav-link-background-color: #0b1021;
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-theme='raspberry-jam'] {
|
html[data-theme='raspberry-jam'] {
|
||||||
--primary: #eb2d6c;
|
--primary: #eb2d6c;
|
||||||
|
--item-background: #1c2636;
|
||||||
--item-group-background: #0b1021;
|
--item-group-background: #0b1021;
|
||||||
|
--nav-link-background-color: #0b1021;
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-theme='tiger'] {
|
html[data-theme='tiger'] {
|
||||||
--primary: #f58233;
|
--primary: #f58233;
|
||||||
|
--item-background: #1c2636;
|
||||||
--item-group-background: #0b1021;
|
--item-group-background: #0b1021;
|
||||||
|
--nav-link-background-color: #0b1021;
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-theme='matrix-red'] {
|
html[data-theme='matrix-red'] {
|
||||||
@ -138,6 +146,33 @@ html[data-theme='material'] {
|
|||||||
--item-icon-transform-hover: drop-shadow(1px 3px 2px var(--transparent-30)) saturate(2);
|
--item-icon-transform-hover: drop-shadow(1px 3px 2px var(--transparent-30)) saturate(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html[data-theme='material-dark'] {
|
||||||
|
--primary: #08B0BB;
|
||||||
|
--settings-text-color: #08B0BB;
|
||||||
|
--background: #39434C;
|
||||||
|
--background-darker: #08B0BB;
|
||||||
|
--settings-background: #092b3a;
|
||||||
|
--item-group-background: #333C43;
|
||||||
|
--item-background: #414B55;
|
||||||
|
--item-background-hover: #414B55;
|
||||||
|
--settings-background: #131a1f;
|
||||||
|
--search-container-background: #131a1f;
|
||||||
|
--search-field-background: #39434c;
|
||||||
|
--heading-text-color: #131a1f;
|
||||||
|
--nav-link-text-color: #08B0BB;
|
||||||
|
--nav-link-background-color: #131a1f;
|
||||||
|
--nav-link-text-color-hover: #08B0BB;
|
||||||
|
--nav-link-background-color-hover: #131a1fc7;
|
||||||
|
--nav-link-border-color-hover: transparent;
|
||||||
|
--curve-factor: 2px;
|
||||||
|
--curve-factor-navbar: 0;
|
||||||
|
--item-group-padding: 5px 0 0;
|
||||||
|
--item-shadow: 2px 2px 3px #00000082, 0 1px 10px #00000040;
|
||||||
|
--item-hover-shadow: 4px 4px 3px #00000082, 0 1px 10px #00000040;
|
||||||
|
--item-icon-transform: drop-shadow(1px 2px 1px var(--transparent-30)) saturate(0.65);
|
||||||
|
--item-icon-transform-hover: drop-shadow(1px 3px 2px var(--transparent-30)) saturate(2);
|
||||||
|
}
|
||||||
|
|
||||||
html[data-theme='colorful'] {
|
html[data-theme='colorful'] {
|
||||||
--primary: #e8eae1;
|
--primary: #e8eae1;
|
||||||
--background: #0b1021;
|
--background: #0b1021;
|
||||||
@ -161,5 +196,6 @@ html[data-theme='colorful'] {
|
|||||||
background: currentColor;
|
background: currentColor;
|
||||||
span { color: #05070e; }
|
span { color: #05070e; }
|
||||||
svg path { fill: #05070e; }
|
svg path { fill: #05070e; }
|
||||||
|
i.fas, i.fab, i.far, i.fal, i.fad { color: #05070e; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -18,6 +18,7 @@ module.exports = {
|
|||||||
'callisto',
|
'callisto',
|
||||||
'thebe',
|
'thebe',
|
||||||
'material',
|
'material',
|
||||||
|
'material-dark',
|
||||||
'dracula',
|
'dracula',
|
||||||
'matrix',
|
'matrix',
|
||||||
'matrix-red',
|
'matrix-red',
|
||||||
|
@ -169,6 +169,11 @@ export default {
|
|||||||
.item-group-container {
|
.item-group-container {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 1200px;
|
||||||
|
@include monitor-up {
|
||||||
|
max-width: 1400px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Options for alternate layouts, triggered by buttons */
|
/* Options for alternate layouts, triggered by buttons */
|
||||||
&.orientation-horizontal {
|
&.orientation-horizontal {
|
||||||
|
Loading…
Reference in New Issue
Block a user