Using grid for master layout
This commit is contained in:
parent
fc0a96b167
commit
0e3f005639
@ -6,6 +6,7 @@ $-logo-height: 45px;
|
||||
justify-content: space-between;
|
||||
height: 60px;
|
||||
box-shadow: 0 0 2px $-light-brown;
|
||||
grid-area: header;
|
||||
|
||||
&__Navigation{
|
||||
flex-grow: 2;
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{> @header}}
|
||||
<div class="LP-Main">
|
||||
<div class="LP-Wrapper__Site">
|
||||
{{> @header}}
|
||||
<aside class="LP-Main__Sidebar">
|
||||
{{> @navigation modifier='--sidebar'}}
|
||||
</aside>
|
||||
|
@ -42,27 +42,27 @@ html{
|
||||
body{
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.LP-Main{
|
||||
display: table;
|
||||
flex-direction: row-reverse;
|
||||
height: calc(100% - 61px);
|
||||
width: 100%;
|
||||
.LP-Wrapper__Site{
|
||||
display: grid;
|
||||
grid-template-columns: $-sidebar-width 1fr;
|
||||
grid-template-rows: auto 1fr;
|
||||
grid-template-areas: "header header" "sidebar content";
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.LP-Main__Content{
|
||||
display: table-cell;
|
||||
width: calc(100% - 300px);
|
||||
.LP-Main__Content{
|
||||
min-height: 1px;
|
||||
padding: 25px;
|
||||
}
|
||||
grid-area: content;
|
||||
}
|
||||
|
||||
.LP-Main__Sidebar{
|
||||
display: table-cell;
|
||||
width: $-sidebar-width;
|
||||
flex-grow: 0;
|
||||
height: 100%;
|
||||
}
|
||||
.LP-Main__Sidebar{
|
||||
grid-area: sidebar;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
.LP-Section{
|
||||
|
@ -1,4 +1,3 @@
|
||||
@charset "UTF-8";
|
||||
@font-face {
|
||||
font-family: Crimson;
|
||||
src: url("fonts/Crimson/CrimsonText-Regular.ttf"), url("fonts/Crimson/CrimsonText-Bold.ttf"), url("fonts/Crimson/CrimsonText-Italic.ttf"); }
|
||||
@ -14,23 +13,25 @@ html {
|
||||
|
||||
body {
|
||||
height: 100%;
|
||||
margin: 0; }
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
|
||||
.LP-Main {
|
||||
display: table;
|
||||
flex-direction: row-reverse;
|
||||
height: calc(100% - 61px);
|
||||
width: 100%; }
|
||||
.LP-Main .LP-Main__Content {
|
||||
display: table-cell;
|
||||
width: calc(100% - 300px);
|
||||
.LP-Wrapper__Site {
|
||||
display: grid;
|
||||
grid-template-columns: 250px 1fr;
|
||||
grid-template-rows: auto 1fr;
|
||||
grid-template-areas: "header header" "sidebar content";
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
|
||||
.LP-Main__Content {
|
||||
min-height: 1px;
|
||||
padding: 25px; }
|
||||
.LP-Main .LP-Main__Sidebar {
|
||||
display: table-cell;
|
||||
width: 250px;
|
||||
flex-grow: 0;
|
||||
height: 100%; }
|
||||
padding: 25px;
|
||||
grid-area: content; }
|
||||
|
||||
.LP-Main__Sidebar {
|
||||
grid-area: sidebar;
|
||||
background-color: #f9f9f9; }
|
||||
|
||||
.LP-Section {
|
||||
clear: both;
|
||||
@ -274,10 +275,6 @@ body {
|
||||
background-color: #D7CEC7;
|
||||
border-radius: 2px;
|
||||
color: #565656; }
|
||||
.LP-Pagination .LP-Pagination__Previous:before {
|
||||
content: "«"; }
|
||||
.LP-Pagination .LP-Pagination__Next:before {
|
||||
content: "»"; }
|
||||
|
||||
.LP-Content {
|
||||
padding: 35px; }
|
||||
@ -391,7 +388,6 @@ body {
|
||||
border-left: none;
|
||||
min-width: 60px;
|
||||
background-color: #f9f9f9;
|
||||
height: 100%;
|
||||
padding-top: 25px; }
|
||||
.LP-Menu--sidebar .LP-Menu__List {
|
||||
flex-direction: column; }
|
||||
@ -440,7 +436,8 @@ body {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 60px;
|
||||
box-shadow: 0 0 2px #C09F80; }
|
||||
box-shadow: 0 0 2px #C09F80;
|
||||
grid-area: header; }
|
||||
.LP-Header__Navigation {
|
||||
flex-grow: 2; }
|
||||
.LP-Header__Logo {
|
||||
|
Loading…
Reference in New Issue
Block a user