Carry zhang (Talk | contribs) |
Carry zhang (Talk | contribs) |
||
Line 2: | Line 2: | ||
<html> | <html> | ||
<style> | <style> | ||
− | h1,h2{padding-top: 20px; margin: 10px 0;line-height:1.1;} | + | h1,h2{padding-top: 20px; margin: 10px 0;line-height:1.1;text-align: center} |
h4{padding-top: .5em;padding-bottom: .17em} | h4{padding-top: .5em;padding-bottom: .17em} | ||
− | .nav- | + | .nav-stacked>li{width: 100%} |
− | ul#navwrap{ | + | ul#navwrap{margin-left: 50px} |
− | + | .contents-sidebar .nav>li>a{ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
font-size: 18px; | font-size: 18px; | ||
− | |||
} | } | ||
− | .nav- | + | .contents-sidebar .nav .nav>li>a { |
+ | padding-top: 1px; | ||
+ | padding-bottom: 1px; | ||
+ | padding-left: 20px; | ||
+ | font-size: 16px; | ||
+ | } | ||
+ | .contents-sidebar .nav ul.nav { | ||
+ | display: none; | ||
+ | } | ||
+ | .contents-sidebar .nav>.active>ul.nav { | ||
+ | display: block; | ||
+ | } | ||
+ | .nav-stacked>li>a{ | ||
color: #4d5251; | color: #4d5251; | ||
} | } | ||
− | .nav>li>a:focus, .nav>li>a:hover{ | + | .affix-top:first-child>li:first-child>a, |
+ | .contents-sidebar .nav>.active>a, | ||
+ | .contents-sidebar .nav>li>a:focus, | ||
+ | .contents-sidebar .nav>li>a:hover{ | ||
background-color: transparent; | background-color: transparent; | ||
− | |||
− | |||
color: #d9534f; | color: #d9534f; | ||
+ | font-weight: bold; | ||
+ | border-left:3px solid #d9534f ; | ||
+ | |||
} | } | ||
− | + | #navwrap.affix{ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
top: 20%; | top: 20%; | ||
z-index: 200; | z-index: 200; | ||
} | } | ||
</style> | </style> | ||
− | |||
<script> | <script> | ||
$(document).ready(function() { | $(document).ready(function() { |
Revision as of 23:04, 23 October 2017