Difference between revisions of "Template:TPHS San Diego/Navbar"

Line 5: Line 5:
 
<style>
 
<style>
  
#navbar
+
.logo
 
{
 
{
    margin: auto;
+
  display:inline-block;
    width: 100%;
+
  position:relative;
    text-align: center;
+
  top:-55px;
 +
  left:30px;
 +
  padding-top:20px;
 +
  padding-bottom:20px;
 +
  height:150px;
 +
  width:180px;
 +
  float:left;
 +
  background-color:#FFF;
 +
  border-bottom-style:solid;
 +
  border-bottom-color:#ffffb1;
 +
  border-radius:50%;
 +
  background-color:#ffffb1;
 
}
 
}
  
#navbar-fill {
+
 
  width:100%;  
+
.navbar  
  margin-top: 0px;
+
{  
  background-color: #333333;
+
  margin-top:-8px;
  z-index: 2;
+
  overflow: hidden;
 +
  background-color:#FFF;
 +
  font-family: Arial;
 +
  font-size:16px;
 +
  padding-top:15px;
 +
  padding-bottom:20px;
 +
  padding-left:220px;
 +
  border-bottom-style:solid;
 +
  border-bottom-color:#ffffb1;
 +
  border-bottom-width:thick;
 
}
 
}
  
.dropbtn {
+
/* Links inside the navbar */
    background-color: #333333;
+
.navbar a
    color: white;
+
{
    width: 180px;
+
    padding: 13px;
+
    font-size: 16px;
+
    border: none;
+
    cursor: pointer;
+
font-family: 'Montserrat', sans-serif;
+
 
+
 
    
 
    
 +
  position:relative;
 +
  top:-10px;
 +
  float: left;
 +
  font-size: 18px;
 +
  font-weight:450;
 +
  color:black;
 +
  text-align: center;
 +
  padding: 14px 16px;
 +
  margin-right:200px;
 +
  text-decoration: none;
 
}
 
}
  
button.dropbtn:hover
+
/* The dropdown container */
 +
.dropdown
 
{
 
{
  background-color: black;
+
  float: left;
}
+
  overflow: hidden;
  
.dropdown {
 
    position: relative;
 
    display: inline-block;
 
    font-family: 'Montserrat', sans-serif;
 
 
}
 
}
  
.dropdown-content {
+
/* Dropdown button */
    display: none;
+
.dropdown .dropbtn
    position: absolute;
+
{
    width: 180px;
+
  display:inline-block;
    background-color: #333333;
+
  font-size: 16px;  
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+
  border: none;
    z-index: 2;
+
  outline: none;
    text-align: center;
+
  color: black;
    font-family: 'Montserrat', sans-serif;
+
  font-weight:700;
 +
  font-size:20px;
 +
  padding: 14px 16px;
 +
  background-color: inherit;
 +
  font-family: inherit; /* Important for vertical align on mobile phones */
 +
  margin: 0; /* Important for vertical align on mobile phones */
 +
  margin-right:75px;
 
}
 
}
  
 
+
/* Add a red background color to navbar links on hover */
#title
+
.navbar a:hover, .dropdown:hover .dropbtn
 
{
 
{
    color: white;
+
  background-color:rgba(255, 229, 7, 0.47);
    text-decoration: none;
+
 
}
 
}
  
.dropdown-content a {
+
/* Dropdown content (hidden by default) */
  color: white;
+
.dropdown-content  
  border-bottom-style: solid;
+
{
  border-bottom-color: white;
+
  display: none;
  border-bottom-width: 1px;
+
  position: absolute;
  padding: 12px 16px;
+
  background-color: #f9f9f9;
  text-decoration: none;
+
  min-width: 120px;
  display: block;
+
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  font-family: 'Raleway', sans-serif;
+
  z-index: 1;
 
}
 
}
  
.dropdown-content a:hover {
+
/* Links inside the dropdown */
background-color:  #6e6e6e
+
.dropdown-content a  
}
+
 
+
.dropdown:hover .dropdown-content {
+
    display: block;
+
}
+
 
+
.dropdown:hover .dropbtn {
+
    background-color: #333333;
+
}
+
 
+
div.animation a:before
+
 
{
 
{
    position: absolute;
+
  float: none;
    top: 0px;
+
  color: black;
    left: 0px;
+
  padding: 12px 16px;
    width: 1px;
+
  text-decoration: none;
    height: 0px;
+
  display: block;
    background: #FFF;
+
  text-align: left;
    content: "";
+
    opacity: 1;
+
    transition: all 0.3s;
+
 
}
 
}
  
div.animation a:after
+
/* Add a grey background color to dropdown links on hover */
 +
.dropdown-content a:hover
 
{
 
{
    position: absolute;
+
  background-color: #ddd;
    top: 0px;
+
    left: 0px;
+
    width: 100%;
+
    height: 1px;
+
    background: #FFF;
+
    content: "";
+
    opacity: 1;
+
    transition: all 0.3s;
+
 
}
 
}
  
div.animation a:hover:before
+
/* Show the dropdown menu on hover */
 +
.dropdown:hover .dropdown-content
 
{
 
{
    height: 100%;
+
  display: block;
 
}
 
}
  
div.animation a:hover:after
 
{
 
    opacity: 0;
 
    top: 10%;
 
}
 
  
  

Revision as of 04:18, 12 October 2018