Difference between revisions of "Template:JiangnanU China/CSS"

 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<html>
 
<html>
 
<style>
 
<style>
html {
+
@font-face {
  height: 100%;
+
    font-family: 'moon';
  background-color: #f8f8f8;
+
    src:url("https://static.igem.org/mediawiki/2019/6/61/T--JiangnanU_China--Moon2.0-Regular.otf");
 
}
 
}
 +
h2{
 +
    font-family: moon,sans-serif;
 +
    color: #ffffff;
  
body {
 
  overflow: hidden;
 
  height: 100%;
 
  width: 100%;
 
  margin: 0 auto;
 
  background-color: #ffffff;
 
  font-family: 'Roboto', sans-serif;
 
  color: #555555;
 
 
}
 
}
 
+
body{
a {
+
    padding-top: 7px;
  text-decoration: none;
+
    float: none;
  color: inherit;
+
    margin: 0;
 
}
 
}
 
+
.List{
* {
+
    margin-right: 100px;
  box-sizing: border-box;
+
}
+
 
+
.menu {
+
  display: block;
+
  position: relative;
+
  cursor: pointer;
+
 
}
 
}
.menu:hover .menu-dropdown{
+
nav{ width:100%;
display: block;
+
    height:100px;
 +
    background-image:url("https://static.igem.org/mediawiki/2019/b/b0/T--JiangnanU_China--Banner_BG.jpg
 +
");
 +
    float: left;
 +
    position: relative;
 
}
 
}
 +
nav ul{list-style:none;z-index: 1;}
 +
nav ul li:hover ul{ display:block}
 +
nav ul li:hover .chosen_bar{ display: block}
 +
nav ul li{ float:right; line-height:40px; text-align:center; position:relative;}
  
.menu-title {
+
nav ul li ul{ position:absolute; display:none;background:rgb(0,19,86);padding: 0;margin: 0}
  display: block;
+
nav ul li ul li{ float:none; line-height:30px; text-align:left; width:100%;}
  width: 150px;
+
nav ul li ul li:hover{ background-color:#00b2ff;}
  height: 40px;
+
nav ul li ul li a{ width:100%;white-space: nowrap;font-family: moon,serif;color: #ffffff;text-decoration:none;padding: 0 15px;}
  padding: 12px 0 0;
+
.menu{
  background: #9dc852;
+
    margin-left: 50px;
  text-align: center;
+
    width: auto;
  color: #ffffff;
+
  font-weight: bold;
+
  text-transform: uppercase;
+
  transition: 0.3s background-color;
+
 
}
 
}
 
+
.logo{
.menu-title:before {
+
    position: absolute;
  content: "";
+
    width: 80px;
  display: block;
+
    height: 80px;
  height: 0;
+
    z-index: 1;
  border-top: 5px solid #9dc852;
+
    top:10px;
  border-left: 75px solid transparent;
+
    left: 28px;
  border-right: 75px solid transparent;
+
  border-bottom: 0 solid #dddddd;
+
  position: absolute;
+
  top: 100%;
+
  left: 0;
+
  z-index: 101;
+
  transition: 0.2s 0.2s border-top ease-out, 0.3s border-top-color;
+
 
}
 
}
 
+
.logo_text{
.menu-title:hover {
+
    font-size: 24px;
  background: #8db842;
+
    position: absolute;
 +
    left:126px;
 +
    top:14px;
 +
    color: #ffffff;
 +
    font-family: moon,serif;
 
}
 
}
 
+
.decoration1{
.menu-title:hover:before {
+
    width: 40px;
  border-top-color: #8db842;
+
    height: 17px;
 +
    position: absolute;
 +
    right:20px;
 +
    top:20px;
 
}
 
}
 
+
.decoration1:hover .left{
.menu:hover > .menu-title:before {
+
    display:inherit;
  border-top-width: 0;
+
  transition: 0.2s border-top-width ease-in, 0.3s border-top-color;
+
 
}
 
}
 
+
.div1{
.menu-title:after {
+
    position: relative;
  content: "";
+
    width: inherit;
  display: block;
+
  height: 0;
+
  border-left: 75px solid transparent;
+
  border-right: 75px solid transparent;
+
  border-bottom: 0 solid #ebebeb;
+
  position: absolute;
+
  bottom: 0;
+
  left: 0;
+
  z-index: 101;
+
  transition: 0.2s border-bottom ease-in;
+
 
}
 
}
 
+
.chosen_bar{
.menu:hover > .menu-title:after {
+
    top: -10px;
  border-bottom-width: 5px;
+
    position: absolute;
  transition: 0.2s 0.2s border-bottom-width ease-out;
+
    display: none;
 +
    width:100%;
 +
    height: 10px;
 
}
 
}
 +
/*-----------------Leftnav----------------*/
  
.menu-title_2nd {
+
.open {
  background: #4e96b3;
+
    overflow: hidden;
}
+
    transform: translateX(0px);
  
.menu-title_2nd:hover {
+
    width: 346px;
  background: #3e86a3;
+
    height:100%;
 +
    margin-top: 99px;
 +
    border-top-style: solid;
 +
    border-top-width: 1px;
 +
    background-image: url("leftnav_background.png");
 
}
 
}
 +
.left{
 +
    overflow: hidden;
 +
    transform: translateX(-250px);
  
.menu-title_2nd:before {
+
    width: 346px;
  border-top-color: #4e96b3;
+
    height:100%;
 +
    margin-top: 99px;
 +
    border-top-style: solid;
 +
    border-top-width: 1px;
 +
    background-image: url("leftnav_background.png");
 
}
 
}
 +
.left ul{list-style: none;margin:0;padding:0;width: 100%}
 +
.left ul li{line-height:70px; text-align:left;background-image:url("left_notchose.png");background-size: 100% 100%;position: relative;padding-left: 10px;}
 +
.left ul li:hover ul{display: block}
 +
.left ul li:hover{background: #00b2ff}
  
.menu-title_2nd:hover:before {
+
.left ul li ul{display:none;background:rgb(0,19,86);padding:0;margin:0;position:absolute;z-index: 100;top:70px;width:100%}
  border-top-color: #3e86a3;
+
.left ul li ul li{line-height:30px; text-align:left;background:rgb(0,19,86) }
}
+
.left ul li ul li:hover{ background-color:#00b2ff;}
 +
.left ul li ul li a{white-space: nowrap;font-family: moon,serif;color: #ffffff;text-decoration:none;padding-left: 10px;}
  
.menu-title_3rd {
 
  background: #c97676;
 
}
 
  
.menu-title_3rd:hover {
+
.open ul{list-style: none;margin:0;padding:0;width: 100%}
  background: #b96666;
+
.open ul li{line-height:70px; text-align:left;background-image:url("left_notchose.png");background-size: 100% 100%;position: relative;padding-left: 10px;}
}
+
.open ul li:hover ul{display: block}
 +
.open ul li:hover{background: #00b2ff}
  
.menu-title_3rd:before {
+
.open ul li ul{display:none;background:rgb(0,19,86);padding:0;margin:0;position:absolute;z-index: 100;top:70px;width:100%}
  border-top-color: #c97676;
+
.open ul li ul li{line-height:30px; text-align:left;background:rgb(0,19,86) }
}
+
.open ul li ul li:hover{ background-color:#00b2ff;}
 +
.open ul li ul li a{white-space: nowrap;font-family: moon,serif;color: #ffffff;text-decoration:none;padding-left: 10px;}
  
.menu-title_3rd:hover:before {
 
  border-top-color: #b96666;
 
}
 
  
.menu-title_4th {
 
  background: #dbab58;
 
}
 
  
.menu-title_4th:hover {
+
.icon {
  background: #cb9b48;
+
    position: absolute;
 +
    width: 36px;
 +
    height: 36px;
 +
    right: 32px;
 +
    top:17px;
 
}
 
}
 
+
<style>
.menu-title_4th:before {
+
  border-top-color: #dbab58;
+
}
+
 
+
.menu-title_4th:hover:before {
+
  border-top-color: #cb9b48;
+
}
+
 
+
 
+
 
+
 
+
 
+
.menu-dropdown {
+
  display: none;
+
  min-width: 100%;
+
  position: absolute;
+
  background: #ebebeb;
+
  z-index: 100;
+
  transition: 0.5s padding, 0.5s background;
+
}
+
.menu-dropdown:hover{
+
display:block;
+
}
+
 
+
.menu-dropdown:after {
+
  content: "";
+
  display: block;
+
  height: 0;
+
  border-top: 5px solid #ebebeb;
+
  border-left: 75px solid transparent;
+
  border-right: 75px solid transparent;
+
  position: absolute;
+
  top: 100%;
+
  left: 0;
+
  z-index: 101;
+
  transition: 0.5s border-top;
+
}
+
 
+
.menu:not(:hover) > .menu-dropdown {
+
  padding: 4px 0;
+
  background: #dddddd;
+
  z-index: 99;
+
}
+
 
+
.menu:not(:hover) > .menu-dropdown:after {
+
  border-top-color: #dddddd;
+
}
+
 
+
.menu:not(:hover) > .menu-title:after {
+
  border-bottom-color: #dddddd;
+
}
+
 
+
.menu-dropdown > * {
+
  overflow: hidden;
+
  height: 30px;
+
  padding: 5px 10px;
+
  background: transparent;
+
  white-space: nowrap;
+
  transition: 0.5s height cubic-bezier(0.73, 0.32, 0.34, 1.5), 0.5s padding cubic-bezier(0.73, 0.32, 0.34, 1.5), 0.5s margin cubic-bezier(0.73, 0.32, 0.34, 1.5), 0.5s 0.2s color, 0.2s background-color;
+
}
+
 
+
.menu-dropdown > *:hover {
+
  background: rgba(0, 0, 0, 0.1);
+
}
+
 
+
.menu:not(:hover) > .menu-dropdown > * {
+
  visibility: hidden;
+
  height: 0;
+
  padding-top: 0;
+
  padding-bottom: 0;
+
  margin: 0;
+
  color: rgba(25, 25, 25, 0);
+
  transition: 0.5s 0.1s height, 0.5s 0.1s padding, 0.5s 0.1s margin, 0.3s color, 0.6s visibility;
+
  z-index: 99;
+
}
+
 
+
.hList > * {
+
  float: left;
+
}
+
 
+
.hList > * + * {
+
  margin-left: 0;
+
}
+
 
+
 
+
nav {
+
    height: 100px;
+
    bgcolor: linear-gradient(to right,rgb(252,242,189),rgb(205,255,193),rgb(191,191,241),rgb(190,235,245));
+
    box-shadow: 0 6px 12px rgba(0,0,0,0.5),0 12px 32px rgba(0,0,0,0.1);
+
    position: fixed;
+
    top: 0;
+
    left: 0;
+
    right: 0;
+
    z-index: 1;
+
}
+
 
+
nav ul {
+
    float: right;
+
}
+
nav ul li a {
+
    display: block;
+
    font-size: .75em;
+
    text-align: center;
+
    height: 95px;
+
    line-height: 42px;
+
    padding-top: 40px;
+
    padding-left: 3px;
+
    padding-right: 3px;
+
    transition: height 0.5s;
+
}
+
 
+
 
+
</style>
+
 
</html>
 
</html>

Latest revision as of 15:16, 15 June 2019