- only use native css variable instead of sass' (theming feature on the way)
- better sidepanel transition
This commit is contained in:
parent
70eedc2d7b
commit
fe32cd673e
19 changed files with 220 additions and 203 deletions
|
|
@ -39,11 +39,12 @@
|
|||
content:"";
|
||||
width:100%;
|
||||
height:100%;
|
||||
background:$color-track;
|
||||
background:var(--color-track);
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
display:block;
|
||||
box-shadow: 0 0 0 15rem $color-fg;
|
||||
box-shadow: 0 0 0 15rem;
|
||||
color: var(--color-fg);
|
||||
}
|
||||
.handle {
|
||||
position: absolute;
|
||||
|
|
@ -123,7 +124,7 @@
|
|||
height:1%;
|
||||
width:38rem;
|
||||
margin-left:-19rem;
|
||||
background: linear-gradient($color-text,transparent 1rem);
|
||||
background: linear-gradient(var(--color-text),transparent 1rem);
|
||||
|
||||
&.val {
|
||||
position: relative;
|
||||
|
|
@ -138,7 +139,7 @@
|
|||
line-height: 12rem;
|
||||
left:44rem;
|
||||
top:-5.5rem;
|
||||
color:$color-text-fade;
|
||||
color:var(--color-text-fade);
|
||||
&:last-child {
|
||||
left:auto;
|
||||
right:44rem;
|
||||
|
|
@ -213,7 +214,7 @@
|
|||
height:4rem;
|
||||
margin-bottom:5rem;
|
||||
margin-left:0;
|
||||
background: linear-gradient(90deg,$color-text,transparent 1rem );
|
||||
background: linear-gradient(90deg,var(--color-text),transparent 1rem );
|
||||
&.val {
|
||||
width:1%;
|
||||
height:10rem;
|
||||
|
|
|
|||
|
|
@ -55,8 +55,7 @@
|
|||
right:0;
|
||||
bottom:0;
|
||||
border-radius:100%;
|
||||
border:4rem solid $color-track;
|
||||
box-shadow: 0 0 0 1rem mix($color-text,$color-fg,2),0 0 0 1rem mix($color-text,$color-fg,2) inset,0 0 1rem 1rem mix($color-text,$color-fg,2),0 0 1rem 1rem mix($color-text,$color-fg,2) inset;
|
||||
border:4rem solid var(--color-track);
|
||||
transform: rotate(45deg);
|
||||
z-index:4;
|
||||
}
|
||||
|
|
@ -67,8 +66,8 @@
|
|||
border-bottom-color: transparent;
|
||||
}
|
||||
.knob:after {
|
||||
border-color: $color-track;
|
||||
border-left-color: $color-accent;
|
||||
border-color: var(--color-track);
|
||||
border-left-color: var(--color-accent);
|
||||
border-top-color: var(--color-accent);
|
||||
}
|
||||
}
|
||||
|
|
@ -79,7 +78,7 @@
|
|||
border-top-color: transparent;
|
||||
}
|
||||
.knob:after {
|
||||
border-color: $color-track;
|
||||
border-color: var(--color-track);
|
||||
border-right-color: var(--color-accent);
|
||||
border-bottom-color: var(--color-accent);
|
||||
}
|
||||
|
|
@ -93,7 +92,7 @@
|
|||
bottom:-2rem;
|
||||
border-radius:100%;
|
||||
border:12rem solid transparent;
|
||||
border-bottom-color: $color-fg;
|
||||
border-bottom-color: var(--color-fg);
|
||||
z-index:4;
|
||||
}
|
||||
}
|
||||
|
|
@ -104,8 +103,9 @@
|
|||
right:16rem;
|
||||
bottom:16rem;
|
||||
border-radius:100%;
|
||||
background:$color-raised;
|
||||
box-shadow: 0 2rem 0 0 $color-faded;
|
||||
background:var(--color-raised);
|
||||
box-shadow: 0 2rem 0 0;
|
||||
color:var(--color-faded);
|
||||
}
|
||||
.knob {
|
||||
position:absolute;
|
||||
|
|
@ -125,7 +125,7 @@
|
|||
right:0;
|
||||
bottom:0;
|
||||
border-radius:100%;
|
||||
border:4rem solid $color-track;
|
||||
border:4rem solid var(--color-track);
|
||||
border-bottom-color: var(--color-accent);
|
||||
}
|
||||
|
||||
|
|
@ -178,7 +178,7 @@
|
|||
.pip {
|
||||
position:absolute;
|
||||
font-size:11rem;
|
||||
color:$color-text;
|
||||
color:var(--color-text);
|
||||
pointer-events: none;
|
||||
top:50%;
|
||||
margin-top:30%;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
width:100%;
|
||||
position: absolute;
|
||||
bottom:0;
|
||||
border-top: 1rem solid $color-bg;
|
||||
border-top: 1rem solid var(--color-bg);
|
||||
}
|
||||
.input, input {
|
||||
width:50%;
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
height:100%;
|
||||
overflow: hidden;
|
||||
cursor: -webkit-grab;
|
||||
background:rgba($color-bg,.5);
|
||||
background:var(--color-faded);
|
||||
&:active {
|
||||
cursor: -webkit-grabbing;
|
||||
.handle:after,.handle:before {
|
||||
|
|
@ -119,7 +119,7 @@
|
|||
right:-4rem;
|
||||
height:8rem;
|
||||
width:8rem;
|
||||
background:$color-text;
|
||||
background:var(--color-text);
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
}
|
||||
|
|
@ -132,7 +132,7 @@
|
|||
width:20rem;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
background:$color-text;
|
||||
background:var(--color-text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -177,7 +177,7 @@
|
|||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: none;
|
||||
background:$color-text;
|
||||
background:var(--color-text);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
min-height: 200rem;
|
||||
|
||||
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece {
|
||||
border-top: 1rem solid $color-bg;
|
||||
border-top: 1rem solid var(--color-bg);
|
||||
}
|
||||
|
||||
&.nolabel .panel {
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
left:1rem;
|
||||
right:1rem;
|
||||
bottom:1rem;
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
z-index: 1;
|
||||
|
||||
&.has-tabs {
|
||||
|
|
@ -44,10 +44,10 @@
|
|||
border-top: 0;
|
||||
background: transparent;
|
||||
&:after {
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
}
|
||||
a.on {
|
||||
border-color: $color-bg;
|
||||
border-color: var(--color-bg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,22 +10,29 @@
|
|||
height: 100%;
|
||||
padding:10rem 0;
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
div {
|
||||
border-radius: 100%;
|
||||
width:calc(100% - 20rem);
|
||||
padding-bottom:calc(100% - 20rem);
|
||||
margin: 0 auto;
|
||||
background:$color-border;
|
||||
background:var(--color-track);
|
||||
position: relative;
|
||||
span {
|
||||
position: absolute;
|
||||
top:-1rem;left:-1rem;right:-1rem;bottom:-1rem;
|
||||
top:0;left:0;right:0;bottom:0;
|
||||
border-radius: 100%;
|
||||
|
||||
display:block;
|
||||
background-color:var(--color-accent);
|
||||
border: 5rem solid rgba($color-fg,.8);
|
||||
&:after {
|
||||
content:"";
|
||||
border-radius:100%;
|
||||
position: absolute;
|
||||
top:-1rem;left:-1rem;right:-1rem;bottom:-1rem;
|
||||
display:block;
|
||||
border: 6rem solid var(--color-fg);
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -68,7 +75,7 @@
|
|||
left:1rem;
|
||||
right:1rem;
|
||||
bottom:1rem;
|
||||
background: $color-bg;
|
||||
background: var(--color-bg);
|
||||
|
||||
.level {
|
||||
position: absolute;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
flex-shrink: 0;
|
||||
padding:0!important;
|
||||
|
||||
background: $color-raised;
|
||||
background: var(--color-raised);
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
|
|
@ -28,9 +28,9 @@
|
|||
|
||||
.push {
|
||||
&.on {
|
||||
background: $color-fg;
|
||||
background: var(--color-fg);
|
||||
}
|
||||
border-bottom:4rem solid $color-fg;
|
||||
border-bottom:4rem solid var(--color-fg);
|
||||
.light {
|
||||
position: absolute;
|
||||
left:auto;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@
|
|||
height:auto;
|
||||
display: block;
|
||||
border-right:0;
|
||||
// margin-bottom: $gutter;
|
||||
.strip {
|
||||
flex-direction: row;
|
||||
> .widget {
|
||||
|
|
@ -59,7 +58,7 @@
|
|||
left:0;
|
||||
top:0;
|
||||
border-bottom:0;
|
||||
border-right:1rem solid $color-bg;
|
||||
border-right:1rem solid var(--color-bg);
|
||||
span {
|
||||
transform: rotate(180deg);
|
||||
display: block;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
justify-content: center;
|
||||
flex-direction: column;
|
||||
border-top:0;
|
||||
border-right:1rem solid $color-bg;
|
||||
border-right:1rem solid var(--color-bg);
|
||||
&:last-child {
|
||||
border-right:0;
|
||||
}
|
||||
|
|
@ -38,18 +38,18 @@
|
|||
}
|
||||
}
|
||||
.value {
|
||||
background:$color-raised;
|
||||
color:$color-text;
|
||||
background:var(--color-raised);
|
||||
color:var(--color-text);
|
||||
width:100%;
|
||||
height:100%;
|
||||
position: relative;
|
||||
border-top: 1rem solid $color-bg;
|
||||
border-top: 1rem solid var(--color-bg);
|
||||
padding:12rem 12rem 12rem 24rem ;
|
||||
white-space: normal;
|
||||
text-align: left;
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
border-bottom:2rem solid $color-faded;
|
||||
border-bottom:2rem solid var(--color-faded);
|
||||
|
||||
&:first-child {
|
||||
border-top:0;
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
width:8rem;
|
||||
height:8rem;
|
||||
margin-top: -4rem;
|
||||
background: $color-track;
|
||||
background: var(--color-track);
|
||||
border-radius: 8rem;
|
||||
}
|
||||
&.on:before {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
min-height: 65rem;
|
||||
flex-shrink: 0;
|
||||
padding:0!important;
|
||||
background: $color-raised;
|
||||
background: var(--color-raised);
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
border-bottom:4rem solid $color-fg;
|
||||
border-bottom:4rem solid var(--color-fg);
|
||||
|
||||
.light {
|
||||
position: absolute;
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
background: $color-track;
|
||||
background: var(--color-track);
|
||||
}
|
||||
}
|
||||
&.on .light:after {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue