- major style refactoring, we're going flat flat flat
- stylesheets splitting ! - removed sync.sass.js and css recompile switch : now using node sass and watcher during dev - no need to restart the whole app now, ctrl+r just refreshes the window
This commit is contained in:
parent
417436bc34
commit
bbb1080b93
36 changed files with 3309 additions and 2548 deletions
202
browser/scss/widgets/_fader.scss
Normal file
202
browser/scss/widgets/_fader.scss
Normal file
|
|
@ -0,0 +1,202 @@
|
|||
.fader-container {
|
||||
width:100rem;
|
||||
min-height: 200rem;
|
||||
height:100%;
|
||||
&.nolabel .fader-wrapper-outer {
|
||||
top:0;
|
||||
}
|
||||
|
||||
.fader-wrapper-outer {
|
||||
padding-bottom:30rem;
|
||||
position: absolute;
|
||||
top:30rem;
|
||||
bottom:0;
|
||||
left:0;
|
||||
right:0;
|
||||
.input {
|
||||
position:absolute;
|
||||
bottom:0;
|
||||
}
|
||||
}
|
||||
|
||||
.fader-wrapper {
|
||||
padding:20rem 20rem 10rem;
|
||||
overflow:hidden;
|
||||
height:100%;
|
||||
position: relative;
|
||||
cursor: -webkit-grab;
|
||||
&:active {
|
||||
cursor: -webkit-grabbing;
|
||||
}
|
||||
.fader {
|
||||
height:100%;
|
||||
width:4rem;
|
||||
position: relative;
|
||||
margin:0 auto;
|
||||
pointer-events: none;
|
||||
&:before {
|
||||
content:"";
|
||||
width:100%;
|
||||
height:100%;
|
||||
background:$color-track;
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
display:block;
|
||||
box-shadow: 0 0 0 15rem $color-fg;
|
||||
}
|
||||
&.nogauge {
|
||||
.handle {
|
||||
background:none;
|
||||
}
|
||||
}
|
||||
.handle {
|
||||
position: absolute;
|
||||
bottom:0!important;
|
||||
top:auto!important;
|
||||
width:100%;
|
||||
height:100%;
|
||||
transform-origin: bottom;
|
||||
max-height:100%;
|
||||
max-width:100%;
|
||||
background:$color-accent;
|
||||
z-index: 1;
|
||||
transform-style: preserve-3d;
|
||||
backface-visibility: hidden;
|
||||
span {
|
||||
position: absolute;
|
||||
bottom:0;
|
||||
top:0;
|
||||
width:100%;
|
||||
height:100%;
|
||||
transform-origin: top;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
span:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-4rem;
|
||||
left:-2rem;
|
||||
height:8rem;
|
||||
width:8rem;
|
||||
background:$color-accent;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: 0 0 0 6rem transparentize($color-accent,.8),0 0 2rem 0 mix($color-text,$color-fg,2);
|
||||
}
|
||||
span:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-10rem;
|
||||
left:-8rem;
|
||||
height:20rem;
|
||||
width:20rem;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: 0 0 0 1rem transparentize($color-accent,.8) inset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pips {
|
||||
position: absolute;
|
||||
top:0;
|
||||
bottom:0;
|
||||
left:50%;
|
||||
z-index: 0;
|
||||
.pip {
|
||||
height:1%;
|
||||
width:38rem;
|
||||
margin-left:-19rem;
|
||||
background: linear-gradient($color-text,transparent 1px);
|
||||
|
||||
&.val {
|
||||
position: relative;
|
||||
width:44rem;
|
||||
margin-left:-22rem;
|
||||
span {
|
||||
position: absolute;
|
||||
width:30rem;
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size:11rem;
|
||||
line-height: 12rem;
|
||||
left:44rem;
|
||||
top:-5.5rem;
|
||||
color:$color-text-fade;
|
||||
&:last-child {
|
||||
left:auto;
|
||||
right:44rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.fader-container.horizontal {
|
||||
min-height: 80rem;
|
||||
height: auto;
|
||||
width:300rem;
|
||||
flex-shrink: 0;
|
||||
.fader-wrapper-outer {
|
||||
position: relative;
|
||||
top:auto;
|
||||
padding-bottom: 30rem;
|
||||
height: 100%;
|
||||
.fader-wrapper {
|
||||
padding:20rem 20rem 35rem;
|
||||
}
|
||||
.fader {
|
||||
width:100%;
|
||||
left:auto;
|
||||
top:50%;
|
||||
height:4rem;
|
||||
.handle {
|
||||
height:100%important;
|
||||
width:100%;
|
||||
transform-origin: left;
|
||||
span {
|
||||
transform-origin: right;
|
||||
}
|
||||
span:before {
|
||||
top:-2rem;
|
||||
right:-4rem;
|
||||
left:auto;
|
||||
}
|
||||
span:after {
|
||||
top:-8rem;
|
||||
right:-10rem;
|
||||
left:auto
|
||||
}
|
||||
}
|
||||
}
|
||||
.pips {
|
||||
top:14rem;left:0;
|
||||
right:0;
|
||||
font-size: 0;
|
||||
}
|
||||
.pip {
|
||||
width:1%;
|
||||
display: inline-block;
|
||||
height:4rem;
|
||||
margin-bottom:5rem;
|
||||
margin-left:0;
|
||||
background: linear-gradient(90deg,$color-text,transparent 1px );
|
||||
&.val {
|
||||
width:1%;
|
||||
height:10rem;
|
||||
margin-left:0;
|
||||
|
||||
span {
|
||||
top:15rem;
|
||||
left:-15rem;
|
||||
&:last-child {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
browser/scss/widgets/_knob.scss
Normal file
199
browser/scss/widgets/_knob.scss
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
|
||||
|
||||
.knob-container {
|
||||
width: 100rem;
|
||||
display: inline-flex!important;
|
||||
align-items: center;
|
||||
min-height: 135rem;
|
||||
flex-shrink: 0;
|
||||
&.nolabel .knob-wrapper-outer{
|
||||
top:0;
|
||||
padding-bottom:30rem;
|
||||
}
|
||||
.knob-wrapper-outer {
|
||||
width: 100%;
|
||||
top: 30rem;
|
||||
bottom: 0;
|
||||
padding:10rem 0 50rem;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.input {
|
||||
bottom:0;
|
||||
position: absolute;
|
||||
left:0;
|
||||
}
|
||||
|
||||
|
||||
.knob-wrapper {
|
||||
margin:0 auto;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
position: relative;
|
||||
|
||||
cursor: -webkit-grab;
|
||||
&:active {
|
||||
cursor: -webkit-grabbing;
|
||||
}
|
||||
|
||||
.knob-mask {
|
||||
width:58%;
|
||||
padding-bottom:58%;
|
||||
flex-shrink: 0;
|
||||
border-radius:100%;
|
||||
pointer-events: none;
|
||||
position: relative;
|
||||
&:before {
|
||||
position:absolute;
|
||||
top:0;left:0;
|
||||
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;
|
||||
transform: rotate(45deg);
|
||||
z-index:4;
|
||||
}
|
||||
&.pan-left {
|
||||
&:before {
|
||||
content:"";
|
||||
border-left-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
.knob:after {
|
||||
border-color: $color-track;
|
||||
border-left-color: $color-accent;
|
||||
border-top-color: $color-accent;
|
||||
}
|
||||
}
|
||||
&.pan-right {
|
||||
&:before {
|
||||
content:"";
|
||||
border-right-color: transparent;
|
||||
border-top-color: transparent;
|
||||
}
|
||||
.knob:after {
|
||||
border-color: $color-track;
|
||||
border-right-color: $color-accent;
|
||||
border-bottom-color: $color-accent;
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
content:"";
|
||||
position:absolute;
|
||||
top:0rem;left:-3rem;
|
||||
right:-3rem;
|
||||
bottom:-2rem;
|
||||
border-radius:100%;
|
||||
border:12rem solid transparent;
|
||||
border-bottom-color: $color-fg;
|
||||
z-index:4;
|
||||
}
|
||||
}
|
||||
.round {
|
||||
content:"";
|
||||
position:absolute;
|
||||
top:15rem;
|
||||
left:15rem;
|
||||
right:15rem;
|
||||
bottom:15rem;
|
||||
border-radius:100%;
|
||||
background:$color-raised;
|
||||
}
|
||||
.knob {
|
||||
position:absolute;
|
||||
top:0;left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
pointer-events: none;
|
||||
transform:rotateZ(0deg);
|
||||
backface-visibility: hidden;
|
||||
z-index: 2;
|
||||
|
||||
|
||||
&:after {
|
||||
content:"";
|
||||
position:absolute;
|
||||
top:0;left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
border-radius:100%;
|
||||
border:4rem solid $color-track;
|
||||
border-bottom-color: $color-accent;
|
||||
}
|
||||
|
||||
&.d2:after {
|
||||
border-right-color: $color-accent;
|
||||
}
|
||||
&.d3:after {
|
||||
border-top-color: $color-accent;
|
||||
border-right-color: $color-accent;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
.handle {
|
||||
position:absolute;
|
||||
top:0;left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
pointer-events: none;
|
||||
transform:rotateZ(-45deg);
|
||||
backface-visibility: hidden;
|
||||
z-index: 5;
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:50%;
|
||||
left:-2rem;
|
||||
margin-top:-4rem;
|
||||
height:8rem;
|
||||
width:8rem;
|
||||
background:$color-accent;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: 0 0 0 6rem transparentize($color-accent,.8),0 0 2rem 0 mix($color-text,$color-fg,2);
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:50%;
|
||||
margin-top:-10rem;
|
||||
left:-8rem;
|
||||
height:20rem;
|
||||
width:20rem;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: 0 0 0 1rem transparentize($color-accent,.8) inset;
|
||||
}
|
||||
}
|
||||
.pip {
|
||||
position:absolute;
|
||||
font-size:11rem;
|
||||
color:$color-text;
|
||||
pointer-events: none;
|
||||
top:50%;
|
||||
margin-top:30%;
|
||||
&.min {
|
||||
left:0;
|
||||
right:50%;
|
||||
width:50%;
|
||||
text-align:center;
|
||||
}
|
||||
&.max {
|
||||
left:50%;
|
||||
width:50%;
|
||||
right:0;
|
||||
text-align:center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
53
browser/scss/widgets/_matrices.scss
Normal file
53
browser/scss/widgets/_matrices.scss
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
|
||||
|
||||
/* Multiple widgets (push|toggle|fader) matrix */
|
||||
.multitoggle-container, .multipush-container, .multifader-container {
|
||||
height:200rem;
|
||||
width:200rem;
|
||||
&.nolabel .matrix {
|
||||
top:0;
|
||||
}
|
||||
}
|
||||
.matrix {
|
||||
|
||||
overflow: auto;
|
||||
position: absolute;
|
||||
top:35rem;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background: $color-bg;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
|
||||
> .widget {
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
margin:0!important;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.multifader-container {
|
||||
.matrix {
|
||||
padding:0!important
|
||||
}
|
||||
.widget {
|
||||
border: 0!important;
|
||||
// box-shadow: none!important;
|
||||
.label {
|
||||
background:none;
|
||||
border:0;
|
||||
}
|
||||
}
|
||||
.fader-wrapper {
|
||||
padding:10rem 0!important;
|
||||
.fader {
|
||||
left:0!important;
|
||||
.pips {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
186
browser/scss/widgets/_pads.scss
Normal file
186
browser/scss/widgets/_pads.scss
Normal file
|
|
@ -0,0 +1,186 @@
|
|||
|
||||
.xy-container, .rgb-container {
|
||||
width:200rem;
|
||||
height:250rem;
|
||||
flex-shrink: 0;
|
||||
&.nolabel .xy-wrapper {
|
||||
top:0;
|
||||
}
|
||||
}
|
||||
.xy-wrapper {
|
||||
position: absolute;
|
||||
top:35rem;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
|
||||
overflow: hidden;
|
||||
padding-bottom: 60rem;
|
||||
.value {
|
||||
width:100%;
|
||||
position: absolute;
|
||||
bottom:0;
|
||||
border-top: 1rem solid $color-bg;
|
||||
}
|
||||
.input, input {
|
||||
width:50%;
|
||||
float:left;
|
||||
height: 30rem;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
.xy {
|
||||
position:relative;
|
||||
width:auto;
|
||||
height:100%;
|
||||
overflow: hidden;
|
||||
cursor: -webkit-grab;
|
||||
background:rgba($color-bg,.5);
|
||||
&:active {
|
||||
cursor: -webkit-grabbing;
|
||||
.handle:after,.handle:before {
|
||||
transform: scale(1.5);
|
||||
}
|
||||
}
|
||||
.handle {
|
||||
position:absolute;
|
||||
bottom:0;
|
||||
left:0;
|
||||
z-index:2;
|
||||
pointer-events: none;
|
||||
backface-visibility: hidden;
|
||||
transform-origin: center;
|
||||
transform:translate3d(0,0,0);
|
||||
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-4rem;
|
||||
right:-4rem;
|
||||
height:8rem;
|
||||
width:8rem;
|
||||
background:$color-accent;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: 0 0 0 6rem transparentize($color-accent,.8),0 0 2rem 0 mix($color-text,$color-fg,2);
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-10rem;
|
||||
right:-10rem;
|
||||
height:20rem;
|
||||
width:20rem;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: 0 0 0 1rem transparentize($color-accent,.8) inset;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.rgb-wrapper {
|
||||
padding-bottom: 90rem;
|
||||
.input, input {
|
||||
width:33.33%;
|
||||
}
|
||||
}
|
||||
|
||||
.rgb {
|
||||
.bg {
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background-color: red;
|
||||
opacity: .75;
|
||||
&:before, &:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
left:0;
|
||||
top:0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
&:before {
|
||||
background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
|
||||
}
|
||||
&:after {
|
||||
background:linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
|
||||
}
|
||||
}
|
||||
.handle {
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-4rem;
|
||||
right:-4rem;
|
||||
height:8rem;
|
||||
width:8rem;
|
||||
background:$color-text;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: 0 0 0 6rem transparentize($color-text,.8)
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-10rem;
|
||||
right:-10rem;
|
||||
height:20rem;
|
||||
width:20rem;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: 0 0 0 1rem transparentize($color-text,.8) inset;
|
||||
}
|
||||
}
|
||||
}
|
||||
.hue {
|
||||
width:auto;
|
||||
height:29rem;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
bottom:61rem;
|
||||
left:0;
|
||||
right:0;
|
||||
cursor: -webkit-grab;
|
||||
.bg {
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
opacity: 0.5;
|
||||
background:transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%;
|
||||
}
|
||||
&:active {
|
||||
cursor: -webkit-grabbing;
|
||||
.handle:after {
|
||||
transform: scale(1.5);
|
||||
}
|
||||
}
|
||||
.handle {
|
||||
position:absolute;
|
||||
z-index:2;
|
||||
left:0;
|
||||
top:50%;
|
||||
pointer-events: none;
|
||||
transform: translate3d(0,0,0);
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:-4rem;
|
||||
right:-4rem;
|
||||
height:8rem;
|
||||
width:8rem;
|
||||
border:none!important;
|
||||
border-radius: 100%!important;
|
||||
box-shadow: none;
|
||||
background:$color-text;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
57
browser/scss/widgets/_panel.scss
Normal file
57
browser/scss/widgets/_panel.scss
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
|
||||
|
||||
|
||||
.panel-container {
|
||||
z-index: 2;
|
||||
min-width: 200rem;
|
||||
min-height: 200rem;
|
||||
|
||||
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece {
|
||||
border-top: 1rem solid $color-bg;
|
||||
}
|
||||
|
||||
&.nolabel .panel {
|
||||
top:1rem;
|
||||
}
|
||||
|
||||
.panel {
|
||||
overflow: auto;
|
||||
position: absolute;
|
||||
top:35rem;
|
||||
left:1rem;
|
||||
right:1rem;
|
||||
bottom:1rem;
|
||||
background: $color-bg;
|
||||
z-index: 1;
|
||||
|
||||
&.has-tabs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
&.stretch {
|
||||
display:flex;
|
||||
justify-content: space-between;
|
||||
> .widget {
|
||||
width:100%;
|
||||
}
|
||||
}
|
||||
> .navigation:before {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
.navigation {
|
||||
border-top: 0;
|
||||
background: transparent;
|
||||
&:after {
|
||||
background: $color-bg;
|
||||
}
|
||||
a.on {
|
||||
border-color: $color-bg;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
51
browser/scss/widgets/_plots.scss
Normal file
51
browser/scss/widgets/_plots.scss
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
|
||||
|
||||
.led-container {
|
||||
width:100rem;
|
||||
flex-shrink: 0;
|
||||
|
||||
.led {
|
||||
padding:10rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
div {
|
||||
border-radius: 100%;
|
||||
width:40rem;
|
||||
height:40rem;
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
background:$color-border;
|
||||
span {
|
||||
height:100%;
|
||||
display:block;
|
||||
background-color:$color-accent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.plot-container, .visualizer-container {
|
||||
min-height: 200rem;
|
||||
min-width: 200rem;
|
||||
.plot {
|
||||
position: absolute;
|
||||
top: 35rem;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
// padding:2rem;
|
||||
}
|
||||
&.nolabel .plot {
|
||||
top:0;
|
||||
}
|
||||
canvas {
|
||||
width:100%;
|
||||
height:100%;
|
||||
opacity: 0;
|
||||
transition: opacity .2s;
|
||||
&.visible {
|
||||
opacity:1;
|
||||
}
|
||||
}
|
||||
}
|
||||
45
browser/scss/widgets/_push.scss
Normal file
45
browser/scss/widgets/_push.scss
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
|
||||
|
||||
.push-container {
|
||||
width:100rem;
|
||||
min-height: 65rem;
|
||||
flex-shrink: 0;
|
||||
padding:0!important;
|
||||
|
||||
background: $color-raised;
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
height:auto;
|
||||
background: none!important;
|
||||
text-align: center;
|
||||
pointer-events:none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
cursor: pointer;
|
||||
.label {
|
||||
}
|
||||
}
|
||||
.push {
|
||||
&.on {
|
||||
animation:none;
|
||||
background: $color-accent;
|
||||
}
|
||||
// .light {
|
||||
// top:6rem;
|
||||
// left:6rem;
|
||||
// right:6rem;
|
||||
// bottom:6rem;
|
||||
// border-radius:0;
|
||||
// height:auto;
|
||||
// opacity:.5;
|
||||
// }
|
||||
}
|
||||
71
browser/scss/widgets/_strip.scss
Normal file
71
browser/scss/widgets/_strip.scss
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
|
||||
|
||||
.strip-container {
|
||||
padding-top: 35rem;
|
||||
width:100rem;
|
||||
height:100%;
|
||||
overflow: visible;
|
||||
background: none;
|
||||
&.nolabel {
|
||||
padding: 0!important;
|
||||
}
|
||||
|
||||
.strip {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
> .widget {
|
||||
display: block;
|
||||
width:auto;
|
||||
margin:0;
|
||||
}
|
||||
}
|
||||
&.vertical {
|
||||
padding-top: 35rem;
|
||||
border-bottom:0;
|
||||
.strip > .widget {
|
||||
max-width: 100%;
|
||||
margin-top:-1rem;
|
||||
}
|
||||
}
|
||||
&.horizontal {
|
||||
padding-top:0;
|
||||
padding-left: 35rem;
|
||||
width:100%;
|
||||
height:auto;
|
||||
display: block;
|
||||
border-right:0;
|
||||
margin-bottom: $gutter;
|
||||
.strip {
|
||||
flex-direction: row;
|
||||
> .widget {
|
||||
flex-shrink: initial;
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
max-height: 100%;
|
||||
margin-left:-1rem;
|
||||
|
||||
}
|
||||
}
|
||||
> .label {
|
||||
width:35rem;
|
||||
height:100%;
|
||||
left:0;
|
||||
top:0;
|
||||
border-bottom:0;
|
||||
border-right:1rem solid $color-bg;
|
||||
span {
|
||||
transform: rotate(180deg);
|
||||
display: block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
-webkit-writing-mode:vertical-lr;
|
||||
text-align: center;
|
||||
height:100%;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
74
browser/scss/widgets/_switch.scss
Normal file
74
browser/scss/widgets/_switch.scss
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
|
||||
|
||||
|
||||
|
||||
.switch-container {
|
||||
// height: 100%;
|
||||
width:100rem;
|
||||
flex-shrink: 0;
|
||||
&.nolabel .value:first-child {
|
||||
border-top:0!important;
|
||||
}
|
||||
.switch {
|
||||
height:100%;
|
||||
width:100%;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction:column;
|
||||
align-items: stretch;
|
||||
&.horizontal {
|
||||
flex-direction:row;
|
||||
.value {
|
||||
padding:28rem 12rem 12rem 12rem;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
&:before {
|
||||
left:50%;
|
||||
top:8rem;
|
||||
width:8rem;
|
||||
height:8rem;
|
||||
margin-left: -4rem;
|
||||
margin-top:0;
|
||||
}
|
||||
&:first-child {
|
||||
border-top: 1rem solid $color-fg;
|
||||
}
|
||||
}
|
||||
}
|
||||
.value {
|
||||
background:$color-raised;
|
||||
color:$color-text;
|
||||
width:100%;
|
||||
height:100%;
|
||||
position: relative;
|
||||
border-top: 1rem solid $color-fg;
|
||||
padding:12rem 12rem 12rem 24rem ;
|
||||
white-space: normal;
|
||||
text-align: left;
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom:0;
|
||||
}
|
||||
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
left:8rem;
|
||||
top:50%;
|
||||
width:8rem;
|
||||
height:8rem;
|
||||
margin-top: -4rem;
|
||||
background: $color-track;
|
||||
border-radius: 8rem;
|
||||
}
|
||||
&.on:before {
|
||||
background: $color-accent;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
45
browser/scss/widgets/_toggle.scss
Normal file
45
browser/scss/widgets/_toggle.scss
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
.toggle-container {
|
||||
width:100rem;
|
||||
min-height: 65rem;
|
||||
flex-shrink: 0;
|
||||
padding:0!important;
|
||||
background: $color-raised;
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
height:auto;
|
||||
background: none!important;
|
||||
text-align: center;
|
||||
pointer-events:none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.toggle {
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
|
||||
.light {
|
||||
position: absolute;
|
||||
left:4rem;
|
||||
right:4rem;
|
||||
top:4rem;
|
||||
height:4rem;
|
||||
background: $color-track;
|
||||
pointer-events: none;
|
||||
}
|
||||
&.on .light {
|
||||
background: $color-accent;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue