Implement the toggle for capacity usage. (closes #156)

This commit is contained in:
Oliver-Akins 2024-04-17 22:31:45 -06:00
parent 6d41a33b0c
commit 48ceade1d1
5 changed files with 47 additions and 4 deletions

View file

@ -0,0 +1,24 @@
.dotdungeon.style-v3 {
input[type="checkbox"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: 2px;
margin: 0;
cursor: pointer;
background: var(--elevation-8dp-bg);
position: relative;
&:checked::before {
content: "";
background: var(--checkbox-checked);
border-radius: 3px;
$margin: 4px;
top: $margin;
bottom: $margin;
left: $margin;
right: $margin;
position: absolute;
}
}
}

View file

@ -5,6 +5,7 @@
/* Element-Styling */
@use "./elements/utilities.scss";
@use "./elements/button.scss";
@use "./elements/checkbox.scss";
@use "./elements/select.scss";
@use "./elements/text-input.scss";
@use "./elements/number-input.scss";

View file

@ -60,6 +60,11 @@
@extend %flex-col;
.capacity {
&--usage, &--quantity {
display: flex;
align-items: center;
}
&--calculated {
display: flex;
flex-direction: row;

View file

@ -4,4 +4,6 @@
--surface: #121212;
--on-surface: white;
--checkbox-checked: #00d300;
}