0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-15 21:22:43 +00:00

better checkboxes and linting

This commit is contained in:
Víctor Losada Hernández
2024-07-25 23:48:37 +02:00
parent 3e2c2de269
commit c1dc712542
2 changed files with 72 additions and 20 deletions

View File

@@ -198,12 +198,18 @@ const VaultPage = (props) => {
</label> </label>
<label> <label>
<input ref={v3Ref} type="checkbox" defaultChecked={v3} /> <input
className='renderer'
ref={v3Ref}
type="checkbox"
defaultChecked={v3}
/>
Search for v3 brews Search for v3 brews
</label> </label>
<label> <label>
<input <input
className='renderer'
ref={legacyRef} ref={legacyRef}
type="checkbox" type="checkbox"
defaultChecked={legacy} defaultChecked={legacy}

View File

@@ -33,7 +33,7 @@ body {
} }
.content { .content {
background: #2C3E50; background : #2C3E50;
.dataGroup { .dataGroup {
width : 100%; width : 100%;
@@ -55,18 +55,66 @@ body {
.formContents { .formContents {
display : flex; display : flex;
flex-direction : column; flex-direction : column;
}
label { margin : 10px 0; } label {
display : flex;
align-items : center;
margin : 10px 0;
}
select { margin : 0 10px; }
input { margin : 0 10px; } input {
margin : 0 10px;
#searchButton { &.renderer {
position : absolute; position : relative;
right : 10px; display : inline-block;
bottom : 0; width : 50px;
height : 30px;
font-family : 'WalterTurncoat';
font-size : 20px;
font-weight : 800;
color : white;
letter-spacing : 2px;
appearance : none;
background : red;
isolation : isolate;
border-radius : 5px;
i { margin-left : 10px; } &::before,&::after {
position : absolute;
inset : 0;
padding-top : 2px;
text-align : center;
z-index : 5;
}
&::before {
display : block;
content : 'No';
}
&::after {
display : none;
content : 'Yes';
}
&:checked {
background : green;
&::before { display : none; }
&::after { display : block; }
}
}
}
#searchButton {
position : absolute;
right : 10px;
bottom : 0;
i { margin-left : 10px; }
}
} }
} }
@@ -163,7 +211,7 @@ body {
} }
.info { .info {
font-family : "ScalySansRemake"; font-family : 'ScalySansRemake';
font-size : 1.2em; font-size : 1.2em;
>span { >span {
@@ -194,12 +242,12 @@ body {
.pageNumber { .pageNumber {
margin-inline : 1vw; margin-inline : 1vw;
font-family : "Open Sans"; font-family : 'Open Sans';
font-weight : 900; font-weight : 900;
color : white; color : white;
text-underline-position : under; text-underline-position : under;
text-wrap : nowrap;
cursor : pointer; cursor : pointer;
text-wrap : nowrap;
&.currentPage { &.currentPage {
color : gold; color : gold;
@@ -243,16 +291,14 @@ body {
} }
// media query for when the page is smaller than 1079 px in width // media query for when the page is smaller than 1079 px in width
@media screen and (max-width: 1079px) { @media screen and (max-width : 1079px) {
.vaultPage .content { .vaultPage .content {
.brewLookup { .dataGroup.form .brewLookup { padding : 1px 20px 20px 10px; }
padding:0 20px 20px 10px;
}
.dataGroup.resultsContainer .foundBrews .brewItem { .dataGroup.resultsContainer .foundBrews .brewItem {
width : 100%; width : 100%;
margin-inline : auto; margin-inline : auto;
} }
} }
} }