Skip to content

Commit

Permalink
added smooth scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspark committed Feb 9, 2013
1 parent 0a291e3 commit b169fbe
Show file tree
Hide file tree
Showing 17 changed files with 151 additions and 109 deletions.
9 changes: 4 additions & 5 deletions amelia/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

</head>

<body class="preview" data-spy="scroll" data-target=".subnav" data-offset="80">
<body class="preview" id="top" data-spy="scroll" data-target=".subnav" data-offset="80">
<script src="../js/bsa.js"></script>


Expand All @@ -51,7 +51,7 @@
<div class="nav-collapse" id="main-menu">
<ul class="nav" id="main-menu-left">
<li><a onclick="pageTracker._link(this.href); return false;" href="http://news.bootswatch.com">News</a></li>
<li><a id="swatch-link" href="/#gallery">Gallery</a></li>
<li><a id="swatch-link" href="../#gallery">Gallery</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Preview <b class="caret"></b></a>
<ul class="dropdown-menu" id="swatch-menu">
Expand Down Expand Up @@ -865,7 +865,7 @@ <h4 class="alert-heading">Alert block</h4>
<hr>

<footer id="footer">
<p class="pull-right"><a href="#">Back to top</a></p>
<p class="pull-right"><a href="#top">Back to top</a></p>
<div class="links">
<a href="http://news.bootswatch.com" onclick="pageTracker._link(this.href); return false;">Blog</a>
<a href="http://feeds.feedburner.com/bootswatch">RSS</a>
Expand All @@ -888,9 +888,8 @@ <h4 class="alert-heading">Alert block</h4>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/application.js"></script>
<script src="../js/bootswatch.js"></script>


Expand Down
9 changes: 4 additions & 5 deletions cerulean/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

</head>

<body class="preview" data-spy="scroll" data-target=".subnav" data-offset="80">
<body class="preview" id="top" data-spy="scroll" data-target=".subnav" data-offset="80">
<script src="../js/bsa.js"></script>


Expand All @@ -51,7 +51,7 @@
<div class="nav-collapse" id="main-menu">
<ul class="nav" id="main-menu-left">
<li><a onclick="pageTracker._link(this.href); return false;" href="http://news.bootswatch.com">News</a></li>
<li><a id="swatch-link" href="/#gallery">Gallery</a></li>
<li><a id="swatch-link" href="../#gallery">Gallery</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Preview <b class="caret"></b></a>
<ul class="dropdown-menu" id="swatch-menu">
Expand Down Expand Up @@ -865,7 +865,7 @@ <h4 class="alert-heading">Alert block</h4>
<hr>

<footer id="footer">
<p class="pull-right"><a href="#">Back to top</a></p>
<p class="pull-right"><a href="#top">Back to top</a></p>
<div class="links">
<a href="http://news.bootswatch.com" onclick="pageTracker._link(this.href); return false;">Blog</a>
<a href="http://feeds.feedburner.com/bootswatch">RSS</a>
Expand All @@ -888,9 +888,8 @@ <h4 class="alert-heading">Alert block</h4>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/application.js"></script>
<script src="../js/bootswatch.js"></script>


Expand Down
9 changes: 4 additions & 5 deletions cosmo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

</head>

<body class="preview" data-spy="scroll" data-target=".subnav" data-offset="80">
<body class="preview" id="top" data-spy="scroll" data-target=".subnav" data-offset="80">
<script src="../js/bsa.js"></script>


Expand All @@ -51,7 +51,7 @@
<div class="nav-collapse" id="main-menu">
<ul class="nav" id="main-menu-left">
<li><a onclick="pageTracker._link(this.href); return false;" href="http://news.bootswatch.com">News</a></li>
<li><a id="swatch-link" href="/#gallery">Gallery</a></li>
<li><a id="swatch-link" href="../#gallery">Gallery</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Preview <b class="caret"></b></a>
<ul class="dropdown-menu" id="swatch-menu">
Expand Down Expand Up @@ -865,7 +865,7 @@ <h4 class="alert-heading">Alert block</h4>
<hr>

<footer id="footer">
<p class="pull-right"><a href="#">Back to top</a></p>
<p class="pull-right"><a href="#top">Back to top</a></p>
<div class="links">
<a href="http://news.bootswatch.com" onclick="pageTracker._link(this.href); return false;">Blog</a>
<a href="http://feeds.feedburner.com/bootswatch">RSS</a>
Expand All @@ -888,9 +888,8 @@ <h4 class="alert-heading">Alert block</h4>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/application.js"></script>
<script src="../js/bootswatch.js"></script>


Expand Down
7 changes: 2 additions & 5 deletions css/bootswatch.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ body {
}

section {
margin-top: 100px;
margin-top: 60px;
padding-top: 100px;
}

/* index */
Expand Down Expand Up @@ -295,10 +296,6 @@ body .one .bsa_it_p {
}

/* subnav */

section {
padding-top: 60px;
}

.subnav {
margin-bottom: 60px;
Expand Down
9 changes: 4 additions & 5 deletions cyborg/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

</head>

<body class="preview" data-spy="scroll" data-target=".subnav" data-offset="80">
<body class="preview" id="top" data-spy="scroll" data-target=".subnav" data-offset="80">
<script src="../js/bsa.js"></script>


Expand All @@ -51,7 +51,7 @@
<div class="nav-collapse" id="main-menu">
<ul class="nav" id="main-menu-left">
<li><a onclick="pageTracker._link(this.href); return false;" href="http://news.bootswatch.com">News</a></li>
<li><a id="swatch-link" href="/#gallery">Gallery</a></li>
<li><a id="swatch-link" href="../#gallery">Gallery</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Preview <b class="caret"></b></a>
<ul class="dropdown-menu" id="swatch-menu">
Expand Down Expand Up @@ -865,7 +865,7 @@ <h4 class="alert-heading">Alert block</h4>
<hr>

<footer id="footer">
<p class="pull-right"><a href="#">Back to top</a></p>
<p class="pull-right"><a href="#top">Back to top</a></p>
<div class="links">
<a href="http://news.bootswatch.com" onclick="pageTracker._link(this.href); return false;">Blog</a>
<a href="http://feeds.feedburner.com/bootswatch">RSS</a>
Expand All @@ -888,9 +888,8 @@ <h4 class="alert-heading">Alert block</h4>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/application.js"></script>
<script src="../js/bootswatch.js"></script>


Expand Down
9 changes: 4 additions & 5 deletions default/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

</head>

<body class="preview" data-spy="scroll" data-target=".subnav" data-offset="80">
<body class="preview" id="top" data-spy="scroll" data-target=".subnav" data-offset="80">
<script src="../js/bsa.js"></script>


Expand All @@ -51,7 +51,7 @@
<div class="nav-collapse" id="main-menu">
<ul class="nav" id="main-menu-left">
<li><a onclick="pageTracker._link(this.href); return false;" href="http://news.bootswatch.com">News</a></li>
<li><a id="swatch-link" href="/#gallery">Gallery</a></li>
<li><a id="swatch-link" href="../#gallery">Gallery</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Preview <b class="caret"></b></a>
<ul class="dropdown-menu" id="swatch-menu">
Expand Down Expand Up @@ -865,7 +865,7 @@ <h4 class="alert-heading">Alert block</h4>
<hr>

<footer id="footer">
<p class="pull-right"><a href="#">Back to top</a></p>
<p class="pull-right"><a href="#top">Back to top</a></p>
<div class="links">
<a href="http://news.bootswatch.com" onclick="pageTracker._link(this.href); return false;">Blog</a>
<a href="http://feeds.feedburner.com/bootswatch">RSS</a>
Expand All @@ -888,9 +888,8 @@ <h4 class="alert-heading">Alert block</h4>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/application.js"></script>
<script src="../js/bootswatch.js"></script>


Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</script>
</head>

<body class="index">
<body class="index" id="top">
<script src="js/bsa.js"></script>

<div class="navbar navbar-fixed-top">
Expand Down Expand Up @@ -546,7 +546,7 @@ <h3>Base Admin</h3>
<hr>

<footer id="footer">
<p class="pull-right"><a href="#">Back to top</a></p>
<p class="pull-right"><a href="#top">Back to top</a></p>
<div class="links">
<a href="http://news.bootswatch.com" onclick="pageTracker._link(this.href); return false;">Blog</a>
<a href="http://feeds.feedburner.com/bootswatch">RSS</a>
Expand All @@ -568,10 +568,10 @@ <h3>Base Admin</h3>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootswatch.js"></script>
<script>
<script type="text/javascript">
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
</script>
<script>
<script type="text/javascript">
var taglines = [
'Free themes for <a target="_blank" href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>',
'Add color to your <a target="_blank" href="http://twitter.github.com/bootstrap/">Bootstrap</a> site without touching a color picker',
Expand Down
9 changes: 4 additions & 5 deletions journal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

</head>

<body class="preview" data-spy="scroll" data-target=".subnav" data-offset="80">
<body class="preview" id="top" data-spy="scroll" data-target=".subnav" data-offset="80">
<script src="../js/bsa.js"></script>


Expand All @@ -51,7 +51,7 @@
<div class="nav-collapse" id="main-menu">
<ul class="nav" id="main-menu-left">
<li><a onclick="pageTracker._link(this.href); return false;" href="http://news.bootswatch.com">News</a></li>
<li><a id="swatch-link" href="/#gallery">Gallery</a></li>
<li><a id="swatch-link" href="../#gallery">Gallery</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Preview <b class="caret"></b></a>
<ul class="dropdown-menu" id="swatch-menu">
Expand Down Expand Up @@ -865,7 +865,7 @@ <h4 class="alert-heading">Alert block</h4>
<hr>

<footer id="footer">
<p class="pull-right"><a href="#">Back to top</a></p>
<p class="pull-right"><a href="#top">Back to top</a></p>
<div class="links">
<a href="http://news.bootswatch.com" onclick="pageTracker._link(this.href); return false;">Blog</a>
<a href="http://feeds.feedburner.com/bootswatch">RSS</a>
Expand All @@ -888,9 +888,8 @@ <h4 class="alert-heading">Alert block</h4>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/application.js"></script>
<script src="../js/bootswatch.js"></script>


Expand Down
35 changes: 0 additions & 35 deletions js/application.js

This file was deleted.

Loading

0 comments on commit b169fbe

Please sign in to comment.