Compare commits

...

3 Commits

Author SHA1 Message Date
0e3f005639 Using grid for master layout 2020-08-13 23:44:06 +02:00
fc0a96b167 Unbugged nav 2020-08-13 23:43:49 +02:00
8edcf77d44 Removed after content for prev/next 2020-08-13 23:43:34 +02:00
6 changed files with 47 additions and 63 deletions

View File

@ -38,17 +38,4 @@
color: $-grey; color: $-grey;
} }
} }
.LP-Pagination__Previous{
&:before{
content: "«";
}
}
.LP-Pagination__Next{
&:before{
content: "»";
}
}
} }

View File

@ -34,7 +34,6 @@
border-left: none; border-left: none;
min-width: 60px; min-width: 60px;
background-color: $-almost-white; background-color: $-almost-white;
height: 100%;
padding-top: 25px; padding-top: 25px;
.LP-Menu__List{ .LP-Menu__List{

View File

@ -5,7 +5,8 @@ $-logo-height: 45px;
align-items: center; align-items: center;
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;

View File

@ -1,9 +1,9 @@
{{> @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>
<main class="LP-Main__Content"> <main class="LP-Main__Content">
{{> @placedetail}} {{> @placedetail}}
</main> </main>
</div> </div>

View File

@ -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; min-height: 1px;
width: calc(100% - 300px); padding: 25px;
min-height: 1px; grid-area: content;
padding: 25px; }
}
.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{

View File

@ -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);
min-height: 1px; .LP-Main__Content {
padding: 25px; } min-height: 1px;
.LP-Main .LP-Main__Sidebar { padding: 25px;
display: table-cell; grid-area: content; }
width: 250px;
flex-grow: 0; .LP-Main__Sidebar {
height: 100%; } grid-area: sidebar;
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 {