uitoolbar pretty cool, contextmenu improvements, allow root containing normal widgets

This commit is contained in:
bordun 2020-03-04 15:11:31 +01:00
parent 5b1913da12
commit 0459fe94fd
17 changed files with 332 additions and 343 deletions

View file

@ -30,15 +30,17 @@ $line-height: 30rem;
}
}
> .item {
padding-left: 15rem;
padding-right: 25rem;
padding-left: 30rem;
padding-right: 30rem;
position:relative;
cursor: pointer;
i {
margin-right:5rem;
width: 15rem;
position: absolute;
left: 10rem;
width: 10rem;
text-align: center;
margin-left: -5rem;
line-height: $line-height - 2;
font-size: 90%;
}
&.focus, &:focus {
> .context-menu {
@ -53,11 +55,33 @@ $line-height: 30rem;
display: block;
font-family: FontAwesome;
float:right;
margin-right:-20rem;
margin-right:-25rem;
width: 15rem;
text-align: center;
position: relative;
}
&.disabled {
pointer-events: none;
opacity: 0.5;
}
&.toggle:before {
content: "";
display: block;
font-family: FontAwesome;
position: absolute;
width: 10rem;
height: 10rem;
left: 10rem;
top: 8rem;
border: 1rem solid;
opacity: 0.75;
line-height: 10rem;
font-size: 8rem;
text-align: right;
}
&.toggle.on:before {
content:"\f00c";
}
}
.separator{
margin: 2rem 1rem;

View file

@ -1,30 +1,3 @@
.root-container {
--widget-spacing: 1rem;
--alpha-fill-on: 0.75;
width: 100%;
height: 100%;
background-color: var(--color-background);
> inner {
flex: 1;
flex-direction: column;
display: flex;
width: 100%;
overflow: hidden;
> .widget {
flex: 1;
width: 100%;
height: auto;
> inner {
margin: calc(var(--widget-spacing) / 2);
}
}
}
}
.widget-panel-base {
--widget-padding: 4rem;
@ -177,6 +150,22 @@
}
.root-container {
@extend .widget-panel-base;
--widget-padding: 1rem;
--alpha-fill-on: 0.75;
width: 100%;
height: 100%;
> inner {
margin: calc(var(--widget-spacing) / 2);
}
}
.navigation {