2016-01-15 02:05:16 +03:00
|
|
|
// This is a set of flex-based layout containers necessary for components such as the drawer.
|
|
|
|
// It allows for flex based positioning such as sticky header and footer inside an mdb-layout, with a
|
|
|
|
// mdb-layout-content that scrolls.
|
2016-01-14 21:50:27 +03:00
|
|
|
|
2016-01-15 02:05:16 +03:00
|
|
|
// First element
|
|
|
|
.mdb-layout-canvas {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
}
|
2016-01-14 21:50:27 +03:00
|
|
|
|
2016-01-15 02:05:16 +03:00
|
|
|
// Primary layout container, belongs inside a mdb-layout-canvas.
|
2016-01-14 21:50:27 +03:00
|
|
|
.mdb-layout-container {
|
2016-01-15 02:05:16 +03:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
2016-01-14 21:50:27 +03:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2016-01-15 02:05:16 +03:00
|
|
|
flex-direction: column; // allows for sticky header and footer
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
2016-01-14 21:50:27 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-01-15 02:05:16 +03:00
|
|
|
// Header layout (fixed top), belongs in a mdb-layout-container
|
|
|
|
.mdb-layout-header {
|
|
|
|
// FIXME: it would be nice to stick this directly on a .navbar, but .navbars are not flex ready, so this is relegated to be a container at this time.
|
2016-01-15 20:38:29 +03:00
|
|
|
z-index: 3;
|
2016-01-14 21:50:27 +03:00
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
max-height: 1000px;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
flex-shrink: 0;
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
2016-01-15 02:05:16 +03:00
|
|
|
// Content layout, belongs in a mdb-layout-container
|
2016-01-14 21:50:27 +03:00
|
|
|
.mdb-layout-content {
|
|
|
|
position: relative;
|
2016-01-15 02:05:16 +03:00
|
|
|
z-index: 1; // under a header
|
2016-01-14 21:50:27 +03:00
|
|
|
display: inline-block;
|
|
|
|
//-ms-flex: 0 1 auto; // Fix IE10 bug.
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
flex-grow: 1;
|
|
|
|
-webkit-overflow-scrolling: touch; // TODO: why?
|
|
|
|
}
|
2016-01-15 02:05:16 +03:00
|
|
|
|