leds: tweak css

This commit is contained in:
jean-emmanuel 2017-12-26 15:14:24 +01:00
parent 6f46c47b49
commit 5bca3e3ceb
2 changed files with 7 additions and 4 deletions

View file

@ -101,7 +101,7 @@ module.exports = class Rbgled extends _widgets_base {
this.value = v
this.widget[0].style.setProperty('--color-custom', c)
this.widget[0].style.setProperty('--color-led', c)
}

View file

@ -3,19 +3,22 @@
height:100rem;
padding:1rem;
.led {
--opacity: 0;
--color-led: var(--color-custom);
display: flex;
flex-direction: row;
flex: 1 1 100%;
background: var(--color-track);
border:1rem solid var(--color-bg);
--opacity: 0;
&:after {
&:before {
content:"";
width:100%;
height: 100%;
background: var(--color-custom);
background: var(--color-led);
border-radius: inherit;
opacity: var(--opacity);
border-radius: 2rem;
box-shadow: inset 0 0 10rem var(--color-track);
}
}
}