]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Make skip link look less "bare bones"
authorPatrick H. Lauke <redux@splintered.co.uk>
Sun, 14 Dec 2014 14:31:02 +0000 (14:31 +0000)
committerPatrick H. Lauke <redux@splintered.co.uk>
Sun, 14 Dec 2014 21:27:58 +0000 (21:27 +0000)
Additional markup for the skip link (to ensure it has the same effective
width as the main content, and to provide an outline around just the
link text) plus some basic styles...make it look a bit more in keeping
with the overall look and feel of the docs.

docs/_layouts/default.html
docs/_layouts/home.html
docs/assets/css/src/docs.css

index 51191dc5ebeeaba0c1a2bea27ae224ffafe62659..ea69962ee3169978bfaa0ec0c3ea4a4165491130 100644 (file)
@@ -5,7 +5,7 @@
     {% include header.html %}
   </head>
   <body>
-    <a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>
+    <a id="skippy" class="sr-only sr-only-focusable" href="#content"><div class="container"><span class="skiplink-text">Skip to main content</span></div></a>
 
     <!-- Docs master nav -->
     {% include nav/main.html %}
index 9b1eee6ed3fd91093deb3d28f4cb7cb897585c64..15a78adee78ae4b066e31169a102bac2b0e269d4 100644 (file)
@@ -5,7 +5,7 @@
     {% include header.html %}
   </head>
   <body class="bs-docs-home">
-    <a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>
+    <a id="skippy" class="sr-only sr-only-focusable" href="#content"><div class="container"><span class="skiplink-text">Skip to main content</span></div></a>
 
     <!-- Docs master nav -->
     {% include nav/main.html %}
index 4cc1fa843a6228527fc74e96cd4f98bb369d8ea7..4f63b33cd82a69c089f4cf99a058f288ed990c40 100644 (file)
@@ -89,6 +89,26 @@ body {
 }
 
 
+/*
+ * Fancy skip link
+ *
+ * Make it look a bit less "bare bones"
+ */
+
+#skippy {
+  display: block;
+  padding: 1em;
+  color: #fff;
+  background-color: #6F5499;
+  outline: 0;
+}
+
+#skippy .skiplink-text {
+  padding: 0.5em;
+  outline: 1px dotted;
+}
+
+
 /*
  * Main navigation
  *