Commit 2b41ef00 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add responsiveness for menu back in

parent 86cf1b9f
Loading
Loading
Loading
Loading
+54 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
 * Author: personads :: Maximilian Müller-Eberstein (ursprüngliche Version & Design); Jakob Moser (Code-Anpassungen und Responsiveness)
 * Author URI: https://personads.me/
 *
 * Version: 1.00-snapshot-39
 * Version: 1.00-snapshot-40
 * 
 * License: GNU General Public License v3.0
 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -230,6 +230,59 @@ header nav li:hover > ul {
    display: block;
}

@media (max-width: 615px) {
    body > header {
        padding-top: 5px;
    }

    body > header .logo {
        margin: 0 auto;
        display: block;
    }

    header .nav-toggle {
        display: block;
        padding: 0 15px;
        line-height: 35px;
    }

    header nav ul {
        margin: 0;
        padding: 0;
    }

    header nav li {
        display: block;
        padding: 0 15px;
        line-height: 35px;
    }

    header nav li:hover {
        border-radius: 0;
    }

    header nav li > ul {
        display: block;
        border: none;
        box-shadow: none;
        position: inherit;
        margin: 0;
        padding: 0;
    }

    header nav li > ul li {
        margin-left: 0;
    }

    header nav {
        display: none;
    }

    header nav:target {
        display: block;
    }
}

/* ==== General styles: Articles ==== */
article {
    padding: 2em;