launcher ok

This commit is contained in:
bordun 2020-03-11 16:42:45 +01:00
parent a8fee9c5c3
commit 97c504e79a
23 changed files with 220 additions and 89 deletions

View file

@ -21,11 +21,12 @@ $warning: rgb(209, 154, 47);
flex-direction: column;
osc-panel-container.center {
osc-panel-container.main {
background-color: var(--color-background);
min-height: 0;
min-height: 40rem;
osc-panel-content {
padding: 12rem 8rem 8rem;
padding: 8rem;
}
}
osc-panel-content {
@ -34,7 +35,10 @@ $warning: rgb(209, 154, 47);
}
osc-panel-container.bottom {
flex: 1;
padding: 12rem 8rem;
min-height: 100rem;
&.minimized {
padding: 0;
}
@ -45,20 +49,13 @@ $warning: rgb(209, 154, 47);
--color-background: --color-ui-background; // scrollbar
}
.toggle-button {
display: none;
}
}
osc-settings {
// flex: 1;
display: grid;
grid-template-columns: repeat(2, 1fr);
&.disabled {
pointer-events: none;
}
}
osc-settings-field {
display: flex;
@ -83,6 +80,11 @@ osc-settings-field {
padding: 0 4rem;
width: 100rem;
}
[disabled], [disabled] ~ * {
pointer-events: none;
opacity: 0.75!important;
}
&.error label {
color: $error;
@ -124,7 +126,7 @@ osc-settings-checkbox, osc-settings-reset, osc-settings-file {
}
#osc-terminal {
flex: 1;
line-height: 18rem;
user-select:text;
cursor: auto;

View file

@ -54,7 +54,7 @@ osc-panel-container {
left: -1rem;
}
&.bottom {
&.bottom, &.top {
z-index: 2;
min-height: 0;
height: 0;
@ -68,8 +68,10 @@ osc-panel-container {
right: 0;
z-index: 1;
}
&.top:after {
bottom: -1rem;
top: auto;
}
}
.resize-handle {
@ -93,6 +95,15 @@ osc-panel-container {
width: auto;
cursor: ns-resize;
}
&.top {
top: auto;
bottom:0;
left:0;
right:0;
height: 4rem;
width: auto;
cursor: ns-resize;
}
}
.toggle-button {
@ -164,6 +175,29 @@ osc-panel-container {
}
}
&.top {
border-bottom-left-radius: 25rem;
border-bottom-right-radius: 25rem;
top: auto;
bottom: -25rem;
height: 25rem;
width: 50rem;
left: 50%;
margin-left: -25rem;
margin-top: 0;
cursor: pointer;
transform: translateY(- 25rem);
&:after {
content:"\f106";
margin-bottom: 2rem;
width: 50rem;
height: 25rem;
line-height: 25rem;
}
}
}
&:hover .toggle-button, .toggle-button:hover {
@ -185,6 +219,9 @@ osc-panel-container {
&.bottom:after {
content:"\f106";
}
&.top:after {
content:"\f107";
}
}
&.disabled .toggle-button {