widgets ui changes: buttons are more obvious, labels are slightly embossed

This commit is contained in:
jean-emmanuel 2016-09-13 18:58:38 +02:00
parent 654883dc23
commit 680643d05e
8 changed files with 48 additions and 43 deletions

View file

@ -39,8 +39,10 @@
height:35rem;
max-height:35rem;
width: 100%;
background: var(--color-faded);
background-image: linear-gradient(var(--color-raised),var(--color-fg));
border-bottom:1rem solid var(--color-bg);
// box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
&.accent {
color:var(--color-accent);
}

View file

@ -136,8 +136,6 @@
background:var(--color-track);
z-index: 1;
display:block;
box-shadow: 0 0 0 15rem;
color: var(--color-fg);
position: absolute;
}
.gauge {

View file

@ -120,6 +120,7 @@
bottom:17rem;
border-radius:100%;
background-color:var(--color-raised);
box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
// background-image:linear-gradient(135deg,rgba(0,0,0,0), rgba(0,0,0,0) 50%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.05));
}
&:after {

View file

@ -6,6 +6,9 @@
height:250rem;
flex-shrink: 0;
display: flex;
.label {
flex-shrink: 0;
}
}
.xy-wrapper {
height: 100%;

View file

@ -24,22 +24,25 @@
justify-content: center;
align-items: center;
z-index: 1;
&:after {
content:"";
position: absolute;
top:0;
right:0;
border:5rem solid transparent;
border-top:5rem solid var(--color-text-fade);
border-right:5rem solid var(--color-text-fade);
opacity: 0.2;
background-blend-mode: luminosity;
}
}
cursor: pointer;
.push {
box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
&.active {
background: var(--color-fg);
}
.light {
position: absolute;
left:auto;
background: var(--color-custom);
height:4rem;
width:4rem;
border-radius: 4rem;
overflow: hidden;
}
}
}

View file

@ -26,6 +26,9 @@
width:auto;
margin:0;
box-shadow: none;
.label {
background-image: none;
}
}
}
&.vertical {

View file

@ -12,6 +12,7 @@
flex-direction:column;
align-items: stretch;
flex:1;
&.horizontal {
flex-direction:row;
.value {
@ -27,14 +28,6 @@
&:last-child {
border-right:0;
}
&:before {
left:50%;
top:8rem;
width:8rem;
height:8rem;
margin-left: -4rem;
margin-top:0;
}
}
}
@ -45,14 +38,15 @@
height:100%;
position: relative;
border-top: 1rem solid var(--color-bg);
padding:12rem 12rem 12rem 24rem ;
white-space: normal;
text-align: left;
padding:12rem;
text-align: center;
word-break: break-all;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: center;
box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
&:first-child {
border-top:0;
@ -64,16 +58,18 @@
&:before {
content:"";
position: absolute;
left:8rem;
top:50%;
width:8rem;
height:8rem;
margin-top: -4rem;
background: var(--color-track);
border-radius: 8rem;
left:0;
top:0;
right:0;
bottom:0;
background: var(--color-custom);
opacity: 0;
z-index: 2;
}
&.on:before {
background: var(--color-custom);
opacity: .2;
box-shadow: 0 0 1rem 0 var(--color-custom) inset;
}
}

View file

@ -33,24 +33,23 @@
left:0;
right:0;
bottom:0;
box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
.light {
position: absolute;
left:2rem;
right:2rem;
top:2rem;
height:2rem;
left:0;
right:0;
top:0;
bottom:0;
pointer-events: none;
background: var(--color-custom);
&:after {
content:"";
width: 100%;
height: 100%;
display: block;
background: var(--color-track);
}
opacity: 0;
z-index: 1;
}
&.on .light:after {
display: none;
&.on {
.light{
opacity:0.2;
}
box-shadow: 0 0 1rem 0 var(--color-custom) inset;
}
}