Skip to content

Commit

Permalink
Merge pull request #1700 from projectblacklight/adjust-responsive-layout
Browse files Browse the repository at this point in the history
Adjust responsive layout
  • Loading branch information
Jessie Keck committed May 11, 2017
2 parents f0e814b + 70acf7b commit 5b1a46c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/helpers/blacklight/layout_helper_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ def show_sidebar_classes
# Classes used for sizing the main content of a Blacklight page
# @return [String]
def main_content_classes
'col-md-9 col-sm-8'
'col-md-9'
end

##
# Classes used for sizing the sidebar content of a Blacklight page
# @return [String]
def sidebar_classes
'page-sidebar col-md-3 col-sm-4'
'page-sidebar col-md-3'
end

##
Expand Down
8 changes: 4 additions & 4 deletions spec/helpers/blacklight/layout_helper_behavior_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
describe '#show_content_classes' do
it 'returns a string of classes' do
expect(helper.show_content_classes).to be_an String
expect(helper.show_content_classes).to eq 'col-md-9 col-sm-8 show-document'
expect(helper.show_content_classes).to eq 'col-md-9 show-document'
end
end

describe '#show_sidebar_classes' do
it 'returns a string of classes' do
expect(helper.show_sidebar_classes).to be_an String
expect(helper.show_sidebar_classes).to eq 'page-sidebar col-md-3 col-sm-4'
expect(helper.show_sidebar_classes).to eq 'page-sidebar col-md-3'
end
end

describe '#main_content_classes' do
it 'returns a string of classes' do
expect(helper.main_content_classes).to be_an String
expect(helper.main_content_classes).to eq 'col-md-9 col-sm-8'
expect(helper.main_content_classes).to eq 'col-md-9'
end
end

describe '#sidebar_classes' do
it 'returns a string of classes' do
expect(helper.sidebar_classes).to be_an String
expect(helper.sidebar_classes).to eq 'page-sidebar col-md-3 col-sm-4'
expect(helper.sidebar_classes).to eq 'page-sidebar col-md-3'
end
end

Expand Down

0 comments on commit 5b1a46c

Please sign in to comment.