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

430 lines
7.5 KiB
CSS
Raw Normal View History

2011-05-05 08:49:31 +02:00
/* Add additional stylesheets below
-------------------------------------------------- */
/*
Bootstrap's documentation styles
Special styles for presenting Bootstrap's documentation and examples
2011-05-05 08:49:31 +02:00
*/
2011-05-05 08:49:31 +02:00
/* Body and structure
-------------------------------------------------- */
body {
position: relative;
padding-top: 90px;
background-color: #fff;
background-image: url(../img/grid-18px-masked.png);
background-repeat: repeat-x;
2011-05-05 08:49:31 +02:00
}
/* Tweak navbar brand link to be super sleek
-------------------------------------------------- */
body > .navbar-fixed .brand {
padding-right: 0;
padding-left: 0;
float: right;
font-weight: bold;
color: #000;
text-shadow: 0 1px 0 rgba(255,255,255,.1);
}
body > .navbar-fixed .brand:hover {
text-decoration: none;
}
/* Space out sub-sections more
-------------------------------------------------- */
.page-header {
margin-top: 36px;
}
/* Jumbotrons
-------------------------------------------------- */
.jumbotron {
position: relative;
text-shadow: 0 1px 0 #fff;
}
.jumbotron h1 {
margin-right: 40%;
margin-bottom: 9px;
font-size: 90px;
letter-spacing: -1px;
line-height: 1;
2011-05-05 08:49:31 +02:00
}
.jumbotron p {
margin-right: 32%;
margin-bottom: 20px;
font-size: 25px;
font-weight: 300;
line-height: 36px;
}
2011-11-01 21:56:00 +01:00
.jumbotron .btn-large {
font-size: 20px;
padding: 14px 24px;
margin-right: 5px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
.jumbotron .download-info {
font-size: 16px;
color: #999;
}
/* Benefits list in masthead */
.benefits {
width: 250px;
position: absolute;
right: 0;
bottom: 0;
}
.benefits ul {
list-style: none;
margin: 0;
}
.benefits li {
font-size: 16px;
font-weight: 300;
line-height: 35px;
color: #555;
}
.benefits li + li {
border-top: 1px solid #f5f5f5;
}
.benefits h4 {
color: #555;
}
.benefits span {
position: relative;
top: -2px;
padding-right: 5px;
color: #999;
}
/* Specific jumbotrons
------------------------- */
/* supporting docs pages */
.subhead {
padding-bottom: 14px;
margin-bottom: 45px;
border-bottom: 3px solid #e5e5e5;
}
.subhead h1,
.subhead p {
margin-right: 0;
}
.subhead h1 {
font-size: 45px;
}
/* Quick links
-------------------------------------------------- */
.quick-links {
padding: 5px 20px;
margin: 45px 0;
list-style: none;
text-align: center;
background-color: #eee;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
-moz-box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
}
.quick-links li {
display: inline;
margin: 0 5px;
line-height: 30px;
}
.quick-links .divider {
color: #999;
}
.quick-links strong {
font-weight: normal;
color: #999;
}
2011-11-01 21:56:00 +01:00
.quick-links .github-btn,
.quick-links .tweet-btn,
.quick-links .follow-btn {
position: relative;
top: 5px;
}
/* Marketing section of Overview
-------------------------------------------------- */
.marketing .row {
margin-bottom: 18px;
}
.marketing h1 {
margin-bottom: 18px;
}
.marketing h2,
.marketing h3 {
font-weight: 300;
}
.marketing h2 {
margin-bottom: 9px;
}
.marketing p {
margin-right: 10px;
}
.marketing .icon {
float: left;
margin: 7px 10px 0 0;
opacity: .8;
}
.marketing .small-icon {
float: left;
margin: 4px 5px 0 0;
}
/* Footer
-------------------------------------------------- */
.footer {
margin-top: 45px;
padding: 35px 0 36px;
border-top: 1px solid #e5e5e5;
}
.footer p {
margin-bottom: 0;
color: #555;
}
2011-06-30 02:10:53 +02:00
2011-05-05 08:49:31 +02:00
/* Special grid styles
-------------------------------------------------- */
.show-grid {
margin-top: 10px;
margin-bottom: 20px;
2011-05-05 08:49:31 +02:00
}
.show-grid [class*="span"] {
background-color: #eee;
2011-05-05 08:49:31 +02:00
text-align: center;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
min-height: 30px;
2011-05-05 08:49:31 +02:00
line-height: 30px;
}
.show-grid:hover [class*="span"] {
2011-09-16 07:27:41 +02:00
background: #ddd;
}
.show-grid .show-grid {
margin-top: 0;
margin-bottom: 0;
2011-05-05 08:49:31 +02:00
}
.show-grid .show-grid [class*="span"] {
background-color: #ccc;
}
2011-05-05 08:49:31 +02:00
/* Render mini layout previews
-------------------------------------------------- */
.mini-layout {
border: 1px solid #ddd;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.075);
box-shadow: 0 1px 2px rgba(0,0,0,.075);
2011-05-05 08:49:31 +02:00
}
.mini-layout {
height: 240px;
margin-bottom: 20px;
padding: 9px;
}
.mini-layout div {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
2011-05-05 08:49:31 +02:00
}
.mini-layout .mini-layout-body {
background-color: #dceaf4;
2011-05-05 08:49:31 +02:00
margin: 0 auto;
width: 70%;
height: 240px;
2011-05-05 08:49:31 +02:00
}
.mini-layout.fluid .mini-layout-sidebar,
.mini-layout.fluid .mini-layout-header,
.mini-layout.fluid .mini-layout-body {
2011-05-05 08:49:31 +02:00
float: left;
}
.mini-layout.fluid .mini-layout-sidebar {
background-color: #bbd8e9;
width: 20%;
height: 240px;
2011-05-05 08:49:31 +02:00
}
.mini-layout.fluid .mini-layout-body {
width: 60%;
2011-05-05 08:49:31 +02:00
margin-left: 10px;
}
2011-07-02 08:10:39 +02:00
/* Popover docs
-------------------------------------------------- */
.popover-well {
2011-07-02 08:10:39 +02:00
min-height: 160px;
}
.popover-well .popover {
2011-07-02 08:10:39 +02:00
display: block;
}
.popover-well .popover-wrapper {
2011-07-02 08:10:39 +02:00
width: 50%;
height: 160px;
float: left;
2011-07-29 02:50:38 +02:00
margin-left: 55px;
position: relative;
2011-07-02 08:10:39 +02:00
}
.popover-well .popover-menu-wrapper {
2011-07-02 08:10:39 +02:00
height: 80px;
2011-07-29 02:50:38 +02:00
}
img.large-bird {
margin: 5px 0 0 310px;
opacity: .1;
2011-08-22 06:26:15 +02:00
}
/* Misc
2011-08-22 06:26:15 +02:00
-------------------------------------------------- */
pre.prettyprint {
2011-08-22 06:26:15 +02:00
overflow: hidden;
}
.well form {
margin-bottom: 0;
}
.browser-support {
max-width: 100%;
}
/* Make tables spaced out a bit more */
h2 + table {
margin-top: 5px;
}
/* Responsive Docs
-------------------------------------------------- */
@media (max-width: 480px) {
/* Hide the nav for now */
body > .navbar-fixed .nav {
display: none;
}
/* Change up some type stuff */
h1 small {
display: block;
line-height: 20px;
}
/* More space between sections */
h2 {
margin-top: 27px;
}
h3 {
margin-top: 18px;
}
/* Adjust the jumbotron */
.jumbotron h1,
.jumbotron p {
text-align: center;
margin-right: 0;
}
.jumbotron h1 {
font-size: 45px;
margin-right: 0;
}
.jumbotron p {
margin-right: 0;
font-size: 18px;
line-height: 24px;
}
.jumbotron .btn {
display: block;
font-size: 18px;
padding: 10px 14px;
margin: 0 auto 10px;
}
/* Don't space out quick links so much */
.quick-links {
margin: 40px 0 0;
}
}
@media (max-width: 768px) {
/* Hide the nav for now */
body > .navbar-fixed .nav {
display: none;
}
/* Adjust the jumbotron */
.jumbotron .benefits {
position: relative;
width: auto;
margin: 36px 0;
}
/* Popovers */
.large-bird {
display: none;
}
.popover-well .popover-wrapper {
margin-left: 0;
}
/* Space out the show-grid examples */
.show-grid [class*="span"] {
margin-bottom: 5px;
}
/* Unfloat the back to top link in footer */
.footer .pull-right {
float: none;
}
}
2011-10-27 18:35:58 +02:00
@media (min-width: 480px) and (max-width: 768px) {
/* Scale down the jumbotron content */
.jumbotron h1 {
font-size: 54px;
}
.jumbotron h1,
.jumbotron p {
margin-right: 0;
2011-10-27 18:35:58 +02:00
}
}
@media (min-width: 768px) and (max-width: 940px) {
/* Scale down the jumbotron content */
.jumbotron h1 {
font-size: 72px;
}
/* Provide enough space on right-hand side for benefits list */
.jumbotron h1,
.jumbotron p {
margin-right: 40%;
}
}