forked from rebillar/site-accueil-insa
mobile menu is readyyyyyy
This commit is contained in:
parent
b0c8260a07
commit
a10f6ba9cc
2 changed files with 20 additions and 11 deletions
|
@ -75,17 +75,18 @@ margin: 0 10px;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 95%;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin-top: 1vh;
|
margin-top: 1vh;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
margin-left: 2.5%;
|
||||||
|
margin-right: 2.5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide the links inside the navigation menu (except for logo/home) */
|
/* Hide the links inside the navigation menu (except for logo/home) */
|
||||||
.topnav #mobile_menu_links {
|
.topnav #mobile_menu_links {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Style navigation menu links */
|
/* Style navigation menu links */
|
||||||
|
@ -95,6 +96,13 @@ margin: 0 10px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 4vh;
|
font-size: 4vh;
|
||||||
display: block;
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topnav li {
|
||||||
|
display: flex;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,13 +12,14 @@ include "assets/scripts/globals.php"
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
for($i = 0; $i <= sizeof($SITE_MAP,1); $i++){
|
||||||
for($i = 0; $i <= 17; $i++){
|
|
||||||
|
|
||||||
|
|
||||||
echo "<li><a href=\"".$SITE_MAP[$i][0]."\">".$SITE_MAP[$i][1]."</a></li>";
|
echo "<a href=\"".$SITE_MAP[$i][0]."\">".$SITE_MAP[$i][1]."</a>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@ -42,11 +43,11 @@ for($i = 0; $i <= 17; $i++){
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
for($i = 0; $i <= 17; $i = $i + 2){
|
||||||
|
|
||||||
for($i = 0; $i <= 17; $i++){
|
// affiche les liens 2 par 2
|
||||||
|
echo "<li><a href=\"".$SITE_MAP[$i][0]."\">".$SITE_MAP[$i][1]."</a>
|
||||||
|
<a href=\"".$SITE_MAP[$i+1][0]."\">".$SITE_MAP[$i+1][1]."</a></li>";
|
||||||
echo "<a href=\"".$SITE_MAP[$i][0]."\">".$SITE_MAP[$i][1]."</a>";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue