0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-02 14:24:19 +01:00
Bootstrap/docs/assets/css/docs.css

428 lines
6.5 KiB
CSS
Raw Normal View History

2013-01-15 19:14:12 +01:00
/* Page =================================================== */
/*
2013-01-15 19:14:12 +01:00
html {
background-color: #fff;
font-size: 62.5%;
-webkit-overflow-scrolling: touch;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
background-color: transparent;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
font-size: 1.4rem;
line-height: 1.5;
color: #3a3a3a;
2013-01-15 19:14:12 +01:00
}
p {
margin: 0 0 10px;
2013-01-15 19:14:12 +01:00
}
.lead {
font-size: 18px;
font-size: 1.8rem;
}
.page-header {
margin-top: 30px;
margin-bottom: 19px;
border-bottom: 1px solid #ddd;
2013-01-15 19:14:12 +01:00
}
img {
max-width: 100%;
}
*/
2013-01-15 19:14:12 +01:00
/* Typography =================================================== */
/*
2013-01-15 19:14:12 +01:00
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 20px 0 10px;
2013-01-15 19:14:12 +01:00
color: inherit;
font-family: inherit;
font-weight: 500;
text-rendering: optimizelegibility;
}
h1 small,
h2 small {
font-weight: normal;
color: #bfbfbf;
}
h1 {
font-size: 40px;
font-size: 4rem;
line-height: 1.2;
}
h2 {
font-size: 30px;
font-size: 3rem;
line-height: 1.2;
}
h3 {
font-size: 24px;
font-size: 2.4rem;
line-height: 1.2;
}
h4 {
font-size: 18px;
font-size: 1.8rem;
line-height: 1.25;
}
h5 {
font-size: 16px;
font-size: 1.6rem;
}
h6 {
font-weight: normal;
letter-spacing: 1px;
text-transform: uppercase;
}
small {
font-size: 80%;
}
ul,
ol {
margin: 0 0 1em;
2013-01-15 19:14:12 +01:00
padding: 0 0 0 28px;
}
li ul,
li ol {
margin-bottom: 0;
}
hr {
margin: 20px 0 19px;
border: 0;
border-top: 1px solid #ddd;
}
pre, code {
color: #c7254e;
}
code {
2013-01-15 23:34:04 +01:00
padding: 2px 4px;
white-space: nowrap;
border-radius: 3px;
background-color: #f9f2f4;
}
2013-01-15 19:14:12 +01:00
a {
color: #428bca;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
*/
2013-01-15 19:14:12 +01:00
/*.collapse {
2013-01-15 19:14:12 +01:00
position: relative;
height: 0;
overflow: hidden;
}
.collapse.in {
height: auto;
}
*/
2013-01-15 19:14:12 +01:00
/*.nav {
2013-01-15 19:14:12 +01:00
margin-bottom: 0;
padding-left: 0;
overflow: hidden;
2013-01-15 19:14:12 +01:00
}
.nav > li {
display: block;
}
.nav > li > a {
position: relative;
2013-01-15 19:14:12 +01:00
display: block;
padding: 10px 15px;
}
.nav > li > a:hover {
text-decoration: none;
background-color: #f5f5f5;
}*/
/*.nav-list > li > a {
margin-bottom: -1px; // tuck up the following item to make 1px border
border: 1px solid #ddd;
}
.nav-list > li:first-child > a {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.nav-list > li:last-child > a {
margin-bottom: 0; undo the tuck
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
.nav-list > .active > a,
.nav-list > .active > a:hover {
color: #fff;
background-color: #428bca;
border-color: #428bca;
z-index: 2; // Bring active item forward so border sits on top of next element
}*/
2013-01-15 19:14:12 +01:00
/*.navbar {
2013-01-15 19:14:12 +01:00
padding: 15px;
background-color: #eee;
overflow: hidden;
2013-01-15 19:14:12 +01:00
}
.navbar .brand {
display: inline-block;
padding: 7px 15px;
2013-01-15 19:14:12 +01:00
font-size: 1.8rem;
font-size: 18px;
font-weight: bold;
line-height: 1;
2013-01-15 19:14:12 +01:00
}
.navbar .brand:hover {
text-decoration: none;
background-color: #ddd;
}*/
2013-01-15 19:14:12 +01:00
/*.navbar .nav {
margin-top: 15px;
2013-01-15 19:14:12 +01:00
}
.navbar .nav > li > a {
line-height: 20px;
2013-01-15 19:14:12 +01:00
}
.navbar .nav > li > a:hover {
background-color: #ddd;
}
.navbar .nav > .active > a {
background-color: #ddd;
}
*/
/*.btn-navbar {
2013-01-15 19:14:12 +01:00
float: right;
padding: 10px 12px;
2013-01-15 19:14:12 +01:00
background-color: #ddd;
border: 0;
border-radius: 4px;
}
.btn-navbar .icon-bar {
display: block;
width: 20px;
height: 2px;
2013-01-15 19:14:12 +01:00
background-color: #fff;
border-radius: 1px;
}
.btn-navbar .icon-bar + .icon-bar {
margin-top: 3px;
}*/
2013-01-15 19:14:12 +01:00
/*.navbar-inverse {
2013-01-15 19:14:12 +01:00
background-color: #222;
}
.navbar-inverse .brand {
color: #fff;
}
.navbar-inverse .brand:hover {
background-color: #333;
}
.navbar-inverse .nav > li > a {
color: #fff;
}
.navbar-inverse .nav > li > a:hover {
background-color: #333;
}
.navbar .nav > .active > a {
background-color: #333;
}
.navbar-inverse .btn-navbar {
background-color: #444;
}*/
2013-01-15 19:14:12 +01:00
/*.row {
margin-left: -10px;
margin-right: -10px;
overflow: hidden;
}
[class^="span"] {
padding-left: 10px;
padding-right: 10px;
-webkit-box-sizing: border-box;
}*/
2013-01-15 19:14:12 +01:00
/* Disable iOS/WinMobile font size changes */
/*@media screen and (max-device-width: 480px) {
2013-01-15 19:14:12 +01:00
html {
-ms-text-size-adjust: none;
-webkit-text-size-adjust: none;
}
}*/
2013-01-15 19:14:12 +01:00
@media screen and (min-width: 480px) {
}
@media screen and (min-width: 600px) {
}
@media screen and (min-width: 768px) {
h1 { }
h2 { }
h3 { }
h4 { }
h5 { }
h6 { }
[class^="span"] {
float: left;
}
.span1 { width: 8.3333333%; }
.span2 { width: 16.6666667%; }
.span3 { width: 25%; }
.span4 { width: 33.3333333%; }
.span5 { width: 41.666666667%; }
.span6 { width: 50%; }
.span7 { width: 58.333333333%; }
.span8 { width: 66.666666667%; }
.span9 { width: 75%; }
.span10 { width: 83.333333333%; }
.span11 { width: 91.666666667%; }
2013-01-15 19:14:12 +01:00
}
@media screen and (min-width: 992px) {
/* body {
2013-01-15 19:14:12 +01:00
font-size: 1.6rem;
font-size: 16px;
}
*/
2013-01-15 19:14:12 +01:00
.container {
width: 940px;
margin-left: auto;
margin-right: auto;
}
.navbar {
padding-top: 0;
padding-bottom: 0;
}
.navbar .brand {
float: left;
padding-top: 11px;
padding-bottom: 11px;
margin-left: -15px;
2013-01-15 19:14:12 +01:00
}
.navbar .nav {
overflow: hidden; /* clearfix */
margin-top: 0; /* undo top margin to make nav extend full height of navbar */
}
.navbar .nav > li {
float: left;
}
.navbar .nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
}
/* Required to make the collapsing navbar work on regular desktops */
.navbar .btn-navbar {
display: none;
}
.nav-collapse.collapse {
float: left;
2013-01-15 19:14:12 +01:00
height: auto !important;
overflow: visible !important;
}
}
@media screen and (min-width: 1382px) {
}
/* Docs =================================================== */
body > .container {
padding-left: 15px;
padding-right: 15px;
}
/* Jumbotrons
-------------------------------------------------- */
/* Base class
------------------------- */
.bs-docs-jumbotron {
position: relative;
margin-bottom: 20px;
padding: 30px 15px;
2013-01-15 19:14:12 +01:00
color: #fff;
background-color: #b94a48;
}
.bs-docs-jumbotron h1 {
margin: 0;
2013-01-15 19:14:12 +01:00
}
.bs-docs-jumbotron p {
margin-bottom: 0;
}
.bs-docs-example {
border: 1px solid #ddd;
padding: 14px;
margin-bottom: -1px;
}
.bs-docs-example p:last-child,
.bs-docs-example ul:last-child,
.bs-docs-example ol:last-child {
margin-bottom: 0;
}
.bs-docs-example + .prettyprint {
margin-top: 0;
}
2013-01-15 23:34:04 +01:00
.prettyprint .linenums {
margin-left: 0;
}
.show-grid [class^="span"] {
padding-top: 10px;
padding-bottom: 10px;
background-color: #eee;
border: 1px solid #ddd;
}