Skip to content

Commit

Permalink
add semantic classes for headings
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Mar 16, 2015
1 parent 483f57f commit 563c050
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
10 changes: 5 additions & 5 deletions app/assets/stylesheets/blacklight/_catalog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ span.constraints-label {
padding-top: $padding-base-vertical;
border-bottom:1px dotted $table-border-color;
@extend .clearfix;

h3 {
@extend h5;
}
}
}
}

.index_title {
@extend h5;
}

// Tools link on documetn show page
.show-tools {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/blacklight/_facets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
padding-bottom: $padding-large-vertical;
}

.facets h2 {
.facets .facets-heading {
@extend h4;
}

Expand Down
6 changes: 3 additions & 3 deletions app/views/bookmarks/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div id="content" class="col-md-12">
<h2><%= t('blacklight.bookmarks.title') %></h2>
<h2 class='page-heading'><%= t('blacklight.bookmarks.title') %></h2>

<%- if current_or_guest_user.blank? -%>

<h3><%= t('blacklight.bookmarks.need_login') %></h3>
<h3 class='section-heading'><%= t('blacklight.bookmarks.need_login') %></h3>

<%- elsif @document_list.blank? -%>

<h3><%= t('blacklight.bookmarks.no_bookmarks') %></h3>
<h3 class='section-heading'><%= t('blacklight.bookmarks.no_bookmarks') %></h3>
<% else %>
<%= link_to t('blacklight.bookmarks.clear.action_title'), clear_bookmarks_path, :method => :delete, :data => { :confirm => t('blacklight.bookmarks.clear.action_confirm') }, :class => 'clear-bookmarks btn btn-danger pull-right' %>
<%= render 'sort_and_per_page' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/_facet_layout.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="panel panel-default facet_limit blacklight-<%= facet_field.key.parameterize %> <%= 'facet_limit-active' if facet_field_in_params?(facet_field.key) %>">
<div class="<%= "collapsed" if should_collapse_facet?(facet_field) %> collapse-toggle panel-heading" data-toggle="collapse" data-target="#<%= facet_field_id(facet_field) %>">
<h3 class="panel-title">
<h3 class="panel-title facet-field-heading">
<%= link_to facet_field_label(facet_field.key), "#", :"data-no-turbolink" => true %>
</h3>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/_facets.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<span class="icon-bar"></span>
</button>
<h2>
<h2 class='facets-heading'>
<%= t('blacklight.search.facets.title') %>
</h2>
</div>
Expand Down
6 changes: 3 additions & 3 deletions app/views/catalog/_home_text.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="page-header row">
<h2 class="col-md-8"><%= t('blacklight.welcome') %></h2>
<h2 class="col-md-8 page-heading"><%= t('blacklight.welcome') %></h2>

<ul class="nav nav-pills col-md-4">
<li><a href="https://github.com/projectblacklight/blacklight/">Github</a></li>
Expand All @@ -10,7 +10,7 @@
</div>

<div id="getting-started">
<h3>Here&rsquo;s how to get started:</h3>
<h3 class='section-heading'>Here&rsquo;s how to get started:</h3>

<ol>
<li>To modify this text, you need to <a href="http://guides.rubyonrails.org/engines.html#improving-engine-functionality">override the Blacklight-provided view</a>.
Expand All @@ -27,7 +27,7 @@ to your own application: <br />

<%# This is the same panel shown in the Rails welcome template %>
<div id="about">
<h3><a href="/rails/info/properties">About your application&rsquo;s environment</a></h3>
<h3 class='section-heading'><a href="/rails/info/properties">About your application&rsquo;s environment</a></h3>
<div id="about-content" class="well" style="display: none"></div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/_index_header_default.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%= render_index_doc_actions document, wrapping_class: "index-document-functions col-sm-3 col-lg-2" %>
<% end %>
<h3 class="index_title <%= document_actions.present? ? "col-sm-9 col-lg-10" : "col-md-12" %>">
<h3 class="index_title document-title-heading <%= document_actions.present? ? "col-sm-9 col-lg-10" : "col-md-12" %>">
<% if counter = document_counter_with_offset(document_counter) %>
<span class="document-counter">
<%= t('blacklight.search.documents.counter', counter: counter) %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/blacklight.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<%= render partial: 'shared/ajax_modal' %>

<div id="main-container" class="container">
<%= content_tag :h1, application_name, class: 'sr-only' %>
<%= content_tag :h1, application_name, class: 'sr-only application-heading' %>
<%= render :partial=>'/flash_msg', layout: 'shared/flash_messages' %>

Expand Down
6 changes: 3 additions & 3 deletions app/views/saved_searches/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div id="content" class="col-md-9">
<h2><%= t('blacklight.saved_searches.title') %></h2>
<h2 class='page-heading'><%= t('blacklight.saved_searches.title') %></h2>

<%- if current_or_guest_user.blank? -%>

<h3><%= t('blacklight.saved_searches.need_login') %></h3>
<h3 class='section-heading'><%= t('blacklight.saved_searches.need_login') %></h3>

<%- elsif @searches.blank? -%>

<h3><%= t('blacklight.saved_searches.no_searches') %></h3>
<h3 class='section-heading'><%= t('blacklight.saved_searches.no_searches') %></h3>

<%- else -%>
<p>
Expand Down
6 changes: 3 additions & 3 deletions app/views/search_history/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div id="content" class="col-md-12">
<h2><%=t('blacklight.search_history.title')%></h2>
<h2 class='page-heading'><%=t('blacklight.search_history.title')%></h2>
<%- if @searches.blank? -%>
<h3><%=t('blacklight.search_history.no_history')%></h3>
<h3 class='section-heading'><%=t('blacklight.search_history.no_history')%></h3>
<%- else -%>
<%= link_to t('blacklight.search_history.clear.action_title'), clear_search_history_path, :method => :delete, :data => { :confirm => t('blacklight.search_history.clear.action_confirm') }, :class => 'btn btn-danger pull-right' %>
<h3><%=t('blacklight.search_history.recent')%></h3>
<h3 class='section-heading'><%=t('blacklight.search_history.recent')%></h3>
<table class="table table-striped search_history">
<%- @searches.each_with_index do |search,index| -%>
<%= content_tag :tr, :id => "document_#{index + 1}" do %>
Expand Down

0 comments on commit 563c050

Please sign in to comment.