Difference between revisions of "Team:OUC-China/css/affix"

Line 40: Line 40:
 
}
 
}
 
ul.nav-tabs.affix{
 
ul.nav-tabs.affix{
top: 50px; /* Set the top position of pinned element */
+
top: 60px; /* Set the top position of pinned element */
 
}
 
}
 
#myScrollspy{display:none;}
 
#myScrollspy{display:none;}

Revision as of 13:20, 4 October 2016

ul.nav-tabs{ width: 140px; margin-top: 20px; border-radius: 4px; border: 1px solid #ddd; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.067); } ul.nav-tabs li{ margin: 0; border-top: 1px solid #ddd; } ul.nav-tabs li:first-child{ border-top: none; } ul.nav-tabs li a{ margin: 0; padding: 8px 16px; border-radius: 0; } ul.nav-tabs li.active a, ul.nav-tabs li.active a:hover{ color: #fff; background: #0088cc; border: 1px solid #0088cc; } #myNav .active{ color: #fff; background: #0088cc; border: 1px solid #0088cc; } #myNav a:hover{ color: #fff; background: #0088cc; border: 1px solid #0088cc; } ul.nav-tabs li:first-child a{ border-radius: 4px 4px 0 0; } ul.nav-tabs li:last-child a{ border-radius: 0 0 4px 4px; } ul.nav-tabs.affix{ top: 60px; /* Set the top position of pinned element */ } #myScrollspy{display:none;} #BtnTop{ display:inline-block; display:none; width:139px; height:40px;background:#0088cc; color:black; cursor:pointer;text-decoration:none;text-indent:16px; border-radius: 0 0 4px 4px;border: 1px solid #ddd;} #BtnTop span{ display:block; width:140px; height:40px; line-height:20px; font-size:14px;}

#BtnTop:hover{ background:#0088cc; color:#fff; zoom:1;} p{text-align: justify;}