ui: color scheme balance
This commit is contained in:
parent
fdbf0a561e
commit
db0fd1af05
13 changed files with 80 additions and 45 deletions
|
|
@ -12,8 +12,8 @@ $font-menu: sans-serif;
|
|||
|
||||
|
||||
--color-background: #21252b;
|
||||
--color-ui-background: #2c313a;
|
||||
--color-ui-background-secondary: #272c34;
|
||||
--color-ui-foreground: hsl(219, 14%, 23%);
|
||||
--color-ui-background: hsl(217, 14%, 19%);
|
||||
--color-ui-button: #{$nord1};
|
||||
--color-accent: #6db5fd;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
:root {
|
||||
--color-background: #{$nord0};
|
||||
--color-ui-background: #{$nord2};
|
||||
--color-ui-background-secondary: #{$nord1};
|
||||
--color-ui-foreground: #{$nord2};
|
||||
--color-ui-background: #{$nord1};
|
||||
--color-ui-button: #{$nord3};
|
||||
--color-accent: #{$nord8};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
:root {
|
||||
--color-background: #404040;
|
||||
--color-ui-background: #505050;
|
||||
--color-ui-background-secondary: #4A4A4A;
|
||||
--color-ui-foreground: #505050;
|
||||
--color-ui-background: #4A4A4A;
|
||||
--color-ui-button: #606060;
|
||||
--color-accent: #d98533;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ $padding: 8rem;
|
|||
#osc-console {
|
||||
background: var(--color-background);
|
||||
osc-panel-header {
|
||||
background: var(--color-ui-background);
|
||||
background: var(--color-ui-foreground);
|
||||
border-top: 1rem solid var(--color-background);
|
||||
}
|
||||
.toggle-button {
|
||||
|
|
@ -113,7 +113,7 @@ osc-console-message {
|
|||
padding: 2rem;
|
||||
border-radius: 2rem;
|
||||
&.editing {
|
||||
background: var(--color-ui-background);
|
||||
background: var(--color-ui-foreground);
|
||||
}
|
||||
&[data-widget="CONSOLE"] {
|
||||
cursor: default;
|
||||
|
|
|
|||
|
|
@ -69,9 +69,9 @@ $padding: 8rem;
|
|||
height: 42rem + $padding * 2;
|
||||
line-height: 38rem;
|
||||
flex-shrink: 0;
|
||||
// border: $padding solid var(--color-ui-background);
|
||||
// border: $padding solid var(--color-ui-foreground);
|
||||
padding: $padding;
|
||||
background: var(--color-ui-background);
|
||||
background: var(--color-ui-foreground);
|
||||
.btn {
|
||||
margin: 1rem;
|
||||
margin-left: $padding;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
$header-height: 28rem;
|
||||
$field-height: 24rem;
|
||||
$padding: 8rem;
|
||||
$radius: 3rem;
|
||||
|
||||
#osc-inspector {
|
||||
|
||||
|
|
@ -21,9 +22,10 @@ osc-inspector-field {
|
|||
position: absolute;
|
||||
left:94rem;
|
||||
top:0;
|
||||
right: 0;
|
||||
right: 1rem;
|
||||
border-top:1rem solid var(--color-ui-background);
|
||||
z-index: 1;
|
||||
// opacity: 0.5;
|
||||
}
|
||||
|
||||
--widget-padding: -1rem;
|
||||
|
|
@ -36,18 +38,28 @@ osc-inspector-field {
|
|||
line-height: $field-height;
|
||||
height: $field-height;
|
||||
cursor: pointer;
|
||||
background: var(--color-ui-background-secondary);
|
||||
background: var(--color-ui-foreground);
|
||||
border:1rem solid var(--color-background);
|
||||
border-right: none;
|
||||
border-top-left-radius: inherit;
|
||||
border-bottom-left-radius: inherit;
|
||||
}
|
||||
|
||||
&.has-editor {
|
||||
flex-direction: column;height: auto;
|
||||
|
||||
flex-direction: column;
|
||||
height: auto;
|
||||
border-radius: $radius;
|
||||
|
||||
> label {
|
||||
border:1rem solid var(--color-background);
|
||||
border-bottom : none;
|
||||
border-bottom: none;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
border-top-left-radius: inherit;
|
||||
border-top-right-radius: inherit;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
.btn {
|
||||
position: absolute;
|
||||
|
|
@ -55,7 +67,8 @@ osc-inspector-field {
|
|||
top:3rem;
|
||||
background: var(--color-ui-button);
|
||||
line-height: $field-height - 6;
|
||||
|
||||
border-top-right-radius: inherit;
|
||||
box-shadow: 0 0 1rem 0 var(--color-background)
|
||||
}
|
||||
&:after {
|
||||
content:none;
|
||||
|
|
@ -63,6 +76,8 @@ osc-inspector-field {
|
|||
}
|
||||
.ace_editor {
|
||||
min-height: $field-height;
|
||||
border-bottom-left-radius: inherit;
|
||||
border-bottom-right-radius: inherit;
|
||||
}
|
||||
> textarea, > input {
|
||||
font-family: $font-mono;
|
||||
|
|
@ -78,6 +93,11 @@ osc-inspector-field {
|
|||
background: var(--color-background);
|
||||
cursor: text;
|
||||
|
||||
&:last-child{
|
||||
border-top-right-radius: inherit;
|
||||
border-bottom-right-radius: inherit;
|
||||
}
|
||||
|
||||
user-select: initial;
|
||||
|
||||
--scrollbar-size: 6rem;
|
||||
|
|
@ -123,9 +143,9 @@ osc-inspector-field .ace_editor {
|
|||
--scrollbar-size: 8rem;
|
||||
|
||||
.ace_gutter {
|
||||
background: var(--color-ui-background-secondary);
|
||||
background: var(--color-background);
|
||||
color: #6a6f7a;
|
||||
border-right: 1rem solid var(--color-background);
|
||||
border-right: 1rem solid var(--color-ui-background);
|
||||
z-index: 10;
|
||||
// padding-top: 1rem;
|
||||
line-height: 1.5
|
||||
|
|
@ -335,7 +355,6 @@ osc-inspector-category {
|
|||
margin: $padding 0;
|
||||
position: relative;
|
||||
padding: 0 ($padding - 4);
|
||||
// opacity: 0.75;
|
||||
font-weight: 500;
|
||||
&:before {
|
||||
position: relative;
|
||||
|
|
@ -356,7 +375,7 @@ osc-inspector-category {
|
|||
height: 100%;
|
||||
left:-($padding);
|
||||
right:-($padding);
|
||||
background: var(--color-ui-background-secondary);
|
||||
background: var(--color-ui-foreground);
|
||||
border-top:1rem solid var(--color-background);
|
||||
border-bottom:1rem solid var(--color-background);
|
||||
z-index: -1;
|
||||
|
|
@ -397,6 +416,8 @@ osc-inspector-category {
|
|||
osc-inspector-color:after {
|
||||
top:0;
|
||||
}
|
||||
border-top-left-radius: $radius;
|
||||
border-top-right-radius: $radius;
|
||||
}
|
||||
osc-inspector-field.last-child,
|
||||
osc-inspector-field:last-child {
|
||||
|
|
@ -405,6 +426,9 @@ osc-inspector-category {
|
|||
osc-inspector-checkbox {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
border-bottom-left-radius: $radius;
|
||||
border-bottom-right-radius: $radius;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -425,6 +449,8 @@ osc-inspector-checkbox {
|
|||
justify-content: center;
|
||||
border-top: 1rem solid var(--color-background);
|
||||
border-bottom: 1rem solid var(--color-background);
|
||||
border-top-right-radius: inherit;
|
||||
border-bottom-right-radius: inherit;
|
||||
|
||||
i {
|
||||
// color: transparent;
|
||||
|
|
@ -472,7 +498,7 @@ osc-inspector-select {
|
|||
width: 127rem;
|
||||
opacity: 0;
|
||||
optgroup {
|
||||
background: var(--color-ui-background);
|
||||
background: var(--color-ui-foreground);
|
||||
font-weight: bold;
|
||||
option {
|
||||
background: var(--color-background);
|
||||
|
|
@ -512,6 +538,8 @@ osc-inspector-color {
|
|||
height: $field-height;
|
||||
width: $field-height;
|
||||
background: var(--color-background);
|
||||
border-top-right-radius: inherit;
|
||||
border-bottom-right-radius: inherit;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
|
|
@ -549,7 +577,7 @@ osc-inspector-color {
|
|||
height: 42rem + $padding * 2;
|
||||
line-height: 38rem;
|
||||
flex-shrink: 0;
|
||||
background: var(--color-ui-background);
|
||||
background: var(--color-ui-foreground);
|
||||
padding: $padding;
|
||||
.btn {
|
||||
flex: 1;
|
||||
|
|
@ -608,7 +636,7 @@ osc-inspector-color {
|
|||
user-select: text;
|
||||
}
|
||||
.description {
|
||||
border-top: 2rem solid var(--color-ui-background);
|
||||
border-top: 2rem solid var(--color-ui-foreground);
|
||||
margin-top: 10rem;
|
||||
padding-top: 10rem;
|
||||
white-space: normal;
|
||||
|
|
@ -618,7 +646,7 @@ osc-inspector-color {
|
|||
}
|
||||
|
||||
.computed {
|
||||
border-top: 2rem solid var(--color-ui-background);
|
||||
border-top: 2rem solid var(--color-ui-foreground);
|
||||
margin-top: 10rem;
|
||||
padding-top: 10rem;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#osc-launcher {
|
||||
|
||||
osc-panel-header {
|
||||
background-color: var(--color-ui-background);
|
||||
background-color: var(--color-ui-foreground);
|
||||
--alpha-fill: .75;
|
||||
text-align: left;
|
||||
justify-content: center;
|
||||
|
|
@ -19,12 +19,12 @@
|
|||
flex-direction: column;
|
||||
|
||||
osc-panel-container.main {
|
||||
background-color: var(--color-ui-background);
|
||||
background-color: var(--color-ui-foreground);
|
||||
min-height: 0;
|
||||
min-height: 40rem;
|
||||
osc-panel-content {
|
||||
padding: 8rem;
|
||||
background-color: var(--color-ui-background);
|
||||
background-color: var(--color-ui-foreground);
|
||||
}
|
||||
}
|
||||
osc-panel-content {
|
||||
|
|
@ -41,14 +41,14 @@
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
border-top: 2rem solid var(--color-ui-background);
|
||||
border-top: 2rem solid var(--color-ui-foreground);
|
||||
max-height: calc(100% - var(--nav-height));
|
||||
background-color: var(--color-background);
|
||||
osc-panel-inner {
|
||||
background-color: var(--color-background);
|
||||
}
|
||||
|
||||
// --color-background: --color-ui-background; // scrollbar
|
||||
// --color-background: --color-ui-foreground; // scrollbar
|
||||
}
|
||||
|
||||
osc-panel-inner {
|
||||
|
|
@ -76,7 +76,7 @@ osc-settings-field {
|
|||
left:100rem;
|
||||
top:0;
|
||||
right: 0;
|
||||
border-top:1rem solid var(--color-ui-background);
|
||||
border-top:1rem solid var(--color-ui-foreground);
|
||||
z-index: 11;
|
||||
}
|
||||
&:nth-child(2n) {
|
||||
|
|
@ -99,7 +99,7 @@ osc-settings-field {
|
|||
label {
|
||||
width: 100rem;
|
||||
// text-align: right;
|
||||
background: var(--color-ui-background-secondary);
|
||||
background: var(--color-ui-background);
|
||||
border:1rem solid var(--color-background);
|
||||
border-right: none;
|
||||
// margin-right: 8rem;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
top:-3rem;
|
||||
right:-3rem;
|
||||
bottom:-3rem;
|
||||
border:4rem solid var(--color-ui-background);
|
||||
border:4rem solid var(--color-ui-foreground);
|
||||
border-top: 2rem solid var(--color-widget);
|
||||
transform: rotateZ(0deg);
|
||||
animation: spin .5s linear infinite;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ $padding: 8rem;
|
|||
display: flex;
|
||||
padding:0 $padding * 2 - 1;
|
||||
align-items: center;
|
||||
background: var(--color-ui-background);
|
||||
background: var(--color-ui-foreground);
|
||||
.title {
|
||||
flex:1;
|
||||
overflow: hidden;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ osc-toolbar {
|
|||
--size: 34rem;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
left: -1rem;
|
||||
height:var(--size);
|
||||
width:var(--size);
|
||||
max-width:var(--size);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@
|
|||
--alpha-fill: 0.5;
|
||||
--widget-padding: -1rem;
|
||||
|
||||
$padding: 16rem;
|
||||
$padding: 8rem;
|
||||
$radius: 3rem;
|
||||
$line-height: 28rem;
|
||||
$field-height: 30rem;
|
||||
padding-right: 0;
|
||||
|
|
@ -20,7 +21,7 @@
|
|||
flex: 1;
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
padding-left:$padding;
|
||||
padding-left:$padding + 4rem;
|
||||
padding-right:$padding;
|
||||
|
||||
}
|
||||
|
|
@ -136,7 +137,7 @@
|
|||
z-index: 1;
|
||||
@include pseudo-fill($z: -1);
|
||||
&:after {
|
||||
left: calc(-1 * var(--depth) * 16rem - #{$padding});
|
||||
left: calc(-1 * var(--depth) * 20rem - #{$padding});
|
||||
right: 1rem - $padding;
|
||||
bottom: auto;
|
||||
height: $line-height;
|
||||
|
|
@ -156,7 +157,7 @@
|
|||
z-index: 1;
|
||||
@include pseudo-fill($z: -1);
|
||||
&:after {
|
||||
left: calc(-1 * var(--depth) * 16rem - #{$padding});
|
||||
left: calc(-1 * var(--depth) * 20rem - #{$padding});
|
||||
right: 1rem - $padding;
|
||||
bottom: auto;
|
||||
height: $line-height;
|
||||
|
|
@ -168,12 +169,14 @@
|
|||
.filter {
|
||||
display: block;
|
||||
font-family: $font;
|
||||
line-height: $field-height;
|
||||
// line-height: $field-height;
|
||||
padding: 0 $padding;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
background: var(--color-ui-background-secondary);
|
||||
border-bottom: 1rem solid var(--color-background);
|
||||
background: var(--color-background);
|
||||
border: 1rem solid var(--color-background);
|
||||
margin: $padding;
|
||||
border-radius: $radius;
|
||||
}
|
||||
|
||||
.filter-active .filter-hide {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
osc-workspace {
|
||||
|
||||
background: var(--color-ui-background);
|
||||
background: var(--color-ui-foreground);
|
||||
|
||||
--color-fill: var(--color-widget);
|
||||
--color-stroke: var(--color-widget);
|
||||
|
|
@ -26,6 +26,8 @@ osc-workspace {
|
|||
|
||||
osc-panel-container {
|
||||
|
||||
background: var(--color-ui-background);
|
||||
|
||||
position: relative;
|
||||
display:flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -64,7 +66,7 @@ osc-panel-container {
|
|||
}
|
||||
|
||||
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece {
|
||||
border-color: var(--color-ui-background)!important;
|
||||
border-color: var(--color-ui-foreground)!important;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -316,6 +318,7 @@ osc-panel-header {
|
|||
text-overflow: ellipsis;
|
||||
padding: 0 8rem;
|
||||
flex-shrink: 0;
|
||||
background: var(--color-ui-foreground);
|
||||
|
||||
&:before {
|
||||
content: "";
|
||||
|
|
@ -333,12 +336,13 @@ osc-panel-header {
|
|||
|
||||
osc-panel-content {
|
||||
|
||||
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
|
||||
&.left, &.right {
|
||||
&::-webkit-scrollbar-thumb, &::-webkit-scrollbar-track-piece {
|
||||
border-right: 1rem solid var(--color-ui-background);
|
||||
border-right: 1rem solid var(--color-ui-foreground);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@
|
|||
|
||||
.navigation {
|
||||
|
||||
background-color: var(--color-ui-background);
|
||||
background-color: var(--color-ui-foreground);
|
||||
|
||||
height:var(--nav-height);
|
||||
flex-shrink:0;
|
||||
|
|
@ -297,7 +297,7 @@
|
|||
|
||||
&.on {
|
||||
z-index: 1;overflow: visible;
|
||||
background: var(--color-ui-background-secondary);
|
||||
background: var(--color-ui-background);
|
||||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue