diff --git a/assets/css/menu.css b/assets/css/menu.css index 38c6152..071eecd 100644 --- a/assets/css/menu.css +++ b/assets/css/menu.css @@ -18,6 +18,7 @@ min-width: 6.3vmax; height: auto; z-index: 2; + cursor: pointer; transition: transform 0.3s; overflow: visible; @@ -36,7 +37,7 @@ transition: transform 50ms; } -.menu-link:hover text { +.menu .menu-link:hover text { fill: #FFDC00; transform: translateY(-1px); } @@ -49,3 +50,71 @@ .menu svg { overflow: visible; } + + +.mobile-menu { + display: block; + position: fixed; + top: 0; left: 0; + overflow: hidden; + width: 100%; + z-index: 20; + + height: 0; + background: rgba(15, 15, 23, 0); + + transition: background-color 0.2s linear; +} + +.mobile-menu .containerF3g { + width: 100%; height: 100%; + overflow: auto; +} + +.mobile-grid { + display: flex; + flex-wrap: wrap; + padding: 2vh 60px; + min-height: 100vh; + justify-content: center; + align-content: center; +} + +.mobile-menu-link { + min-width: 100px; + width: 50%; + display: block; + opacity: 0; + transform: translateY(10%); + transition: transform 0.2s ease-out, opacity 0.2s linear 0.05s; +} + +nav.mobile-menu.open .mobile-menu-link { + transform: translateY(0); + opacity: 1; +} + +.menu-link:hover text { + fill: #FFDC00; +} + +.mobile-brick { + display: block; +} + + +span.close-mobile-menu { + color: #FFF; + font-size: 80px; + display: block; + position: absolute; + bottom: 0; + right: 20px; + cursor: pointer; + transition: color 0.5s; +} + +span.close-mobile-menu:hover { + color: #FFDC00; + +} \ No newline at end of file diff --git a/assets/css/queries.css b/assets/css/queries.css index 3f1d45f..61ad61b 100644 --- a/assets/css/queries.css +++ b/assets/css/queries.css @@ -31,8 +31,19 @@ transform: translateY(40%); } + header .tuyau:hover { + opacity: 0.8; + transform: translateY(35%); + } + #tuyau-ombre { display: none; } + + /* --- Show the menu on tiny screens --- */ + nav.mobile-menu.open { + height: 100vh; + background-color: rgba(15, 15, 23, 0.86); + } } diff --git a/structure/menu.php b/structure/menu.php index 76d1e22..70fce10 100644 --- a/structure/menu.php +++ b/structure/menu.php @@ -4,8 +4,9 @@ if(!isset($relativepath)) { } ?> + - + + + \ No newline at end of file diff --git a/structure/template.php b/structure/template.php index 946e2b2..df28b90 100644 --- a/structure/template.php +++ b/structure/template.php @@ -61,10 +61,27 @@ $pagename = $infopage[4]; // nom de la page exact servant à appeler le css -