MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
initial drop down menu css
m (Removing http links for https.)
(initial drop down menu css)
Tag: Reverted
Line 318: Line 318:
         url('https://wiki.starbase118.net/wiki/images/3/3d/DenobulanMedium.woff2') format('woff2'),
         url('https://wiki.starbase118.net/wiki/images/3/3d/DenobulanMedium.woff2') format('woff2'),
         url('https://wiki.starbase118.net/wiki/images/d/d2/DenobulanMedium.svg') format('svg');
         url('https://wiki.starbase118.net/wiki/images/d/d2/DenobulanMedium.svg') format('svg');
/* Drop Down Menu */
.navbar {
  overflow: hidden;
  background-color: #333;
}
.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}
.dropdown {
  float: left;
  overflow: hidden;
}
.dropdown .dropbtn {
  font-size: 16px; 
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: red;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}
.dropdown-content a:hover {
  background-color: #ddd;
}
.dropdown:hover .dropdown-content {
  display: block;
}

Navigation menu