plots: testing a glass effect to differentiate non-interactable widgets
This commit is contained in:
parent
8b59296010
commit
b3c82251f9
4 changed files with 29 additions and 2 deletions
|
|
@ -61,6 +61,25 @@
|
|||
}
|
||||
}
|
||||
|
||||
.glass-effect {
|
||||
position: relative;
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background: radial-gradient(ellipse farthest-side at center top, var(--color-custom), var(--color-track));
|
||||
background-size: 150% 150%;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center top;
|
||||
opacity: .15;
|
||||
z-index: 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@import 'widgets/fader';
|
||||
@import 'widgets/knob';
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
height:100%;
|
||||
background: var(--color-track);
|
||||
border:1rem solid var(--color-bg);
|
||||
@extend .glass-effect;
|
||||
.input {
|
||||
background: transparent!important;
|
||||
border: 0!important;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
background:var(--color-track);
|
||||
border: 1rem solid var(--color-bg);
|
||||
touch-action: none;
|
||||
|
||||
|
||||
> canvas {
|
||||
width:100%;
|
||||
height:100%;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@
|
|||
border-radius: 2rem;
|
||||
box-shadow: inset 0 0 10rem var(--color-track);
|
||||
}
|
||||
@extend .glass-effect;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -35,9 +37,9 @@
|
|||
display: flex;
|
||||
flex-direction: row;
|
||||
flex: 1 1 100%;
|
||||
position: relative;
|
||||
background: var(--color-track);
|
||||
border:1rem solid var(--color-bg);
|
||||
@extend .glass-effect;
|
||||
}
|
||||
canvas {
|
||||
flex:1;
|
||||
|
|
@ -52,6 +54,7 @@
|
|||
--color-knob: transparent;
|
||||
.wrapper {
|
||||
pointer-events: none;
|
||||
@extend .glass-effect;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -76,7 +79,11 @@
|
|||
overflow: hidden;
|
||||
-webkit-writing-mode:vertical-lr;
|
||||
writing-mode:vertical-lr;
|
||||
&:after {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
@extend .glass-effect;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue