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

@ -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);
}