2019-08-07 16:26:04 +02:00
|
|
|
// stylelint-disable no-duplicate-selectors
|
2016-02-06 21:27:44 +01:00
|
|
|
|
2015-04-16 23:57:49 +02:00
|
|
|
//
|
|
|
|
// Grid examples
|
|
|
|
//
|
|
|
|
|
2015-04-23 10:30:55 +02:00
|
|
|
.bd-example-row {
|
2016-02-06 19:51:59 +01:00
|
|
|
.row {
|
2016-02-06 09:47:19 +01:00
|
|
|
> .col,
|
2015-04-23 10:30:55 +02:00
|
|
|
> [class^="col-"] {
|
|
|
|
padding-top: .75rem;
|
|
|
|
padding-bottom: .75rem;
|
2017-10-22 23:00:00 +02:00
|
|
|
background-color: rgba(86, 61, 124, .15);
|
|
|
|
border: 1px solid rgba(86, 61, 124, .2);
|
2015-04-23 10:30:55 +02:00
|
|
|
}
|
|
|
|
}
|
2016-02-06 10:30:31 +01:00
|
|
|
|
2017-10-22 23:17:28 +02:00
|
|
|
.row + .row {
|
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
2016-02-06 10:30:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.bd-example-row-flex-cols .row {
|
|
|
|
min-height: 10rem;
|
2017-10-22 23:00:00 +02:00
|
|
|
background-color: rgba(255, 0, 0, .1);
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|
|
|
|
|
2016-12-23 20:48:38 +01:00
|
|
|
.bd-highlight {
|
|
|
|
background-color: rgba($bd-purple, .15);
|
|
|
|
border: 1px solid rgba($bd-purple, .15);
|
|
|
|
}
|
|
|
|
|
2019-07-22 02:38:36 +02:00
|
|
|
.bd-example-responsive-containers {
|
|
|
|
[class^="container"] {
|
|
|
|
padding-top: .75rem;
|
|
|
|
padding-bottom: .75rem;
|
|
|
|
background-color: rgba(86, 61, 124, .15);
|
|
|
|
border: 1px solid rgba(86, 61, 124, .2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-25 20:12:02 +01:00
|
|
|
// Grid mixins
|
|
|
|
.example-container {
|
|
|
|
width: 800px;
|
|
|
|
@include make-container();
|
|
|
|
}
|
|
|
|
|
|
|
|
.example-row {
|
|
|
|
@include make-row();
|
|
|
|
}
|
|
|
|
|
|
|
|
.example-content-main {
|
|
|
|
@include make-col-ready();
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
@include make-col(6);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
|
|
@include make-col(8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.example-content-secondary {
|
|
|
|
@include make-col-ready();
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
@include make-col(6);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
|
|
@include make-col(4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-16 23:57:49 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Docs examples
|
|
|
|
//
|
|
|
|
|
|
|
|
.bd-example {
|
|
|
|
position: relative;
|
|
|
|
padding: 1rem;
|
2017-12-28 19:47:34 +01:00
|
|
|
margin: 1rem (-$grid-gutter-width / 2) 0;
|
2018-03-12 17:46:35 +01:00
|
|
|
border: solid $gray-100;
|
2015-04-16 23:57:49 +02:00
|
|
|
border-width: .2rem 0 0;
|
|
|
|
@include clearfix();
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
2016-01-04 03:27:54 +01:00
|
|
|
padding: 1.5rem;
|
2015-04-16 23:57:49 +02:00
|
|
|
margin-right: 0;
|
2016-01-04 03:17:58 +01:00
|
|
|
margin-left: 0;
|
2015-04-16 23:57:49 +02:00
|
|
|
border-width: .2rem;
|
|
|
|
}
|
|
|
|
|
2015-08-11 08:07:50 +02:00
|
|
|
+ .highlight,
|
2015-10-13 23:50:42 +02:00
|
|
|
+ .clipboard + .highlight {
|
2015-04-23 10:30:55 +02:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2015-04-16 23:57:49 +02:00
|
|
|
+ p {
|
|
|
|
margin-top: 2rem;
|
|
|
|
}
|
|
|
|
|
2015-08-18 08:44:17 +02:00
|
|
|
> .form-control {
|
|
|
|
+ .form-control {
|
|
|
|
margin-top: .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-16 23:57:49 +02:00
|
|
|
> .nav + .nav,
|
|
|
|
> .alert + .alert,
|
2015-04-19 03:12:10 +02:00
|
|
|
> .navbar + .navbar,
|
2019-06-06 08:04:48 +02:00
|
|
|
> .progress + .progress {
|
2015-04-16 23:57:49 +02:00
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
|
|
|
|
2019-06-06 08:04:48 +02:00
|
|
|
> .dropdown-menu {
|
2015-04-16 23:57:49 +02:00
|
|
|
position: static;
|
|
|
|
display: block;
|
|
|
|
}
|
2016-02-09 10:12:58 +01:00
|
|
|
|
|
|
|
> .form-group:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Typography
|
2017-10-22 23:17:28 +02:00
|
|
|
.bd-example-type {
|
|
|
|
.table {
|
|
|
|
td {
|
|
|
|
padding: 1rem 0;
|
|
|
|
border-color: #eee;
|
|
|
|
}
|
|
|
|
tr:first-child td {
|
|
|
|
border-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Images
|
2018-11-08 18:33:02 +01:00
|
|
|
.bd-example {
|
|
|
|
> svg + svg,
|
|
|
|
> img + img {
|
2015-04-16 23:57:49 +02:00
|
|
|
margin-left: .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Buttons
|
2017-10-22 23:17:28 +02:00
|
|
|
.bd-example {
|
2019-01-13 20:23:55 +01:00
|
|
|
> .btn,
|
2017-10-22 23:17:28 +02:00
|
|
|
> .btn-group {
|
|
|
|
margin-top: .25rem;
|
|
|
|
margin-bottom: .25rem;
|
|
|
|
}
|
|
|
|
> .btn-toolbar + .btn-toolbar {
|
|
|
|
margin-top: .5rem;
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// List groups
|
|
|
|
.bd-example > .list-group {
|
|
|
|
max-width: 400px;
|
|
|
|
}
|
2019-01-07 02:01:36 +01:00
|
|
|
.bd-example > [class*="list-group-horizontal"] {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
|
|
|
|
// Navbars
|
2016-01-04 03:10:34 +01:00
|
|
|
.bd-example {
|
2017-01-02 20:48:51 +01:00
|
|
|
.fixed-top,
|
|
|
|
.sticky-top {
|
2015-08-18 10:18:21 +02:00
|
|
|
position: static;
|
|
|
|
margin: -1rem -1rem 1rem;
|
|
|
|
}
|
2017-01-02 20:48:51 +01:00
|
|
|
.fixed-bottom {
|
2015-08-18 10:18:21 +02:00
|
|
|
position: static;
|
|
|
|
margin: 1rem -1rem -1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
2017-01-02 20:48:51 +01:00
|
|
|
.fixed-top,
|
|
|
|
.sticky-top {
|
2015-08-18 10:18:21 +02:00
|
|
|
margin: -1.5rem -1.5rem 1rem;
|
|
|
|
}
|
2017-01-02 20:48:51 +01:00
|
|
|
.fixed-bottom {
|
2015-08-18 10:18:21 +02:00
|
|
|
margin: 1rem -1.5rem -1.5rem;
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Pagination
|
|
|
|
.bd-example .pagination {
|
|
|
|
margin-top: .5rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Example modals
|
2017-10-22 23:17:28 +02:00
|
|
|
.modal {
|
|
|
|
z-index: 1072;
|
|
|
|
|
|
|
|
.tooltip,
|
|
|
|
.popover {
|
|
|
|
z-index: 1073;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-backdrop {
|
|
|
|
z-index: 1071;
|
|
|
|
}
|
|
|
|
|
2015-04-16 23:57:49 +02:00
|
|
|
.bd-example-modal {
|
2016-12-24 23:04:11 +01:00
|
|
|
background-color: #fafafa;
|
|
|
|
|
|
|
|
.modal {
|
|
|
|
position: relative;
|
|
|
|
top: auto;
|
|
|
|
right: auto;
|
|
|
|
bottom: auto;
|
|
|
|
left: auto;
|
|
|
|
z-index: 1;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-dialog {
|
|
|
|
left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Tooltips
|
2015-11-24 09:15:17 +01:00
|
|
|
.tooltip-demo a {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2015-04-16 23:57:49 +02:00
|
|
|
// Scrollspy demo on fixed height div
|
|
|
|
.scrollspy-example {
|
|
|
|
position: relative;
|
|
|
|
height: 200px;
|
|
|
|
margin-top: .5rem;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2017-04-02 11:21:04 +02:00
|
|
|
.scrollspy-example-2 {
|
|
|
|
position: relative;
|
|
|
|
height: 350px;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2016-11-27 01:44:16 +01:00
|
|
|
.bd-example-border-utils {
|
2017-06-26 03:39:00 +02:00
|
|
|
[class^="border"] {
|
2016-11-27 01:44:16 +01:00
|
|
|
display: inline-block;
|
2017-06-26 03:39:00 +02:00
|
|
|
width: 5rem;
|
|
|
|
height: 5rem;
|
2016-11-27 01:44:16 +01:00
|
|
|
margin: .25rem;
|
|
|
|
background-color: #f5f5f5;
|
2018-01-02 05:51:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bd-example-border-utils-0 {
|
|
|
|
[class^="border"] {
|
|
|
|
border: 1px solid $border-color;
|
2016-11-27 01:44:16 +01:00
|
|
|
}
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Code snippets
|
|
|
|
//
|
|
|
|
|
|
|
|
.highlight {
|
|
|
|
padding: 1rem;
|
2017-08-14 01:44:52 +02:00
|
|
|
margin-top: 1rem;
|
|
|
|
margin-bottom: 1rem;
|
2018-03-12 17:46:35 +01:00
|
|
|
background-color: $gray-100;
|
2017-01-03 21:53:01 +01:00
|
|
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
2015-04-16 23:57:49 +02:00
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
padding: 1.5rem;
|
2017-08-14 01:44:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bd-content .highlight {
|
|
|
|
margin-right: (-$grid-gutter-width / 2);
|
|
|
|
margin-left: (-$grid-gutter-width / 2);
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
2015-04-16 23:57:49 +02:00
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-08-14 01:44:52 +02:00
|
|
|
|
2017-10-22 23:17:28 +02:00
|
|
|
.highlight {
|
|
|
|
pre {
|
|
|
|
padding: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
pre code {
|
2019-02-07 23:32:05 +01:00
|
|
|
@include font-size(inherit);
|
2017-10-22 23:17:28 +02:00
|
|
|
color: $gray-900; // Effectively the base text color
|
|
|
|
}
|
2015-04-16 23:57:49 +02:00
|
|
|
}
|