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

 
(15 intermediate revisions by 3 users not shown)
Line 23: Line 23:
 
   var a = $('a[href="#'+ id +'"]');
 
   var a = $('a[href="#'+ id +'"]');
 
   prev_a.removeClass('reading');
 
   prev_a.removeClass('reading');
  prev_a.addClass('readed');
 
 
   a.addClass('reading');
 
   a.addClass('reading');
 
}
 
}
Line 51: Line 50:
 
/* test END */
 
/* test END */
 
/* color & font BEGIN */
 
/* color & font BEGIN */
body {
 
  font-family: 'Arial, Helvetica, sans-serif';
 
  color: black;
 
  background-color: #FFFFFF;
 
}
 
a:link {
 
  color: #109E52;
 
}
 
a:visited, a.readed {
 
  color: #91B798;
 
}
 
#toc ul a{
 
  border-left-color: #109E52;
 
}
 
#toc ul a.reading {
 
  border-left-color: red;
 
}
 
 
 
nav #hide-nav {
 
nav #hide-nav {
 
   background-color: rgba(185,217,137,0.5);
 
   background-color: rgba(185,217,137,0.5);
Line 91: Line 72:
  
 
nav {
 
nav {
 
 
 
   font-family: "Tahoma, Geneva, sans-serif";
 
   font-family: "Tahoma, Geneva, sans-serif";
 
}
 
}
 
  
 
nav a {
 
nav a {
Line 103: Line 81:
 
   text-transform: uppercase;
 
   text-transform: uppercase;
 
}
 
}
 +
 
nav a:hover {
 
nav a:hover {
 
   text-decoration: none;
 
   text-decoration: none;
Line 109: Line 88:
 
   background-color: #FFFFFF;
 
   background-color: #FFFFFF;
 
}
 
}
 
  
 
nav > ul > li:first-child > a {
 
nav > ul > li:first-child > a {
 
   background-color: rgba(87,172,101,0.8);
 
   background-color: rgba(87,172,101,0.8);
 
}
 
}
/* color & font END */
 
 
 
 
/* layout BEGIN */
 
#top_menu_under {
 
  border-bottom: 0px;
 
}
 
#top_menu_14 {
 
  border-bottom: 0px;
 
}
 
#top_menu_inside {
 
  border-left: 0px;
 
  border-right: 0px;
 
}
 
 
#toc {
 
  position: fixed;
 
  right: 1em;
 
  top: 10em;
 
  width: 16em;
 
  font-size: 0.6em;
 
}
 
#toc .tocnumber {
 
  display: none;
 
}
 
#toc * {
 
  margin-top: 0px;
 
  margin-bottom: 0px;
 
}
 
#toc ul ul {
 
  margin-left: 0px;
 
}
 
#toc ul a {
 
  border-left: 1em solid;
 
  padding-left: 0.5em;
 
}
 
#toc ul ul a {
 
  padding-left: 1.5em;
 
}
 
 
#content {
 
  box-sizing: border-box;
 
  width: 100%;
 
  height: 100%;
 
  padding-left: 17em;
 
  padding-right: 2em;
 
  padding-top: 20px;
 
}
 
#content.nav-toggle {
 
  padding-left: 4em;
 
}
 
 
 
nav {
 
nav {
 
   position: fixed;
 
   position: fixed;
Line 263: Line 188:
 
   position: absolute;
 
   position: absolute;
 
   left: 0.5em;
 
   left: 0.5em;
 +
}
 +
/* color & font END */
 +
 +
 +
 +
/* layout BEGIN */
 +
body {
 +
  font-family: Trebuchet MS,"Helvetica Neue",Helvetica,Arial;
 +
  color: black;
 +
  background-color: #FFFFFF;
 +
}
 +
h2{
 +
  color:#FEFEFE;
 +
  background-color:#57AB65;
 +
  font-size:500;
 +
  letter-spacing:-0.05em;
 +
  font-size:2em;
 +
}
 +
h3{
 +
  color:#57AB65;
 +
  font-weight:500;
 +
  font-size:2em;
 +
  letter-spacing:-0.05em;
 +
}
 +
p{
 +
  color:#003219;
 +
  font-weight:400;
 +
  font-size:1.3em;
 +
}
 +
a:link {
 +
  color: #109E52;
 +
}
 +
a:visited {
 +
  color: #8aa28e;
 +
}
 +
#toc ul a{
 +
  font-family: Trebuchet MS,"Helvetica Neue",Helvetica,Arial;
 +
  border-left-color: #109E52;
 +
}
 +
#toc ul a.reading {
 +
  border-left-color: #5f7963;
 +
}
 +
#top_menu_under {
 +
  border-bottom: 0px;
 +
}
 +
#top_menu_14 {
 +
  border-bottom: 0px;
 +
}
 +
#top_menu_inside {
 +
  border-left: 0px;
 +
  border-right: 0px;
 +
}
 +
 +
#toc {
 +
  position: fixed;
 +
  right: 1em;
 +
  top: 10em;
 +
  width: 16em;
 +
  font-size: 0.6em;
 +
  border: 0px;
 +
  background: white;
 +
}
 +
#toc .tocnumber {
 +
  display: none;
 +
}
 +
#toc * {
 +
  margin-top: 0px;
 +
  margin-bottom: 0px;
 +
}
 +
#toc ul ul {
 +
  margin-left: 0px;
 +
}
 +
#toc ul a {
 +
  border-left: 0.4em solid;
 +
  padding:0.4em 0 0.4em 0.8em;
 +
  font-weight:700;
 +
}
 +
#toc ul ul a {
 +
  padding-left:1.5em;
 +
  font-weight:500;
 +
}
 +
 +
#content {
 +
  box-sizing: border-box;
 +
  width: 100%;
 +
  height: 100%;
 +
  padding-left: 17em;
 +
  padding-right: 2em;
 +
  padding-top: 20px;
 +
}
 +
#content.nav-toggle {
 +
  padding-left: 4em;
 +
}
 +
p img{
 +
  float:right;
 +
  margin-left:2em;
 +
  margin-bottom:2em;
 +
}
 +
article#mainArticle{
 +
  width:80%;
 +
}
 +
p{
 +
  text-align:justify;
 
}
 
}
 
/* layout END */
 
/* layout END */

Latest revision as of 07:41, 21 August 2015