Difference between revisions of "Template:UCSC"

(Replaced content with "{{:Team:UCSC/NavBar}}")
Line 1: Line 1:
<html>
+
{{:Team:UCSC/NavBar}}
 
+
<style>
+
 
+
/* INSTRUCTIONS: Copy this file text into your editor, and update relevant sections as you progress */
+
 
+
/* Define main theme variables */
+
:root {
+
    --main-bg-color: #0C5798;
+
    --hover-bg-color: #F0AE2F;
+
    --active-bg-color: #F0AE2F;
+
 
+
    --main-txt-color: #F0AE2F;
+
    --hover-txt-color: #0C5798;
+
    --active-txt-color: #0C5798;
+
}
+
 
+
div, dropdown {
+
    background-color: var(--main-bg-color);
+
    border-radius: var(--div-border-radius);
+
}
+
 
+
p {
+
    color: var(--main-txt-color);
+
}
+
 
+
/*-----NAV BAR THEME-----*/
+
 
+
/* Add the background color to the top navigation */
+
.topnav {
+
    overflow: hidden;
+
}
+
 
+
/* Style the links inside the navigation bar */
+
.topnav a {
+
    float: left;
+
    display: block;
+
    color: var(--main-txt-color);
+
    text-align: center;
+
    padding: 14px 16px;
+
    text-decoration: none;
+
    font-size: 17px;
+
}
+
 
+
/* Add an active class to highlight the current page */
+
.active {
+
    background-color: var(--active-bg-color);
+
    color: white;
+
}
+
 
+
.topnav a:hover {
+
    border-radius: 0px;
+
}
+
 
+
.topnav div div > :first-child:hover {
+
    border-top-right-radius: var(--div-border-radius);
+
}
+
 
+
.topnav div div > :last-child:hover {
+
    border-bottom-left-radius: var(--div-border-radius);
+
    border-bottom-right-radius: var(--div-border-radius);
+
}
+
 
+
/* Hide the link that should open and close the topnav on small screens */
+
.topnav .icon {
+
    display: none;
+
}
+
 
+
/* Dropdown container - needed to position the dropdown content */
+
.dropdown {
+
    float: left;
+
    overflow: hidden;
+
    border-radius: 0px;
+
}
+
 
+
/* Style the dropdown button to fit inside the topnav */
+
.dropdown .dropbtn {
+
    font-size: 17px;
+
    border: none;
+
    outline: none;
+
    color: var(--main-txt-color);
+
    /*padding: 14px 16px;*/
+
    background-color: inherit;
+
    font-family: inherit;
+
    margin: 0;
+
}
+
 
+
/* Style the dropdown content (hidden by default) */
+
.dropdown-content {
+
    display: none;
+
    border-top-left-radius: 0px;
+
    position: absolute;
+
    min-width: 160px;
+
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+
    z-index: 1;
+
}
+
 
+
/* Style the links inside the dropdown */
+
.dropdown-content a {
+
    float: none;
+
    color: var(--main-txt-color);
+
    padding: 12px 16px;
+
    text-decoration: none;
+
    display: block;
+
    text-align: left;
+
}
+
 
+
/* Add a dark background on topnav links and the dropdown button on hover */
+
.topnav a:hover, .dropdown:hover .dropbtn {
+
    background-color: var(--hover-bg-color);
+
    color: var(--hover-txt-color);
+
}
+
 
+
/* Add a grey background to dropdown links on hover */
+
.dropdown-content a:hover {
+
    background-color: var(--hover-bg-color);
+
    color: var(--hover-txt-color);
+
}
+
 
+
/* Show the dropdown menu when the user moves the mouse over the dropdown button */
+
.dropdown:hover .dropdown-content {
+
    display: block;
+
}
+
 
+
/*-----PAGE IN PROGRESS-----*/
+
 
+
.workInProgress {
+
    margin: 25px;
+
    border-radius: 10px;
+
    /*border-style: dashed;
+
    border-color: var(--hover-bg-color);
+
    border-width: medium;*/
+
    padding: 10px;
+
    background-color: var(--main-bg-color);
+
    align-content: center;
+
    align-items: center;
+
    align-self: center;
+
}
+
 
+
.workInProgress:hover {
+
    background-color: green;
+
}
+
 
+
.workInProgress p {
+
    text-align: center;
+
    font-size: 2vw;
+
}
+
 
+
 
+
 
+
/*-----Team Page Classes-----*/
+
 
+
.column {
+
    float: left;
+
    width: 25%;
+
    padding: 0px;
+
    background-color: #515151;
+
}
+
 
+
/* Clearfix (clear floats) */
+
.row::after {
+
    content: "";
+
    clear: both;
+
    display: table;
+
    background-color: #515151;
+
}
+
 
+
/* Slideshow container */
+
.slideshow-container {
+
  max-width: 1000px;
+
  position: relative;
+
  margin: auto;
+
  overflow:hidden;
+
  border-top:3px solid black;
+
  border-bottom:3px solid black;
+
  border-left:1.5px solid black;
+
  border-right: 1.5px solid black;
+
  background-color: #515151;
+
}
+
 
+
/* Next & previous buttons */
+
.prev, .next {
+
  cursor: pointer;
+
  position: absolute;
+
  top: 50%;
+
  width: auto;
+
  padding: 16px;
+
  margin-top: -22px;
+
  color: white;
+
  font-weight: bold;
+
  font-size: 18px;
+
  transition: 0.6s ease;
+
  border-radius: 0 3px 3px 0;
+
  user-select: none;
+
  opacity: .3;
+
}
+
 
+
/* Position the "next button" to the right */
+
.next {
+
  right: 0;
+
  border-radius: 3px 0 0 3px;
+
}
+
 
+
/* On hover, add a grey background color */
+
.prev:hover, .next:hover {
+
  background-color: #f1f1f1;
+
  color: black;
+
}
+
 
+
/* The dots/bullets/indicators */
+
.dot {
+
  cursor: pointer;
+
  height: 10px;
+
  width: 10px;
+
  margin: 0 2px;
+
  background-color: #bbb;
+
  border-radius: 50%;
+
  display: inline-block;
+
  transition: background-color 0.6s ease;
+
}
+
 
+
.active, .dot:hover {
+
  background-color: #717171;
+
}
+
 
+
/* Fading animation */
+
.fade {
+
  -webkit-animation-name: fade;
+
  -webkit-animation-duration: 1.5s;
+
  animation-name: fade;
+
  animation-duration: 1.5s;
+
  background-color: #515151
+
}
+
 
+
.FullNames {
+
  text-align: center;
+
  font-size:175%;
+
  margin-top:-0px;
+
  background-color: #515151;
+
  color: #F0AE2F
+
}
+
 
+
@-webkit-keyframes fade {
+
  from {opacity: .75}
+
  to {opacity: 1}
+
}
+
@keyframes fade {
+
  from {opacity: .75}
+
  to {opacity: 1}
+
}
+
 
+
/* Sliding animation */
+
.slide {
+
  overflow-x: hidden;
+
  transition-property: all;
+
  transition-duration: .5s;
+
  transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
+
}
+
 
+
.slide.closed {
+
  max-width: 0;
+
}
+
 
+
 
+
 
+
/*-----Header Styles-----*/
+
 
+
 
+
 
+
 
+
 
+
/*-----SCREEN RESPONSIVENESS (MOBILE VERSION)-----*/
+
 
+
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
+
@media screen and (max-width: 600px) {
+
    .topnav {
+
        background-color: var(--active-bg-color);
+
    }
+
  .topnav :not(:first-child) {display: none;}
+
  .topnav .icon {
+
    float: right;
+
    display: block;
+
  }
+
 
+
}
+
 
+
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
+
@media screen and (max-width: 600px) {
+
  .topnav.responsive {
+
      position: relative;
+
      background-color: var(--main-bg-color);
+
  }
+
  .topnav.responsive a.icon {
+
    position: absolute;
+
    right: 0;
+
    top: 0;
+
  }
+
  .topnav.responsive a {
+
    float: none;
+
    display: block;
+
    text-align: left;
+
  }
+
  .topnav.responsive .dropdown {float: none;}
+
  .topnav.responsive .dropdown-content {position: relative;}
+
  .topnav.responsive .dropdown .dropbtn {
+
    display: block;
+
    width: 100%;
+
    text-align: left;
+
  }
+
 
+
  .workInProgress p {
+
      text-align: center;
+
      font-size: 5vw;
+
  }
+
}
+
 
+
/* On smaller screens, decrease text size */
+
@media only screen and (max-width: 300px) {
+
  .prev, .next,.text {font-size: 11px}
+
}
+
 
+
</style>
+
</html>
+

Revision as of 17:28, 18 July 2018