keeweb/app/styles/areas/_app.scss

139 lines
2.4 KiB
SCSS
Raw Normal View History

2015-10-17 23:49:24 +02:00
.app {
2015-10-24 11:15:54 +02:00
@include size(100%);
2017-04-16 18:37:16 +02:00
display: flex;
align-items: stretch;
flex-direction: column;
justify-content: flex-start;
2015-10-17 23:49:24 +02:00
2017-06-02 22:28:18 +02:00
.titlebar-hidden-inset & {
-webkit-app-region: drag;
}
2015-10-17 23:49:24 +02:00
&__body {
2017-04-16 18:37:16 +02:00
flex: 1;
display: flex;
align-items: stretch;
flex-direction: row;
justify-content: flex-start;
2015-10-17 23:49:24 +02:00
overflow: hidden;
}
&__titlebar-drag {
position: absolute;
width: 100%;
height: 30px;
top: 0;
right: 0;
-webkit-app-region: drag;
2017-11-26 19:30:14 +01:00
pointer-events: none;
}
2015-10-17 23:49:24 +02:00
&__menu {
2017-04-16 18:37:16 +02:00
flex: 0 0 auto;
display: flex;
2015-10-17 23:49:24 +02:00
width: 150px;
2015-10-24 11:15:54 +02:00
@include mobile {
&:not(.menu-visible) {
display: none;
}
}
transition: padding-top 150ms;
.titlebar-hidden & {
padding-top: $titlebar-padding-small;
2017-03-26 03:42:21 +02:00
}
.titlebar-hidden-inset & {
padding-top: $titlebar-padding-large;
}
.fullscreen .app & {
padding-top: 0;
}
2015-10-17 23:49:24 +02:00
}
2015-11-21 15:55:42 +01:00
&__list-wrap {
2017-04-16 18:37:16 +02:00
flex: 1;
display: flex;
align-items: stretch;
flex-direction: row;
justify-content: flex-start;
2016-01-14 19:33:59 +01:00
overflow: hidden;
2015-11-21 15:55:42 +01:00
&.app__list-wrap--table {
2017-04-16 18:37:16 +02:00
flex-direction: column;
2015-11-21 15:55:42 +01:00
}
}
2015-10-17 23:49:24 +02:00
&__menu-drag, &__list-drag {
@include drag-handle;
2017-04-16 18:37:16 +02:00
flex: 0 0 auto;
2015-10-17 23:49:24 +02:00
width: 1px;
cursor: col-resize;
2015-11-21 15:55:42 +01:00
@include mobile { display: none; }
}
&__list-drag {
.app__list-wrap--table & {
width: auto;
height: 1px;
cursor: row-resize;
2015-10-27 20:07:19 +01:00
}
}
.menu-visible + &__menu-drag {
display: block;
2015-10-17 23:49:24 +02:00
}
&__list {
2017-04-16 18:37:16 +02:00
flex: 0 0 250px;
display: flex;
align-items: stretch;
flex-direction: column;
2015-10-17 23:49:24 +02:00
overflow-y: auto;
2015-10-26 22:07:19 +01:00
@include mobile {
2017-04-16 18:37:16 +02:00
flex: 1 1;
2015-11-24 23:01:09 +01:00
.app--details-visible & {
2015-10-26 22:07:19 +01:00
display: none;
}
}
2015-10-17 23:49:24 +02:00
}
&__details {
2017-04-16 18:37:16 +02:00
flex: 1;
display: flex;
2015-10-17 23:49:24 +02:00
overflow: hidden;
padding: $base-spacing;
position: relative;
2015-10-27 20:07:19 +01:00
@include mobile {
width: 100vw;
padding: $base-padding;
2015-11-24 23:01:09 +01:00
display: none;
.app--details-visible & {
2017-04-16 18:37:16 +02:00
display: flex;
2015-11-24 23:01:09 +01:00
}
2015-10-27 20:07:19 +01:00
}
2015-10-17 23:49:24 +02:00
}
2016-08-13 21:13:16 +02:00
&__panel {
2017-04-16 18:37:16 +02:00
flex: 1;
display: flex;
2015-10-31 20:09:32 +01:00
overflow: hidden;
padding: $base-spacing;
position: relative;
@include mobile {
padding: $base-padding;
}
}
2015-10-17 23:49:24 +02:00
&__footer {
2017-04-16 18:37:16 +02:00
flex: 0 0 auto;
2015-10-17 23:49:24 +02:00
@include th { border-top: light-border(); }
}
2016-02-14 08:38:57 +01:00
&__beta {
padding: $base-padding;
text-align: center;
@include th {
2017-04-24 23:52:48 +02:00
background-color: th(error-color);
color: th(text-contrast-error-color);
2016-02-14 08:38:57 +01:00
}
}
2015-10-17 23:49:24 +02:00
}