2021-05-03 17:54:03 +03:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2021-05-09 14:09:52 +03:00
|
|
|
// creadits: https://codepen.io/rachelandrew/pen/MmOvPr/?editors=1100
|
|
|
|
.layout {
|
|
|
|
display: grid;
|
2021-05-09 16:29:23 +03:00
|
|
|
grid-template-columns: minmax(250px, auto) 1fr;
|
|
|
|
grid-template-areas: 'navbar mainContent';
|
2021-05-03 17:54:03 +03:00
|
|
|
}
|
|
|
|
|
2021-05-09 14:09:52 +03:00
|
|
|
/* no grid support? check this out later */
|
|
|
|
/*
|
|
|
|
.sidebar {
|
|
|
|
float: left;
|
|
|
|
width: 19.1489%;
|
2021-05-03 17:54:03 +03:00
|
|
|
}
|
|
|
|
|
2021-05-09 14:09:52 +03:00
|
|
|
.content {
|
|
|
|
float: right;
|
|
|
|
width: 79.7872%;
|
2021-05-03 17:54:03 +03:00
|
|
|
}
|
2021-05-09 14:09:52 +03:00
|
|
|
*/
|
2021-05-03 17:54:03 +03:00
|
|
|
|
2021-05-09 14:09:52 +03:00
|
|
|
/* make a grid */
|
2021-05-09 16:29:23 +03:00
|
|
|
//header,
|
|
|
|
//footer {
|
|
|
|
// grid-column: 2 / 5;
|
|
|
|
// /* needed for the floated layout */
|
|
|
|
// clear: both;
|
|
|
|
//}
|
2021-05-03 17:54:03 +03:00
|
|
|
|
2021-05-09 14:09:52 +03:00
|
|
|
nav {
|
2021-05-09 16:29:23 +03:00
|
|
|
// grid-row: 1/ 4;
|
2021-05-09 14:09:52 +03:00
|
|
|
/* needed for the floated layout */
|
|
|
|
clear: both;
|
2021-05-09 16:29:23 +03:00
|
|
|
grid-area: navbar;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tmp-layout {
|
|
|
|
// grid-column: 2 / 5;
|
|
|
|
grid-area: mainContent;
|
|
|
|
max-height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-05-03 17:54:03 +03:00
|
|
|
}
|
|
|
|
|
2021-05-09 14:09:52 +03:00
|
|
|
/* We need to set the widths used on floated items back to auto, and remove the bottom margin as when we have grid we have gaps.
|
|
|
|
* @supports (display: grid) {
|
|
|
|
.wrapper > * {
|
|
|
|
width: auto;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2021-05-03 17:54:03 +03:00
|
|
|
}
|
2021-05-09 14:09:52 +03:00
|
|
|
*/
|