uiToolbar on the way, screen sized windows by default

This commit is contained in:
bordun 2020-03-03 22:18:16 +01:00
parent 9eb5dd5060
commit e530e33900
17 changed files with 252 additions and 51 deletions

View file

@ -11,3 +11,4 @@
@import 'ui/filebrowser';
@import 'ui/lobby';
@import 'ui/loading';
@import 'ui/toolbar';

View file

@ -2,6 +2,9 @@ $line-height: 30rem;
.context-menu {
--widget-padding: 0rem;
--alpha-fill: 0.75;
position:fixed;
z-index: 999999999;
background: var(--color-context-menu);
@ -9,7 +12,6 @@ $line-height: 30rem;
text-transform: none;
color: var(--color-context-menu-text);
line-height: $line-height;
--widget-padding: 0rem;
.context-menu {
position: absolute;
@ -57,4 +59,10 @@ $line-height: 30rem;
position: relative;
}
}
.separator{
margin: 2rem 1rem;
height: 1rem;
background-color: var(--color-ui-background);
opacity: 0.5;
}
}

26
src/scss/ui/toolbar.scss Normal file
View file

@ -0,0 +1,26 @@
osc-toolbar {
--size: 34rem;
position: fixed;
top: 0;
left: 0;
height:var(--size);
width:var(--size);
max-width:var(--size);
min-width:var(--size);
text-align: center;
z-index: 999999999;
cursor: pointer;
&:after {
transition: text-shadow .1s, color .1s;
content:"\f142";
font-family: FontAwesome;
line-height: calc(var(--size) + 4rem);
}
&.on {
&:after {
color: var(--color-widget);
text-shadow: 0 0 8rem;
}
}
}

View file

@ -188,16 +188,6 @@
padding-bottom: 1rem;
position: relative;
&.main {
:last-child, .tools {
width:var(--nav-height);
max-width:var(--nav-height);
min-width:var(--nav-height);
margin-left: 1rem;
text-align: center;
}
}
&:before {
content:"";
position: absolute;