Difference between revisions of "Team:Bielefeld-CeBiTec/CSS"

(Replaced content with "<html> <h1>Test Test</h1> </html>")
Line 1: Line 1:
<script>
+
<html>
/* Loop through all dropdown buttons to toggle between hiding and showing its dropdown content - This allows the user to have multiple dropdowns without any conflict */
+
var dropdown = document.getElementsByClassName("dropdown-btn");
+
var i;
+
  
for (i = 0; i < dropdown.length; i++) {
+
<h1>Test Test</h1>
  dropdown[i].addEventListener("click", function() {
+
this.classList.toggle("active");
+
var dropdownContent = this.nextElementSibling;
+
if (dropdownContent.style.display === "block") {
+
  dropdownContent.style.display = "none";
+
} else {
+
  dropdownContent.style.display = "block";
+
}
+
  });
+
</script>
+
  
 
+
</html>
<style>
+
 
+
.firstHeading {
+
display: none;
+
}
+
 
+
.mw-content-text {
+
display: none;
+
}
+
 
+
.logo_2018 {
+
display: none;
+
}
+
 
+
.content {
+
padding: 0px;
+
width: 100%;
+
margin: 0px;
+
border: none;
+
}
+
 
+
.globalWrapper {
+
padding: 0px;
+
}
+
 
+
 
+
body {
+
    font-family: "Lato", sans-serif;
+
}
+
 
+
/* Fixed sidenav, full height */
+
.sidenav {
+
    height: 100%;
+
    width: 200px;
+
    position: fixed;
+
    z-index: 1;
+
    top: 0;
+
    left: 0;
+
    background-color: #111;
+
    overflow-x: hidden;
+
    padding-top: 20px;
+
}
+
 
+
/* Style the sidenav links and the dropdown button */
+
.sidenav a, .dropdown-btn {
+
    padding: 6px 8px 6px 16px;
+
    text-decoration: none;
+
    font-size: 20px;
+
    color: #818181;
+
    display: block;
+
    border: none;
+
    background: none;
+
    width: 100%;
+
    text-align: left;
+
    cursor: pointer;
+
    outline: none;
+
}
+
 
+
/* On mouse-over */
+
.sidenav a:hover, .dropdown-btn:hover {
+
    color: #f1f1f1;
+
}
+
 
+
/* Main content */
+
.main {
+
    margin-left: 200px; /* Same as the width of the sidenav */
+
    font-size: 20px; /* Increased text to enable scrolling */
+
    padding: 0px 10px;
+
}
+
 
+
/* Add an active class to the active dropdown button */
+
.active {
+
    background-color:#002a5c ;
+
    color: white;
+
}
+
 
+
/* Dropdown container (hidden by default). Optional: add a lighter background color and some left padding to change the design of the dropdown content */
+
.dropdown-container {
+
    display: none;
+
    background-color: #262626;
+
    padding-left: 8px;
+
}
+
 
+
 
+
/* Some media queries for responsiveness */
+
@media screen and (max-height: 450px) {
+
    .sidenav {padding-top: 15px;}
+
    .sidenav a {font-size: 18px;}
+
}
+
 
+
.logo-img {
+
align: top;
+
    padding-right: 2px;
+
    padding-bottom: 2px;
+
    padding-left: 5px;
+
}
+
</style>
+

Revision as of 20:18, 26 May 2018

Test Test