mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 15:29:22 +01:00
Clean up docs Sass code.
* remove unused rules * use Sass nesting in more places * use the core mixins in more places * use the color variables more
This commit is contained in:
parent
d08607c080
commit
242f19897d
@ -13,7 +13,7 @@
|
|||||||
min-width: 0 !important;
|
min-width: 0 !important;
|
||||||
max-width: none !important;
|
max-width: none !important;
|
||||||
padding: .75rem 0 !important;
|
padding: .75rem 0 !important;
|
||||||
background-color: #fff;
|
background-color: $white;
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border: 1px solid rgba(0, 0, 0, .1);
|
border: 1px solid rgba(0, 0, 0, .1);
|
||||||
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .175);
|
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .175);
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
// stylelint-disable no-duplicate-selectors
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Brand guidelines
|
// Brand guidelines
|
||||||
//
|
//
|
||||||
@ -10,62 +8,44 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: #563d7c;
|
color: $bd-purple;
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
border-radius: .25rem;
|
border-radius: .25rem;
|
||||||
|
|
||||||
|
.inverse {
|
||||||
|
color: $white;
|
||||||
|
background-color: $bd-purple;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Individual items
|
// Individual items
|
||||||
.bd-brand-item {
|
.bd-brand-item {
|
||||||
padding: 4rem 0;
|
padding: 4rem 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
|
||||||
.bd-brand-item + .bd-brand-item {
|
|
||||||
border-top: 1px solid #fff;
|
|
||||||
}
|
|
||||||
.bd-brand-logos .inverse {
|
|
||||||
color: #fff;
|
|
||||||
background-color: #563d7c;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Heading content within
|
+ .bd-brand-item {
|
||||||
.bd-brand-item h1,
|
border-top: 1px solid $white;
|
||||||
.bd-brand-item h3 {
|
}
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.bd-brand-item .bd-booticon {
|
|
||||||
margin-right: auto;
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make the icons stand out on what is/isn't okay
|
// Heading content within
|
||||||
// .bd-brand-item .glyphicon {
|
h1,
|
||||||
// width: 30px;
|
h3 {
|
||||||
// height: 30px;
|
margin-top: 0;
|
||||||
// margin: 10px auto -10px;
|
margin-bottom: 0;
|
||||||
// line-height: 30px;
|
}
|
||||||
// color: #fff;
|
|
||||||
// border-radius: 50%;
|
|
||||||
// }
|
|
||||||
// .bd-brand-item .glyphicon-ok {
|
|
||||||
// background-color: #5cb85c;
|
|
||||||
// }
|
|
||||||
// .bd-brand-item .glyphicon-remove {
|
|
||||||
// background-color: #d9534f;
|
|
||||||
// }
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@include media-breakpoint-up(md) {
|
||||||
.bd-brand-item {
|
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
width: 1%;
|
width: 1%;
|
||||||
}
|
|
||||||
.bd-brand-item + .bd-brand-item {
|
+ .bd-brand-item {
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
border-left: 1px solid #fff;
|
border-left: 1px solid $white;
|
||||||
}
|
}
|
||||||
.bd-brand-item h1 {
|
|
||||||
font-size: 4rem;
|
h1 {
|
||||||
|
font-size: 4rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,24 +57,8 @@
|
|||||||
.color-swatches {
|
.color-swatches {
|
||||||
margin: 0 -5px;
|
margin: 0 -5px;
|
||||||
overflow: hidden; // clearfix
|
overflow: hidden; // clearfix
|
||||||
}
|
|
||||||
|
|
||||||
.color-swatch {
|
// Docs colors
|
||||||
float: left;
|
|
||||||
width: 4rem;
|
|
||||||
height: 4rem;
|
|
||||||
margin-right: .25rem;
|
|
||||||
margin-left: .25rem;
|
|
||||||
border-radius: .25rem;
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
width: 6rem;
|
|
||||||
height: 6rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Docs colors
|
|
||||||
.color-swatches {
|
|
||||||
.bd-purple {
|
.bd-purple {
|
||||||
background-color: $bd-purple;
|
background-color: $bd-purple;
|
||||||
}
|
}
|
||||||
@ -108,3 +72,17 @@
|
|||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.color-swatch {
|
||||||
|
float: left;
|
||||||
|
width: 4rem;
|
||||||
|
height: 4rem;
|
||||||
|
margin-right: .25rem;
|
||||||
|
margin-left: .25rem;
|
||||||
|
border-radius: .25rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
width: 6rem;
|
||||||
|
height: 6rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:active {
|
&:active {
|
||||||
color: #fff;
|
color: $white;
|
||||||
background-color: $bd-purple-bright;
|
background-color: $bd-purple-bright;
|
||||||
border-color: $bd-purple-bright;
|
border-color: $bd-purple-bright;
|
||||||
}
|
}
|
||||||
|
@ -9,23 +9,23 @@
|
|||||||
border: 1px solid #eee;
|
border: 1px solid #eee;
|
||||||
border-left-width: .25rem;
|
border-left-width: .25rem;
|
||||||
border-radius: .25rem;
|
border-radius: .25rem;
|
||||||
}
|
|
||||||
|
|
||||||
.bd-callout h4 {
|
h4 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: .25rem;
|
margin-bottom: .25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bd-callout p:last-child {
|
p:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bd-callout code {
|
code {
|
||||||
border-radius: .25rem;
|
border-radius: .25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bd-callout + .bd-callout {
|
+ .bd-callout {
|
||||||
margin-top: -.25rem;
|
margin-top: -.25rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Variations
|
// Variations
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
+ .highlight {
|
+ .highlight {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-clipboard {
|
.btn-clipboard {
|
||||||
@ -27,13 +31,7 @@
|
|||||||
border-radius: .25rem;
|
border-radius: .25rem;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #fff;
|
color: $white;
|
||||||
background-color: #027de7;
|
background-color: #027de7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bd-clipboard {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
//
|
|
||||||
// Examples
|
|
||||||
//
|
|
||||||
|
|
||||||
.bd-examples .img-thumbnail {
|
|
||||||
margin-bottom: .75rem;
|
|
||||||
}
|
|
||||||
.bd-examples h4 {
|
|
||||||
margin-bottom: .25rem;
|
|
||||||
}
|
|
||||||
.bd-examples p {
|
|
||||||
margin-bottom: 1.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
|
||||||
.bd-examples {
|
|
||||||
margin-right: -.75rem;
|
|
||||||
margin-left: -.75rem;
|
|
||||||
}
|
|
||||||
.bd-examples > [class^="col-"] {
|
|
||||||
padding-right: .75rem;
|
|
||||||
padding-left: .75rem;
|
|
||||||
}
|
|
||||||
}
|
|
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
&.active,
|
&.active,
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #fff;
|
color: $white;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,6 @@
|
|||||||
@import "component-examples";
|
@import "component-examples";
|
||||||
@import "buttons";
|
@import "buttons";
|
||||||
@import "callouts";
|
@import "callouts";
|
||||||
@import "examples";
|
|
||||||
@import "browser-bugs";
|
@import "browser-bugs";
|
||||||
@import "brand";
|
@import "brand";
|
||||||
@import "colors";
|
@import "colors";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user