Responsive Menu
This commit is contained in:
parent
42d1137dfb
commit
97a5052ad8
@ -0,0 +1 @@
|
|||||||
|
<svg fill="#000000" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30px" height="30px"><path d="M 3 7 A 1.0001 1.0001 0 1 0 3 9 L 27 9 A 1.0001 1.0001 0 1 0 27 7 L 3 7 z M 3 14 A 1.0001 1.0001 0 1 0 3 16 L 27 16 A 1.0001 1.0001 0 1 0 27 14 L 3 14 z M 3 21 A 1.0001 1.0001 0 1 0 3 23 L 27 23 A 1.0001 1.0001 0 1 0 27 21 L 3 21 z"/></svg>
|
After Width: | Height: | Size: 351 B |
@ -41,6 +41,10 @@ body {
|
|||||||
.LP-Section .LP-Headline {
|
.LP-Section .LP-Headline {
|
||||||
margin-left: -25px; }
|
margin-left: -25px; }
|
||||||
|
|
||||||
|
@media (max-width: 1000px) {
|
||||||
|
.LP-Wrapper__Site {
|
||||||
|
grid-template-columns: 187.5px 1fr; } }
|
||||||
|
|
||||||
@media (max-width: 650px) {
|
@media (max-width: 650px) {
|
||||||
.LP-Section {
|
.LP-Section {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
@ -48,6 +52,52 @@ body {
|
|||||||
.LP-Section .LP-Headline {
|
.LP-Section .LP-Headline {
|
||||||
margin: 0; } }
|
margin: 0; } }
|
||||||
|
|
||||||
|
@media (max-width: 650px) {
|
||||||
|
.LP-Wrapper__Site {
|
||||||
|
grid-template-columns: 0 1fr; }
|
||||||
|
@keyframes slide_out_siedebar {
|
||||||
|
from {
|
||||||
|
left: -250px; }
|
||||||
|
to {
|
||||||
|
left: 0; } }
|
||||||
|
@keyframes slide_in_siedebar {
|
||||||
|
from {
|
||||||
|
left: 0; }
|
||||||
|
to {
|
||||||
|
left: -250px; } }
|
||||||
|
.LP-Main__Sidebar {
|
||||||
|
grid-area: unset;
|
||||||
|
width: 250px;
|
||||||
|
z-index: 15;
|
||||||
|
position: fixed;
|
||||||
|
left: -251px;
|
||||||
|
height: 100vh;
|
||||||
|
top: 60px;
|
||||||
|
border-right: 1px solid #C09F80; }
|
||||||
|
#toggle_sidebar:checked ~ .LP-Main__Sidebar {
|
||||||
|
animation-name: slide_out_siedebar;
|
||||||
|
animation-duration: .3s;
|
||||||
|
left: 0; }
|
||||||
|
#toggle_sidebar ~ .LP-Main__Sidebar {
|
||||||
|
animation-name: slide_in_siedebar;
|
||||||
|
animation-duration: .3s; }
|
||||||
|
.LP-Menu__Trigger {
|
||||||
|
display: none; }
|
||||||
|
.LP-Menu__TriggerLabel {
|
||||||
|
z-index: 20;
|
||||||
|
height: 60px;
|
||||||
|
width: 60px;
|
||||||
|
background-image: url("icons/hamburger_menu.svg");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-clip: content-box;
|
||||||
|
background-position: center;
|
||||||
|
position: fixed; }
|
||||||
|
.LP-Menu__Trigger:checked ~ .LP-Menu__TriggerLabel {
|
||||||
|
background-color: darkgray;
|
||||||
|
filter: invert(1); }
|
||||||
|
.LP-Main__Content {
|
||||||
|
margin-top: 60px; } }
|
||||||
|
|
||||||
.LP-Link {
|
.LP-Link {
|
||||||
color: #565656;
|
color: #565656;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@ -264,6 +314,8 @@ body {
|
|||||||
flex-direction: row; }
|
flex-direction: row; }
|
||||||
.LP-Pagination .LP-Pagination__Item {
|
.LP-Pagination .LP-Pagination__Item {
|
||||||
margin: 0 4px; }
|
margin: 0 4px; }
|
||||||
|
.LP-Pagination .LP-Pagination__Item--disabled {
|
||||||
|
color: #b6b6b6; }
|
||||||
.LP-Pagination .LP-Pagination__Item--current .LP-Link {
|
.LP-Pagination .LP-Pagination__Item--current .LP-Link {
|
||||||
background-color: #D7CEC7;
|
background-color: #D7CEC7;
|
||||||
border-radius: 2px; }
|
border-radius: 2px; }
|
||||||
@ -455,7 +507,8 @@ body {
|
|||||||
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; }
|
grid-area: header;
|
||||||
|
background-color: white; }
|
||||||
.LP-Header__Navigation {
|
.LP-Header__Navigation {
|
||||||
flex-grow: 2; }
|
flex-grow: 2; }
|
||||||
.LP-Header__Logo {
|
.LP-Header__Logo {
|
||||||
@ -491,6 +544,13 @@ body {
|
|||||||
.LP-Header__Navigation {
|
.LP-Header__Navigation {
|
||||||
width: 100%; } }
|
width: 100%; } }
|
||||||
|
|
||||||
|
@media (max-width: 650px) {
|
||||||
|
.LP-Header {
|
||||||
|
padding-left: 40px;
|
||||||
|
width: calc(100% - 40px);
|
||||||
|
position: fixed;
|
||||||
|
z-index: 10; } }
|
||||||
|
|
||||||
.LP-PlaceGrid .LP-PlaceGrid__Grid {
|
.LP-PlaceGrid .LP-PlaceGrid__Grid {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -39,6 +39,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
<input id="toggle_sidebar" class="LP-Menu__Trigger" type="checkbox"/>
|
||||||
|
<label id="toggle_sidebar_label" for="toggle_sidebar" class="LP-Menu__TriggerLabel"></label>
|
||||||
<aside class="LP-Main__Sidebar">
|
<aside class="LP-Main__Sidebar">
|
||||||
<nav class="LP-Menu LP-Menu--sidebar">
|
<nav class="LP-Menu LP-Menu--sidebar">
|
||||||
<ul class="LP-Menu__List">
|
<ul class="LP-Menu__List">
|
||||||
|
Loading…
Reference in New Issue
Block a user