Difference between revisions of "Template:SJTU-BioX-Shanghai/Navigator1"

Line 99: Line 99:
 
#nav nav li {
 
#nav nav li {
 
   position: relative;
 
   position: relative;
}
 
#nav nav > ul > li > a {
 
  padding-left: 1em;
 
 
}
 
}
  
 
#nav ul ul {
 
#nav ul ul {
  margin: 0px;
 
 
   position: absolute;
 
   position: absolute;
 
   left: 15em;
 
   left: 15em;
 
   top: 0px;
 
   top: 0px;
 +
  width: 0em;
 +
 +
  margin: 0px;
 +
 
   transition: opacity 0.3s ease-out 0.2s, width 0s linear 0.5s;
 
   transition: opacity 0.3s ease-out 0.2s, width 0s linear 0.5s;
 
   opacity: 0;
 
   opacity: 0;
  width: 0em;
 
 
   overflow: hidden;
 
   overflow: hidden;
 +
 +
  background-color: white;
 +
  box-shadow: 2px 0 1px grey;
 
}
 
}
 
#nav nav li:hover ul {
 
#nav nav li:hover ul {
Line 127: Line 129:
 
   box-sizing: border-box;
 
   box-sizing: border-box;
 
   height: 2em;
 
   height: 2em;
 +
}
 +
#nav nav > ul > li > a {
 +
  padding-left: 1.2em;
 
}
 
}
 
#nav nav > ul > li > a:not(:last-child)::before {
 
#nav nav > ul > li > a:not(:last-child)::before {
 
     content: "+";
 
     content: "+";
 
     position: absolute;
 
     position: absolute;
     left: -0.8em;
+
     left: 0em;
 
}
 
}
 
</style>
 
</style>

Revision as of 07:07, 17 September 2015