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

 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<html>
 
<html>
 
<style>
 
<style>
html {
+
@font-face {
  background-color: #f8f8f8;
+
    font-family: 'moon';
 +
    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;
  
a {
 
  text-decoration: none;
 
  color: inherit;
 
 
}
 
}
 
+
body{
* {
+
    padding-top: 7px;
  box-sizing: border-box;
+
    float: none;
 +
    margin: 0;
 
}
 
}
 
+
.List{
.menu {
+
    margin-right: 100px;
  display: block;
+
  position: relative;
+
  cursor: pointer;
+
  z-index: 110;
+
 
}
 
}
.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;
+
  z-index: 110;
+
 
}
 
}
 
+
.logo{
 
+
    position: absolute;
.menu-title:hover {
+
    width: 80px;
  background: #8db842;
+
    height: 80px;
 +
    z-index: 1;
 +
    top:10px;
 +
    left: 28px;
 
}
 
}
 
+
.logo_text{
.menu-title:hover:before {
+
    font-size: 24px;
  border-top-color: #8db842;
+
    position: absolute;
 +
    left:126px;
 +
    top:14px;
 +
    color: #ffffff;
 +
    font-family: moon,serif;
 
}
 
}
 
+
.decoration1{
.menu:hover > .menu-title:before {
+
    width: 40px;
  border-top-width: 0;
+
    height: 17px;
  transition: 0.2s border-top-width ease-in, 0.3s border-top-color;
+
    position: absolute;
 +
    right:20px;
 +
    top:20px;
 
}
 
}
 
+
.decoration1:hover .left{
 
+
    display:inherit;
.menu:hover > .menu-title:after {
+
  border-bottom-width: 5px;
+
  transition: 0.2s 0.2s border-bottom-width ease-out;
+
 
}
 
}
 
+
.div1{
.menu-title_2nd {
+
    position: relative;
  background: #4e96b3;
+
    width: inherit;
 
}
 
}
 
+
.chosen_bar{
.menu-title_2nd:hover {
+
    top: -10px;
  background: #3e86a3;
+
    position: absolute;
 +
    display: none;
 +
    width:100%;
 +
    height: 10px;
 
}
 
}
 +
/*-----------------Leftnav----------------*/
  
.menu-title_2nd:before {
+
.open {
  border-top-color: #4e96b3;
+
    overflow: hidden;
}
+
    transform: translateX(0px);
  
.menu-title_2nd:hover:before {
+
    width: 346px;
  border-top-color: #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_3rd {
+
    width: 346px;
  background: #c97676;
+
    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_3rd:hover {
+
.left ul li ul{display:none;background:rgb(0,19,86);padding:0;margin:0;position:absolute;z-index: 100;top:70px;width:100%}
  background: #b96666;
+
.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:before {
 
  border-top-color: #c97676;
 
}
 
  
.menu-title_3rd:hover:before {
+
.open ul{list-style: none;margin:0;padding:0;width: 100%}
  border-top-color: #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_4th {
+
.open ul li ul{display:none;background:rgb(0,19,86);padding:0;margin:0;position:absolute;z-index: 100;top:70px;width:100%}
  background: #dbab58;
+
.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_4th:hover {
 
  background: #cb9b48;
 
}
 
  
.menu-title_4th:before {
 
  border-top-color: #dbab58;
 
}
 
  
.menu-title_4th:hover:before {
+
.icon {
  border-top-color: #cb9b48;
+
    position: absolute;
 +
    width: 36px;
 +
    height: 36px;
 +
    right: 32px;
 +
    top:17px;
 
}
 
}
 
+
<style>
 
+
 
+
 
+
 
+
.menu-dropdown {
+
  display: none;
+
  min-width: 100%;
+
  position: absolute;
+
  background: #ebebeb;
+
  z-index: 110;
+
  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: 110;
+
  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{
+
    margin-left: 5px;
+
    margin-bottom: 5px;
+
float: right;
+
}
+
nav {
+
    height: 100px;
+
    background: 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: -100;
+
}
+
+
 
+
 
+
</style>
+
 
</html>
 
</html>

Latest revision as of 15:16, 15 June 2019