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

Line 2: Line 2:
 
<style>
 
<style>
 
html {
 
html {
 +
  height: 100%;
 
   background-color: #f8f8f8;
 
   background-color: #f8f8f8;
 +
}
 +
 +
body {
 +
  overflow: hidden;
 +
  height: 100%;
 +
  width: 100%;
 +
  margin: 0 auto;
 +
  background-color: #ffffff;
 +
  font-family: 'Roboto', sans-serif;
 +
  color: #555555;
 
}
 
}
  
Line 18: Line 29:
 
   position: relative;
 
   position: relative;
 
   cursor: pointer;
 
   cursor: pointer;
  z-index: 110;
 
 
}
 
}
 
.menu:hover .menu-dropdown{
 
.menu:hover .menu-dropdown{
Line 25: Line 35:
  
 
.menu-title {
 
.menu-title {
 +
  white-space:nowrap;
 +
  font-size:25px;
 
   display: block;
 
   display: block;
 
   width: 150px;
 
   width: 150px;
 
   height: 40px;
 
   height: 40px;
 
   padding: 12px 0 0;
 
   padding: 12px 0 0;
  background: #9dc852;
 
 
   text-align: center;
 
   text-align: center;
 
   color: #ffffff;
 
   color: #ffffff;
Line 35: Line 46:
 
   text-transform: uppercase;
 
   text-transform: uppercase;
 
   transition: 0.3s background-color;
 
   transition: 0.3s background-color;
  z-index: 110;
 
 
}
 
}
  
 
+
.menu-title:before {
.menu-title:hover {
+
   content: "";
   background: #8db842;
+
  display: block;
 +
  height: 0;
 +
  border-top: 5px solid #9BFEF9;
 +
  border-left: 75px solid transparent;
 +
  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;
 
}
 
}
  
Line 52: Line 72:
 
}
 
}
  
 +
.menu-title:after {
 +
  content: "";
 +
  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;
 +
}
  
 
.menu:hover > .menu-title:after {
 
.menu:hover > .menu-title:after {
Line 58: Line 91:
 
}
 
}
  
.menu-title_2nd {
 
  background: #4e96b3;
 
}
 
  
 
.menu-title_2nd:hover {
 
.menu-title_2nd:hover {
   background: #3e86a3;
+
   background:#C3FBF0;
 
}
 
}
  
 
.menu-title_2nd:before {
 
.menu-title_2nd:before {
   border-top-color: #4e96b3;
+
   border-top-color: #C3FBF0;
 
}
 
}
  
Line 74: Line 104:
 
}
 
}
  
.menu-title_3rd {
 
  background: #c97676;
 
}
 
  
 
.menu-title_3rd:hover {
 
.menu-title_3rd:hover {
   background: #b96666;
+
   background:#DEF8ED;
 
}
 
}
  
 
.menu-title_3rd:before {
 
.menu-title_3rd:before {
   border-top-color: #c97676;
+
   border-top-color: #DEF8ED;
 
}
 
}
  
 
.menu-title_3rd:hover:before {
 
.menu-title_3rd:hover:before {
   border-top-color: #b96666;
+
   border-top-color:#DEF8ED;
 
}
 
}
 
.menu-title_4th {
 
  background: #dbab58;
 
}
 
 
.menu-title_4th:hover {
 
  background: #cb9b48;
 
}
 
 
.menu-title_4th:before {
 
  border-top-color: #dbab58;
 
}
 
 
.menu-title_4th:hover:before {
 
  border-top-color: #cb9b48;
 
}
 
 
 
  
  
Line 113: Line 122:
 
   display: none;
 
   display: none;
 
   min-width: 100%;
 
   min-width: 100%;
 +
  padding: 15px 0;
 
   position: absolute;
 
   position: absolute;
 
   background: #ebebeb;
 
   background: #ebebeb;
   z-index: 110;
+
   z-index: 1;
 
   transition: 0.5s padding, 0.5s background;
 
   transition: 0.5s padding, 0.5s background;
}
 
.menu-dropdown:hover{
 
display:block;
 
 
}
 
}
  
Line 132: Line 139:
 
   top: 100%;
 
   top: 100%;
 
   left: 0;
 
   left: 0;
   z-index: 110;
+
   z-index: 101;
 
   transition: 0.5s border-top;
 
   transition: 0.5s border-top;
 
}
 
}
Line 138: Line 145:
 
.menu:not(:hover) > .menu-dropdown {
 
.menu:not(:hover) > .menu-dropdown {
 
   padding: 4px 0;
 
   padding: 4px 0;
   background: #dddddd;
+
   background: #ddddd;
 
   z-index: 99;
 
   z-index: 99;
 
}
 
}
Line 160: Line 167:
  
 
.menu-dropdown > *:hover {
 
.menu-dropdown > *:hover {
   background: rgba(0, 0, 0, 0.1);
+
   background: rgba(0, 0, 0, 0.2);
 
}
 
}
  
Line 174: Line 181:
 
}
 
}
  
.hList{
+
.hList > * {
float: right;
+
  float: left;
 
}
 
}
nav {
+
.hList > * + * {
 +
  margin-left: 0;
 +
}
 +
nav{
 +
    vertical-align: middle;
 
     height: 100px;
 
     height: 100px;
     background: linear-gradient(to right,rgb(252,242,189),rgb(205,255,193),rgb(191,191,241),rgb(190,235,245));
+
     background: linear-gradient(to left,#FFFFFF,#DCF8EC,#B6FDF2,#9BFEF9);
 
     box-shadow: 0 6px 12px rgba(0,0,0,0.5),0 12px 32px rgba(0,0,0,0.1);  
 
     box-shadow: 0 6px 12px rgba(0,0,0,0.5),0 12px 32px rgba(0,0,0,0.1);  
     position: fixed;
+
     color:#FFFFFF;
     top: 0;
+
     padding-top:60px;
     left: 0;
+
}
     right: 0;
+
.logo{
     z-index: -100;
+
     position: absolute;
     margin-right: 5px;
+
     top: 0px;
     margin-bottom: 5px;
+
     right: 50px;  
 +
     width: 80px;
 +
     height: 100px;
 
}
 
}
 
 
 
 
</style>
 
</style>
 
</html>
 
</html>

Revision as of 09:42, 2 June 2019