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

323 lines
8.1 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
*/
/* Body and structure
-------------------------------------------------- */
body {
background-color: #fff;
2011-05-05 08:49:31 +02:00
position: relative;
}
section {
padding-top: 80px;
margin-bottom: -40px;
}
#masthead, #footer {
background-color: #049cd9;
background-repeat: no-repeat;
background-image: -webkit-gradient(linear, left top, left bottom, from(#0056b0), to(#049cd9));
background-image: -webkit-linear-gradient(#0056b0, #049cd9);
background-image: -moz-linear-gradient(#0056b0, #049cd9);
background-image: -o-linear-gradient(top, #0056b0, #049cd9);
background-image: -khtml-gradient(linear, left top, left bottom, from(#0056b0), to(#049cd9));
filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#0056b0', EndColorStr='#049cd9', GradientType=0);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#0056b0', EndColorStr='#049cd9', GradientType=0))";
}
#masthead div.inner, #footer div.inner {
2011-06-30 02:10:53 +02:00
background: transparent url(../img/grid-18px.png) top center;
padding: 54px 0;
2011-05-05 08:49:31 +02:00
-webkit-box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.25);
-moz-box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.25);
box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.25);
}
#masthead h1,
#footer h1,
2011-06-30 00:51:27 +02:00
#masthead h4,
#footer h4,
2011-05-05 08:49:31 +02:00
#masthead p,
#footer p,
#masthead small,
#footer small {
color: #fff;
2011-06-30 00:51:27 +02:00
text-shadow: 0 1px 1px rgba(0,0,0,.3);
2011-05-05 08:49:31 +02:00
}
#masthead {
margin-top: 40px;
margin-bottom: -40px;
}
#masthead h1 {
2011-06-30 02:10:53 +02:00
font-size: 54px;
line-height: 1;
text-align: center;
margin-bottom: 9px;
2011-05-05 08:49:31 +02:00
}
#masthead p.lead {
2011-06-30 02:10:53 +02:00
font-size: 20px;
2011-05-05 08:49:31 +02:00
font-weight: 300;
line-height: 27px;
2011-06-30 02:10:53 +02:00
text-align: center;
margin: 0;
2011-05-05 08:49:31 +02:00
}
#masthead a.btn {
background-color: #552e7e;
background-repeat: no-repeat;
background-image: -webkit-gradient(linear, left top, left bottom, from(#7a43b6), to(#552e7e));
background-image: -webkit-linear-gradient(#7a43b6, #552e7e);
background-image: -moz-linear-gradient(#7a43b6, #552e7e);
background-image: -o-linear-gradient(top, #7a43b6, #552e7e);
background-image: -khtml-gradient(linear, left top, left bottom, from(#7a43b6), to(#552e7e));
filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#7a43b6', EndColorStr='#552e7e', GradientType=0);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#7a43b6', EndColorStr='#552e7e', GradientType=0))";
2011-06-30 02:10:53 +02:00
padding-top: 5px;
padding-bottom: 4px;
margin-bottom: 18px;
2011-06-30 02:10:53 +02:00
font-weight: normal;
2011-05-05 08:49:31 +02:00
border: 0;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.4);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.4);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.4);
-webkit-transition: all 0.2s linear;
-moz-transition: all 0.2s linear;
transition: all 0.2s linear;
}
#masthead small {
display: block;
text-align: center;
font-size: 13px;
line-height: 18px;
color: rgba(255,255,255,0.5);
2011-05-05 08:49:31 +02:00
}
#masthead small a {
color: #fff;
}
2011-06-30 02:10:53 +02:00
div.quickstart {
/* background-color: rgba(0,0,0,.1); */
margin-top: 36px;
}
div.quickstart div.columns {
/* background-color: rgba(0,0,0,.1); */
width: 280px;
height: 100px;
padding: 9px 10px;
}
div.quickstart div.columns:last-child {
border-right: none;
/* padding-right: 20px; */
}
div.quickstart h6,
div.quickstart p {
line-height: 18px;
text-align: center;
margin-bottom: 9px;
}
div.quickstart h6 {
color: #fff;
}
div.quickstart form textarea {
line-height: 21px;
border: 0;
display: block;
width: 270px;
height: 21px;
margin: 0 0 9px;
padding: 3px 5px;
background-color: rgba(0,0,0,.3);
-webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.15);
-moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.15);
box-shadow: inset 0 1px 3px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.15);
color: #fff;
color: rgba(255,255,255,.5);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
div.quickstart form textarea:focus {
background-color: #fff;
color: #333;
-webkit-box-shadow: 0 0 5px rgba(255,255,255,.25);
-moz-box-shadow: 0 0 5px rgba(255,255,255,.25);
box-shadow: 0 0 5px rgba(255,255,255,.25);
}
/*
2011-06-30 00:51:27 +02:00
div.quick-start {
2011-06-30 02:10:53 +02:00
padding: 0 20px;
margin: 36px 0 0;
2011-06-30 00:51:27 +02:00
}
div.quick-start h4,
div.quick-start p,
div.quick-start form {
float: left;
}
#masthead div.quick-start p {
margin-bottom: 0;
font-size: 14px;
line-height: 27px;
color: rgba(255,255,255,.5);
}
div.quick-start p a {
color: #fff;
}
div.quick-start form {
margin-bottom: 0;
padding: 0 10px;
}
div.quick-start form input {
width: 530px;
border: none;
padding: 3px 5px;
height: 21px;
line-height: 21px;
}
2011-06-30 02:10:53 +02:00
*/
2011-05-05 08:49:31 +02:00
#footer {
margin-top: 80px;
}
#footer p {
margin-bottom: 0;
color: rgba(255,255,255,.8)
}
#footer p a {
color: #fff;
font-weight: bold;
2011-05-05 08:49:31 +02:00
}
/* Special grid styles
-------------------------------------------------- */
.show-grid {
margin-top: 20px;
margin-bottom: 20px;
}
.show-grid .column, .show-grid .columns {
background: rgba(0, 0, 0, 0.1);
text-align: center;
-moz-border-radius: 3px;
border-radius: 3px;
height: 30px;
line-height: 30px;
}
.show-grid:hover .column, .show-grid:hover .columns {
background: rgba(0, 0, 0, 0.25);
}
/* Hashgrid.js grid (press G & H to view)
-------------------------------------------------- */
#grid {
width: 980px;
position: absolute;
top: 0;
left: 50%;
margin-left: -490px;
}
#grid div.vert {
background-color: rgba(0, 206, 209, 0.075);
width: 39px;
border: solid darkturquoise;
border-width: 0 1px;
margin-right: 19px;
}
#grid div.vert.first-line {
margin-left: 19px;
}
#grid div.horiz {
height: 19px;
border-bottom: 1px solid rgba(255, 0, 0, 0.1);
margin: 0;
padding: 0;
}
#grid div.horiz:nth-child(5n) {
border-color: rgba(255, 0, 0, 0.25);
}
/* Render mini layout previews
-------------------------------------------------- */
div.mini-layout {
height: 340px;
margin-bottom: 20px;
padding: 9px;
border: 1px solid rgba(0, 0, 0, 0.25);
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.125);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.125);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.125);
}
div.mini-layout div {
-moz-border-radius: 3px;
border-radius: 3px;
}
div.mini-layout div.mini-layout-body {
background-color: rgba(141, 192, 219, 0.25);
margin: 0 auto;
width: 450px;
height: 340px;
}
div.mini-layout.fluid div.mini-layout-sidebar, div.mini-layout.fluid div.mini-layout-header, div.mini-layout.fluid div.mini-layout-body {
float: left;
}
div.mini-layout.fluid div.mini-layout-sidebar {
background-color: rgba(141, 192, 219, 0.5);
width: 90px;
height: 340px;
}
div.mini-layout.fluid div.mini-layout-body {
width: 400px;
margin-left: 10px;
}
/* Topbar special styles
-------------------------------------------------- */
div.topbar-wrapper {
position: relative;
height: 40px;
margin: 5px 0 15px;
}
div.topbar-wrapper div.topbar {
position: absolute;
margin: 0 -20px;
padding-left: 20px;
padding-right: 20px;
-moz-border-radius: 4px;
border-radius: 4px;
}
/* Code blocks
-------------------------------------------------- */
pre.css, pre.html {
background-color: #fff;
}
pre ol {
background-color: #feeed6;
list-style: decimal;
margin: -17px;
padding-left: 59px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
pre ol li {
background-color: #fff;
padding: 0 10px;
border-left: 1px solid rgba(0, 0, 0, 0.1);
border-left-color: #fddfb3;
font-size: 11px;
line-height: 18px;
color: #bbb;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
word-wrap: break-word;
}
pre ol li:first-child {
padding-top: 9px;
}
pre ol li:last-child {
padding-bottom: 9px;
}
span.html__tag_start, span.html__tag_end {
color: #277ac1;
font-weight: normal;
}
span.html__attr_name {
color: #d78b41;
}
span.html__attr_value {
color: #de4a3f;
}