]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
top-bar auto-width only for h1 in title-area (Update) 6223/head
authorkarland <anders-betrachtet@online.de>
Sun, 25 Jan 2015 22:12:41 +0000 (23:12 +0100)
committerkarland <anders-betrachtet@online.de>
Sun, 25 Jan 2015 22:12:41 +0000 (23:12 +0100)
SEO suggests to only use one h1 per page. Therefore one should not use
up the h1 element already in the title. If h2 is used instead the width
is not auto and there is a line break, if title name is too long.

scss/foundation/components/_top-bar.scss

index 842bd9310901ad08387468673c12f5816f130a5c..2ed3068889f12592e2aef9031913781fd85d150f 100644 (file)
@@ -462,7 +462,12 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
         .toggle-topbar { display: none; }
 
         .title-area { float: $default-float; }
-        .name h1 a { width: auto; }
+        .name h1 a,
+        .name h2 a,
+        .name h3 a,
+        .name h4 a,
+        .name h5 a,
+        .name h6 a { width: auto; }
 
         input,
         .button,