plots: add rgbled widget

This commit is contained in:
jean-emmanuel 2017-04-04 00:42:54 +02:00
parent 1edb3ef104
commit b272990cae
5 changed files with 112 additions and 19 deletions

View file

@ -1,4 +1,4 @@
.led-container {
.led-container, .rgbled-container {
width:100rem;
flex-shrink: 0;
@ -6,31 +6,18 @@
display: flex;
align-items: center;
height: 100%;
padding:10rem 0;
overflow: hidden;
padding:1rem;
div {
border-radius: 100%;
width:70%;
padding-bottom:70%;
margin: 0 auto;
width:100%;
height:100%;
background:var(--color-track);
position: relative;
span {
position: absolute;
top:0;left:0;right:0;bottom:0;
border-radius: 100%;
display:block;
background-color:var(--color-custom);
&:after {
content:"";
border-radius:100%;
position: absolute;
top:-10%;left:-10%;right:-10%;bottom:-10%;
display:block;
background-color:var(--color-custom);
opacity: 0.2;
}
}
}
}