v1 refactor wip
This commit is contained in:
parent
ddbd526eae
commit
b8c925c2ef
109 changed files with 5639 additions and 4272 deletions
60
src/scss/ui/contextmenu.scss
Normal file
60
src/scss/ui/contextmenu.scss
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
$line-height: 30rem;
|
||||
|
||||
.context-menu {
|
||||
|
||||
position:fixed;
|
||||
z-index: 999999999;
|
||||
background: var(--color-context-menu);
|
||||
box-shadow: 0 0 0 1rem rgba(0, 0, 0, 0.1) inset;
|
||||
text-transform: none;
|
||||
color: var(--color-context-menu-text);
|
||||
line-height: $line-height;
|
||||
--widget-padding: 0rem;
|
||||
|
||||
.context-menu {
|
||||
position: absolute;
|
||||
left:100%;
|
||||
top:0;
|
||||
opacity:0;
|
||||
pointer-events: none;
|
||||
margin-left: 1rem;
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:0;
|
||||
bottom:0;
|
||||
left:-2rem;
|
||||
width:2rem;
|
||||
}
|
||||
}
|
||||
> .item {
|
||||
padding-left: 15rem;
|
||||
padding-right: 25rem;
|
||||
position:relative;
|
||||
cursor: pointer;
|
||||
i {
|
||||
margin-right:5rem;
|
||||
width: 15rem;
|
||||
text-align: center;
|
||||
margin-left: -5rem;
|
||||
}
|
||||
&.focus, &:focus {
|
||||
> .context-menu {
|
||||
pointer-events: auto;
|
||||
opacity: 1;
|
||||
}
|
||||
@include pseudo-fill($z: -1);
|
||||
color: var(--color-context-menu);
|
||||
}
|
||||
&.has-sub:before {
|
||||
content:"\f105";
|
||||
display: block;
|
||||
font-family: FontAwesome;
|
||||
float:right;
|
||||
margin-right:-20rem;
|
||||
width: 15rem;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
}
|
||||
80
src/scss/ui/dragresize.scss
Normal file
80
src/scss/ui/dragresize.scss
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
#drag-resize {
|
||||
|
||||
--color-fill: var(--color-accent);
|
||||
--color-stroke: var(--color-accent);
|
||||
|
||||
position: absolute;
|
||||
z-index: 99999999;
|
||||
|
||||
top: var(--top);
|
||||
left: var(--left);
|
||||
|
||||
.helper {
|
||||
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width: var(--width);
|
||||
height: var(--height);
|
||||
pointer-events: none;
|
||||
--alpha-fill: 0.5;
|
||||
--widget-padding: -1rem;
|
||||
opacity: 0.5;
|
||||
display: none;
|
||||
border: 1rem solid var(--color-stroke);
|
||||
@include pseudo-fill();
|
||||
}
|
||||
|
||||
&.dragging .helper {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.handle {
|
||||
|
||||
$size: 10rem;
|
||||
|
||||
position: absolute;
|
||||
background: var(--color-fill);
|
||||
width: $size;
|
||||
height: $size;
|
||||
border: 2rem solid transparent;
|
||||
background-clip: content-box;
|
||||
// opacity: 0.75;
|
||||
|
||||
&.nw {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
&.e {
|
||||
|
||||
top: calc(var(--height) / 2);
|
||||
left: var(--width);
|
||||
margin-left: -$size;
|
||||
margin-top: -$size / 2;
|
||||
cursor: e-resize;
|
||||
|
||||
}
|
||||
|
||||
&.se {
|
||||
|
||||
top: var(--height);
|
||||
left: var(--width);
|
||||
margin-left: -$size;
|
||||
margin-top: -$size;
|
||||
cursor: se-resize;
|
||||
|
||||
}
|
||||
|
||||
&.s {
|
||||
|
||||
top: var(--height);
|
||||
left: calc(var(--width) / 2);
|
||||
margin-left: -$size / 2;
|
||||
margin-top: -$size;
|
||||
cursor: s-resize;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
226
src/scss/ui/inspector.scss
Normal file
226
src/scss/ui/inspector.scss
Normal file
|
|
@ -0,0 +1,226 @@
|
|||
$header-height: 22rem;
|
||||
$field-height: 22rem;
|
||||
$padding: 8rem;
|
||||
|
||||
#osc-inspector {
|
||||
|
||||
// padding: $padding;
|
||||
|
||||
--widget-padding: -1rem;
|
||||
|
||||
}
|
||||
|
||||
osc-inspector-field {
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
line-height: $field-height;
|
||||
margin-top: 4rem;
|
||||
|
||||
label {
|
||||
width: 90rem;
|
||||
order: 35;
|
||||
text-transform: none;
|
||||
padding-left: 8rem;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
textarea {
|
||||
font-family: mono;
|
||||
|
||||
line-height: $field-height - 8rem;
|
||||
padding: 5rem 6rem 3rem;
|
||||
flex: 1;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
resize: none;
|
||||
white-space: pre;
|
||||
display: block;
|
||||
background: var(--color-foreground);
|
||||
cursor: text;
|
||||
|
||||
-webkit-appearance:none;
|
||||
-moz-appearance:none;
|
||||
appearance:none;
|
||||
|
||||
--scrollbar-size: 6rem;
|
||||
|
||||
&::-webkit-scrollbar-thumb:horizontal {
|
||||
// border-top: 4rem solid var(--color-foreground);
|
||||
cursor: normal;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
osc-inspector-category {
|
||||
|
||||
--alpha-fill: 0.25;
|
||||
margin-top: 2rem;
|
||||
display: block;
|
||||
padding: 0 8rem;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0
|
||||
}
|
||||
|
||||
.category-header {
|
||||
position: relative;
|
||||
text-transform: none;
|
||||
cursor: pointer;
|
||||
// color: var(--color-background);
|
||||
height: $header-height;
|
||||
line-height: $header-height + 1;
|
||||
// padding: 0 8rem;
|
||||
@include pseudo-fill($z: -1);
|
||||
|
||||
&:after {
|
||||
left:-($padding - 2);
|
||||
right:-($padding - 1);
|
||||
}
|
||||
|
||||
&:before {
|
||||
position: relative;
|
||||
font-family: FontAwesome;
|
||||
content: "\f04b";
|
||||
width: $field-height;
|
||||
text-align: left;
|
||||
display: inline-block;
|
||||
transform-origin: 2rem 3rem;
|
||||
font-size: 7rem;
|
||||
width: 8rem;
|
||||
height: 8rem;
|
||||
line-height: 6rem;
|
||||
margin-right: 8rem;
|
||||
top: -2rem;
|
||||
transform: rotate(90deg);
|
||||
transition: top .1s, transform .1s;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&.folded {
|
||||
|
||||
--alpha-fill: 0.10;
|
||||
margin-bottom: 0;
|
||||
|
||||
.category-header:before {
|
||||
transform: rotate(0deg);
|
||||
top: 0;
|
||||
}
|
||||
osc-inspector-field {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.category-header + osc-inspector-field {
|
||||
margin-top: 8rem;
|
||||
}
|
||||
osc-inspector-field:last-child {
|
||||
margin-bottom: 8rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
osc-inspector-checkbox {
|
||||
|
||||
line-height: $field-height;
|
||||
height: $field-height;
|
||||
width: $field-height;
|
||||
cursor: pointer;
|
||||
background: var(--color-foreground);
|
||||
text-align: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-left: 4rem;
|
||||
|
||||
i {
|
||||
color: transparent;
|
||||
margin-top: -1rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
&.on {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
@include pseudo-fill($z: -1);
|
||||
i {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
osc-inspector-select {
|
||||
position: relative;
|
||||
font-family: mono;
|
||||
line-height: inherit;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
height: $field-height;
|
||||
width: $field-height;
|
||||
background: var(--color-foreground);
|
||||
margin-left: 4rem;
|
||||
select {
|
||||
background: var(--color-foreground);
|
||||
// width: 100%;
|
||||
line-height: $field-height - 8rem;
|
||||
padding: 4rem 6rem;
|
||||
-webkit-appearance:none;
|
||||
-moz-appearance:none;
|
||||
appearance:none;
|
||||
position: absolute;
|
||||
left:0;
|
||||
opacity: 0;
|
||||
optgroup {
|
||||
background: var(--color-foreground);
|
||||
font-weight: bold;
|
||||
option {
|
||||
background: var(--color-background);
|
||||
color: var(--color-text);
|
||||
margin-left: -4rem;
|
||||
font-weight: normal;
|
||||
text-indent: -10px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
&:after{
|
||||
content:"\f0d7";
|
||||
font-family: FontAwesome;
|
||||
position: absolute;
|
||||
line-height: $field-height;
|
||||
height: $field-height;
|
||||
width: $field-height;
|
||||
text-align: center;
|
||||
right:0;
|
||||
top:1rem;
|
||||
font-size: 16rem;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.osc-inspector-color {
|
||||
appearance: none;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
box-shadow: 0;
|
||||
outline: 0;
|
||||
position: relative;
|
||||
font-family: mono;
|
||||
line-height: inherit;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
height: $field-height;
|
||||
width: $field-height;
|
||||
background: var(--color-foreground);
|
||||
margin-left: 4rem;
|
||||
-webkit-appearance:none;
|
||||
-moz-appearance:none;
|
||||
appearance:none;
|
||||
}
|
||||
78
src/scss/ui/modal.scss
Normal file
78
src/scss/ui/modal.scss
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
.popup {
|
||||
|
||||
position: fixed;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
padding:10%;
|
||||
align-items:center;
|
||||
justify-content: center;
|
||||
z-index: 99999999;
|
||||
transform: translate3d(0,0,0);
|
||||
display: none;
|
||||
// backdrop-filter: blur(1rem); // perf hit
|
||||
|
||||
&.show {
|
||||
display: flex;
|
||||
}
|
||||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top:0rem;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background: black;
|
||||
opacity: .1;
|
||||
}
|
||||
.popup-title {
|
||||
position: relative;
|
||||
height: var(--nav-height);
|
||||
display: flex;
|
||||
padding:0 15rem;
|
||||
align-items: center;
|
||||
background: var(--color-background);
|
||||
.title {
|
||||
flex:1;
|
||||
overflow: hidden;
|
||||
}
|
||||
i {
|
||||
margin-right: 5rem;
|
||||
}
|
||||
&.closable {
|
||||
padding-right: 0;
|
||||
}
|
||||
.popup-label {
|
||||
flex:1;
|
||||
overflow: hidden;
|
||||
}
|
||||
.closer {
|
||||
height: var(--nav-height);
|
||||
width: var(--nav-height);
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
i {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.popup-wrapper {
|
||||
background: var(--color-foreground);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
width:auto;
|
||||
max-width:600rem;
|
||||
max-height: 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.popup-content {
|
||||
flex:1;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
57
src/scss/ui/notifications.scss
Normal file
57
src/scss/ui/notifications.scss
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
#notifications {
|
||||
position: fixed;
|
||||
bottom:0;
|
||||
right:0;
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
z-index: 9999999;
|
||||
padding:10rem;
|
||||
width:300rem;
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
.toast {
|
||||
animation: toast_fade-in 0.2s forwards;
|
||||
transform-origin: bottom;
|
||||
background: var(--color-notification);
|
||||
transition: all 0.2s;
|
||||
overflow: hidden;
|
||||
margin-top: 10rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
&.remove {
|
||||
animation: toast_fade-out 0.2s forwards;
|
||||
height: 0!important;
|
||||
margin-top: 0!important;
|
||||
}
|
||||
i {
|
||||
margin-left: 10rem;
|
||||
font-size: 14rem;
|
||||
min-width: 30rem;
|
||||
color: var(--color-accent);
|
||||
}
|
||||
&.error {
|
||||
i {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
padding: 10rem;
|
||||
white-space: normal;
|
||||
text-transform: none;
|
||||
line-height: normal;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@keyframes toast_fade-in {
|
||||
from {opacity: 0; transform: rotateX(90deg)}
|
||||
to {opacity: 1; transform: rotateX(0)}
|
||||
}
|
||||
|
||||
@keyframes toast_fade-out {
|
||||
from {opacity: 1; transform: rotateX(0)}
|
||||
to {opacity: 0; transform: rotateX(90deg)}
|
||||
}
|
||||
44
src/scss/ui/scrollbars.scss
Normal file
44
src/scss/ui/scrollbars.scss
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
::-webkit-scrollbar {
|
||||
width: var(--scrollbar-size);
|
||||
height:var(--scrollbar-size);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track-piece {
|
||||
background: var(--color-foreground);
|
||||
&:vertical {
|
||||
border-left: 1rem solid var(--color-foreground);
|
||||
}
|
||||
&:horizontal {
|
||||
border-top: 1rem solid var(--color-foreground);
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--color-scrollbar);
|
||||
&:active {
|
||||
background: var(--color-scrollbar-on);
|
||||
}
|
||||
&:vertical {
|
||||
border-left: 1rem solid var(--color-foreground);
|
||||
}
|
||||
&:horizontal {
|
||||
border-top: 1rem solid var(--color-foreground);
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-button:decrement:start, ::-webkit-scrollbar-button:increment:end {
|
||||
height: 0;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-corner {
|
||||
height: 0rem;
|
||||
width: 0rem;
|
||||
background: var(--color-foreground);
|
||||
}
|
||||
|
||||
|
||||
* {
|
||||
scrollbar-color: var(--color-scrollbar) var(--color-background);
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
19
src/scss/ui/selectarea.scss
Normal file
19
src/scss/ui/selectarea.scss
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
.select-area {
|
||||
|
||||
position:fixed;
|
||||
z-index:999999;
|
||||
border: 1rem solid var(--color-accent);
|
||||
pointer-events: none;
|
||||
&:after {
|
||||
content:"";
|
||||
position: absolute;
|
||||
top:0;left:0;
|
||||
right:0;bottom:0;
|
||||
background: var(--color-accent);
|
||||
opacity: 0.2;
|
||||
}
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
}
|
||||
115
src/scss/ui/tree.scss
Normal file
115
src/scss/ui/tree.scss
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
#osc-tree {
|
||||
|
||||
--alpha-fill: 0.5;
|
||||
--widget-padding: -1rem;
|
||||
|
||||
$padding: 16rem;
|
||||
$line-height: 22rem;
|
||||
padding: 0 $padding;
|
||||
|
||||
|
||||
text-transform: none;
|
||||
line-height: $line-height;
|
||||
|
||||
|
||||
ol {
|
||||
|
||||
list-style: none;
|
||||
position: relative;
|
||||
padding-left: 16rem;
|
||||
|
||||
ol:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: $line-height / 2 - 1;
|
||||
left: -12rem;
|
||||
border-left: 1rem solid var(--color-stroke);
|
||||
opacity: 0.25;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
|
||||
position: relative;user-select: none;
|
||||
> ol {
|
||||
display: none;
|
||||
}
|
||||
&.expanded > ol {
|
||||
display: block;
|
||||
}
|
||||
|
||||
li:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: $line-height / 2;
|
||||
left: -27rem;
|
||||
width: 16rem;
|
||||
border-bottom: 1rem solid var(--color-stroke);
|
||||
opacity: 0.25;
|
||||
pointer-events: none;
|
||||
}
|
||||
.container:before {
|
||||
width: 8rem;
|
||||
}
|
||||
|
||||
&.invisible {
|
||||
opacity: 0.5;
|
||||
font-style: italic;
|
||||
// &:after {
|
||||
// content: "\f070";
|
||||
// font-family: FontAwesome;
|
||||
// width: 12rem;
|
||||
// display: block;
|
||||
// position: absolute;
|
||||
// right: -12rem;
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.toggle {
|
||||
&:before {
|
||||
content: "\f054";
|
||||
font-family: FontAwesome;
|
||||
width: 20rem;
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: -21rem;
|
||||
font-style: normal;
|
||||
text-align: center;
|
||||
}
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.container.expanded > .toggle:before {
|
||||
content: "\f078";
|
||||
}
|
||||
|
||||
.editing {
|
||||
z-index: 1;
|
||||
@include pseudo-fill($z: -1);
|
||||
&:after {
|
||||
left: calc(-1 * var(--depth) * 16rem - #{$padding});
|
||||
right: -($padding - 1);
|
||||
bottom: auto;
|
||||
height: $line-height;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.contains-editing:not(.expanded):not(.editing) {
|
||||
z-index: 1;
|
||||
@include pseudo-fill($z: -1);
|
||||
&:after {
|
||||
left: calc(-1 * var(--depth) * 16rem - #{$padding});
|
||||
right: -($padding - 1);
|
||||
bottom: auto;
|
||||
height: $line-height;
|
||||
opacity: 0.1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
221
src/scss/ui/workspaces.scss
Normal file
221
src/scss/ui/workspaces.scss
Normal file
|
|
@ -0,0 +1,221 @@
|
|||
osc-workspace {
|
||||
|
||||
background: var(--color-background);
|
||||
|
||||
--color-fill: var(--color-widget);
|
||||
--color-stroke: var(--color-widget);
|
||||
|
||||
position: static;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
|
||||
}
|
||||
|
||||
osc-panel-container {
|
||||
|
||||
position: relative;
|
||||
display:flex;
|
||||
|
||||
|
||||
&.center {
|
||||
flex: 1;
|
||||
z-index: 1;
|
||||
min-width: 100rem;
|
||||
}
|
||||
|
||||
&.left, &.right {
|
||||
z-index: 2;
|
||||
min-width: 0;
|
||||
width: 0;
|
||||
|
||||
&:after {
|
||||
// hover trap to display toggle-button when closed
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 1rem;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece {
|
||||
border-color: var(--color-background)!important;
|
||||
}
|
||||
|
||||
}
|
||||
&.left:after {
|
||||
right: -1rem;
|
||||
}
|
||||
&.right:after {
|
||||
left: -1rem;
|
||||
}
|
||||
|
||||
.resize-handle {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 4rem;
|
||||
cursor: ew-resize;
|
||||
z-index: 4;
|
||||
&.right {
|
||||
left: 0;
|
||||
}
|
||||
&.left {
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.toggle-button {
|
||||
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
height: 50rem;
|
||||
width: 25rem;
|
||||
margin-top: -25rem;
|
||||
cursor: pointer;
|
||||
background: var(--color-background);
|
||||
font-size: 14rem;
|
||||
z-index: 2;
|
||||
transition: transform 0.2s ease-out 0.1s;
|
||||
will-change: transform;
|
||||
|
||||
&:after {
|
||||
font-family: FontAwesome;
|
||||
line-height: 50rem;
|
||||
width: 25rem;
|
||||
text-align: center;
|
||||
display: block;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease-out 0s;
|
||||
}
|
||||
|
||||
&.left {
|
||||
border-top-right-radius: 25rem;
|
||||
border-bottom-right-radius: 25rem;
|
||||
right: -25rem;
|
||||
transform: translateX(-25rem);
|
||||
&:after {
|
||||
content:"\f104";
|
||||
margin-left: -4rem;
|
||||
}
|
||||
}
|
||||
&.right {
|
||||
border-top-left-radius: 25rem;
|
||||
border-bottom-left-radius: 25rem;
|
||||
left: -25rem;
|
||||
transform: translateX(25rem);
|
||||
|
||||
|
||||
&:after {
|
||||
content:"\f105";
|
||||
margin-left: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&:hover .toggle-button, .toggle-button:hover {
|
||||
transition: transform 0.2s ease-out 0s;
|
||||
transform: translateX(0);
|
||||
&:after {
|
||||
transition: opacity 0.1s ease-in 0.1s;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&.minimized .toggle-button {
|
||||
&.left:after {
|
||||
content:"\f105";
|
||||
}
|
||||
&.right:after {
|
||||
content:"\f104";
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled .toggle-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
osc-modal-container {
|
||||
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
||||
}
|
||||
|
||||
osc-panel-inner {
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
z-index: 3;
|
||||
min-width: 0;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// @keyframes test{
|
||||
// 0% {
|
||||
// transform: scaleX(0);
|
||||
// opacity: 0;
|
||||
// }
|
||||
// 100% {
|
||||
// tranform: scaleX(1);
|
||||
// opacity: var(--alpha-fill);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// osc-panel-container:not(.disabled) osc-panel-header:before {
|
||||
// animation: test 0.1s forwards;
|
||||
//
|
||||
// }
|
||||
|
||||
osc-panel-header {
|
||||
|
||||
--alpha-fill: 0.25;
|
||||
|
||||
display: flex;
|
||||
height: var(--nav-height);
|
||||
align-items: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position:relative;
|
||||
letter-spacing: 1rem;
|
||||
font-size: 109%;
|
||||
text-overflow: ellipsis;
|
||||
padding: 0 8rem;
|
||||
|
||||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 1rem;
|
||||
right: 1rem;
|
||||
bottom: 2rem;
|
||||
opacity: var(--alpha-fill);
|
||||
height: 4rem;
|
||||
background: var(--color-fill);
|
||||
z-index: 101;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
osc-panel-content {
|
||||
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
|
||||
&.left, &.right {
|
||||
border-right: 1rem solid var(--color-background);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue