Skip to content

Commit

Permalink
Apply default paragraph styles to event details div
Browse files Browse the repository at this point in the history
Previously, if the simple_format parser didn't create
a wrapping paragraph for a given line, the font size
and line-height would differ from other paragraphs on
the page.

Fixes railsbridge#281
  • Loading branch information
tjgrathwell committed Oct 27, 2014
1 parent c3768dd commit 8a996e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ GEM
launchy
celluloid (0.16.0)
timers (~> 4.0.0)
chunky_png (1.3.2)
chunky_png (1.3.3)
cliver (0.3.2)
coderay (1.1.0)
coffee-rails (4.1.0)
Expand Down
3 changes: 3 additions & 0 deletions app/assets/stylesheets/events/_show.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@

.details {
word-wrap: break-word;
line-height: 140%;
font-size: 15px;

h2 {
margin-top: 20px;
}
Expand Down
1 change: 0 additions & 1 deletion app/views/checkins/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<%= content_for(:header_link, event_path(@event)) %>
<% end %>


<h2 style='margin-bottom: 10px;'>Check-ins for <%= @session.name %></h2>
<div class="checkin-counts">
<% [Role::VOLUNTEER, Role::STUDENT].each do |role| %>
Expand Down

0 comments on commit 8a996e9

Please sign in to comment.