diff --git a/css/main.css b/css/main.css index 483ae54..34431bf 100644 --- a/css/main.css +++ b/css/main.css @@ -17,7 +17,7 @@ .topnav .wambo { /* der bereich der den content hält : brauchen wir für die flexbox*/ display: flex; } -.topnav .pic-wrapper, .topnav a { +.topnav .pic-wrapper, .topnav a, .topnav #hamburger-toggle { height: 75px; line-height: 75px; } @@ -26,10 +26,10 @@ }*/ .topnav a { display: block; - padding: 0px 15px; transition: 0.5s all ease; + padding: 0 15px; padding-top: 12px; - box-sizing: border-box; + /*box-sizing: border-box; kommt bereits über reset.css */ } .topnav a:hover { background: lightgrey; @@ -53,10 +53,20 @@ border-right: 1px solid lightgrey; } + +.topnav #hamburger-toggle { + display: none; /* normal net sichtbar */ +} + .page { width: 80%; margin: 0 auto; } +@media only screen and (max-width: 1050px) { + .page { + width: 90%; + } +} @media only screen and (max-width: 500px) { .page { width: 100%; @@ -64,6 +74,7 @@ } + h1 { margin: 20px 0; font-family: 'Roboto', sans-serif; @@ -199,4 +210,31 @@ th { margin-top: 15px; margin-bottom: 30px; text-align: right; +} + +/* hamburger menu stuff */ + +@media only screen and (max-width: 950px) { + .topnav #hamburger-toggle { + display: block; /* normal net sichtbar */ + } + .topnav .wambo { + justify-content: space-between; + } + .topnav #menu { + display: none; + background-color: #ffffff; + position: absolute; + top: 77px; + right: 0; + left: 0; + } + .topnav a { + padding-top: 0; + height: 3em; + line-height: 3em; + } + .topnav #menu.active { + display: block; + } } \ No newline at end of file diff --git a/index.html b/index.html index 7ef67ef..8aa2ce7 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@
-