⚠️ huge commit: tab system rewrite, see changelog @ 0.18.0

This commit is contained in:
jean-emmanuel 2017-06-09 00:34:39 +02:00
parent 7d797ed9a4
commit 11e73e67e0
21 changed files with 443 additions and 437 deletions

View file

@ -12,41 +12,11 @@ body {
flex-direction: column;
background:var(--color-bg);
padding:2rem;
// transition:right .2s;
&.sidepanel-open {
right:var(--sidepanel-size);
}
}
.content {
height:100%;
overflow: hidden;
position: relative;
background:var(--color-fg);
padding:2rem;
margin-top:1rem;
}
.tab {
position: absolute;
overflow: auto;
left:-1rem;
right:0;
top:-1rem;
bottom:0;
background:var(--color-bg);
transform: rotateZ(0);
}
.has-tabs {
display: flex;
flex-direction: column;
> .navigation {
background:var(--color-bg);
}
> .content {
background:none;
}
}
.navigation {
height:var(--nav-height);
@ -54,6 +24,15 @@ body {
flex-shrink:0;
font-weight:bold;
text-transform: uppercase;
background: transparent;
height:calc(var(--nav-height) - 2rem);
&:after {
background: var(--color-bg);
}
a.on {
border-color: var(--color-bg);
}
&.main {
li:last-child {

View file

@ -18,9 +18,15 @@
display: flex;
flex-direction: column;
background: var(--color-bg);
> .content {
left:1rem;
width: calc(100% - 1rem);
> .tabs-wrapper {
display: flex;
flex-direction: column;
left:-1rem;
> .widget {
background: none;
border-top:none;
// border-right:1rem solid transparent;
}
}
}
@ -32,6 +38,18 @@
}
}
> .tabs-wrapper {
flex:1;
min-height:0;
> .tab-container {
// width: 100%;
> .label {
display: none;
}
}
}
}
&.nolabel {
> .panel {
@ -42,21 +60,8 @@
}
}
.navigation {
// margin-top: 1rem;
background: transparent;
height:calc(var(--nav-height) - 2rem);
&:after {
background: var(--color-bg);
}
a.on {
border-color: var(--color-bg);
}
}
.content {
background: transparent;
}
}
@ -79,6 +84,7 @@
&.horizontal {
width: 100%;
height: 130rem;
display: block;
}
&.vertical {
@ -139,6 +145,13 @@
background: var(--color-fg);
}
.editor-enabled .strip-container {
&.horizontal > .panel > .widget > .ui-resizable-s,
&.vertical > .panel > .widget > .ui-resizable-e,
> .panel > .widget > .ui-resizable-se {
display: none!important;
}
}
.modal-container {
@extend .panel-container-base;
@ -178,10 +191,10 @@
position: absolute;
width: auto;
height: auto;
top:45rem;
top:46rem;
left:-1rem;
right:-1rem;
bottom:-1rem;
right:0rem;
bottom:0rem;
}
}
.popup-title {
@ -205,3 +218,30 @@
}
}
.root-container {
@extend .panel-container-base;
height: 100%;
border:none;
> .label {
display: none;
}
}
.tab-container, .root-container {
height: 100%;
box-shadow: none;
> .panel {
transform: rotateZ(0);
top:0rem;
left:-1rem;
right:0rem;
&.has-tabs {
top:1rem;
}
}
}