2015-04-16 21:57:49 +00:00
|
|
|
//
|
|
|
|
// Grid examples
|
|
|
|
//
|
|
|
|
|
2015-04-23 08:30:55 +00:00
|
|
|
.bd-example-row {
|
2016-02-06 18:51:59 +00:00
|
|
|
.row {
|
2016-02-06 08:47:19 +00:00
|
|
|
> .col,
|
2015-04-23 08:30:55 +00:00
|
|
|
> [class^="col-"] {
|
|
|
|
padding-top: .75rem;
|
|
|
|
padding-bottom: .75rem;
|
2019-09-28 14:14:33 +00:00
|
|
|
background-color: rgba(39, 41, 43, .03);
|
|
|
|
border: 1px solid rgba(39, 41, 43, .1);
|
2015-04-23 08:30:55 +00:00
|
|
|
}
|
|
|
|
}
|
2016-02-06 09:30:31 +00:00
|
|
|
|
2017-10-22 21:17:28 +00:00
|
|
|
.row + .row {
|
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
2016-02-06 09:30:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.bd-example-row-flex-cols .row {
|
|
|
|
min-height: 10rem;
|
2017-10-22 21:00:00 +00:00
|
|
|
background-color: rgba(255, 0, 0, .1);
|
2015-04-16 21:57:49 +00:00
|
|
|
}
|
|
|
|
|
2016-12-23 19:48:38 +00:00
|
|
|
.bd-highlight {
|
|
|
|
background-color: rgba($bd-purple, .15);
|
|
|
|
border: 1px solid rgba($bd-purple, .15);
|
|
|
|
}
|
|
|
|
|
2017-03-25 19:12:02 +00: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 21:57:49 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Docs examples
|
|
|
|
//
|
|
|
|
|
|
|
|
.bd-example {
|
|
|
|
position: relative;
|
|
|
|
padding: 1rem;
|
2017-12-28 18:47:34 +00:00
|
|
|
margin: 1rem (-$grid-gutter-width / 2) 0;
|
2020-03-04 12:32:45 +00:00
|
|
|
border: solid $gray-300;
|
|
|
|
border-width: 1px 0 0;
|
2015-04-16 21:57:49 +00:00
|
|
|
@include clearfix();
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
2016-01-04 02:27:54 +00:00
|
|
|
padding: 1.5rem;
|
2015-04-16 21:57:49 +00:00
|
|
|
margin-right: 0;
|
2016-01-04 02:17:58 +00:00
|
|
|
margin-left: 0;
|
2020-03-04 12:32:45 +00:00
|
|
|
border-width: 1px;
|
|
|
|
@include border-top-radius(.25rem);
|
2015-04-16 21:57:49 +00:00
|
|
|
|
2020-03-04 12:32:45 +00:00
|
|
|
+ .bd-clipboard + .highlight {
|
|
|
|
@include border-bottom-radius(.25rem);
|
|
|
|
}
|
2015-04-23 08:30:55 +00:00
|
|
|
}
|
|
|
|
|
2015-04-16 21:57:49 +00:00
|
|
|
+ p {
|
|
|
|
margin-top: 2rem;
|
|
|
|
}
|
|
|
|
|
2015-08-18 06:44:17 +00:00
|
|
|
> .form-control {
|
|
|
|
+ .form-control {
|
|
|
|
margin-top: .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-16 21:57:49 +00:00
|
|
|
> .nav + .nav,
|
|
|
|
> .alert + .alert,
|
2015-04-19 01:12:10 +00:00
|
|
|
> .navbar + .navbar,
|
2019-06-06 06:04:48 +00:00
|
|
|
> .progress + .progress {
|
2015-04-16 21:57:49 +00:00
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
|
|
|
|
2019-06-06 06:04:48 +00:00
|
|
|
> .dropdown-menu {
|
2015-04-16 21:57:49 +00:00
|
|
|
position: static;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2020-03-04 12:32:45 +00:00
|
|
|
> :last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Images
|
2018-11-08 17:33:02 +00:00
|
|
|
> svg + svg,
|
|
|
|
> img + img {
|
2015-04-16 21:57:49 +00:00
|
|
|
margin-left: .5rem;
|
|
|
|
}
|
|
|
|
|
2020-03-04 12:32:45 +00:00
|
|
|
// Buttons
|
2019-01-13 19:23:55 +00:00
|
|
|
> .btn,
|
2017-10-22 21:17:28 +00:00
|
|
|
> .btn-group {
|
|
|
|
margin-top: .25rem;
|
|
|
|
margin-bottom: .25rem;
|
|
|
|
}
|
|
|
|
> .btn-toolbar + .btn-toolbar {
|
|
|
|
margin-top: .5rem;
|
|
|
|
}
|
2015-04-16 21:57:49 +00:00
|
|
|
|
2020-03-04 12:32:45 +00:00
|
|
|
// List groups
|
|
|
|
> .list-group {
|
|
|
|
max-width: 400px;
|
|
|
|
}
|
2019-08-30 20:32:12 +00:00
|
|
|
|
2020-03-04 12:32:45 +00:00
|
|
|
> [class*="list-group-horizontal"] {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2015-04-16 21:57:49 +00:00
|
|
|
|
2020-03-04 12:32:45 +00:00
|
|
|
// Navbars
|
2017-01-02 19:48:51 +00:00
|
|
|
.fixed-top,
|
|
|
|
.sticky-top {
|
2015-08-18 08:18:21 +00:00
|
|
|
position: static;
|
|
|
|
margin: -1rem -1rem 1rem;
|
|
|
|
}
|
2019-08-30 20:32:12 +00:00
|
|
|
|
2017-01-02 19:48:51 +00:00
|
|
|
.fixed-bottom {
|
2015-08-18 08:18:21 +00:00
|
|
|
position: static;
|
|
|
|
margin: 1rem -1rem -1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
2017-01-02 19:48:51 +00:00
|
|
|
.fixed-top,
|
|
|
|
.sticky-top {
|
2015-08-18 08:18:21 +00:00
|
|
|
margin: -1.5rem -1.5rem 1rem;
|
|
|
|
}
|
2017-01-02 19:48:51 +00:00
|
|
|
.fixed-bottom {
|
2015-08-18 08:18:21 +00:00
|
|
|
margin: 1rem -1.5rem -1.5rem;
|
|
|
|
}
|
2015-04-16 21:57:49 +00:00
|
|
|
}
|
|
|
|
|
2020-03-04 12:32:45 +00:00
|
|
|
// Pagination
|
|
|
|
.pagination {
|
|
|
|
margin-top: .5rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
2015-04-16 21:57:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.bd-example-modal {
|
2016-12-24 22:04:11 +00:00
|
|
|
background-color: #fafafa;
|
|
|
|
|
|
|
|
.modal {
|
2019-08-30 20:32:12 +00:00
|
|
|
position: static;
|
2016-12-24 22:04:11 +00:00
|
|
|
display: block;
|
|
|
|
}
|
2015-04-16 21:57:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Tooltips
|
2015-11-24 08:15:17 +00:00
|
|
|
.tooltip-demo a {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2015-04-16 21:57:49 +00:00
|
|
|
// Scrollspy demo on fixed height div
|
|
|
|
.scrollspy-example {
|
|
|
|
position: relative;
|
|
|
|
height: 200px;
|
|
|
|
margin-top: .5rem;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2017-04-02 09:21:04 +00:00
|
|
|
.scrollspy-example-2 {
|
|
|
|
position: relative;
|
|
|
|
height: 350px;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2016-11-27 00:44:16 +00:00
|
|
|
.bd-example-border-utils {
|
2017-06-26 01:39:00 +00:00
|
|
|
[class^="border"] {
|
2016-11-27 00:44:16 +00:00
|
|
|
display: inline-block;
|
2017-06-26 01:39:00 +00:00
|
|
|
width: 5rem;
|
|
|
|
height: 5rem;
|
2016-11-27 00:44:16 +00:00
|
|
|
margin: .25rem;
|
|
|
|
background-color: #f5f5f5;
|
2018-01-02 04:51:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bd-example-border-utils-0 {
|
|
|
|
[class^="border"] {
|
|
|
|
border: 1px solid $border-color;
|
2016-11-27 00:44:16 +00:00
|
|
|
}
|
|
|
|
}
|
2015-04-16 21:57:49 +00:00
|
|
|
|
2020-02-14 06:22:10 +00:00
|
|
|
.bd-example-rounded-utils {
|
|
|
|
[class*="rounded"] {
|
|
|
|
margin: .25rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-21 02:42:41 +00:00
|
|
|
.bd-example-position-utils {
|
|
|
|
position: relative;
|
|
|
|
padding: 3em;
|
|
|
|
|
|
|
|
.position-relative {
|
|
|
|
height: 200px;
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.position-absolute {
|
|
|
|
width: 2em;
|
|
|
|
height: 2em;
|
|
|
|
background-color: $dark;
|
|
|
|
@include border-radius();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bd-example-position-examples {
|
|
|
|
&::after {
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-16 21:57:49 +00:00
|
|
|
//
|
|
|
|
// Code snippets
|
|
|
|
//
|
|
|
|
|
|
|
|
.highlight {
|
|
|
|
padding: 1rem;
|
2017-08-13 23:44:52 +00:00
|
|
|
margin-bottom: 1rem;
|
2018-03-12 16:46:35 +00:00
|
|
|
background-color: $gray-100;
|
2017-01-03 20:53:01 +00:00
|
|
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
2015-04-16 21:57:49 +00:00
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
2020-03-04 12:32:45 +00:00
|
|
|
padding: 1rem 1.5rem;
|
2017-08-13 23:44:52 +00:00
|
|
|
}
|
|
|
|
|
2017-10-22 21:17:28 +00:00
|
|
|
pre {
|
|
|
|
padding: 0;
|
2020-09-02 06:17:53 +00:00
|
|
|
margin-top: .65rem;
|
|
|
|
margin-bottom: .65rem;
|
2017-10-22 21:17:28 +00:00
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
}
|
2019-08-30 20:32:12 +00:00
|
|
|
|
2017-10-22 21:17:28 +00:00
|
|
|
pre code {
|
2019-02-07 22:32:05 +00:00
|
|
|
@include font-size(inherit);
|
2017-10-22 21:17:28 +00:00
|
|
|
color: $gray-900; // Effectively the base text color
|
|
|
|
}
|
2015-04-16 21:57:49 +00:00
|
|
|
}
|
2020-03-04 12:32:45 +00:00
|
|
|
|
|
|
|
.bd-content .highlight {
|
|
|
|
margin-right: (-$grid-gutter-width / 2);
|
|
|
|
margin-left: (-$grid-gutter-width / 2);
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|