diff --git a/README.md b/README.md index ca6753e..53c3e14 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ You're going to need: 4. Install all dependencies: `bundle install` 5. Start the test server: `bundle exec middleman server` -You can now see the docs at . And as you edit `source/index.md`, your server should automatically update! Whoa! That was fast! +You can now see the docs at . Whoa! That was fast! Now that Slate is all set up your machine, you'll probably want to learn more about [editing Slate markdown](https://github.com/tripit/slate/wiki/Markdown-Syntax), or [how to publish your docs](https://github.com/tripit/slate/wiki/Deploying-Slate). diff --git a/source/javascripts/app/lang.js b/source/javascripts/app/lang.js index 3f5e438..835279e 100644 --- a/source/javascripts/app/lang.js +++ b/source/javascripts/app/lang.js @@ -30,6 +30,8 @@ under the License. } $(".highlight." + language).parent().show(); + global.toc.calculateHeights(); + // scroll to the new location of the position $(window.location.hash).get(0).scrollIntoView(true); } diff --git a/source/stylesheets/screen.css.scss b/source/stylesheets/screen.css.scss index f9fd16e..6880e1b 100644 --- a/source/stylesheets/screen.css.scss +++ b/source/stylesheets/screen.css.scss @@ -483,7 +483,7 @@ html, body { aside { padding-top: 1em; padding-bottom: 1em; - text-shadow: 0 1px 0 lighten($aside-notice-bg, 15%); + @include text-shadow(0 1px 0 lighten($aside-notice-bg, 15%)); margin-top: 1.5em; margin-bottom: 1.5em; background: $aside-notice-bg; @@ -491,12 +491,12 @@ html, body { &.warning { background-color: $aside-warning-bg; - text-shadow: 0 1px 0 lighten($aside-warning-bg, 15%); + @include text-shadow(0 1px 0 lighten($aside-warning-bg, 15%)); } &.success { background-color: $aside-success-bg; - text-shadow: 0 1px 0 lighten($aside-success-bg, 15%); + @include text-shadow(0 1px 0 lighten($aside-success-bg, 15%)); } } @@ -523,7 +523,7 @@ html, body { margin: -2px; border-radius: 4px; border: 1px solid #F7E633; - text-shadow: 1px 1px 0 #666; + @include text-shadow(1px 1px 0 #666); @include background(linear-gradient(bottom right, #F7E633 0%, #F1D32F 100%)); } }