Difference between revisions of "Template:Northwestern Page Head"

Line 80: Line 80:
  
 
/******** circle nav ********/
 
/******** circle nav ********/
 +
  
 
.csstransforms .cn-wrapper {
 
.csstransforms .cn-wrapper {
   position: absolute;
+
   font-size:1em;
   top: 100%;
+
   width: 26em;
   left: 50%;
+
   height: 26em;
 +
  overflow: hidden;
 +
  position: fixed;
 
   z-index: 10;
 
   z-index: 10;
   margin-top: -13em;
+
   bottom: -13em;
   margin-left: -13.5em;
+
   left: 50%;
  width: 27em;
+
  height: 27em;
+
 
   border-radius: 50%;
 
   border-radius: 50%;
   background: transparent;
+
   margin-left: -13em;
  opacity: 0;
+
  transition: all .3s ease 0.3s;
+
 
   transform: scale(0.1);
 
   transform: scale(0.1);
   pointer-events: none;
+
   transition: all .3s ease;
  overflow: hidden;  
+
 
}
 
}
  
/*cover to prevent extra space of anchors from being clickable*/
+
.csstransforms .opened-nav {
.csstransforms .cn-wrapper:after{
+
   border-radius: 50%;
   color: transparent;
+
   transform: scale(1);
   content:".";
+
}
   display:block;
+
 
   font-size:2em;
+
.cn-button {
   width:6.2em;
+
  border:none;
   height:6.2em;
+
   background:none;
   position: absolute;
+
  color: white;
 +
  text-align: Center;
 +
   font-size: 1.5em;
 +
   padding-bottom: 1em;
 +
   height: 3.5em;
 +
  width: 3.5em;
 +
  background-color: #111;
 +
   position: fixed;
 
   left: 50%;
 
   left: 50%;
   margin-left: -3.1em;
+
   margin-left: -1.75em;
   top:50%;
+
   bottom: -1.75em;
  margin-top: -3.1em;
+
 
   border-radius: 50%;
 
   border-radius: 50%;
   z-index:10;
+
  cursor: pointer;
 +
   z-index: 11
 +
}
 +
.cn-button:hover,
 +
.cn-button:active,
 +
.cn-button:focus{
 +
  background-color: #222;
 +
}
 +
 
 +
.cn-overlay{
 +
  width:100%
 +
  height:100%;
 +
  background-color: rgba(0,0,0,0.6);
 +
  position:fixed;
 +
  top:0;
 +
  left:0;
 +
  bottom:0;
 +
  right:0;
 +
  opacity:0;
 +
  transition: all .3s ease;
 +
  z-index:2;
 +
  pointer-events:none;
 +
}
 +
 
 +
/* Class added to the overlay via JavaScript to show it when navigation is open */
 +
.cn-overlay.on-overlay{
 +
  pointer-events:auto;
 +
  opacity:1;
 
}
 
}
  
 
.csstransforms .cn-wrapper li {
 
.csstransforms .cn-wrapper li {
 
   position: absolute;
 
   position: absolute;
   top: 50%;
+
   font-size: 1.5em;
  left: 50%;
+
  overflow: hidden;
+
  margin-top: -1.3em;
+
  margin-left: -10em;
+
 
   width: 10em;
 
   width: 10em;
 
   height: 10em;
 
   height: 10em;
  font-size: 1.5em;
 
  transition: all .3s ease;
 
  transform: rotate(76deg) skew(60deg);
 
 
   transform-origin: 100% 100%;
 
   transform-origin: 100% 100%;
   pointer-events: none;
+
   overflow: hidden;
 +
  left: 50%;
 +
  top: 50%;
 +
  margin-top: -1.3em;
 +
  margin-left: -10em;
 +
  transition: border .3s ease;
 
}
 
}
  
 
.csstransforms .cn-wrapper li a {
 
.csstransforms .cn-wrapper li a {
 +
  display: block;
 +
  font-size: 1.18em;
 +
  height: 14.5em;
 +
  width: 14.5em;
 
   position: absolute;
 
   position: absolute;
   position: fixed; /* fix the "displacement" bug in webkit browsers when using tab key */
+
   bottom: -7.25em;
 
   right: -7.25em;
 
   right: -7.25em;
  bottom: -7.25em;
 
  display: block;
 
  width: 14.5em;
 
  height: 14.5em;
 
 
   border-radius: 50%;
 
   border-radius: 50%;
   background: #429a67;
+
   text-decoration: none;
  background: radial-gradient(transparent 35%, #429a67 35%);
+
 
   color: #fff;
 
   color: #fff;
 +
  padding-top: 1.8em;
 
   text-align: center;
 
   text-align: center;
  text-decoration: none;
+
   transform: skew(-50deg) rotate(-70deg) scale(1);
  font-size: 1.2em;
+
   transition: opacity 0.3s, color 0.3s;
  line-height: 2;
+
  transition: all .3s ease;
+
   transform: skew(-60deg) rotate(-75deg) scale(1);
+
   pointer-events: auto;
+
 
}
 
}
  
 
.csstransforms .cn-wrapper li a span {
 
.csstransforms .cn-wrapper li a span {
  position: relative;
+
   font-size: 1.1em;
  top: 1.8em;
+
   opacity: 0.7;
  display: block;
+
   font-size: .5em;
+
   font-weight: 700;
+
  text-transform: uppercase;
+
 
}
 
}
  
.csstransforms .cn-wrapper li a:hover,
+
.csstransforms .cn-wrapper li:first-child {
.csstransforms .cn-wrapper li a:active,
+
   transform: rotate(-10deg) skew(50deg);
.csstransforms .cn-wrapper li a:focus {
+
background: radial-gradient(transparent 35%, #449e6a 35%);
+
}
+
.csstransforms .opened-nav {
+
  border-radius: 50%;
+
  opacity: 1;
+
  transition: all .3s ease;
+
   transform: scale(1);
+
  pointer-events: auto;
+
 
}
 
}
  
.csstransforms .opened-nav li {
+
.csstransforms .cn-wrapper li:nth-child(2) {
   transition: all .3s ease .3s;
+
   transform: rotate(30deg) skew(50deg);
 
}
 
}
  
.csstransforms .opened-nav li:first-child {
+
.csstransforms .cn-wrapper li:nth-child(3) {
   transform: rotate(-20deg) skew(60deg);
+
   transform: rotate(70deg) skew(50deg)
 
}
 
}
  
.csstransforms .opened-nav li:nth-child(2) {
+
.csstransforms .cn-wrapper li:nth-child(4) {
   transform: rotate(12deg) skew(60deg);
+
   transform: rotate(110deg) skew(50deg);
 
}
 
}
  
.csstransforms .opened-nav  li:nth-child(3) {
+
.csstransforms .cn-wrapper li:nth-child(5) {
   transform: rotate(44deg) skew(60deg);
+
   transform: rotate(150deg) skew(50deg);
 
}
 
}
  
.csstransforms .opened-nav li:nth-child(4) {
+
.csstransforms .cn-wrapper li:nth-child(odd) a {
   transform: rotate(76deg) skew(60deg);
+
   background-color: #a11313;
 +
  background-color: hsla(0, 88%, 63%, 1);
 
}
 
}
  
.csstransforms .opened-nav li:nth-child(5) {
+
.csstransforms .cn-wrapper li:nth-child(even) a {
   transform: rotate(108deg) skew(60deg);
+
   background-color: #a61414;
 +
  background-color: hsla(0, 88%, 65%, 1);
 
}
 
}
  
.csstransforms .opened-nav li:nth-child(6) {
+
/* active style */
   transform: rotate(140deg) skew(60deg);
+
.csstransforms .cn-wrapper li.active a {
 +
   background-color: #b31515;
 +
  background-color: hsla(0, 88%, 70%, 1);
 
}
 
}
  
.csstransforms .opened-nav li:nth-child(7) {
+
/* hover style */
   transform: rotate(172deg) skew(60deg);
+
.csstransforms .cn-wrapper li:not(.active) a:hover,
 +
.csstransforms .cn-wrapper li:not(.active) a:active,
 +
.csstransforms .cn-wrapper li:not(.active) a:focus {
 +
   background-color: #b31515;
 +
  background-color: hsla(0, 88%, 70%, 1);
 +
}
 +
.csstransforms .cn-wrapper li:not(.active) a:focus {
 +
  position: fixed; /* fix the "displacement" bug in webkit browsers when using tab key */
 
}
 
}
  
 
.no-csstransforms .cn-wrapper{
 
.no-csstransforms .cn-wrapper{
   margin:10em auto;
+
  font-size:1em;
   overflow:hidden;
+
  height:5em;
   text-align:center;
+
  width:25.15em;
   padding:1em;
+
  bottom:0;
 +
   margin-left: -12.5em;
 +
   overflow: hidden;
 +
   position: fixed;
 +
  z-index: 10;
 +
   left:50%;
 +
  border:1px solid #ddd;
 
}
 
}
.no-csstransforms .cn-wrapper ul{
+
 
   display:inline-block;
+
.no-csstransforms .cn-button{
 +
   display:none;
 
}
 
}
.no-csstransforms li{
+
 
 +
.no-csstransforms .cn-wrapper li{
 +
  position:static;
 +
  float:left;
 
   font-size:1em;
 
   font-size:1em;
  width:5em;
 
 
   height:5em;
 
   height:5em;
   float:left;
+
   width:5em;
   line-height:5em;
+
   background-color: #eee;
 
   text-align:center;
 
   text-align:center;
   background-color: #fff;
+
   line-height:5em;
 
}
 
}
.no-csstransforms li a{
+
 
 +
.no-csstransforms .cn-wrapper li a{
 
   display:block;
 
   display:block;
  height:100%;
 
 
   width:100%;
 
   width:100%;
   text-decoration: none;
+
  height:100%;
   color: inherit;
+
   text-decoration:none;
 +
   color:inherit;
 +
  font-size:1.3em;
 +
  border-right: 1px solid #ddd;
 
}
 
}
 +
 +
.no-csstransforms .cn-wrapper li a:last-child{
 +
  border:none;
 +
}
 +
 
.no-csstransforms .cn-wrapper li a:hover,
 
.no-csstransforms .cn-wrapper li a:hover,
 
.no-csstransforms .cn-wrapper li a:active,
 
.no-csstransforms .cn-wrapper li a:active,
 
.no-csstransforms .cn-wrapper li a:focus{
 
.no-csstransforms .cn-wrapper li a:focus{
   background-color: #f8f8f8;
+
   background-color: white;
 
}
 
}
 +
 
.no-csstransforms .cn-wrapper li.active a {
 
.no-csstransforms .cn-wrapper li.active a {
 
   background-color: #6F325C;
 
   background-color: #6F325C;
 
   color: #fff;
 
   color: #fff;
}
 
.no-csstransforms .cn-button{
 
  display:none;
 
 
}
 
}
  
@media only screen and (max-width: 620px) {
+
@media screen and (max-width:480px){
  .no-csstransforms li{
+
    width:4em;
+
    height:4em;
+
    line-height:4em;
+
  }
+
}
+
@media only screen and (max-width: 500px) {
+
  .no-ccstransforms .cn-wrapper{
+
    padding:.5em;
+
  }
+
  .no-csstransforms .cn-wrapper li{
+
    font-size:.9em;
+
    width:4em;
+
    height:4em;
+
    line-height:4em;
+
  }
+
}
+
@media only screen and (max-width: 480px) {
+
 
   .csstransforms .cn-wrapper{
 
   .csstransforms .cn-wrapper{
     font-size: .68em;
+
     font-size:.68em;
 
   }
 
   }
 
   .cn-button{
 
   .cn-button{
 
     font-size:1em;
 
     font-size:1em;
 +
  }
 +
  .csstransforms .cn-wrapper li {
 +
    font-size:1.52em;
 
   }
 
   }
 
}
 
}
@media only screen and (max-width:420px){
+
 
 +
@media screen and (max-width:320px){
 +
  .no-csstransforms .cn-wrapper{
 +
    width:15.15px;
 +
    margin-left: -7.5em;
 +
  }
 
   .no-csstransforms .cn-wrapper li{
 
   .no-csstransforms .cn-wrapper li{
    width:100%;
 
 
     height:3em;
 
     height:3em;
     line-height:3em;
+
     width:3em;
 
   }
 
   }
 
}
 
}

Revision as of 19:33, 21 July 2017

Northwestern Template

-->