ui: clean keyboard code, add unselect btn, tidyup style

This commit is contained in:
jean-emmanuel 2022-10-30 14:55:42 +01:00
parent 63e7a4fa5c
commit e52a4c224e
6 changed files with 115 additions and 87 deletions

View file

@ -46,15 +46,26 @@ osc-panel-container.right.editor-breakout {
align-items: center;
justify-content: center;
display: flex;
&:last-child {
margin-left: auto;
}
i {
pointer-events: none;
}
&[data-action="toggle-grid"] {
color: var(--color-accent)
}
&[data-action="reset-selection"]:after {
content: "";
position: absolute;
border-left: 1.5rem solid;
left: 50%;
top: 50%;
margin-top: -8rem;
margin-left: -1rem;
height: 16rem;
transform: rotate(45deg);
}
}
.spacer {
flex: 1
}
}
@ -63,6 +74,9 @@ osc-panel-container.right.editor-breakout {
overflow: auto;
flex:1;
height: calc(100% - 46rem);
box-shadow: 0 1rem 0 0 inset rgba(white, 0.025);
&::-webkit-scrollbar-thumb, &::-webkit-scrollbar-track-piece {
border-color: var(--color-background)!important;
border-top:0;

View file

@ -66,12 +66,11 @@ osc-keyboard {
width: 100rem;
}
.caret {
position: relative;
&:after {
content: "";
height: 10rem;
box-shadow: 0 0 0 1rem var(--color-accent);
position: absolute;
position: relative;
animation: caret-blink 1.2s steps(2, start) infinite;
pointer-events: none;
}
@ -104,6 +103,8 @@ osc-keyboard {
}
&:first-child {
height: 40rem;
min-height: 40rem;
flex-shrink: 0;
overflow: hidden;
margin-bottom: var(--spacing);
}

View file

@ -24,6 +24,8 @@
padding-left:$padding + 4rem;
padding-right:$padding;
border-top:1rem solid var(--color-background);
box-shadow: 0 1rem 0 0 inset rgba(white, 0.025);
padding-top:1rem;
&::-webkit-scrollbar-thumb, &::-webkit-scrollbar-track-piece {
border-color: var(--color-background)!important;

View file

@ -43,6 +43,7 @@ osc-panel-container {
flex: 1;
z-index: 1;
min-width: 100rem;
background: rgba(black, 0.35)!important
}
&.left, &.right {
@ -371,7 +372,7 @@ osc-panel-content {
left:0;
right:0;
bottom:0;
background: rgba(black, 0.5);
background: rgba(black, 0.35);
}
}