User:E.zn/special issue XI: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 7: Line 7:
<br>
<br>
=NOT=
=NOT=
[[File:SI11not1.png|thumb|550px| <div class="scrollcolumn">
[[File:SI11not1.png|thumb|right|520px| <div class="scrollcolumn">
       <button onclick="scrollWin(0,-5000)" class="up scrl"><span>&#8988;</span><span class="scbt">Up</span></button>
       <button onclick="scrollWin(0,-5000)" class="up scrl"><span>&#8988;</span><span class="scbt">Up</span></button>
       <button onclick="scrollWin(0,5000)" class="down scrl"><span>&#8991;</span><span class="scbt">Down</span></button>
       <button onclick="scrollWin(0,5000)" class="down scrl"><span>&#8991;</span><span class="scbt">Down</span></button>
Line 43: Line 43:
       }
       }
     </script>]]
     </script>]]
[[File:SI11not2.png|right|700px]]
[[File:SI11not2.png|thumb|left|520px|
#top {
padding-top: 25px;
padding-left: 50px;
}
 
body {
background-color: #F4EBE8;
font-family: Roboto Mono;
}
 
.collapsible{
font-size:14px;
padding-left: 70px;
    line-height: 1;
color: #371F10;
}
 
.active, .collapsible:hover {
color: blue;
cursor: pointer;
}
 
.active, .collapsible:after {
padding-top: 10px;
padding-left: 85px;
color: #371F10;
font-weight: bold;
background-color: transparent;
}
 
 
.content {
max-height: 0;
  overflow: hidden;
    transition: max-height 0.2s ease-out;
    padding-left: 50px;
    background-color: #371F10;
    position: relative;
    line-height: 30px;
    margin-left: 85px;
    color: white;
    font-size: 14px;
}
 
.content a {
color:white;
text-decoration: none;
}
 
.content a:hover {
color: blue;
cursor: pointer;
}
 
/* Scroll buttons */
.scrl {
position: fixed;
background-color: white;
color:#371F10;
cursor: pointer;
border:none;
border-right:1px solid #D1C8C8;
font-size: 25px;
width: 50px;
height: 50px;
font-weight: bold;
z-index: 10;
bottom: 0%;
}
 
.scrl:hover {
color: #0BEFEB;
}
 
button.down span, button.up span {
position:relative;
]]





Revision as of 19:10, 25 April 2020

https://issue.xpub.nl/11/

SI11PDI.png


NOT

<button onclick="scrollWin(0,-5000)" class="up scrl">Up</button> <button onclick="scrollWin(0,5000)" class="down scrl">Down</button> <button onclick="scrollToTop()" class="top scrl">Top</button> <button onclick="scrollToBottom()" class="bottom scrl">Bottom</button>
<script> var coll = document.getElementsByClassName("collapsible"); 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"; } }); } function scrollWin(x, y) { window.scrollBy(x, y); } var elmnt = document.getElementById("top"); function scrollToTop() { elmnt.scrollIntoView(true); // Top } function scrollToBottom() { elmnt.scrollIntoView(false); // Bottom } </script>
#top { padding-top: 25px; padding-left: 50px; } body { background-color: #F4EBE8; font-family: Roboto Mono; } .collapsible{ font-size:14px; padding-left: 70px; line-height: 1; color: #371F10; } .active, .collapsible:hover { color: blue; cursor: pointer; } .active, .collapsible:after { padding-top: 10px; padding-left: 85px; color: #371F10; font-weight: bold; background-color: transparent; } .content { max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; padding-left: 50px; background-color: #371F10; position: relative; line-height: 30px; margin-left: 85px; color: white; font-size: 14px; } .content a { color:white; text-decoration: none; } .content a:hover { color: blue; cursor: pointer; } /* Scroll buttons */ .scrl { position: fixed; background-color: white; color:#371F10; cursor: pointer; border:none; border-right:1px solid #D1C8C8; font-size: 25px; width: 50px; height: 50px; font-weight: bold; z-index: 10; bottom: 0%; } .scrl:hover { color: #0BEFEB; } button.down span, button.up span { position:relative;