keeweb/app/styles/areas/_app.scss

118 lines
2.2 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%);
2015-10-17 23:49:24 +02:00
@include display(flex);
@include align-items(stretch);
@include flex-direction(column);
@include justify-content(flex-start);
&__body {
@include flex(1);
@include display(flex);
@include align-items(stretch);
@include flex-direction(row);
@include justify-content(flex-start);
overflow: hidden;
}
&__menu {
@include flex(0 0 auto);
@include display(flex);
width: 150px;
2015-10-24 11:15:54 +02:00
@include mobile {
&:not(.menu-visible) {
display: none;
}
}
&.macos {
padding-top: 40px;
}
2015-10-17 23:49:24 +02:00
}
2015-11-21 15:55:42 +01:00
&__list-wrap {
@include flex(1);
@include display(flex);
@include align-items(stretch);
@include flex-direction(row);
@include 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 {
@include flex-direction(column);
}
}
2015-10-17 23:49:24 +02:00
&__menu-drag, &__list-drag {
@include drag-handle;
@include flex(0 0 auto);
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 {
2015-11-21 15:55:42 +01:00
@include flex(0 0 250px);
2015-10-17 23:49:24 +02:00
@include display(flex);
@include align-items(stretch);
@include flex-direction(column);
overflow-y: auto;
2015-10-26 22:07:19 +01:00
@include mobile {
2015-11-24 23:01:09 +01:00
@include flex(1 1);
.app--details-visible & {
2015-10-26 22:07:19 +01:00
display: none;
}
}
2015-10-17 23:49:24 +02:00
}
&__details {
@include flex(1);
@include display(flex);
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 & {
@include display(flex);
}
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 {
2015-10-31 20:09:32 +01:00
@include flex(1);
@include display(flex);
overflow: hidden;
padding: $base-spacing;
position: relative;
@include mobile {
padding: $base-padding;
}
}
2015-10-17 23:49:24 +02:00
&__footer {
@include flex(0 0 auto);
@include th { border-top: light-border(); }
}
2016-02-14 08:38:57 +01:00
&__beta {
padding: $base-padding;
text-align: center;
@include th {
background-color: error-color();
color: text-contrast-color(error-color());
}
}
2015-10-17 23:49:24 +02:00
}