add basic back to top link via affix

This commit is contained in:
Mark Otto 2013-03-30 18:41:26 -07:00
parent e560c41ed1
commit 40f671a531
3 changed files with 61 additions and 12 deletions

View file

@ -28,6 +28,26 @@ body {
padding-right: 15px;
}
/* Back to top link */
.bs-docs-top {
float: left;
padding: 7px 15px;
font-weight: 500;
color: #999;
background-color: #eee;
border-radius: 4px;
}
.bs-docs-top:hover {
color: #fff;
text-decoration: none;
background-color: #999;
}
.bs-docs-top.affix {
position: fixed;
right: 15px;
bottom: 15px;
}
/* Sections