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:
@@ -188,7 +188,7 @@ const VaultPage = (props) => {
|
|||||||
<code>"word"</code> to specify an exact string.
|
<code>"word"</code> to specify an exact string.
|
||||||
</small>
|
</small>
|
||||||
<label>
|
<label>
|
||||||
Results per page
|
Results per page
|
||||||
<select ref={countRef} name="count" defaultValue={count}>
|
<select ref={countRef} name="count" defaultValue={count}>
|
||||||
<option value="10">10</option>
|
<option value="10">10</option>
|
||||||
<option value="20">20</option>
|
<option value="20">20</option>
|
||||||
@@ -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}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
&.renderer {
|
||||||
|
position : relative;
|
||||||
|
display : inline-block;
|
||||||
|
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;
|
||||||
|
|
||||||
#searchButton {
|
&::before,&::after {
|
||||||
position : absolute;
|
position : absolute;
|
||||||
right : 10px;
|
inset : 0;
|
||||||
bottom : 0;
|
padding-top : 2px;
|
||||||
|
text-align : center;
|
||||||
|
z-index : 5;
|
||||||
|
}
|
||||||
|
|
||||||
i { margin-left : 10px; }
|
&::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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user