Amélioration sommaire
This commit is contained in:
parent
01f94a54c9
commit
f9f3045fc4
BIN
files/menu.png
Normal file
BIN
files/menu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
24
index.html
24
index.html
@ -34,6 +34,17 @@
|
|||||||
.galleria{ width:100% }
|
.galleria{ width:100% }
|
||||||
.galleria-theme-classic { background: #aaaaaa}
|
.galleria-theme-classic { background: #aaaaaa}
|
||||||
</style>
|
</style>
|
||||||
|
<script type='text/javascript'>
|
||||||
|
/* Set the width of the side navigation to 250px */
|
||||||
|
function openNav() {
|
||||||
|
document.getElementById("mySidenav").style.width = "250px";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Set the width of the side navigation to 0 */
|
||||||
|
function closeNav() {
|
||||||
|
document.getElementById("mySidenav").style.width = "0";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -793,8 +804,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Todo : regarder https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_sidenav et https://www.w3schools.com/howto/howto_js_sidenav.asp -->
|
<!-- Todo : regarder https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_sidenav et https://www.w3schools.com/howto/howto_js_sidenav.asp -->
|
||||||
<div class="sommaire">
|
<div id="mySidenav" class="sidenav">
|
||||||
<div class="insommaire">
|
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#descriptif">Descriptif</a></li>
|
<li><a href="#descriptif">Descriptif</a></li>
|
||||||
@ -812,11 +823,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div class="insommaire">
|
<div>
|
||||||
<p class="vert">Sommaire</p>
|
<a href="#head" onclick="openNav()">
|
||||||
</div>
|
<img id="fixedbutton" src="files/menu.png" >
|
||||||
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
52
mon_site.css
52
mon_site.css
@ -1023,13 +1023,47 @@ footer.bk-footer{padding:3em 0;}
|
|||||||
}
|
}
|
||||||
table {width: 450px; height: 204px;border-collapse: collapse; border-spacing: 0px; font: inherit; border: 0px none;background-color:rgb(255,255,255);text-align:center}
|
table {width: 450px; height: 204px;border-collapse: collapse; border-spacing: 0px; font: inherit; border: 0px none;background-color:rgb(255,255,255);text-align:center}
|
||||||
tr.table_header {height: 19px;background-color: rgb(230, 230, 230);font-weight: bold;}
|
tr.table_header {height: 19px;background-color: rgb(230, 230, 230);font-weight: bold;}
|
||||||
div.sommaire {
|
|
||||||
position:fixed;
|
|
||||||
left: -175px;
|
|
||||||
top: 90px;
|
|
||||||
transition: 0.5s;
|
|
||||||
background-color: rgb(230, 230, 230);
|
|
||||||
}
|
|
||||||
div.sommaire:hover {left: 10px}
|
|
||||||
p.vert {writing-mode: tb-rl}
|
p.vert {writing-mode: tb-rl}
|
||||||
div.insommaire {display:table-cell}
|
|
||||||
|
/* The side navigation menu */
|
||||||
|
.sidenav {
|
||||||
|
height: 100%; /* 100% Full-height */
|
||||||
|
width: 0; /* 0 width - change this with JavaScript */
|
||||||
|
position: fixed; /* Stay in place */
|
||||||
|
z-index: 1; /* Stay on top */
|
||||||
|
top: 0; /* Stay at the top */
|
||||||
|
left: 0;
|
||||||
|
background-color: #111; /* Black*/
|
||||||
|
overflow-x: hidden; /* Disable horizontal scroll */
|
||||||
|
padding-top: 60px; /* Place content 60px from the top */
|
||||||
|
transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The navigation menu links */
|
||||||
|
.sidenav a {
|
||||||
|
padding: 8px 8px 8px 32px;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 25px;
|
||||||
|
color: #818181;
|
||||||
|
display: block;
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* When you mouse over the navigation links, change their color */
|
||||||
|
.sidenav a:hover {
|
||||||
|
color: #f1f1f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Position and style the close button (top right corner) */
|
||||||
|
.sidenav .closebtn {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 25px;
|
||||||
|
font-size: 36px;
|
||||||
|
margin-left: 50px;
|
||||||
|
}
|
||||||
|
#fixedbutton {
|
||||||
|
position: fixed;
|
||||||
|
top: 10px;
|
||||||
|
left: 10px;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user