Commit 50e3e2ab47ddebd9b8a6ec0388c91d837f105220
1 parent
ba2315ce
Exists in
master
and in
1 other branch
Only expand title bar for errs#show page
Showing
3 changed files
with
9 additions
and
2 deletions
Show diff stats
app/assets/stylesheets/errbit.css
| ... | ... | @@ -162,11 +162,17 @@ a.action { float: right; font-size: 0.9em;} |
| 162 | 162 | |
| 163 | 163 | /* Content Title and Comments */ |
| 164 | 164 | #content-title, #content-comments { |
| 165 | - padding: 43px 24px 37px; | |
| 165 | + padding: 30px 24px; | |
| 166 | 166 | border-top: 1px solid #FFF; |
| 167 | 167 | border-bottom: 1px solid #FFF; |
| 168 | 168 | background-color: #f2f2f2; |
| 169 | 169 | } |
| 170 | + | |
| 171 | +/* Make err title bar bigger to fit more buttons */ | |
| 172 | +#content-title.err_show { | |
| 173 | + padding: 43px 24px 37px; | |
| 174 | +} | |
| 175 | + | |
| 170 | 176 | #content-comments { |
| 171 | 177 | background-color: #ffffff; |
| 172 | 178 | } | ... | ... |
app/views/errs/show.html.haml
app/views/layouts/application.html.haml
| ... | ... | @@ -18,7 +18,7 @@ |
| 18 | 18 | = render 'shared/navigation' if current_user |
| 19 | 19 | = render 'shared/session' |
| 20 | 20 | #content-wrapper |
| 21 | - #content-title | |
| 21 | + #content-title{ :class => (yield :title_css_class).to_s } | |
| 22 | 22 | %h1= yield :title |
| 23 | 23 | %span.meta= yield :meta |
| 24 | 24 | - if (action_bar = yield(:action_bar)).present? | ... | ... |