changed spacing and checkboxes
This commit is contained in:
@@ -38,12 +38,15 @@ const SelectList = (props) => {
|
|||||||
|
|
||||||
const Checkbox = (props) => {
|
const Checkbox = (props) => {
|
||||||
return (
|
return (
|
||||||
|
<div>
|
||||||
|
<span>{`${props.name}:`}</span>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value={props.parameter}
|
value={props.parameter}
|
||||||
defaultChecked={props.parameter}
|
defaultChecked={props.parameter}
|
||||||
onChange={(e) => props.onChange(e.target.checked)}
|
onChange={(e) => props.onChange(e.target.checked)}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -249,3 +249,16 @@
|
|||||||
border-width: 4px 4px 0;
|
border-width: 4px 4px 0;
|
||||||
border-top-color: #6c6c6c;
|
border-top-color: #6c6c6c;
|
||||||
}
|
}
|
||||||
|
span {
|
||||||
|
font-size: 1em;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
[type="checkbox"]:not(:checked),
|
||||||
|
[type="checkbox"]:checked {
|
||||||
|
transform: matrix(1.5, 0, 0, 1.5, 0, 1.5);
|
||||||
|
margin: 0.75em 1em;
|
||||||
|
}
|
||||||
|
[type="checkbox"]:checked {
|
||||||
|
filter: hue-rotate(40deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ export default function Amp(props) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
Distortion
|
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
name="Distortion"
|
||||||
parameter={parameters.distortion}
|
parameter={parameters.distortion}
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
dispatch(
|
dispatch(
|
||||||
@@ -118,8 +118,8 @@ export const VocoderAmp = (props) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
Distortion
|
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
name="Distortion"
|
||||||
parameter={parameters.distortion}
|
parameter={parameters.distortion}
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
dispatch(
|
dispatch(
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ export default function EG(props) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
EG Reset
|
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
name="EG Reset"
|
||||||
parameter={parameters.egReset}
|
parameter={parameters.egReset}
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
dispatch(
|
dispatch(
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ export default function LFO(props) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
Tempo Sync
|
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
name="Tempo Sync"
|
||||||
parameter={parameters.tempoSync}
|
parameter={parameters.tempoSync}
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
dispatch(
|
dispatch(
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
position: relative;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -15,10 +16,32 @@
|
|||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
.container > * {
|
.container > * {
|
||||||
margin: 2.5pt 0;
|
margin: 3pt 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
font-size: 1.5em;
|
||||||
|
line-height: 1.25em;
|
||||||
|
text-align: center;
|
||||||
|
background-color: white;
|
||||||
|
padding: 0 .25em 0.075em;
|
||||||
|
border-left: 1px solid slategrey;
|
||||||
|
border-right: 1px solid slategrey;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.container > .header {
|
||||||
|
position: absolute;
|
||||||
|
top: -7.5%;
|
||||||
|
left: 12%;
|
||||||
|
}
|
||||||
|
.horizontalContainer > .header, .patchesContainer > .header {
|
||||||
|
position: absolute;
|
||||||
|
top: -5.25%;
|
||||||
|
left: 6%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.horizontalContainer {
|
.horizontalContainer {
|
||||||
|
position: relative;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -32,6 +55,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.patchesContainer {
|
.patchesContainer {
|
||||||
|
position: relative;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -61,3 +85,4 @@
|
|||||||
.patchesContainer > .divider {
|
.patchesContainer > .divider {
|
||||||
width: 4px;
|
width: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -118,8 +118,8 @@ export const AudioIn = (props) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
HPF Gate
|
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
name="HPF Gate"
|
||||||
parameter={parameters.hpfGate}
|
parameter={parameters.hpfGate}
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
dispatch(
|
dispatch(
|
||||||
|
|||||||
Reference in New Issue
Block a user