changeset 1198:6a7198536816 cannam

Use a smaller font and tighter line spacing for long project names
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 23 Jan 2013 11:08:10 +0000
parents ba189cfe5aaf
children bae194c52296 9ad0d37a49c9
files app/views/layouts/base.html.erb public/themes/soundsoftware/stylesheets/application.css
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 %> 
--- 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;