0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01:00

several docs cleanup things

This commit is contained in:
Mark Otto 2015-01-20 22:57:24 -08:00
parent 35e5f6f169
commit 9e0c4ff786
4 changed files with 70 additions and 65 deletions

View File

@ -3,11 +3,12 @@
Bootstrap Bootstrap
</a> </a>
<div class="bs-docs-search"> <form class="bs-docs-search hidden-xs-down">
<input type="text" class="form-control" id="search-input" placeholder="Search..."> <input type="text" class="form-control" id="search-input" placeholder="Search...">
<ul class="dropdown-menu bs-docs-search-results" id="search-results"></ul> <ul class="dropdown-menu bs-docs-search-results" id="search-results"></ul>
</div> </form>
<nav class="bs-docs-links hidden-xs-down">
{% for group in site.data.nav %} {% for group in site.data.nav %}
{% assign link = group.pages | first %} {% assign link = group.pages | first %}
{% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' %} {% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' %}
@ -52,4 +53,5 @@
</ul> </ul>
</div> </div>
{% endfor %} {% endfor %}
</nav>
</header> </header>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -325,7 +325,7 @@ body {
width: auto !important; width: auto !important;
height: auto !important; height: auto !important;
padding: 1.25rem !important; padding: 1.25rem !important;
margin: 2rem -2rem -2rem !important; margin: 0 -1rem 2rem !important;
overflow: hidden; /* clearfix */ overflow: hidden; /* clearfix */
font-size: .8rem !important; font-size: .8rem !important;
line-height: 1rem !important; line-height: 1rem !important;
@ -378,7 +378,7 @@ body {
// color: $bs-purple !important; // color: $bs-purple !important;
// } // }
@media (min-width: 480px) { @include media-breakpoint-up(sm) {
.carbonad { .carbonad {
width: 330px !important; width: 330px !important;
margin: 1.5rem auto !important; margin: 1.5rem auto !important;
@ -390,14 +390,14 @@ body {
} }
} }
@media (min-width: 768px) { @include media-breakpoint-up(md) {
.carbonad { .carbonad {
margin-right: 0 !important; margin-right: 0 !important;
margin-left: 0 !important; margin-left: 0 !important;
} }
} }
@media (min-width: 992px) { @include media-breakpoint-up(lg) {
.carbonad { .carbonad {
float: right; float: right;
width: 330px !important; width: 330px !important;
@ -552,7 +552,7 @@ body {
.bs-docs-container { .bs-docs-container {
position: relative; position: relative;
max-width: 62rem; max-width: 62rem;
padding: 1rem; padding: 0 1rem 1rem;
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
@ -700,10 +700,6 @@ body {
} }
.bs-docs-sidenav {
display: none;
}
.bs-docs-toc-link { .bs-docs-toc-link {
display: block; display: block;
padding: 4px 20px; padding: 4px 20px;
@ -789,10 +785,6 @@ body {
// //
.bs-docs-content { .bs-docs-content {
> h1 {
font-size: 4rem;
}
> h2 { > h2 {
margin-top: 3rem; margin-top: 3rem;
font-weight: normal; font-weight: normal;
@ -804,12 +796,18 @@ body {
} }
.bs-docs-title { .bs-docs-title {
+ p {
font-size: 1.25rem;
font-weight: 300;
}
@include media-breakpoint-up(sm) {
margin-right: 23rem; margin-right: 23rem;
font-size: 4rem;
+ p { + p {
margin-right: 23rem; margin-right: 23rem;
font-size: 1.25rem; }
font-weight: 300;
} }
} }
@ -954,14 +952,15 @@ body {
.bs-example { .bs-example {
position: relative; position: relative;
padding: 1.5rem; padding: 1rem;
margin-top: 1rem; margin: 1rem -1rem;
margin-bottom: -1rem;
border: solid #f7f7f9; border: solid #f7f7f9;
border-width: .2rem 0 0; border-width: .2rem 0 0;
@include clearfix(); @include clearfix();
@media (min-width: 480px) { @include media-breakpoint-up(sm) {
margin-bottom: -1rem;
padding: 1.5rem;
border-width: .2rem; border-width: .2rem;
} }
@ -1211,10 +1210,14 @@ body {
// //
.highlight { .highlight {
padding: 1.5rem; padding: 1rem;
margin-top: 1rem; margin: -1rem -1rem 1rem;
margin-bottom: 1rem;
background-color: #f7f7f9; background-color: #f7f7f9;
@include media-breakpoint-up(sm) {
padding: 1.5rem;
margin: 1rem 0;
}
} }
.highlight pre { .highlight pre {
padding: 0; padding: 0;