2017-10-04 13:11:00 +02:00
|
|
|
// stylelint-disable no-duplicate-selectors, selector-max-combinators, selector-max-compound-selectors, selector-max-type, selector-no-qualifying-type
|
2016-01-04 03:17:58 +01:00
|
|
|
|
2015-08-18 06:31:17 +02:00
|
|
|
//
|
|
|
|
// Automatically style Markdown-based tables like a Bootstrap `.table`.
|
|
|
|
//
|
|
|
|
|
2015-08-06 08:19:15 +02:00
|
|
|
.bd-content {
|
2017-06-17 19:28:19 +02:00
|
|
|
order: 1;
|
|
|
|
|
2017-05-28 02:37:25 +02:00
|
|
|
// Hack the sticky header
|
2017-06-15 06:25:27 +02:00
|
|
|
> h2[id],
|
|
|
|
> h3[id],
|
|
|
|
> h4[id] {
|
2017-08-09 06:45:33 +02:00
|
|
|
pointer-events: none;
|
|
|
|
|
2017-08-09 17:24:34 +02:00
|
|
|
> div,
|
2017-08-09 06:45:33 +02:00
|
|
|
> a {
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
2017-05-28 02:37:25 +02:00
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
height: 6rem;
|
|
|
|
margin-top: -6rem;
|
|
|
|
visibility: hidden;
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-16 23:57:49 +02:00
|
|
|
> table {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
2017-03-05 21:20:44 +01:00
|
|
|
margin-bottom: 1rem;
|
2017-03-20 01:37:38 +01: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 23:57:49 +02:00
|
|
|
|
|
|
|
// Cells
|
|
|
|
> thead,
|
|
|
|
> tbody,
|
|
|
|
> tfoot {
|
|
|
|
> tr {
|
|
|
|
> th,
|
|
|
|
> td {
|
|
|
|
padding: $table-cell-padding;
|
|
|
|
vertical-align: top;
|
|
|
|
border: 1px solid $table-border-color;
|
2015-08-06 08:19:15 +02:00
|
|
|
|
|
|
|
> p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Prevent breaking of code (e.g., Grunt tasks list)
|
|
|
|
td:first-child > code {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Docs sections
|
|
|
|
//
|
|
|
|
|
|
|
|
.bd-content {
|
2015-08-06 02:47:45 +02:00
|
|
|
> h2:not(:first-child) {
|
2015-04-16 23:57:49 +02:00
|
|
|
margin-top: 3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
> h3 {
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
}
|
2015-04-17 01:56:40 +02:00
|
|
|
|
|
|
|
> ul li,
|
|
|
|
> ol li {
|
|
|
|
margin-bottom: .25rem;
|
|
|
|
}
|
2016-09-05 07:04:58 +02:00
|
|
|
|
2017-05-28 03:47:45 +02:00
|
|
|
@include media-breakpoint-up(lg) {
|
2016-09-05 07:04:58 +02:00
|
|
|
> ul,
|
|
|
|
> ol,
|
|
|
|
> p {
|
|
|
|
max-width: 80%;
|
|
|
|
}
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.bd-title {
|
2016-09-06 07:41:10 +02:00
|
|
|
margin-top: 1rem;
|
2017-05-28 02:37:34 +02:00
|
|
|
margin-bottom: .5rem;
|
2016-09-05 07:04:58 +02:00
|
|
|
font-weight: 300;
|
|
|
|
|
2015-04-16 23:57:49 +02:00
|
|
|
@include media-breakpoint-up(sm) {
|
2015-08-06 02:47:45 +02:00
|
|
|
font-size: 3rem;
|
2017-05-28 02:37:34 +02:00
|
|
|
}
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
|
2017-05-28 02:37:34 +02:00
|
|
|
.bd-lead {
|
2017-05-29 03:00:38 +02:00
|
|
|
font-size: 1.125rem;
|
|
|
|
font-weight: 300;
|
|
|
|
|
2017-05-28 02:37:34 +02:00
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
max-width: 80%;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
font-size: 1.5rem;
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|
|
|
|
}
|
2017-08-08 06:35:43 +02:00
|
|
|
|
|
|
|
.bd-text-purple { color: $bd-purple; }
|
|
|
|
.bd-text-purple-bright { color: $bd-purple-bright; }
|