pads: add pips
This commit is contained in:
parent
e38c5dd45f
commit
687358ad03
3 changed files with 126 additions and 121 deletions
|
|
@ -2,11 +2,66 @@
|
|||
width:200rem;
|
||||
height:230rem;
|
||||
padding:1rem;
|
||||
|
||||
.label {
|
||||
flex-shrink: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.pad {
|
||||
height:100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
> .input {
|
||||
height: 25rem;
|
||||
line-height: 25rem;
|
||||
flex:initial!important;
|
||||
display: block;
|
||||
flex-shrink: 0!important;
|
||||
background: transparent!important;
|
||||
border: 0!important;
|
||||
}
|
||||
> .wrapper {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background:var(--color-track);
|
||||
border: 1rem solid var(--color-bg);
|
||||
|
||||
> canvas {
|
||||
width:100%;
|
||||
height:100%;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
}
|
||||
.fader {
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
width:100%;
|
||||
height:100%;
|
||||
z-index: 0;
|
||||
--color-knob:transparent;
|
||||
--color-gauge:transparent;
|
||||
box-shadow: none;
|
||||
border: 0;
|
||||
* {
|
||||
background: transparent!important;
|
||||
|
||||
}
|
||||
.wrapper {
|
||||
border:none;
|
||||
}
|
||||
.input {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.panel:not(.tab) > .xy-container,
|
||||
|
|
@ -24,59 +79,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.pad {
|
||||
height:100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
> .input {
|
||||
height: 25rem;
|
||||
line-height: 25rem;
|
||||
flex:initial!important;
|
||||
display: block;
|
||||
flex-shrink: 0!important;
|
||||
background: transparent!important;
|
||||
border: 0!important;
|
||||
}
|
||||
> .wrapper {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background:var(--color-track);
|
||||
border: 1rem solid var(--color-bg);
|
||||
|
||||
> canvas {
|
||||
width:100%;
|
||||
height:100%;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
}
|
||||
.fader {
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
width:100%;
|
||||
height:100%;
|
||||
z-index: 0;
|
||||
--color-knob:transparent;
|
||||
--color-gauge:transparent;
|
||||
box-shadow: none;
|
||||
border: 0;
|
||||
* {
|
||||
background: transparent!important;
|
||||
|
||||
}
|
||||
.wrapper {
|
||||
border:none;
|
||||
}
|
||||
.input {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rgb-container {
|
||||
.pad {
|
||||
> .wrapper {
|
||||
|
|
@ -127,13 +129,10 @@
|
|||
|
||||
.multixy-container {
|
||||
> .pad {
|
||||
--point-size:10rem;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 12rem;
|
||||
|
||||
> .wrapper {
|
||||
padding: calc(var(--point-size) + 1rem);
|
||||
|
||||
> canvas {
|
||||
top:0;
|
||||
|
|
@ -141,42 +140,30 @@
|
|||
}
|
||||
.handle {
|
||||
position: absolute;
|
||||
top: calc( var(--point-size) + 1rem);
|
||||
left: calc( var(--point-size) + 1rem);
|
||||
right: calc( var(--point-size) + 1rem);
|
||||
bottom:calc( var(--point-size) + 1rem);
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom:0;
|
||||
cursor: -webkit-grab;
|
||||
z-index: 1;
|
||||
&.active {
|
||||
pointer-events: none;
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top: calc( -1 * var(--point-size));
|
||||
left: calc( -1 * var(--point-size));
|
||||
right: calc( -1 * var(--point-size));
|
||||
bottom:calc( -1 * var(--point-size));
|
||||
}
|
||||
}
|
||||
> .pad {
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
width:calc(100% - 2 * var(--point-size) - 2rem);
|
||||
height:calc(100% - 2 * var(--point-size) - 2rem);
|
||||
.wrapper {
|
||||
border:0;
|
||||
background: transparent;
|
||||
}
|
||||
canvas {
|
||||
border:0;
|
||||
left:0;
|
||||
}
|
||||
.input {
|
||||
display: none;
|
||||
}
|
||||
&:not(:nth-child(2)) {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue