0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 16:22:42 +00:00

change view mode toggles to indiv buttons

Rather than a single button with three states, it is three buttons.  Went with buttons with `role='radio'` rather than true radios mostly because that is what Radix does.
This commit is contained in:
Gazook89
2024-10-11 22:06:41 -05:00
parent 6cabdc0a67
commit 395f2d16fa
2 changed files with 33 additions and 12 deletions

View File

@@ -34,6 +34,10 @@
align-items : center;
}
.active {
background-color: #444;
}
.anchored-box {
color: #CCCCCC;
input[type='number']{
@@ -41,6 +45,12 @@
}
}
.radio-group:has(button[role='radio']){
display: flex;
border: 1px solid #333;
height: 100%;
}
input {
position : relative;
height : 1.5em;
@@ -90,7 +100,7 @@
}
button {
box-sizing : content-box;
box-sizing : border-box;
display : flex;
align-items : center;
justify-content : center;
@@ -107,7 +117,7 @@
}
&:hover { background-color : #444444; }
&:focus { outline : 1px solid #D3D3D3; }
&:focus { border : 1px solid #D3D3D3;outline: none;}
&:disabled {
color : #777777;
background-color : unset !important;