layout btn

master
Sandra 5 years ago
parent 211fdfc986
commit 44258c5185

@ -32,7 +32,7 @@ body {
/*links*/ /*links*/
/*a:link { a:link {
text-decoration: none; text-decoration: none;
color: #371F10; color: #371F10;
} }
@ -45,7 +45,7 @@ a:visited {
a:hover { a:hover {
text-decoration: none; text-decoration: none;
color: blue; color: blue;
}*/ }
h1 { h1 {
@ -73,7 +73,7 @@ h2{
color: #371F10; color: #371F10;
} }
.viewnav { /*.viewnav {
position: fixed; position: fixed;
bottom: 1%; bottom: 1%;
right: 1%; right: 1%;
@ -113,58 +113,63 @@ h2{
z-index: 10; z-index: 10;
text-align: center; text-align: center;
bottom: 100%; bottom: 100%;
} }*/
/* Grid buttons */ /* Grid buttons */
/*.header { .header {
position: absolute; position: fixed;
text-align: center; /* text-align: center;*/
padding: 32px; bottom: 0%;
top: 30%;
right: 0%; right: 0%;
z-index: 9; z-index: 9;
width: auto; width: 110px;
height: auto; height: 50px;
background-color: pink; background-color: white;
}*/ color: #371F10;
}
p { p {
display: inline-block; display: inline-block;
position: relative; /*position: relative;*/
color: #371F10;
} }
.btnov { .btnov {
position: fixed;
display: inline;
right: 0px;
bottom:0px;
border: none; border: none;
outline: none; width: 50px;
width: 110px; height: 50px;
text-align: center; text-align: center;
padding: 0px 0px; /* padding: 5px 5px;*/
background-color: transparent; background-color: transparent;
cursor: pointer; cursor: pointer;
font-size: 20px; font-size: 20px;
margin-right: 5px;
z-index: 9; z-index: 9;
color: #371F10; color: #371F10;
margin-bottom: 3px;
} }
.btn { .btn {
position: fixed;
display: inline;
right: 60px;
bottom:0px;
border: none; border: none;
outline: none; width: 50px;
width: 110px; height: 50px;
text-align: center; text-align: center;
padding: 0px 0px;
background-color: transparent; background-color: transparent;
cursor: pointer; cursor: pointer;
font-size: 30px; font-size: 30px;
margin-right: 5px;
z-index: 9; z-index: 9;
color: #371F10; color: #371F10;
} }
.btn:hover { .btn:hover {
@ -176,6 +181,14 @@ p {
color:rgba(11,239,235); color:rgba(11,239,235);
} }
.btnov:hover {
color:rgba(11,239,235);
/* color: blue;*/
}
.btnov:active {
color:rgba(11,239,235);
}
.metadata{ .metadata{
position: fixed; position: fixed;
@ -211,8 +224,8 @@ p {
} }
.active, .collapsible:hover { .active, .collapsible:hover {
color: blue; color: #371F10;
background-color:rgba(11,239,235);
} }
.content { .content {

@ -13,14 +13,15 @@
<h1>{{ page.name }} &#8629;</h1> <h1>{{ page.name }} &#8629;</h1>
<div class="viewnav"> <!-- <div class="viewnav">
<div class="collapsible2 viewbtn">&#9634;</div> <div class="collapsible2 viewbtn">&#9634;</div>
<div class="content2"> <div class="content2"> -->
<p><button class="btn active" onclick="myFunction()">&#9635;</button></p> <div class="header" id="myHeader">
<p><button class="btnov active" onclick="myFunction2()">&#9580;&#9580;</button></p> <p><button class="btn clicked" onclick="myFunction()">&#9635;</button></p>
<p><button class="btnov clicked" onclick="myFunction2()">&#9580;&#9580;</button></p>
</div> </div>
</div> <!-- </div>
<div> <div> -->
<div id="body">{{ body|safe }}</div> <div id="body">{{ body|safe }}</div>
@ -40,20 +41,7 @@ for (i = 0; i < coll.length; i++) {
}); });
} }
var coll = document.getElementsByClassName("collapsible2");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.maxHeight){
content.style.maxHeight = null;
} else {
content.style.maxHeight = content.scrollHeight + "px";
}
});
}
</script> </script>
</body> </body>
</html> </html>

Loading…
Cancel
Save