led: simplify
This commit is contained in:
parent
00dc551eea
commit
94864ac551
3 changed files with 16 additions and 30 deletions
|
|
@ -1,29 +1,20 @@
|
|||
.led-container, .rgbled-container {
|
||||
width:100rem;
|
||||
height:100rem;
|
||||
|
||||
padding:1rem;
|
||||
.led {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
padding:2rem;
|
||||
border-radius: inherit;
|
||||
div {
|
||||
flex-direction: row;
|
||||
flex:1;
|
||||
background: var(--color-track);
|
||||
border:1rem solid var(--color-bg);
|
||||
--opacity: 0;
|
||||
&:after {
|
||||
content:"";
|
||||
width:100%;
|
||||
height:100%;
|
||||
position: relative;
|
||||
border-radius: inherit;
|
||||
background:var(--color-track);
|
||||
border:1rem solid var(--color-bg);
|
||||
span {
|
||||
width:100%;
|
||||
height:100%;
|
||||
position: relative;
|
||||
display:block;
|
||||
background-color:var(--color-custom);
|
||||
border-radius: inherit;
|
||||
}
|
||||
height: 100%;
|
||||
background: var(--color-custom);
|
||||
opacity: var(--opacity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -83,13 +74,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.panel:not(.tab) > .led-container,
|
||||
.panel:not(.tab) > .rgbled-container,
|
||||
.panel:not(.tab) > .text-container,
|
||||
.panel:not(.tab) > .visualizer-container,
|
||||
.panel:not(.tab) > .eq-container,
|
||||
.panel:not(.tab) > .plot-container {
|
||||
--color-border:transparent;
|
||||
.plot, .text {
|
||||
.plot, .text, .led {
|
||||
padding: 1rem;
|
||||
background-clip: content-box;
|
||||
border:1rem solid var(--color-light);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue