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.
{% 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 %}
{% 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 %}
}
+/*
+ * 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
*