• Patrick H. Lauke's avatar
    Skip link workarounds for Chrome and IE · c0892d14
    Patrick H. Lauke authored
    Add tabindex="-1" to main #content to work around bug in Chrome (and old
    WebKits) and IE
    Update advice in accessibility section
    Include patch in docs CSS to suppress outline when #content is focused
    (particularly as Chrome sets focus as result of mouse click for
    tabindex="-1" elements)
    c0892d14
docs.css 29.02 KiB
/*!
 * Bootstrap Docs (http://getbootstrap.com)
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under the Creative Commons Attribution 3.0 Unported License. For
 * details, see http://creativecommons.org/licenses/by/3.0/.
 */
/*
 * Bootstrap Documentation
 * Special styles for presenting Bootstrap's documentation and code examples.
 * Scaffolding
 * Update the basics of our documents to prep for docs content.
body {
  position: relative; /* For scrollspy */
/* Keep code small in tables on account of limited space */
.table code {
  font-size: 13px;
  font-weight: normal;
/* Outline button for use within the docs */
.btn-outline {
  color: #563d7c;
  background-color: transparent;
  border-color: #563d7c;
.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
  color: #fff;
  background-color: #563d7c;
  border-color: #563d7c;
/* Inverted outline button (white on dark) */
.btn-outline-inverse {
  color: #fff;
  background-color: transparent;
  border-color: #cdbfe3;
.btn-outline-inverse:hover,
.btn-outline-inverse:focus,
.btn-outline-inverse:active {
  color: #563d7c;
  text-shadow: none;
  background-color: #fff;
  border-color: #fff;
/* Bootstrap "B" icon */
.bs-docs-booticon {
  display: block;
  font-weight: 500;
  color: #fff;
  text-align: center;
  cursor: default;
  background-color: #563d7c;
  border-radius: 15%;
.bs-docs-booticon-sm {
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
width: 30px; height: 30px; font-size: 20px; line-height: 28px; } .bs-docs-booticon-lg { width: 144px; height: 144px; font-size: 108px; line-height: 140px; } .bs-docs-booticon-inverse { color: #563d7c; background-color: #fff; } .bs-docs-booticon-outline { background-color: transparent; border: 1px solid #cdbfe3; } /* * Main navigation * * Turn the `.navbar` at the top of the docs purple. */ .bs-docs-nav { margin-bottom: 0; background-color: #fff; border-bottom: 0; } .bs-home-nav .bs-nav-b { display: none; } .bs-docs-nav .navbar-brand, .bs-docs-nav .navbar-nav > li > a { font-weight: 500; color: #563d7c; } .bs-docs-nav .navbar-nav > li > a:hover, .bs-docs-nav .navbar-nav > .active > a, .bs-docs-nav .navbar-nav > .active > a:hover { color: #463265; background-color: #f9f9f9; } .bs-docs-nav .navbar-toggle .icon-bar { background-color: #563d7c; } .bs-docs-nav .navbar-header .navbar-toggle { border-color: #fff; } .bs-docs-nav .navbar-header .navbar-toggle:hover, .bs-docs-nav .navbar-header .navbar-toggle:focus { background-color: #f9f9f9; border-color: #f9f9f9; } /* * Footer * * Separated section of content at the bottom of all pages, save the homepage. */ .bs-docs-footer { padding-top: 40px; padding-bottom: 40px; margin-top: 100px; color: #777;