2017-05-27 17:37:25 -07:00
|
|
|
// scss-lint:disable IdSelector, NestingDepth, SelectorDepth, QualifyingElement
|
2016-01-03 18:17:58 -08:00
|
|
|
|
2015-08-17 21:31:17 -07:00
|
|
|
//
|
|
|
|
// Automatically style Markdown-based tables like a Bootstrap `.table`.
|
|
|
|
//
|
|
|
|
|
2015-08-05 23:19:15 -07:00
|
|
|
.bd-content {
|
2017-06-17 10:28:19 -07:00
|
|
|
order: 1;
|
|
|
|
|
2017-05-27 17:37:25 -07:00
|
|
|
// Hack the sticky header
|
2017-06-14 21:25:27 -07:00
|
|
|
> h2[id],
|
|
|
|
> h3[id],
|
|
|
|
> h4[id] {
|
2017-05-27 17:37:25 -07:00
|
|
|
&::before {
|
|
|
|
position: relative;
|
|
|
|
z-index: -1;
|
|
|
|
display: block;
|
|
|
|
height: 6rem;
|
|
|
|
margin-top: -6rem;
|
|
|
|
visibility: hidden;
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-16 14:57:49 -07:00
|
|
|
> table {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
2017-03-05 12:20:44 -08:00
|
|
|
margin-bottom: 1rem;
|
2017-03-19 17:37:38 -07:00
|
|
|
|
|
|
|
@include media-breakpoint-down(md) {
|
|
|
|
display: block;
|
|
|
|
overflow-x: auto;
|
|
|
|
-ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
|
|
|
|
}
|
2015-04-16 14:57:49 -07:00
|
|
|
|
|
|
|
// Cells
|
|
|
|
> thead,
|
|
|
|
> tbody,
|
|
|
|
> tfoot {
|
|
|
|
> tr {
|
|
|
|
> th,
|
|
|
|
> td {
|
|
|
|
padding: $table-cell-padding;
|
|
|
|
vertical-align: top;
|
|
|
|
border: 1px solid $table-border-color;
|
2015-08-05 23:19:15 -07:00
|
|
|
|
|
|
|
> p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2015-04-16 14:57:49 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Prevent breaking of code (e.g., Grunt tasks list)
|
|
|
|
td:first-child > code {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Docs sections
|
|
|
|
//
|
|
|
|
|
|
|
|
.bd-content {
|
2015-08-05 17:47:45 -07:00
|
|
|
> h2:not(:first-child) {
|
2015-04-16 14:57:49 -07:00
|
|
|
margin-top: 3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
> h3 {
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
}
|
2015-04-16 16:56:40 -07:00
|
|
|
|
|
|
|
> ul li,
|
|
|
|
> ol li {
|
|
|
|
margin-bottom: .25rem;
|
|
|
|
}
|
2016-09-04 22:04:58 -07:00
|
|
|
|
2017-05-27 18:47:45 -07:00
|
|
|
@include media-breakpoint-up(lg) {
|
2016-09-04 22:04:58 -07:00
|
|
|
> ul,
|
|
|
|
> ol,
|
|
|
|
> p {
|
|
|
|
max-width: 80%;
|
|
|
|
}
|
|
|
|
}
|
2015-04-16 14:57:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.bd-title {
|
2016-09-05 22:41:10 -07:00
|
|
|
margin-top: 1rem;
|
2017-05-27 17:37:34 -07:00
|
|
|
margin-bottom: .5rem;
|
2016-09-04 22:04:58 -07:00
|
|
|
font-weight: 300;
|
|
|
|
|
2015-04-16 14:57:49 -07:00
|
|
|
@include media-breakpoint-up(sm) {
|
2015-08-05 17:47:45 -07:00
|
|
|
font-size: 3rem;
|
2017-05-27 17:37:34 -07:00
|
|
|
}
|
|
|
|
}
|
2015-04-16 14:57:49 -07:00
|
|
|
|
2017-05-27 17:37:34 -07:00
|
|
|
.bd-lead {
|
2017-05-28 18:00:38 -07:00
|
|
|
font-size: 1.125rem;
|
|
|
|
font-weight: 300;
|
|
|
|
|
2017-05-27 17:37:34 -07:00
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
max-width: 80%;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
font-size: 1.5rem;
|
2015-04-16 14:57:49 -07:00
|
|
|
}
|
|
|
|
}
|