rename precision to decimals, add typeTags, continue refactoring

This commit is contained in:
bordun 2020-02-29 17:01:29 +01:00
parent f41ac14698
commit a58075c602
54 changed files with 426 additions and 256 deletions

View file

@ -27,8 +27,8 @@ $text: white;
--color-accent: #{$accent};
--color-foreground: #{$base};
--color-background: #{mix($base, black, 85)};
--color-background: #{$base};
--color-ui-background: #{mix($base, black, 85)};
--color-grid: rgba(0,0,0, 0.1);
--color-notification: #{rgba(black, 0.8)};

View file

@ -1,5 +1,5 @@
.btn {
background: var(--color-foreground);
background: var(--color-background);
display: block;
padding:15rem;
position: relative;

View file

@ -1,3 +1,4 @@
$padding: 8rem;
.file-browser {
@ -7,23 +8,23 @@
display: flex;
flex-direction: column;
flex: 1;
padding: 2rem 8rem 8rem;
background: var(--color-background);
padding: 2rem $padding $padding;
background: var(--color-ui-background);
.ariane {
height: 40rem;
flex-shrink: 0;
line-height: 40rem;
padding-left: 10rem;
background: var(--color-foreground);
padding-left: $padding;
background: var(--color-background);
margin-bottom: 2rem;
}
.file-list {
overflow-y: auto;
flex:1;
background: var(--color-foreground);
padding: 0 10rem;
background: var(--color-background);
padding: 0 $padding;
}
.file {
position: relative;
@ -54,8 +55,8 @@
&:before {
content:"";
position: absolute;
left:-10rem;
right:-10rem;
left:-$padding;
right:-$padding;
height: 100%;
background: var(--color-widget);
opacity: 0.1;
@ -69,9 +70,9 @@
justify-content: flex-end;
height: 40rem;
flex-shrink: 0;
margin-top: 10rem;
margin-top: $padding;
div {
margin-left: 10rem;
margin-left: $padding;
text-overflow: clip;
min-width: 0;
}
@ -87,7 +88,7 @@
font-size: 120%;
top: -1rem;
position: relative;
background: var(--color-foreground);
background: var(--color-background);
min-width: 0;
&[disabled] {
display: none

View file

@ -4,8 +4,6 @@ $padding: 8rem;
#osc-inspector {
// padding: $padding;
--widget-padding: -1rem;
}
@ -37,13 +35,13 @@ osc-inspector-field {
resize: none;
white-space: pre;
display: block;
background: var(--color-foreground);
background: var(--color-background);
cursor: text;
--scrollbar-size: 6rem;
&::-webkit-scrollbar-thumb:horizontal {
// border-top: 4rem solid var(--color-foreground);
// border-top: 4rem solid var(--color-background);
cursor: normal;
}
@ -78,7 +76,7 @@ osc-inspector-category {
position: relative;
text-transform: none;
cursor: pointer;
// color: var(--color-background);
// color: var(--color-ui-background);
height: $header-height;
line-height: $header-height + 1;
// padding: 0 8rem;
@ -138,7 +136,7 @@ osc-inspector-checkbox {
height: $field-height;
width: $field-height;
cursor: pointer;
background: var(--color-foreground);
background: var(--color-background);
text-align: center;
display: flex;
align-items: center;
@ -170,10 +168,10 @@ osc-inspector-select {
overflow: hidden;
height: $field-height;
width: $field-height;
background: var(--color-foreground);
background: var(--color-background);
margin-left: 4rem;
select {
background: var(--color-foreground);
background: var(--color-background);
// width: 100%;
line-height: $field-height - 8rem;
padding: 4rem 6rem;
@ -182,10 +180,10 @@ osc-inspector-select {
left:0;
opacity: 0;
optgroup {
background: var(--color-foreground);
background: var(--color-background);
font-weight: bold;
option {
background: var(--color-background);
background: var(--color-ui-background);
color: var(--color-text);
margin-left: -4rem;
font-weight: normal;
@ -221,7 +219,7 @@ osc-inspector-color {
overflow: hidden;
height: $field-height;
width: $field-height;
background: var(--color-foreground);
background: var(--color-background);
margin-left: 4rem;
cursor: pointer;
@ -238,10 +236,10 @@ osc-inspector-color {
.color-picker-modal {
padding: 8rem;
background: var(--color-background);
background: var(--color-ui-background);
.widget {
background: var(--color-foreground);
background: var(--color-background);
}
.actions {

View file

@ -25,7 +25,7 @@
top:-3rem;
right:-3rem;
bottom:-3rem;
border:4rem solid var(--color-background);
border:4rem solid var(--color-ui-background);
border-top: 2rem solid var(--color-widget);
transform: rotateZ(0deg);
animation: spin .5s linear infinite;

View file

@ -1,3 +1,4 @@
$padding: 8rem;
.lobby {
@ -7,15 +8,15 @@
display: flex;
flex-direction: column;
flex: 1;
background: var(--color-background);
padding: 2rem 8rem 8rem;
background: var(--color-ui-background);
padding: 2rem $padding $padding;
.list {
overflow: auto;
text-transform: none;
flex: 1;
background: var(--color-foreground);
padding: 0 10rem;
background: var(--color-background);
padding: 0 $padding;
a {
padding-right: 30rem;
}
@ -23,16 +24,16 @@
}
.footer {
margin-top: 10rem;
margin-top: $padding;
white-space: nowrap;
text-overflow: ellipsis;
flex-grow: 0;
display: flex;
flex-direction: row;
a {
margin-left: 10rem;
margin-left: $padding;
text-align: center;
background: var(--color-foreground);
background: var(--color-background);
&:first-child {
margin: 0;
}

View file

@ -1,3 +1,5 @@
$padding: 8rem;
@keyframes popup-backdrop-fade-in {
0% {opacity: 0}
100% {opacity: .1}
@ -42,14 +44,14 @@
min-height: var(--nav-height);
height: var(--nav-height);
display: flex;
padding:0 15rem;
padding:0 $padding * 2 - 1;
align-items: center;
background: var(--color-background);
background: var(--color-ui-background);
.title {
flex:1;
overflow: hidden;
}
i {
> i {
margin-right: 5rem;
}
&.closable {
@ -73,7 +75,7 @@
}
}
.popup-wrapper {
background: var(--color-foreground);
background: var(--color-ui-background);
display: flex;
flex-direction: column;
align-items: stretch;

View file

@ -4,12 +4,12 @@
}
::-webkit-scrollbar-track-piece {
background: var(--color-foreground);
background: var(--color-background);
&:vertical {
border-left: 1rem solid var(--color-foreground);
border-left: 1rem solid var(--color-background);
}
&:horizontal {
border-top: 1rem solid var(--color-foreground);
border-top: 1rem solid var(--color-background);
}
}
@ -19,10 +19,10 @@
background: var(--color-scrollbar-on);
}
&:vertical {
border-left: 1rem solid var(--color-foreground);
border-left: 1rem solid var(--color-background);
}
&:horizontal {
border-top: 1rem solid var(--color-foreground);
border-top: 1rem solid var(--color-background);
}
}
@ -34,7 +34,7 @@
::-webkit-scrollbar-corner {
height: 0rem;
width: 0rem;
background: var(--color-foreground);
background: var(--color-background);
}

View file

@ -1,6 +1,6 @@
osc-workspace {
background: var(--color-background);
background: var(--color-ui-background);
--color-fill: var(--color-widget);
--color-stroke: var(--color-widget);
@ -42,7 +42,7 @@ osc-panel-container {
}
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece {
border-color: var(--color-background)!important;
border-color: var(--color-ui-background)!important;
}
}
@ -76,7 +76,7 @@ osc-panel-container {
width: 25rem;
margin-top: -25rem;
cursor: pointer;
background: var(--color-background);
background: var(--color-ui-background);
font-size: 14rem;
z-index: 2;
transition: transform 0.2s ease-out 0.1s;
@ -213,7 +213,7 @@ osc-panel-content {
overflow-y: auto;
&.left, &.right {
border-right: 1rem solid var(--color-background);
border-right: 1rem solid var(--color-ui-background);
}

View file

@ -12,6 +12,8 @@
width: 100rem;
height: 100rem;
background-clip: content-box;
contain: strict;
@supports not (contain: strict) {
transform: rotateZ(0); // force new stacking context
@ -31,7 +33,8 @@
--alpha-fill-on: 0.25;
--alpha-fill: var(--alpha-fill-off);
--alpha-pips: 0.7;
--alpha-pips: 0.5;
--alpha-pips-text: 0.7;
color: var(--color-text);

View file

@ -3,7 +3,7 @@
--alpha-fill-off: 0;
--alpha-fill-on: .75;
--widget-padding: -1rem;
--color-text-on: var(--color-foreground);
--color-text-on: var(--color-background);
inner {
@ -53,7 +53,7 @@
--alpha-fill-on: 0.75;
--alpha-fill: var(--alpha-fill-off);
--color-text-on: var(--color-foreground);
--color-text-on: var(--color-background);
inner {
@ -173,7 +173,7 @@
overflow: hidden;
background: var(--color-foreground);
background: var(--color-background);
@include pseudo-stroke($z: 2);
&:before {
@ -211,8 +211,8 @@
left: 50%;
margin-left: calc(-1 * var(--size) / 8 + 6rem);
margin-top: calc(-1 * var(--size) / 8 + 6rem);
background: var(--color-foreground);
box-shadow: 0 0 0 2rem var(--color-foreground), 0 0 0 3rem var(--color-stroke);
background: var(--color-background);
box-shadow: 0 0 0 2rem var(--color-background), 0 0 0 3rem var(--color-stroke);
border-radius: 100%;
z-index: 10;
opacity: var(--alpha-stroke);
@ -225,7 +225,7 @@
height: 100%;
transform-origin: 100% 100%;
position: absolute;
box-shadow: 0 0 0 2rem var(--color-foreground);
box-shadow: 0 0 0 2rem var(--color-background);
div {
@ -304,7 +304,7 @@
}
&.on {
color: var(--color-foreground);
color: var(--color-background);
div:after {
opacity: var(--alpha-fill)!important;
}
@ -403,7 +403,7 @@
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
background: var(--color-foreground);
background: var(--color-background);
opacity: 0;
}

View file

@ -5,7 +5,7 @@
width: 100%;
height: 100%;
background-color: var(--color-foreground);
background-color: var(--color-background);
> inner {
flex: 1;
@ -29,8 +29,7 @@
--widget-padding: 4rem;
background-color: var(--color-foreground);
background-clip: content-box;
background-color: var(--color-background);
> inner {
@ -64,7 +63,9 @@
position: relative!important;
height: auto!important;
min-height: auto!important;
min-width: auto!important;
max-height: 100%;
max-width: 100%;
}
}
&.layout-vertical > inner {
@ -76,7 +77,9 @@
left:auto!important;
position: relative!important;
width: auto!important;
min-height: auto!important;
min-width: auto!important;
max-height: 100%;
max-width: 100%;
}
@ -129,7 +132,7 @@
width: 100%;
flex: 1;
height: 100%;
background-color: var(--color-foreground);
background-color: var(--color-background);
&:not(.show) {
display:none
@ -141,8 +144,7 @@
}
.panel-container,
.matrix-container {
.panel-container {
@extend .widget-panel-base;
@ -156,7 +158,7 @@
> label {
position: relative;
// background-color: var(--color-foreground);
// background-color: var(--color-background);
@include pseudo-stroke($z: 10);
&:before {
border-width: 0 0 1rem 0;
@ -165,7 +167,7 @@
}
&.contains-widgets.nolabel > inner {
border-top: 1rem solid var(--color-foreground);
border-top: 1rem solid var(--color-background);
}
&.contains-tabs > inner > .navigation {
@ -178,7 +180,7 @@
.navigation {
background-color: var(--color-background);
background-color: var(--color-ui-background);
height:calc(var(--nav-height) - 1rem);
flex-shrink:0;
@ -275,6 +277,11 @@
}
}
&:before {
content: none
}
> label {
display: none;
}
@ -378,7 +385,7 @@
--alpha-fill:var(--alpha-fill-on);
}
> label, > label:after {
color: var(--color-foreground);
color: var(--color-background);
opacity: 1;
}
@ -429,3 +436,17 @@
}
}
.matrix-container {
@extend .panel-container;
&.layout-vertical, &.layout-horizontal {
> inner > .widget {
flex: 1;
}
}
}

View file

@ -55,7 +55,7 @@
&:focus::selection {
background: var(--color-fill);
color: var(--color-foreground);
color: var(--color-background);
}
}

View file

@ -2,6 +2,9 @@
.visualizer-container,
.plot-container {
width: 200rem;
height: 200rem;
--alpha-fill-off: 0.05;
--alpha-fill-on: 0.1;
--widget-padding: 20rem;

View file

@ -18,8 +18,15 @@
.fader-container,
.range-container {
width: 50rem;
height: 200rem;
--widget-padding: 1rem;
canvas {
text-align: left;
}
&.design-classic {
--widget-padding: 10rem;
--alpha-stroke: 0.5;
@ -39,6 +46,9 @@
.knob-container,
.encoder-container {
width: 100rem;
height: 100rem;
--widget-padding: 1rem;
--alpha-stroke: 0.75;