Difference between revisions of "Template:Cologne-Duesseldorf/css"

Line 698: Line 698:
 
}
 
}
  
nav {
+
#bodyContent nav {
    z-index: 9999;
+
  display:none;
    display: none;
+
  border-top: 1px solid #ddd;
    position: fixed;
+
  border-bottom: 1px solid #ddd;
    top: 16px;
+
    left: 0;
+
    right: 0;
+
    background-color:#1C1E1F;
+
 
}
 
}
#bodyContent nav ul {
+
 
    list-style-type: none;
+
#bodyContent ul {
    margin: 0;
+
  margin: 0;
    padding: 0;
+
  padding: 0;
    display: flex;
+
    justify-content: space-around;
+
    align-items: center;
+
 
}
 
}
#bodyContent nav li {
+
 
    padding: 0;
+
#bodyContent .menu {
    text-indent: 0;
+
  display: flexbox;
 +
  display: flex;
 +
  background-color:#e0e0e0;
 +
  flex-direction: row;
 +
  justify-content: space-between;
 +
  align-items: center;
 
}
 
}
#bodyContent nav li::before {
+
 
    display: none;
+
#bodyContent .menu li {
 +
  display: block;
 +
  list-style-type: none;
 +
  text-transform: uppercase;
 
}
 
}
#bodyContent nav li a,
+
 
.dropbtn {
+
#bodyContent .menu > li > a{
    display: inline-block;
+
  height: 100px;
    color: white;
+
    text-align: center;
+
    padding: 10px 20px;
+
    text-decoration: none;
+
    font-size: 18px;
+
 
}
 
}
#bodyContent nav a:visited {
+
 
    color: white;
+
#bodyContent .menu li a {
 +
  display: flex;
 +
  text-align: center;
 +
  align-items:center;
 +
  text-decoration: none;
 +
  color: #777;
 +
  padding: 1rem;
 
}
 
}
#bodyContent nav li a:hover,
+
#bodyContent .menu li a:hover {
.dropdown:hover .dropbtn {
+
   background: #777;
   color: white;
+
   color: #fff;
   background-color: #149375;
+
 
}
 
}
#bodyContent nav li.dropdown {
+
 
   display: flex;
+
#bodyContent .menu-item-has-children > a:after {
  flex-direction: column;
+
   font-family: "Genericons";
   justify-content: center;
+
   content: "\f431";
   display: inline-block;
+
   padding: 1px;
 
}
 
}
#bodyContent nav .dropdown-content {
+
 
    display: none;
+
#bodyContent nav ul ul {
    position: absolute;
+
  display: none;
    background-color: #f9f9f9;
+
  position: absolute;
    min-width: 160px;
+
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
+
    z-index: 1;
+
 
}
 
}
#bodyContent nav .dropdown-content a {
+
 
    color: black;
+
#bodyContent nav ul li:hover > ul {
    padding: 12px 16px;
+
  display: block;
    text-decoration: none;
+
  color: #fff;
    display: block;
+
  padding-left: 0;
    text-align: left;
+
  background: #777;
    font-size: 16px;
+
 
}
 
}
#bodyContent nav .dropdown-content a:hover {
+
 
    background-color: #f1f1f1
+
#bodyContent nav ul li:hover > ul a {
 +
  color: #fff;
 
}
 
}
#bodyContent nav .dropdown:hover .dropdown-content {
+
 
    display: block;
+
#bodyContent .sub-menu li {
 +
  display: flex;
 +
  padding-right: 2em;
 +
  width: 260px;
 +
}
 +
#bodyContent .sub-menu li:hover,
 +
#bodyContent .sub-menu li a:hover {
 +
  background: #ddd;
 +
  color: #777;
 +
}
 +
 
 +
#bodyContent nav ul ul ul {
 +
  margin: 0 0 0 100%;
 +
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
 +
}
 +
 
 +
#bodyContent .menu-item-has-children .menu-item-has-children:hover > a:after {
 +
  -webkit-transform: rotate(-90deg);
 +
          transform: rotate(-90deg);
 +
  -webkit-transition: -webkit-transform 0.5s;
 +
  transition: -webkit-transform 0.5s;
 +
  transition: transform 0.5s;
 +
  transition: transform 0.5s, -webkit-transform 0.5s;
 
}
 
}
  
Line 792: Line 812:
 
   }
 
   }
 
   #bodyContent nav{
 
   #bodyContent nav{
     display:block;
+
     display:flex;
 
   }
 
   }
 
   #bodyContent article p {
 
   #bodyContent article p {

Revision as of 11:31, 29 October 2017