c7818ed70d
List of changes: * removed bottom 50px space that is no longer necessary with pin button at the top * increased side padding so sidebar links are closer to counters * use fixed weight pin icon so it correctly aligned with counters Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
.page-with-sidebar{ class: "#{page_sidebar_class} #{page_gutter_class}" }
|
|
.sidebar-wrapper.nicescroll{ class: nav_sidebar_class }
|
|
.sidebar-action-buttons
|
|
= link_to '#', class: 'nav-header-btn toggle-nav-collapse', title: "Open/Close" do
|
|
%span.sr-only Toggle navigation
|
|
= icon('bars')
|
|
= link_to '#', class: "nav-header-btn pin-nav-btn has-tooltip #{'is-active' if pinned_nav?} js-nav-pin", title: pinned_nav? ? "Unpin navigation" : "Pin Navigation", data: {placement: 'right', container: 'body'} do
|
|
%span.sr-only Toggle navigation pinning
|
|
= icon('fw thumb-tack')
|
|
|
|
- if defined?(sidebar) && sidebar
|
|
= render "layouts/nav/#{sidebar}"
|
|
- elsif current_user
|
|
= render 'layouts/nav/dashboard'
|
|
- else
|
|
= render 'layouts/nav/explore'
|
|
|
|
- if defined?(nav) && nav
|
|
.layout-nav
|
|
.container-fluid
|
|
= render "layouts/nav/#{nav}"
|
|
.content-wrapper{ class: "#{layout_nav_class}" }
|
|
= render "layouts/broadcast"
|
|
= render "layouts/flash"
|
|
= yield :flash_message
|
|
%div{ class: (container_class unless @no_container) }
|
|
.content
|
|
.clearfix
|
|
= yield
|