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