Move sidebar padding to individual items

This commit is contained in:
Ines Montani 2016-11-03 01:52:15 +01:00
parent 5720122cee
commit e5df86419e
1 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,7 @@
@include position(fixed, top, left, 0, 0) @include position(fixed, top, left, 0, 0)
@include size($sidebar-width, 100vh) @include size($sidebar-width, 100vh)
flex: 0 0 $sidebar-width flex: 0 0 $sidebar-width
padding: calc(#{$nav-height} + 1.5rem) 2rem 2rem padding: calc(#{$nav-height} + 1.5rem) 0 2rem
z-index: 10 z-index: 10
border-right: 1px solid $color-subtle border-right: 1px solid $color-subtle
@ -26,9 +26,12 @@
//- Sidebar section //- Sidebar section
.c-sidebar__section .c-sidebar__section
& > *
padding: 0 2rem
@include breakpoint(max, sm) @include breakpoint(max, sm)
flex: 1 1 0 flex: 1 1 0
padding: 1.25rem padding: 1.25rem 0
border-bottom: 1px solid $color-subtle border-bottom: 1px solid $color-subtle
margin: 0 margin: 0