pads: use label shadow instead of :after element
This commit is contained in:
parent
04e1a06a99
commit
aecac468e7
1 changed files with 3 additions and 25 deletions
|
|
@ -4,6 +4,8 @@
|
|||
flex-shrink: 0;
|
||||
.label {
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 -11rem 10rem 10rem var(--color-bg);
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
.pad {
|
||||
|
|
@ -25,15 +27,6 @@
|
|||
background:var(--color-faded);
|
||||
box-shadow: 0 1rem 0 0 var(--color-light);
|
||||
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
box-shadow: 0 10rem 10rem -11rem var(--color-bg) inset, 0 -10rem 10rem -11rem var(--color-bg) inset;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
> canvas {
|
||||
width:100%;
|
||||
height:100%;
|
||||
|
|
@ -122,21 +115,9 @@
|
|||
.multixy-container {
|
||||
> .pad {
|
||||
--point-size:10rem;
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
box-shadow: 0 10rem 10rem -12rem var(--color-bg) inset, 0 -10rem 10rem -12rem var(--color-bg) inset;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
> .wrapper {
|
||||
padding: calc(var(--point-size) + 1rem);
|
||||
&:after {
|
||||
content:none;
|
||||
}
|
||||
|
||||
> canvas {
|
||||
top:0;
|
||||
left:0;
|
||||
|
|
@ -161,9 +142,6 @@
|
|||
height:calc(100% - 2 * var(--point-size) - 2rem);
|
||||
.wrapper {
|
||||
background: transparent;
|
||||
&:after {
|
||||
content:none;
|
||||
}
|
||||
}
|
||||
.row {
|
||||
display: none;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue