# HG changeset patch # User Chris Cannam # Date 1358939290 0 # Node ID 6a7198536816af8462cea7b83f3538190a9669dc # Parent ba189cfe5aafc29767936d1a41cd4d8a94012af8 Use a smaller font and tighter line spacing for long project names diff -r ba189cfe5aaf -r 6a7198536816 app/views/layouts/base.html.erb --- a/app/views/layouts/base.html.erb Wed Jan 23 10:45:47 2013 +0000 +++ b/app/views/layouts/base.html.erb Wed Jan 23 11:08:10 2013 +0000 @@ -64,6 +64,9 @@ <% unless page_header_title[1].empty? %> style="margin-top: 0px; " <% end %> + <% if @project.name.length > 35 %> + class="long-title" + <% end %> ><% if display_main_menu?(@project) %> <%= link_to_project(@project) %> <% else %> diff -r ba189cfe5aaf -r 6a7198536816 public/themes/soundsoftware/stylesheets/application.css --- a/public/themes/soundsoftware/stylesheets/application.css Wed Jan 23 10:45:47 2013 +0000 +++ b/public/themes/soundsoftware/stylesheets/application.css Wed Jan 23 11:08:10 2013 +0000 @@ -110,6 +110,7 @@ #header { position: absolute; z-index: 0; top: 0; width: 100%; background: #fdfbf5; border-bottom: 2px solid #a9b680; /* height:80px; */ padding: 20px 0 0.5em 0; margin-bottom: 0; } #header a { color: #be5700; } #header h1 { color: #525a38; margin-top: 25px; font-size: 3em; font-weight: normal; margin-left: 10px; } +#header h1#project-title.long-title { font-size: 2em; line-height: 0.95em } #header #project-title a, #header #project-title a:hover { color: #525a38; text-decoration: none; } .header-general h1 { background: url('soundsoftware-logo-code-title-only-transparent.png') no-repeat 0 0;