use vars in more color styles
This commit is contained in:
parent
a601dde72b
commit
c3000f8a3a
@ -58,9 +58,9 @@ nav a, nav h1, nav label {
|
|||||||
#hamitems {
|
#hamitems {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 55px;
|
top: 43px;
|
||||||
right: 0;
|
right: 0;
|
||||||
background-color: black;
|
background-color: var(--nav-bg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
#hamitems a {
|
#hamitems a {
|
||||||
@ -79,12 +79,13 @@ nav a, nav h1, nav label {
|
|||||||
padding: 0 0.5em;
|
padding: 0 0.5em;
|
||||||
border: 0;
|
border: 0;
|
||||||
transition: height 250ms cubic-bezier(0.23, 1, 0.32, 1);
|
transition: height 250ms cubic-bezier(0.23, 1, 0.32, 1);
|
||||||
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#hamburger:checked ~ #hamitems a {
|
#hamburger:checked ~ #hamitems a {
|
||||||
height: 2.5em;
|
height: 2.5em;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
border: 1px solid #333;
|
|
||||||
transition: height 250ms cubic-bezier(0.23, 1, 0.32, 1);
|
transition: height 250ms cubic-bezier(0.23, 1, 0.32, 1);
|
||||||
|
visibility: visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,7 @@
|
|||||||
:root {
|
:root {
|
||||||
--fail-color: #f00;
|
--negative-color: #f00;
|
||||||
--success-color: #0f0;
|
--positive-color: #0f0;
|
||||||
|
--lightbg-text-color: black;
|
||||||
--main-bg-color: #404040;
|
--main-bg-color: #404040;
|
||||||
--main-text-color: white;
|
--main-text-color: white;
|
||||||
--main-card-bg-color: #202020;
|
--main-card-bg-color: #202020;
|
||||||
|
@ -4,8 +4,8 @@ export function dialog (header, body, callback = async (result, form) => {}) {
|
|||||||
<p class="w3-large" id="prompt" style="text-align: center;"></p>
|
<p class="w3-large" id="prompt" style="text-align: center;"></p>
|
||||||
<form method="dialog" class="input-grid" style="grid-template-columns: auto 1fr;" id="form"></form>
|
<form method="dialog" class="input-grid" style="grid-template-columns: auto 1fr;" id="form"></form>
|
||||||
<div class="w3-center w3-container">
|
<div class="w3-center w3-container">
|
||||||
<button value="cancel" form="form" class="w3-button w3-margin" style="background-color: #f00; color: black;" formnovalidate>CANCEL</button>
|
<button value="cancel" form="form" class="w3-button w3-margin" style="background-color: var(--negative-color, #f00); color: var(--lightbg-text-color, black);" formnovalidate>CANCEL</button>
|
||||||
<button value="confirm" form="form" class="w3-button w3-margin" style="background-color: #0f0; color: black;">CONFIRM</button>
|
<button value="confirm" form="form" class="w3-button w3-margin" style="background-color: var(--positive-color, #0f0); color: var(--lightbg-text-color, black);">CONFIRM</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
dialog.className = "w3-container w3-card w3-border-0";
|
dialog.className = "w3-container w3-card w3-border-0";
|
||||||
|
Loading…
Reference in New Issue
Block a user