mirror of https://github.com/keeweb/keeweb
159 lines
3.4 KiB
SCSS
159 lines
3.4 KiB
SCSS
.app {
|
|
@include size(100%);
|
|
display: flex;
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
|
|
.titlebar-hidden-inset & {
|
|
-webkit-app-region: drag;
|
|
}
|
|
|
|
&__body {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: stretch;
|
|
flex-direction: row;
|
|
justify-content: flex-start;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&__titlebar-drag {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 30px;
|
|
top: 0;
|
|
right: 0;
|
|
-webkit-app-region: drag;
|
|
pointer-events: none;
|
|
}
|
|
|
|
&__menu {
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
width: 15em;
|
|
background-color: var(--secondary-background-color);
|
|
@include mobile {
|
|
&:not(.menu-visible) {
|
|
display: none;
|
|
}
|
|
}
|
|
transition: padding-top 150ms;
|
|
.titlebar-hidden & {
|
|
padding-top: $titlebar-padding-small;
|
|
}
|
|
.titlebar-hidden-inset & {
|
|
padding-top: $titlebar-padding-large;
|
|
}
|
|
.titlebar-custom.titlebar-hidden &,
|
|
.titlebar-custom.titlebar-hidden-inset & {
|
|
padding-top: $titlebar-custom-height;
|
|
}
|
|
.fullscreen .app & {
|
|
padding-top: 0;
|
|
}
|
|
}
|
|
|
|
&__list-wrap {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: stretch;
|
|
flex-direction: row;
|
|
justify-content: flex-start;
|
|
overflow: hidden;
|
|
&.app__list-wrap--table {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
&__menu-drag,
|
|
&__list-drag {
|
|
@include drag-handle;
|
|
flex: 0 0 auto;
|
|
width: 1px;
|
|
cursor: col-resize;
|
|
@include mobile {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&__list-drag {
|
|
.app__list-wrap--table & {
|
|
width: auto;
|
|
height: 1px;
|
|
cursor: row-resize;
|
|
|
|
.drag-handle__inner {
|
|
top: -2px;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.menu-visible + &__menu-drag {
|
|
display: block;
|
|
}
|
|
|
|
&__list {
|
|
flex: 0 0 25em;
|
|
display: flex;
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
.titlebar-hidden & {
|
|
padding-top: $titlebar-padding-tiny;
|
|
}
|
|
@include mobile {
|
|
flex: 1 1;
|
|
.app--details-visible & {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__details {
|
|
flex: 1;
|
|
display: flex;
|
|
overflow: hidden;
|
|
padding: $base-spacing;
|
|
position: relative;
|
|
@include mobile {
|
|
width: 100vw;
|
|
padding: $base-padding;
|
|
display: none;
|
|
.app--details-visible & {
|
|
display: flex;
|
|
}
|
|
}
|
|
@include padding-if-titlebar;
|
|
}
|
|
|
|
&__panel {
|
|
flex: 1;
|
|
display: flex;
|
|
overflow: hidden;
|
|
position: relative;
|
|
@include mobile {
|
|
padding: $base-padding;
|
|
}
|
|
}
|
|
|
|
&__footer {
|
|
flex: 0 0 auto;
|
|
border-top: light-border();
|
|
background-color: var(--secondary-background-color);
|
|
}
|
|
|
|
&__beta {
|
|
padding: $base-padding;
|
|
text-align: center;
|
|
background-color: var(--error-color);
|
|
color: var(--text-contrast-error-color);
|
|
> .fa {
|
|
vertical-align: bottom;
|
|
}
|
|
}
|
|
}
|