Skip to content

Commit

Permalink
Merge pull request #24 from swanky-docs/feature/scrollable-side-nav
Browse files Browse the repository at this point in the history
feat(build): add scroll bar to nav region
  • Loading branch information
rodleviton authored Jan 13, 2017
2 parents 0fc2bfc + 854a0e5 commit 4b05be5
Show file tree
Hide file tree
Showing 10 changed files with 192 additions and 208 deletions.
18 changes: 16 additions & 2 deletions css/components/code-md.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
// ...and tweaked a little

.pre
position relative
margin-top: 0
margin-bottom: 0
margin-bottom 4rem
word-wrap: normal
padding: 16px
padding: 20px
overflow: auto
line-height: 1.45
background-color: $alabaster
Expand Down Expand Up @@ -37,3 +38,16 @@
word-wrap: normal
background-color: transparent
border: 0

:global
.language-type
position absolute
top 5px
right 0
color $grey-smoke
text-align right
font-size 1.25rem
padding 5px 10px 0
line-height 15px
height 15px
font-weight 600
2 changes: 1 addition & 1 deletion css/components/code.styl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Code Preview Window
.code-snippet
position relative
margin-bottom 25px
margin-bottom 4rem

.render-preview
display: block;
Expand Down
14 changes: 13 additions & 1 deletion css/components/navigation.styl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
padding 25px 20px 25px 30px
border-bottom 1px solid darken($block-background-colour, 5%)

// Sub navigation
// Sub navigation
.li > .ul
list-style none
padding 0
Expand Down Expand Up @@ -103,3 +103,15 @@
:global
a.sw-active
color: $brand-primary!important

.guide-links
margin-bottom 40px
padding-bottom 20px
border-bottom 1px solid $white-smoke

.a
text-decoration none !important
font-weight 600

.next
float right
188 changes: 0 additions & 188 deletions css/components/prism-theme.styl

This file was deleted.

9 changes: 6 additions & 3 deletions css/components/sidebar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@

.sidebar
background $block-background-colour
height 100%
position fixed
z-index 1
overflow-x auto
-webkit-overflow-scrolling touch
-ms-overflow-style none
width $sidebar-width
top $header-height-mobile
bottom 0
left -($sidebar-width)
transition all $duration ease
transform: translate3d(0, 0, 0);
transform translate3d(0, 0, 0)

@media screen and (min-width: $screen-is-bigger-than-tablet)
display block
Expand All @@ -29,5 +32,5 @@
box-shadow 2px 0px 6px 0px rgba(0,0,0,0.2)

@media screen and (min-width: $screen-is-bigger-than-tablet)
transform: translate3d(0, 0, 0);
transform translate3d(0, 0, 0)
box-shadow none
Loading

0 comments on commit 4b05be5

Please sign in to comment.