Sha256: bc01eca88fc596e8fff861a49918fa1672ff5613d7e99e99b77129bf2833eb97
Contents?: true
Size: 1.23 KB
Versions: 5
Compression:
Stored size: 1.23 KB
Contents
# frozen_string_literal: true # Methods added to this helper will be available to all templates in the hosting # application module Blacklight # A module for useful methods used in layout configuration module LayoutHelperBehavior ## # Classes added to a document's show content div # @return [String] def show_content_classes "#{main_content_classes} show-document" end ## # Attributes to add to the <html> tag (e.g. lang and dir) # @return [Hash] def html_tag_attributes { lang: I18n.locale } end ## # Classes added to a document's sidebar div # @return [String] def show_sidebar_classes sidebar_classes end ## # Classes used for sizing the main content of a Blacklight page # @return [String] def main_content_classes 'col-md-9 col-sm-8' end ## # Classes used for sizing the sidebar content of a Blacklight page # @return [String] def sidebar_classes 'col-md-3 col-sm-4' end ## # Class used for specifying main layout container classes. Can be # overwritten to return 'container-fluid' for Bootstrap full-width layout # @return [String] def container_classes 'container' end end end
Version data entries
5 entries across 5 versions & 1 rubygems