mirror of
https://github.com/TeamPiped/hugo-whisper-theme.git
synced 2024-08-14 23:57:00 +00:00
update to bootstrap 4.3.1
This commit is contained in:
parent
2e1cee539f
commit
d39f310357
81 changed files with 4132 additions and 1466 deletions
|
@ -27,7 +27,7 @@
|
||||||
// Expand the right padding and account for the close button's positioning.
|
// Expand the right padding and account for the close button's positioning.
|
||||||
|
|
||||||
.alert-dismissible {
|
.alert-dismissible {
|
||||||
padding-right: ($close-font-size + $alert-padding-x * 2);
|
padding-right: $close-font-size + $alert-padding-x * 2;
|
||||||
|
|
||||||
// Adjust close link position
|
// Adjust close link position
|
||||||
.close {
|
.close {
|
||||||
|
|
|
@ -6,13 +6,20 @@
|
||||||
.badge {
|
.badge {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: $badge-padding-y $badge-padding-x;
|
padding: $badge-padding-y $badge-padding-x;
|
||||||
font-size: $badge-font-size;
|
@include font-size($badge-font-size);
|
||||||
font-weight: $badge-font-weight;
|
font-weight: $badge-font-weight;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
@include border-radius($badge-border-radius);
|
@include border-radius($badge-border-radius);
|
||||||
|
@include transition($badge-transition);
|
||||||
|
|
||||||
|
@at-root a#{&} {
|
||||||
|
@include hover-focus {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Empty badges collapse automatically
|
// Empty badges collapse automatically
|
||||||
&:empty {
|
&:empty {
|
||||||
|
|
|
@ -5,17 +5,20 @@
|
||||||
margin-bottom: $breadcrumb-margin-bottom;
|
margin-bottom: $breadcrumb-margin-bottom;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
background-color: $breadcrumb-bg;
|
background-color: $breadcrumb-bg;
|
||||||
@include border-radius($border-radius);
|
@include border-radius($breadcrumb-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb-item {
|
.breadcrumb-item {
|
||||||
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
||||||
+ .breadcrumb-item::before {
|
+ .breadcrumb-item {
|
||||||
display: inline-block; // Suppress underlining of the separator in modern browsers
|
|
||||||
padding-right: $breadcrumb-item-padding;
|
|
||||||
padding-left: $breadcrumb-item-padding;
|
padding-left: $breadcrumb-item-padding;
|
||||||
color: $breadcrumb-divider-color;
|
|
||||||
content: "#{$breadcrumb-divider}";
|
&::before {
|
||||||
|
display: inline-block; // Suppress underlining of the separator in modern browsers
|
||||||
|
padding-right: $breadcrumb-item-padding;
|
||||||
|
color: $breadcrumb-divider-color;
|
||||||
|
content: $breadcrumb-divider;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
|
// IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
> .btn {
|
> .btn {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex: 0 1 auto;
|
flex: 1 1 auto;
|
||||||
|
|
||||||
// Bring the hover, focused, and "active" buttons to the front to overlay
|
// Bring the hover, focused, and "active" buttons to the front to overlay
|
||||||
// the borders properly
|
// the borders properly
|
||||||
|
@ -22,14 +22,6 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prevent double borders when buttons are next to each other
|
|
||||||
.btn + .btn,
|
|
||||||
.btn + .btn-group,
|
|
||||||
.btn-group + .btn,
|
|
||||||
.btn-group + .btn-group {
|
|
||||||
margin-left: -$btn-border-width;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Optional: Group multiple button groups together for a toolbar
|
// Optional: Group multiple button groups together for a toolbar
|
||||||
|
@ -44,8 +36,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group {
|
.btn-group {
|
||||||
> .btn:first-child {
|
// Prevent double borders when buttons are next to each other
|
||||||
margin-left: 0;
|
> .btn:not(:first-child),
|
||||||
|
> .btn-group:not(:first-child) {
|
||||||
|
margin-left: -$btn-border-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset rounded corners
|
// Reset rounded corners
|
||||||
|
@ -76,9 +70,15 @@
|
||||||
padding-right: $btn-padding-x * .75;
|
padding-right: $btn-padding-x * .75;
|
||||||
padding-left: $btn-padding-x * .75;
|
padding-left: $btn-padding-x * .75;
|
||||||
|
|
||||||
&::after {
|
&::after,
|
||||||
|
.dropup &::after,
|
||||||
|
.dropright &::after {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropleft &::before {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-sm + .dropdown-toggle-split {
|
.btn-sm + .dropdown-toggle-split {
|
||||||
|
@ -113,17 +113,14 @@
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.btn,
|
> .btn,
|
||||||
.btn-group {
|
> .btn-group {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .btn + .btn,
|
> .btn:not(:first-child),
|
||||||
> .btn + .btn-group,
|
> .btn-group:not(:first-child) {
|
||||||
> .btn-group + .btn,
|
|
||||||
> .btn-group + .btn-group {
|
|
||||||
margin-top: -$btn-border-width;
|
margin-top: -$btn-border-width;
|
||||||
margin-left: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset rounded corners
|
// Reset rounded corners
|
||||||
|
|
|
@ -6,23 +6,19 @@
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
font-family: $btn-font-family;
|
||||||
font-weight: $btn-font-weight;
|
font-weight: $btn-font-weight;
|
||||||
|
color: $body-color;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
background-color: transparent;
|
||||||
border: $btn-border-width solid transparent;
|
border: $btn-border-width solid transparent;
|
||||||
@include button-size(
|
@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
|
||||||
$btn-padding-y,
|
|
||||||
$btn-padding-x,
|
|
||||||
$font-size-base,
|
|
||||||
$btn-line-height,
|
|
||||||
$btn-border-radius
|
|
||||||
);
|
|
||||||
@include transition($btn-transition);
|
@include transition($btn-transition);
|
||||||
|
|
||||||
// Share hover and focus styles
|
@include hover {
|
||||||
@include hover-focus {
|
color: $body-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,14 +35,8 @@
|
||||||
@include box-shadow(none);
|
@include box-shadow(none);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Opinionated: add "hand" cursor to non-disabled .btn elements
|
|
||||||
&:not(:disabled):not(.disabled) {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:not(:disabled):not(.disabled):active,
|
&:not(:disabled):not(.disabled):active,
|
||||||
&:not(:disabled):not(.disabled).active {
|
&:not(:disabled):not(.disabled).active {
|
||||||
background-image: none;
|
|
||||||
@include box-shadow($btn-active-box-shadow);
|
@include box-shadow($btn-active-box-shadow);
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
|
@ -61,6 +51,7 @@ fieldset:disabled a.btn {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Alternate buttons
|
// Alternate buttons
|
||||||
//
|
//
|
||||||
|
@ -77,62 +68,51 @@ fieldset:disabled a.btn {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Link buttons
|
// Link buttons
|
||||||
//
|
//
|
||||||
|
|
||||||
// Make a button look and behave like a link
|
// Make a button look and behave like a link
|
||||||
.btn-link {
|
.btn-link {
|
||||||
font-weight: 400;
|
font-weight: $font-weight-normal;
|
||||||
color: $link-color;
|
color: $link-color;
|
||||||
background-color: transparent;
|
text-decoration: $link-decoration;
|
||||||
|
|
||||||
@include hover {
|
@include hover {
|
||||||
color: $link-hover-color;
|
color: $link-hover-color;
|
||||||
text-decoration: $link-hover-decoration;
|
text-decoration: $link-hover-decoration;
|
||||||
background-color: transparent;
|
|
||||||
border-color: transparent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus,
|
&:focus,
|
||||||
&.focus {
|
&.focus {
|
||||||
text-decoration: $link-hover-decoration;
|
text-decoration: $link-hover-decoration;
|
||||||
border-color: transparent;
|
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:disabled,
|
&:disabled,
|
||||||
&.disabled {
|
&.disabled {
|
||||||
color: $btn-link-disabled-color;
|
color: $btn-link-disabled-color;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// No need for an active state here
|
// No need for an active state here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Button Sizes
|
// Button Sizes
|
||||||
//
|
//
|
||||||
|
|
||||||
.btn-lg {
|
.btn-lg {
|
||||||
@include button-size(
|
@include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
|
||||||
$btn-padding-y-lg,
|
|
||||||
$btn-padding-x-lg,
|
|
||||||
$font-size-lg,
|
|
||||||
$btn-line-height-lg,
|
|
||||||
$btn-border-radius-lg
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-sm {
|
.btn-sm {
|
||||||
@include button-size(
|
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
|
||||||
$btn-padding-y-sm,
|
|
||||||
$btn-padding-x-sm,
|
|
||||||
$font-size-sm,
|
|
||||||
$btn-line-height-sm,
|
|
||||||
$btn-border-radius-sm
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Block button
|
// Block button
|
||||||
//
|
//
|
||||||
|
@ -148,9 +128,9 @@ fieldset:disabled a.btn {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Specificity overrides
|
// Specificity overrides
|
||||||
input[type='submit'],
|
input[type="submit"],
|
||||||
input[type='reset'],
|
input[type="reset"],
|
||||||
input[type='button'] {
|
input[type="button"] {
|
||||||
&.btn-block {
|
&.btn-block {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-width: 0;
|
min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
background-color: $card-bg;
|
background-color: $card-bg;
|
||||||
background-clip: border-box;
|
background-clip: border-box;
|
||||||
|
@ -36,6 +36,7 @@
|
||||||
// as much space as possible, ensuring footers are aligned to the bottom.
|
// as much space as possible, ensuring footers are aligned to the bottom.
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
padding: $card-spacer-x;
|
padding: $card-spacer-x;
|
||||||
|
color: $card-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
|
@ -43,7 +44,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-subtitle {
|
.card-subtitle {
|
||||||
margin-top: -($card-spacer-y / 2);
|
margin-top: -$card-spacer-y / 2;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,6 +69,7 @@
|
||||||
.card-header {
|
.card-header {
|
||||||
padding: $card-spacer-y $card-spacer-x;
|
padding: $card-spacer-y $card-spacer-x;
|
||||||
margin-bottom: 0; // Removes the default margin-bottom of <hN>
|
margin-bottom: 0; // Removes the default margin-bottom of <hN>
|
||||||
|
color: $card-cap-color;
|
||||||
background-color: $card-cap-bg;
|
background-color: $card-cap-bg;
|
||||||
border-bottom: $card-border-width solid $card-border-color;
|
border-bottom: $card-border-width solid $card-border-color;
|
||||||
|
|
||||||
|
@ -98,15 +100,15 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
.card-header-tabs {
|
.card-header-tabs {
|
||||||
margin-right: -($card-spacer-x / 2);
|
margin-right: -$card-spacer-x / 2;
|
||||||
margin-bottom: -$card-spacer-y;
|
margin-bottom: -$card-spacer-y;
|
||||||
margin-left: -($card-spacer-x / 2);
|
margin-left: -$card-spacer-x / 2;
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-header-pills {
|
.card-header-pills {
|
||||||
margin-right: -($card-spacer-x / 2);
|
margin-right: -$card-spacer-x / 2;
|
||||||
margin-left: -($card-spacer-x / 2);
|
margin-left: -$card-spacer-x / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Card image
|
// Card image
|
||||||
|
@ -153,7 +155,7 @@
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
display: flex;
|
display: flex;
|
||||||
// Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
|
// Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
||||||
flex: 1 0 0%;
|
flex: 1 0 0%;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-right: $card-deck-margin;
|
margin-right: $card-deck-margin;
|
||||||
|
@ -183,7 +185,7 @@
|
||||||
// The child selector allows nested `.card` within `.card-group`
|
// The child selector allows nested `.card` within `.card-group`
|
||||||
// to display properly.
|
// to display properly.
|
||||||
> .card {
|
> .card {
|
||||||
// Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
|
// Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
||||||
flex: 1 0 0%;
|
flex: 1 0 0%;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
@ -194,55 +196,35 @@
|
||||||
|
|
||||||
// Handle rounded corners
|
// Handle rounded corners
|
||||||
@if $enable-rounded {
|
@if $enable-rounded {
|
||||||
&:first-child {
|
&:not(:last-child) {
|
||||||
@include border-right-radius(0);
|
@include border-right-radius(0);
|
||||||
|
|
||||||
.card-img-top,
|
.card-img-top,
|
||||||
.card-header {
|
.card-header {
|
||||||
|
// stylelint-disable-next-line property-blacklist
|
||||||
border-top-right-radius: 0;
|
border-top-right-radius: 0;
|
||||||
}
|
}
|
||||||
.card-img-bottom,
|
.card-img-bottom,
|
||||||
.card-footer {
|
.card-footer {
|
||||||
|
// stylelint-disable-next-line property-blacklist
|
||||||
border-bottom-right-radius: 0;
|
border-bottom-right-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:not(:first-child) {
|
||||||
@include border-left-radius(0);
|
@include border-left-radius(0);
|
||||||
|
|
||||||
.card-img-top,
|
.card-img-top,
|
||||||
.card-header {
|
.card-header {
|
||||||
|
// stylelint-disable-next-line property-blacklist
|
||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
}
|
}
|
||||||
.card-img-bottom,
|
.card-img-bottom,
|
||||||
.card-footer {
|
.card-footer {
|
||||||
|
// stylelint-disable-next-line property-blacklist
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:only-child {
|
|
||||||
@include border-radius($card-border-radius);
|
|
||||||
|
|
||||||
.card-img-top,
|
|
||||||
.card-header {
|
|
||||||
@include border-top-radius($card-border-radius);
|
|
||||||
}
|
|
||||||
.card-img-bottom,
|
|
||||||
.card-footer {
|
|
||||||
@include border-bottom-radius($card-border-radius);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:not(:first-child):not(:last-child):not(:only-child) {
|
|
||||||
@include border-radius(0);
|
|
||||||
|
|
||||||
.card-img-top,
|
|
||||||
.card-img-bottom,
|
|
||||||
.card-header,
|
|
||||||
.card-footer {
|
|
||||||
@include border-radius(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -261,6 +243,8 @@
|
||||||
@include media-breakpoint-up(sm) {
|
@include media-breakpoint-up(sm) {
|
||||||
column-count: $card-columns-count;
|
column-count: $card-columns-count;
|
||||||
column-gap: $card-columns-gap;
|
column-gap: $card-columns-gap;
|
||||||
|
orphans: 1;
|
||||||
|
widows: 1;
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
display: inline-block; // Don't let them vertically span multiple columns
|
display: inline-block; // Don't let them vertically span multiple columns
|
||||||
|
@ -268,3 +252,38 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Accordion
|
||||||
|
//
|
||||||
|
|
||||||
|
.accordion {
|
||||||
|
> .card {
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
&:not(:first-of-type) {
|
||||||
|
.card-header:first-child {
|
||||||
|
@include border-radius(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:last-of-type) {
|
||||||
|
border-bottom: 0;
|
||||||
|
@include border-radius(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:first-of-type {
|
||||||
|
border-bottom: 0;
|
||||||
|
@include border-bottom-radius(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-of-type {
|
||||||
|
@include border-top-radius(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-header {
|
||||||
|
margin-bottom: -$card-border-width;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,22 +1,39 @@
|
||||||
// Wrapper for the slide container and indicators
|
// Notes on the classes:
|
||||||
|
//
|
||||||
|
// 1. .carousel.pointer-event should ideally be pan-y (to allow for users to scroll vertically)
|
||||||
|
// even when their scroll action started on a carousel, but for compatibility (with Firefox)
|
||||||
|
// we're preventing all actions instead
|
||||||
|
// 2. The .carousel-item-left and .carousel-item-right is used to indicate where
|
||||||
|
// the active slide is heading.
|
||||||
|
// 3. .active.carousel-item is the current slide.
|
||||||
|
// 4. .active.carousel-item-left and .active.carousel-item-right is the current
|
||||||
|
// slide in its in-transition state. Only one of these occurs at a time.
|
||||||
|
// 5. .carousel-item-next.carousel-item-left and .carousel-item-prev.carousel-item-right
|
||||||
|
// is the upcoming slide in transition.
|
||||||
|
|
||||||
.carousel {
|
.carousel {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.carousel.pointer-event {
|
||||||
|
touch-action: pan-y;
|
||||||
|
}
|
||||||
|
|
||||||
.carousel-inner {
|
.carousel-inner {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@include clearfix();
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-item {
|
.carousel-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: none;
|
display: none;
|
||||||
align-items: center;
|
float: left;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@include transition($carousel-transition);
|
margin-right: -100%;
|
||||||
backface-visibility: hidden;
|
backface-visibility: hidden;
|
||||||
perspective: 1000px;
|
@include transition($carousel-transition);
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-item.active,
|
.carousel-item.active,
|
||||||
|
@ -25,37 +42,40 @@
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-item-next,
|
.carousel-item-next:not(.carousel-item-left),
|
||||||
.carousel-item-prev {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// CSS3 transforms when supported by the browser
|
|
||||||
.carousel-item-next.carousel-item-left,
|
|
||||||
.carousel-item-prev.carousel-item-right {
|
|
||||||
transform: translateX(0);
|
|
||||||
|
|
||||||
@supports (transform-style: preserve-3d) {
|
|
||||||
transform: translate3d(0, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.carousel-item-next,
|
|
||||||
.active.carousel-item-right {
|
.active.carousel-item-right {
|
||||||
transform: translateX(100%);
|
transform: translateX(100%);
|
||||||
|
|
||||||
@supports (transform-style: preserve-3d) {
|
|
||||||
transform: translate3d(100%, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-item-prev,
|
.carousel-item-prev:not(.carousel-item-right),
|
||||||
.active.carousel-item-left {
|
.active.carousel-item-left {
|
||||||
transform: translateX(-100%);
|
transform: translateX(-100%);
|
||||||
|
}
|
||||||
|
|
||||||
@supports (transform-style: preserve-3d) {
|
|
||||||
transform: translate3d(-100%, 0, 0);
|
//
|
||||||
|
// Alternate transitions
|
||||||
|
//
|
||||||
|
|
||||||
|
.carousel-fade {
|
||||||
|
.carousel-item {
|
||||||
|
opacity: 0;
|
||||||
|
transition-property: opacity;
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-item.active,
|
||||||
|
.carousel-item-next.carousel-item-left,
|
||||||
|
.carousel-item-prev.carousel-item-right {
|
||||||
|
z-index: 1;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active.carousel-item-left,
|
||||||
|
.active.carousel-item-right {
|
||||||
|
z-index: 0;
|
||||||
|
opacity: 0;
|
||||||
|
@include transition(0s $carousel-transition-duration opacity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,6 +89,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
z-index: 1;
|
||||||
// Use flex for alignment (1-3)
|
// Use flex for alignment (1-3)
|
||||||
display: flex; // 1. allow flex styles
|
display: flex; // 1. allow flex styles
|
||||||
align-items: center; // 2. vertically center contents
|
align-items: center; // 2. vertically center contents
|
||||||
|
@ -77,27 +98,26 @@
|
||||||
color: $carousel-control-color;
|
color: $carousel-control-color;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: $carousel-control-opacity;
|
opacity: $carousel-control-opacity;
|
||||||
// We can't have a transition here because WebKit cancels the carousel
|
@include transition($carousel-control-transition);
|
||||||
// animation if you trip this while in the middle of another animation.
|
|
||||||
|
|
||||||
// Hover/focus state
|
// Hover/focus state
|
||||||
@include hover-focus {
|
@include hover-focus {
|
||||||
color: $carousel-control-color;
|
color: $carousel-control-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
opacity: .9;
|
opacity: $carousel-control-hover-opacity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.carousel-control-prev {
|
.carousel-control-prev {
|
||||||
left: 0;
|
left: 0;
|
||||||
@if $enable-gradients {
|
@if $enable-gradients {
|
||||||
background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
|
background: linear-gradient(90deg, rgba($black, .25), rgba($black, .001));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.carousel-control-next {
|
.carousel-control-next {
|
||||||
right: 0;
|
right: 0;
|
||||||
@if $enable-gradients {
|
@if $enable-gradients {
|
||||||
background: linear-gradient(270deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
|
background: linear-gradient(270deg, rgba($black, .25), rgba($black, .001));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,8 +127,7 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: $carousel-control-icon-width;
|
width: $carousel-control-icon-width;
|
||||||
height: $carousel-control-icon-width;
|
height: $carousel-control-icon-width;
|
||||||
background: transparent no-repeat center center;
|
background: no-repeat 50% / 100% 100%;
|
||||||
background-size: 100% 100%;
|
|
||||||
}
|
}
|
||||||
.carousel-control-prev-icon {
|
.carousel-control-prev-icon {
|
||||||
background-image: $carousel-control-prev-icon-bg;
|
background-image: $carousel-control-prev-icon-bg;
|
||||||
|
@ -126,7 +145,7 @@
|
||||||
.carousel-indicators {
|
.carousel-indicators {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 10px;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 15;
|
z-index: 15;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -138,38 +157,25 @@
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
position: relative;
|
box-sizing: content-box;
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
width: $carousel-indicator-width;
|
width: $carousel-indicator-width;
|
||||||
height: $carousel-indicator-height;
|
height: $carousel-indicator-height;
|
||||||
margin-right: $carousel-indicator-spacer;
|
margin-right: $carousel-indicator-spacer;
|
||||||
margin-left: $carousel-indicator-spacer;
|
margin-left: $carousel-indicator-spacer;
|
||||||
text-indent: -999px;
|
text-indent: -999px;
|
||||||
background-color: rgba($carousel-indicator-active-bg, .5);
|
cursor: pointer;
|
||||||
|
background-color: $carousel-indicator-active-bg;
|
||||||
// Use pseudo classes to increase the hit area by 10px on top and bottom.
|
background-clip: padding-box;
|
||||||
&::before {
|
// Use transparent borders to increase the hit area by 10px on top and bottom.
|
||||||
position: absolute;
|
border-top: $carousel-indicator-hit-area-height solid transparent;
|
||||||
top: -10px;
|
border-bottom: $carousel-indicator-hit-area-height solid transparent;
|
||||||
left: 0;
|
opacity: .5;
|
||||||
display: inline-block;
|
@include transition($carousel-indicator-transition);
|
||||||
width: 100%;
|
|
||||||
height: 10px;
|
|
||||||
content: "";
|
|
||||||
}
|
|
||||||
&::after {
|
|
||||||
position: absolute;
|
|
||||||
bottom: -10px;
|
|
||||||
left: 0;
|
|
||||||
display: inline-block;
|
|
||||||
width: 100%;
|
|
||||||
height: 10px;
|
|
||||||
content: "";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
background-color: $carousel-indicator-active-bg;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -180,9 +186,9 @@
|
||||||
|
|
||||||
.carousel-caption {
|
.carousel-caption {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: ((100% - $carousel-caption-width) / 2);
|
right: (100% - $carousel-caption-width) / 2;
|
||||||
bottom: 20px;
|
bottom: 20px;
|
||||||
left: ((100% - $carousel-caption-width) / 2);
|
left: (100% - $carousel-caption-width) / 2;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
|
|
|
@ -1,21 +1,22 @@
|
||||||
.close {
|
.close {
|
||||||
float: right;
|
float: right;
|
||||||
font-size: $close-font-size;
|
@include font-size($close-font-size);
|
||||||
font-weight: $close-font-weight;
|
font-weight: $close-font-weight;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
color: $close-color;
|
color: $close-color;
|
||||||
text-shadow: $close-text-shadow;
|
text-shadow: $close-text-shadow;
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
|
|
||||||
@include hover-focus {
|
// Override <a>'s hover style
|
||||||
|
@include hover {
|
||||||
color: $close-color;
|
color: $close-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
opacity: .75;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Opinionated: add "hand" cursor to non-disabled .close elements
|
|
||||||
&:not(:disabled):not(.disabled) {
|
&:not(:disabled):not(.disabled) {
|
||||||
cursor: pointer;
|
@include hover-focus {
|
||||||
|
opacity: .75;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,11 +25,17 @@
|
||||||
// If you want the anchor version, it requires `href="#"`.
|
// If you want the anchor version, it requires `href="#"`.
|
||||||
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
||||||
|
|
||||||
// stylelint-disable property-no-vendor-prefix, selector-no-qualifying-type
|
// stylelint-disable-next-line selector-no-qualifying-type
|
||||||
button.close {
|
button.close {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
-webkit-appearance: none;
|
appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Future-proof disabling of clicks on `<a>` elements
|
||||||
|
|
||||||
|
// stylelint-disable-next-line selector-no-qualifying-type
|
||||||
|
a.close.disabled {
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
// stylelint-enable
|
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
// Inline and block code styles
|
|
||||||
code,
|
|
||||||
kbd,
|
|
||||||
pre,
|
|
||||||
samp {
|
|
||||||
font-family: $font-family-monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Inline code
|
// Inline code
|
||||||
code {
|
code {
|
||||||
font-size: $code-font-size;
|
@include font-size($code-font-size);
|
||||||
color: $code-color;
|
color: $code-color;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
|
||||||
|
@ -21,7 +13,7 @@ code {
|
||||||
// User input typically entered via keyboard
|
// User input typically entered via keyboard
|
||||||
kbd {
|
kbd {
|
||||||
padding: $kbd-padding-y $kbd-padding-x;
|
padding: $kbd-padding-y $kbd-padding-x;
|
||||||
font-size: $kbd-font-size;
|
@include font-size($kbd-font-size);
|
||||||
color: $kbd-color;
|
color: $kbd-color;
|
||||||
background-color: $kbd-bg;
|
background-color: $kbd-bg;
|
||||||
@include border-radius($border-radius-sm);
|
@include border-radius($border-radius-sm);
|
||||||
|
@ -29,7 +21,7 @@ kbd {
|
||||||
|
|
||||||
kbd {
|
kbd {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 100%;
|
@include font-size(100%);
|
||||||
font-weight: $nested-kbd-font-weight;
|
font-weight: $nested-kbd-font-weight;
|
||||||
@include box-shadow(none);
|
@include box-shadow(none);
|
||||||
}
|
}
|
||||||
|
@ -38,12 +30,12 @@ kbd {
|
||||||
// Blocks of code
|
// Blocks of code
|
||||||
pre {
|
pre {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: $code-font-size;
|
@include font-size($code-font-size);
|
||||||
color: $pre-color;
|
color: $pre-color;
|
||||||
|
|
||||||
// Account for some code outputs that place code tags in pre tags
|
// Account for some code outputs that place code tags in pre tags
|
||||||
code {
|
code {
|
||||||
font-size: inherit;
|
@include font-size(inherit);
|
||||||
color: inherit;
|
color: inherit;
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
.custom-control {
|
.custom-control {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
min-height: (1rem * $line-height-base);
|
min-height: $font-size-base * $line-height-base;
|
||||||
padding-left: $custom-control-gutter;
|
padding-left: $custom-control-gutter + $custom-control-indicator-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-control-inline {
|
.custom-control-inline {
|
||||||
|
@ -26,18 +26,28 @@
|
||||||
|
|
||||||
&:checked ~ .custom-control-label::before {
|
&:checked ~ .custom-control-label::before {
|
||||||
color: $custom-control-indicator-checked-color;
|
color: $custom-control-indicator-checked-color;
|
||||||
|
border-color: $custom-control-indicator-checked-border-color;
|
||||||
@include gradient-bg($custom-control-indicator-checked-bg);
|
@include gradient-bg($custom-control-indicator-checked-bg);
|
||||||
@include box-shadow($custom-control-indicator-checked-box-shadow);
|
@include box-shadow($custom-control-indicator-checked-box-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus ~ .custom-control-label::before {
|
&:focus ~ .custom-control-label::before {
|
||||||
// the mixin is not used here to make sure there is feedback
|
// the mixin is not used here to make sure there is feedback
|
||||||
box-shadow: $custom-control-indicator-focus-box-shadow;
|
@if $enable-shadows {
|
||||||
|
box-shadow: $input-box-shadow, $input-focus-box-shadow;
|
||||||
|
} @else {
|
||||||
|
box-shadow: $custom-control-indicator-focus-box-shadow;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active ~ .custom-control-label::before {
|
&:focus:not(:checked) ~ .custom-control-label::before {
|
||||||
|
border-color: $custom-control-indicator-focus-border-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:disabled):active ~ .custom-control-label::before {
|
||||||
color: $custom-control-indicator-active-color;
|
color: $custom-control-indicator-active-color;
|
||||||
background-color: $custom-control-indicator-active-bg;
|
background-color: $custom-control-indicator-active-bg;
|
||||||
|
border-color: $custom-control-indicator-active-border-color;
|
||||||
@include box-shadow($custom-control-indicator-active-box-shadow);
|
@include box-shadow($custom-control-indicator-active-box-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,38 +64,38 @@
|
||||||
|
|
||||||
// Custom control indicators
|
// Custom control indicators
|
||||||
//
|
//
|
||||||
// Build the custom controls out of psuedo-elements.
|
// Build the custom controls out of pseudo-elements.
|
||||||
|
|
||||||
.custom-control-label {
|
.custom-control-label {
|
||||||
|
position: relative;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
vertical-align: top;
|
||||||
|
|
||||||
// Background-color and (when enabled) gradient
|
// Background-color and (when enabled) gradient
|
||||||
&::before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: (($line-height-base - $custom-control-indicator-size) / 2);
|
top: ($font-size-base * $line-height-base - $custom-control-indicator-size) / 2;
|
||||||
left: 0;
|
left: -($custom-control-gutter + $custom-control-indicator-size);
|
||||||
display: block;
|
display: block;
|
||||||
width: $custom-control-indicator-size;
|
width: $custom-control-indicator-size;
|
||||||
height: $custom-control-indicator-size;
|
height: $custom-control-indicator-size;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
content: "";
|
content: "";
|
||||||
user-select: none;
|
|
||||||
background-color: $custom-control-indicator-bg;
|
background-color: $custom-control-indicator-bg;
|
||||||
|
border: $custom-control-indicator-border-color solid $custom-control-indicator-border-width;
|
||||||
@include box-shadow($custom-control-indicator-box-shadow);
|
@include box-shadow($custom-control-indicator-box-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Foreground (icon)
|
// Foreground (icon)
|
||||||
&::after {
|
&::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: (($line-height-base - $custom-control-indicator-size) / 2);
|
top: ($font-size-base * $line-height-base - $custom-control-indicator-size) / 2;
|
||||||
left: 0;
|
left: -($custom-control-gutter + $custom-control-indicator-size);
|
||||||
display: block;
|
display: block;
|
||||||
width: $custom-control-indicator-size;
|
width: $custom-control-indicator-size;
|
||||||
height: $custom-control-indicator-size;
|
height: $custom-control-indicator-size;
|
||||||
content: "";
|
content: "";
|
||||||
background-repeat: no-repeat;
|
background: no-repeat 50% / #{$custom-control-indicator-bg-size};
|
||||||
background-position: center center;
|
|
||||||
background-size: $custom-control-indicator-bg-size;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,9 +110,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-control-input:checked ~ .custom-control-label {
|
.custom-control-input:checked ~ .custom-control-label {
|
||||||
&::before {
|
|
||||||
@include gradient-bg($custom-control-indicator-checked-bg);
|
|
||||||
}
|
|
||||||
&::after {
|
&::after {
|
||||||
background-image: $custom-checkbox-indicator-icon-checked;
|
background-image: $custom-checkbox-indicator-icon-checked;
|
||||||
}
|
}
|
||||||
|
@ -110,6 +117,7 @@
|
||||||
|
|
||||||
.custom-control-input:indeterminate ~ .custom-control-label {
|
.custom-control-input:indeterminate ~ .custom-control-label {
|
||||||
&::before {
|
&::before {
|
||||||
|
border-color: $custom-checkbox-indicator-indeterminate-border-color;
|
||||||
@include gradient-bg($custom-checkbox-indicator-indeterminate-bg);
|
@include gradient-bg($custom-checkbox-indicator-indeterminate-bg);
|
||||||
@include box-shadow($custom-checkbox-indicator-indeterminate-box-shadow);
|
@include box-shadow($custom-checkbox-indicator-indeterminate-box-shadow);
|
||||||
}
|
}
|
||||||
|
@ -134,13 +142,11 @@
|
||||||
|
|
||||||
.custom-radio {
|
.custom-radio {
|
||||||
.custom-control-label::before {
|
.custom-control-label::before {
|
||||||
|
// stylelint-disable-next-line property-blacklist
|
||||||
border-radius: $custom-radio-indicator-border-radius;
|
border-radius: $custom-radio-indicator-border-radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-control-input:checked ~ .custom-control-label {
|
.custom-control-input:checked ~ .custom-control-label {
|
||||||
&::before {
|
|
||||||
@include gradient-bg($custom-control-indicator-checked-bg);
|
|
||||||
}
|
|
||||||
&::after {
|
&::after {
|
||||||
background-image: $custom-radio-indicator-icon-checked;
|
background-image: $custom-radio-indicator-icon-checked;
|
||||||
}
|
}
|
||||||
|
@ -154,10 +160,53 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// switches
|
||||||
|
//
|
||||||
|
// Tweak a few things for switches
|
||||||
|
|
||||||
|
.custom-switch {
|
||||||
|
padding-left: $custom-switch-width + $custom-control-gutter;
|
||||||
|
|
||||||
|
.custom-control-label {
|
||||||
|
&::before {
|
||||||
|
left: -($custom-switch-width + $custom-control-gutter);
|
||||||
|
width: $custom-switch-width;
|
||||||
|
pointer-events: all;
|
||||||
|
// stylelint-disable-next-line property-blacklist
|
||||||
|
border-radius: $custom-switch-indicator-border-radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
top: calc(#{(($font-size-base * $line-height-base - $custom-control-indicator-size) / 2)} + #{$custom-control-indicator-border-width * 2});
|
||||||
|
left: calc(#{-($custom-switch-width + $custom-control-gutter)} + #{$custom-control-indicator-border-width * 2});
|
||||||
|
width: $custom-switch-indicator-size;
|
||||||
|
height: $custom-switch-indicator-size;
|
||||||
|
background-color: $custom-control-indicator-border-color;
|
||||||
|
// stylelint-disable-next-line property-blacklist
|
||||||
|
border-radius: $custom-switch-indicator-border-radius;
|
||||||
|
@include transition(transform .15s ease-in-out, $custom-forms-transition);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-control-input:checked ~ .custom-control-label {
|
||||||
|
&::after {
|
||||||
|
background-color: $custom-control-indicator-bg;
|
||||||
|
transform: translateX($custom-switch-width - $custom-control-indicator-size);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-control-input:disabled {
|
||||||
|
&:checked ~ .custom-control-label::before {
|
||||||
|
background-color: $custom-control-indicator-checked-disabled-bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Select
|
// Select
|
||||||
//
|
//
|
||||||
// Replaces the browser default select with a custom one, mostly pulled from
|
// Replaces the browser default select with a custom one, mostly pulled from
|
||||||
// http://primercss.io.
|
// https://primer.github.io/.
|
||||||
//
|
//
|
||||||
|
|
||||||
.custom-select {
|
.custom-select {
|
||||||
|
@ -165,23 +214,27 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: $custom-select-height;
|
height: $custom-select-height;
|
||||||
padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
|
padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
|
||||||
|
font-family: $custom-select-font-family;
|
||||||
|
@include font-size($custom-select-font-size);
|
||||||
|
font-weight: $custom-select-font-weight;
|
||||||
line-height: $custom-select-line-height;
|
line-height: $custom-select-line-height;
|
||||||
color: $custom-select-color;
|
color: $custom-select-color;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
background: $custom-select-bg $custom-select-indicator no-repeat right $custom-select-padding-x center;
|
background: $custom-select-background;
|
||||||
background-size: $custom-select-bg-size;
|
background-color: $custom-select-bg;
|
||||||
border: $custom-select-border-width solid $custom-select-border-color;
|
border: $custom-select-border-width solid $custom-select-border-color;
|
||||||
@if $enable-rounded {
|
@include border-radius($custom-select-border-radius, 0);
|
||||||
border-radius: $custom-select-border-radius;
|
@include box-shadow($custom-select-box-shadow);
|
||||||
} @else {
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
appearance: none;
|
appearance: none;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: $custom-select-focus-border-color;
|
border-color: $custom-select-focus-border-color;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
box-shadow: $custom-select-focus-box-shadow;
|
@if $enable-shadows {
|
||||||
|
box-shadow: $custom-select-box-shadow, $custom-select-focus-box-shadow;
|
||||||
|
} @else {
|
||||||
|
box-shadow: $custom-select-focus-box-shadow;
|
||||||
|
}
|
||||||
|
|
||||||
&::-ms-value {
|
&::-ms-value {
|
||||||
// For visual consistency with other platforms/browsers,
|
// For visual consistency with other platforms/browsers,
|
||||||
|
@ -208,22 +261,24 @@
|
||||||
|
|
||||||
// Hides the default caret in IE11
|
// Hides the default caret in IE11
|
||||||
&::-ms-expand {
|
&::-ms-expand {
|
||||||
opacity: 0;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-select-sm {
|
.custom-select-sm {
|
||||||
height: $custom-select-height-sm;
|
height: $custom-select-height-sm;
|
||||||
padding-top: $custom-select-padding-y;
|
padding-top: $custom-select-padding-y-sm;
|
||||||
padding-bottom: $custom-select-padding-y;
|
padding-bottom: $custom-select-padding-y-sm;
|
||||||
font-size: $custom-select-font-size-sm;
|
padding-left: $custom-select-padding-x-sm;
|
||||||
|
@include font-size($custom-select-font-size-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-select-lg {
|
.custom-select-lg {
|
||||||
height: $custom-select-height-lg;
|
height: $custom-select-height-lg;
|
||||||
padding-top: $custom-select-padding-y;
|
padding-top: $custom-select-padding-y-lg;
|
||||||
padding-bottom: $custom-select-padding-y;
|
padding-bottom: $custom-select-padding-y-lg;
|
||||||
font-size: $custom-select-font-size-lg;
|
padding-left: $custom-select-padding-x-lg;
|
||||||
|
@include font-size($custom-select-font-size-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -247,13 +302,13 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
||||||
&:focus ~ .custom-file-control {
|
&:focus ~ .custom-file-label {
|
||||||
border-color: $custom-file-focus-border-color;
|
border-color: $custom-file-focus-border-color;
|
||||||
box-shadow: $custom-file-focus-box-shadow;
|
box-shadow: $custom-file-focus-box-shadow;
|
||||||
|
}
|
||||||
|
|
||||||
&::before {
|
&:disabled ~ .custom-file-label {
|
||||||
border-color: $custom-file-focus-border-color;
|
background-color: $custom-file-disabled-bg;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@each $lang, $value in $custom-file-text {
|
@each $lang, $value in $custom-file-text {
|
||||||
|
@ -261,6 +316,10 @@
|
||||||
content: $value;
|
content: $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~ .custom-file-label[data-browse]::after {
|
||||||
|
content: attr(data-browse);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-file-label {
|
.custom-file-label {
|
||||||
|
@ -271,6 +330,8 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
height: $custom-file-height;
|
height: $custom-file-height;
|
||||||
padding: $custom-file-padding-y $custom-file-padding-x;
|
padding: $custom-file-padding-y $custom-file-padding-x;
|
||||||
|
font-family: $custom-file-font-family;
|
||||||
|
font-weight: $custom-file-font-weight;
|
||||||
line-height: $custom-file-line-height;
|
line-height: $custom-file-line-height;
|
||||||
color: $custom-file-color;
|
color: $custom-file-color;
|
||||||
background-color: $custom-file-bg;
|
background-color: $custom-file-bg;
|
||||||
|
@ -285,13 +346,162 @@
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
display: block;
|
display: block;
|
||||||
height: calc(#{$custom-file-height} - #{$custom-file-border-width} * 2);
|
height: $custom-file-height-inner;
|
||||||
padding: $custom-file-padding-y $custom-file-padding-x;
|
padding: $custom-file-padding-y $custom-file-padding-x;
|
||||||
line-height: $custom-file-line-height;
|
line-height: $custom-file-line-height;
|
||||||
color: $custom-file-button-color;
|
color: $custom-file-button-color;
|
||||||
content: "Browse";
|
content: "Browse";
|
||||||
@include gradient-bg($custom-file-button-bg);
|
@include gradient-bg($custom-file-button-bg);
|
||||||
border-left: $custom-file-border-width solid $custom-file-border-color;
|
border-left: inherit;
|
||||||
@include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
|
@include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Range
|
||||||
|
//
|
||||||
|
// Style range inputs the same across browsers. Vendor-specific rules for pseudo
|
||||||
|
// elements cannot be mixed. As such, there are no shared styles for focus or
|
||||||
|
// active states on prefixed selectors.
|
||||||
|
|
||||||
|
.custom-range {
|
||||||
|
width: 100%;
|
||||||
|
height: calc(#{$custom-range-thumb-height} + #{$custom-range-thumb-focus-box-shadow-width * 2});
|
||||||
|
padding: 0; // Need to reset padding
|
||||||
|
background-color: transparent;
|
||||||
|
appearance: none;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: none;
|
||||||
|
|
||||||
|
// Pseudo-elements must be split across multiple rulesets to have an effect.
|
||||||
|
// No box-shadow() mixin for focus accessibility.
|
||||||
|
&::-webkit-slider-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
|
||||||
|
&::-moz-range-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
|
||||||
|
&::-ms-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-moz-focus-outer {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-slider-thumb {
|
||||||
|
width: $custom-range-thumb-width;
|
||||||
|
height: $custom-range-thumb-height;
|
||||||
|
margin-top: ($custom-range-track-height - $custom-range-thumb-height) / 2; // Webkit specific
|
||||||
|
@include gradient-bg($custom-range-thumb-bg);
|
||||||
|
border: $custom-range-thumb-border;
|
||||||
|
@include border-radius($custom-range-thumb-border-radius);
|
||||||
|
@include box-shadow($custom-range-thumb-box-shadow);
|
||||||
|
@include transition($custom-forms-transition);
|
||||||
|
appearance: none;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
@include gradient-bg($custom-range-thumb-active-bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-slider-runnable-track {
|
||||||
|
width: $custom-range-track-width;
|
||||||
|
height: $custom-range-track-height;
|
||||||
|
color: transparent; // Why?
|
||||||
|
cursor: $custom-range-track-cursor;
|
||||||
|
background-color: $custom-range-track-bg;
|
||||||
|
border-color: transparent;
|
||||||
|
@include border-radius($custom-range-track-border-radius);
|
||||||
|
@include box-shadow($custom-range-track-box-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-moz-range-thumb {
|
||||||
|
width: $custom-range-thumb-width;
|
||||||
|
height: $custom-range-thumb-height;
|
||||||
|
@include gradient-bg($custom-range-thumb-bg);
|
||||||
|
border: $custom-range-thumb-border;
|
||||||
|
@include border-radius($custom-range-thumb-border-radius);
|
||||||
|
@include box-shadow($custom-range-thumb-box-shadow);
|
||||||
|
@include transition($custom-forms-transition);
|
||||||
|
appearance: none;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
@include gradient-bg($custom-range-thumb-active-bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-moz-range-track {
|
||||||
|
width: $custom-range-track-width;
|
||||||
|
height: $custom-range-track-height;
|
||||||
|
color: transparent;
|
||||||
|
cursor: $custom-range-track-cursor;
|
||||||
|
background-color: $custom-range-track-bg;
|
||||||
|
border-color: transparent; // Firefox specific?
|
||||||
|
@include border-radius($custom-range-track-border-radius);
|
||||||
|
@include box-shadow($custom-range-track-box-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-ms-thumb {
|
||||||
|
width: $custom-range-thumb-width;
|
||||||
|
height: $custom-range-thumb-height;
|
||||||
|
margin-top: 0; // Edge specific
|
||||||
|
margin-right: $custom-range-thumb-focus-box-shadow-width; // Workaround that overflowed box-shadow is hidden.
|
||||||
|
margin-left: $custom-range-thumb-focus-box-shadow-width; // Workaround that overflowed box-shadow is hidden.
|
||||||
|
@include gradient-bg($custom-range-thumb-bg);
|
||||||
|
border: $custom-range-thumb-border;
|
||||||
|
@include border-radius($custom-range-thumb-border-radius);
|
||||||
|
@include box-shadow($custom-range-thumb-box-shadow);
|
||||||
|
@include transition($custom-forms-transition);
|
||||||
|
appearance: none;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
@include gradient-bg($custom-range-thumb-active-bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-ms-track {
|
||||||
|
width: $custom-range-track-width;
|
||||||
|
height: $custom-range-track-height;
|
||||||
|
color: transparent;
|
||||||
|
cursor: $custom-range-track-cursor;
|
||||||
|
background-color: transparent;
|
||||||
|
border-color: transparent;
|
||||||
|
border-width: $custom-range-thumb-height / 2;
|
||||||
|
@include box-shadow($custom-range-track-box-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-ms-fill-lower {
|
||||||
|
background-color: $custom-range-track-bg;
|
||||||
|
@include border-radius($custom-range-track-border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-ms-fill-upper {
|
||||||
|
margin-right: 15px; // arbitrary?
|
||||||
|
background-color: $custom-range-track-bg;
|
||||||
|
@include border-radius($custom-range-track-border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:disabled {
|
||||||
|
&::-webkit-slider-thumb {
|
||||||
|
background-color: $custom-range-thumb-disabled-bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-slider-runnable-track {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-moz-range-thumb {
|
||||||
|
background-color: $custom-range-thumb-disabled-bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-moz-range-track {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-ms-thumb {
|
||||||
|
background-color: $custom-range-thumb-disabled-bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-control-label::before,
|
||||||
|
.custom-file-label,
|
||||||
|
.custom-select {
|
||||||
|
@include transition($custom-forms-transition);
|
||||||
|
}
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
// The dropdown wrapper (`<div>`)
|
// The dropdown wrapper (`<div>`)
|
||||||
.dropup,
|
.dropup,
|
||||||
.dropdown {
|
.dropright,
|
||||||
|
.dropdown,
|
||||||
|
.dropleft {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-toggle {
|
.dropdown-toggle {
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
// Generate the caret automatically
|
// Generate the caret automatically
|
||||||
@include caret;
|
@include caret;
|
||||||
}
|
}
|
||||||
|
@ -20,8 +24,8 @@
|
||||||
min-width: $dropdown-min-width;
|
min-width: $dropdown-min-width;
|
||||||
padding: $dropdown-padding-y 0;
|
padding: $dropdown-padding-y 0;
|
||||||
margin: $dropdown-spacer 0 0; // override default ul
|
margin: $dropdown-spacer 0 0; // override default ul
|
||||||
font-size: $font-size-base; // Redeclare because nesting can cause inheritance issues
|
@include font-size($dropdown-font-size);
|
||||||
color: $body-color;
|
color: $dropdown-color;
|
||||||
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
||||||
list-style: none;
|
list-style: none;
|
||||||
background-color: $dropdown-bg;
|
background-color: $dropdown-bg;
|
||||||
|
@ -31,10 +35,28 @@
|
||||||
@include box-shadow($dropdown-box-shadow);
|
@include box-shadow($dropdown-box-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
||||||
|
@include media-breakpoint-up($breakpoint) {
|
||||||
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
||||||
|
|
||||||
|
.dropdown-menu#{$infix}-left {
|
||||||
|
right: auto;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-menu#{$infix}-right {
|
||||||
|
right: 0;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
||||||
// Just add .dropup after the standard .dropdown class and you're set.
|
// Just add .dropup after the standard .dropdown class and you're set.
|
||||||
.dropup {
|
.dropup {
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
|
top: auto;
|
||||||
|
bottom: 100%;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: $dropdown-spacer;
|
margin-bottom: $dropdown-spacer;
|
||||||
}
|
}
|
||||||
|
@ -46,6 +68,9 @@
|
||||||
|
|
||||||
.dropright {
|
.dropright {
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
|
top: 0;
|
||||||
|
right: auto;
|
||||||
|
left: 100%;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-left: $dropdown-spacer;
|
margin-left: $dropdown-spacer;
|
||||||
}
|
}
|
||||||
|
@ -60,6 +85,9 @@
|
||||||
|
|
||||||
.dropleft {
|
.dropleft {
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
|
top: 0;
|
||||||
|
right: 100%;
|
||||||
|
left: auto;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-right: $dropdown-spacer;
|
margin-right: $dropdown-spacer;
|
||||||
}
|
}
|
||||||
|
@ -72,9 +100,21 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// When enabled Popper.js, reset basic dropdown position
|
||||||
|
// stylelint-disable-next-line no-duplicate-selectors
|
||||||
|
.dropdown-menu {
|
||||||
|
&[x-placement^="top"],
|
||||||
|
&[x-placement^="right"],
|
||||||
|
&[x-placement^="bottom"],
|
||||||
|
&[x-placement^="left"] {
|
||||||
|
right: auto;
|
||||||
|
bottom: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Dividers (basically an `<hr>`) within the dropdown
|
// Dividers (basically an `<hr>`) within the dropdown
|
||||||
.dropdown-divider {
|
.dropdown-divider {
|
||||||
@include nav-divider($dropdown-divider-bg);
|
@include nav-divider($dropdown-divider-bg, $dropdown-divider-margin-y);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Links, buttons, and more within the dropdown menu
|
// Links, buttons, and more within the dropdown menu
|
||||||
|
@ -85,13 +125,25 @@
|
||||||
width: 100%; // For `<button>`s
|
width: 100%; // For `<button>`s
|
||||||
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
|
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
|
||||||
clear: both;
|
clear: both;
|
||||||
font-weight: 400;
|
font-weight: $font-weight-normal;
|
||||||
color: $dropdown-link-color;
|
color: $dropdown-link-color;
|
||||||
text-align: inherit; // For `<button>`s
|
text-align: inherit; // For `<button>`s
|
||||||
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
||||||
background-color: transparent; // For `<button>`s
|
background-color: transparent; // For `<button>`s
|
||||||
border: 0; // For `<button>`s
|
border: 0; // For `<button>`s
|
||||||
|
|
||||||
|
// Prevent dropdown overflow if there's no padding
|
||||||
|
// See https://github.com/twbs/bootstrap/pull/27703
|
||||||
|
@if $dropdown-padding-y == 0 {
|
||||||
|
&:first-child {
|
||||||
|
@include border-top-radius($dropdown-inner-border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
@include border-bottom-radius($dropdown-inner-border-radius);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@include hover-focus {
|
@include hover-focus {
|
||||||
color: $dropdown-link-hover-color;
|
color: $dropdown-link-hover-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -108,6 +160,7 @@
|
||||||
&.disabled,
|
&.disabled,
|
||||||
&:disabled {
|
&:disabled {
|
||||||
color: $dropdown-link-disabled-color;
|
color: $dropdown-link-disabled-color;
|
||||||
|
pointer-events: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
// Remove CSS gradients if they're enabled
|
// Remove CSS gradients if they're enabled
|
||||||
@if $enable-gradients {
|
@if $enable-gradients {
|
||||||
|
@ -125,7 +178,14 @@
|
||||||
display: block;
|
display: block;
|
||||||
padding: $dropdown-padding-y $dropdown-item-padding-x;
|
padding: $dropdown-padding-y $dropdown-item-padding-x;
|
||||||
margin-bottom: 0; // for use with heading elements
|
margin-bottom: 0; // for use with heading elements
|
||||||
font-size: $font-size-sm;
|
@include font-size($font-size-sm);
|
||||||
color: $dropdown-header-color;
|
color: $dropdown-header-color;
|
||||||
white-space: nowrap; // as with > li > a
|
white-space: nowrap; // as with > li > a
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dropdown text
|
||||||
|
.dropdown-item-text {
|
||||||
|
display: block;
|
||||||
|
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
|
||||||
|
color: $dropdown-link-color;
|
||||||
|
}
|
||||||
|
|
|
@ -7,8 +7,11 @@
|
||||||
.form-control {
|
.form-control {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: $input-height;
|
||||||
padding: $input-padding-y $input-padding-x;
|
padding: $input-padding-y $input-padding-x;
|
||||||
font-size: $font-size-base;
|
font-family: $input-font-family;
|
||||||
|
@include font-size($input-font-size);
|
||||||
|
font-weight: $input-font-weight;
|
||||||
line-height: $input-line-height;
|
line-height: $input-line-height;
|
||||||
color: $input-color;
|
color: $input-color;
|
||||||
background-color: $input-bg;
|
background-color: $input-bg;
|
||||||
|
@ -16,13 +19,7 @@
|
||||||
border: $input-border-width solid $input-border-color;
|
border: $input-border-width solid $input-border-color;
|
||||||
|
|
||||||
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
||||||
@if $enable-rounded {
|
@include border-radius($input-border-radius, 0);
|
||||||
// Manually use the if/else instead of the mixin to account for iOS override
|
|
||||||
border-radius: $input-border-radius;
|
|
||||||
} @else {
|
|
||||||
// Otherwise undo the iOS default
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include box-shadow($input-box-shadow);
|
@include box-shadow($input-box-shadow);
|
||||||
@include transition($input-transition);
|
@include transition($input-transition);
|
||||||
|
@ -57,10 +54,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
select.form-control {
|
select.form-control {
|
||||||
&:not([size]):not([multiple]) {
|
|
||||||
height: $input-height;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:focus::-ms-value {
|
&:focus::-ms-value {
|
||||||
// Suppress the nested default white text on blue background highlight given to
|
// Suppress the nested default white text on blue background highlight given to
|
||||||
// the selected option text when the (still closed) <select> receives focus
|
// the selected option text when the (still closed) <select> receives focus
|
||||||
|
@ -90,21 +83,21 @@ select.form-control {
|
||||||
padding-top: calc(#{$input-padding-y} + #{$input-border-width});
|
padding-top: calc(#{$input-padding-y} + #{$input-border-width});
|
||||||
padding-bottom: calc(#{$input-padding-y} + #{$input-border-width});
|
padding-bottom: calc(#{$input-padding-y} + #{$input-border-width});
|
||||||
margin-bottom: 0; // Override the `<label>/<legend>` default
|
margin-bottom: 0; // Override the `<label>/<legend>` default
|
||||||
font-size: inherit; // Override the `<legend>` default
|
@include font-size(inherit); // Override the `<legend>` default
|
||||||
line-height: $input-line-height;
|
line-height: $input-line-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-form-label-lg {
|
.col-form-label-lg {
|
||||||
padding-top: calc(#{$input-padding-y-lg} + #{$input-border-width});
|
padding-top: calc(#{$input-padding-y-lg} + #{$input-border-width});
|
||||||
padding-bottom: calc(#{$input-padding-y-lg} + #{$input-border-width});
|
padding-bottom: calc(#{$input-padding-y-lg} + #{$input-border-width});
|
||||||
font-size: $font-size-lg;
|
@include font-size($input-font-size-lg);
|
||||||
line-height: $input-line-height-lg;
|
line-height: $input-line-height-lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-form-label-sm {
|
.col-form-label-sm {
|
||||||
padding-top: calc(#{$input-padding-y-sm} + #{$input-border-width});
|
padding-top: calc(#{$input-padding-y-sm} + #{$input-border-width});
|
||||||
padding-bottom: calc(#{$input-padding-y-sm} + #{$input-border-width});
|
padding-bottom: calc(#{$input-padding-y-sm} + #{$input-border-width});
|
||||||
font-size: $font-size-sm;
|
@include font-size($input-font-size-sm);
|
||||||
line-height: $input-line-height-sm;
|
line-height: $input-line-height-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,6 +114,7 @@ select.form-control {
|
||||||
padding-bottom: $input-padding-y;
|
padding-bottom: $input-padding-y;
|
||||||
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
|
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
|
||||||
line-height: $input-line-height;
|
line-height: $input-line-height;
|
||||||
|
color: $input-plaintext-color;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: solid transparent;
|
border: solid transparent;
|
||||||
border-width: $input-border-width 0;
|
border-width: $input-border-width 0;
|
||||||
|
@ -138,35 +132,35 @@ select.form-control {
|
||||||
// Build on `.form-control` with modifier classes to decrease or increase the
|
// Build on `.form-control` with modifier classes to decrease or increase the
|
||||||
// height and font-size of form controls.
|
// height and font-size of form controls.
|
||||||
//
|
//
|
||||||
// The `.form-group-* form-control` variations are sadly duplicated to avoid the
|
// Repeated in `_input_group.scss` to avoid Sass extend issues.
|
||||||
// issue documented in https://github.com/twbs/bootstrap/issues/15074.
|
|
||||||
|
|
||||||
.form-control-sm {
|
.form-control-sm {
|
||||||
|
height: $input-height-sm;
|
||||||
padding: $input-padding-y-sm $input-padding-x-sm;
|
padding: $input-padding-y-sm $input-padding-x-sm;
|
||||||
font-size: $font-size-sm;
|
@include font-size($input-font-size-sm);
|
||||||
line-height: $input-line-height-sm;
|
line-height: $input-line-height-sm;
|
||||||
@include border-radius($input-border-radius-sm);
|
@include border-radius($input-border-radius-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
select.form-control-sm {
|
|
||||||
&:not([size]):not([multiple]) {
|
|
||||||
height: $input-height-sm;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-control-lg {
|
.form-control-lg {
|
||||||
|
height: $input-height-lg;
|
||||||
padding: $input-padding-y-lg $input-padding-x-lg;
|
padding: $input-padding-y-lg $input-padding-x-lg;
|
||||||
font-size: $font-size-lg;
|
@include font-size($input-font-size-lg);
|
||||||
line-height: $input-line-height-lg;
|
line-height: $input-line-height-lg;
|
||||||
@include border-radius($input-border-radius-lg);
|
@include border-radius($input-border-radius-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
select.form-control-lg {
|
// stylelint-disable-next-line no-duplicate-selectors
|
||||||
&:not([size]):not([multiple]) {
|
select.form-control {
|
||||||
height: $input-height-lg;
|
&[size],
|
||||||
|
&[multiple] {
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea.form-control {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
// Form groups
|
// Form groups
|
||||||
//
|
//
|
||||||
|
@ -190,13 +184,13 @@ select.form-control-lg {
|
||||||
.form-row {
|
.form-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-right: -5px;
|
margin-right: -$form-grid-gutter-width / 2;
|
||||||
margin-left: -5px;
|
margin-left: -$form-grid-gutter-width / 2;
|
||||||
|
|
||||||
> .col,
|
> .col,
|
||||||
> [class*="col-"] {
|
> [class*="col-"] {
|
||||||
padding-right: 5px;
|
padding-right: $form-grid-gutter-width / 2;
|
||||||
padding-left: 5px;
|
padding-left: $form-grid-gutter-width / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,8 +242,9 @@ select.form-control-lg {
|
||||||
// pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
|
// pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
|
||||||
// server side validation.
|
// server side validation.
|
||||||
|
|
||||||
@include form-validation-state("valid", $form-feedback-valid-color);
|
@each $state, $data in $form-validation-states {
|
||||||
@include form-validation-state("invalid", $form-feedback-invalid-color);
|
@include form-validation-state($state, map-get($data, color), map-get($data, icon));
|
||||||
|
}
|
||||||
|
|
||||||
// Inline forms
|
// Inline forms
|
||||||
//
|
//
|
||||||
|
@ -302,7 +297,8 @@ select.form-control-lg {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group {
|
.input-group,
|
||||||
|
.custom-select {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -317,6 +313,7 @@ select.form-control-lg {
|
||||||
}
|
}
|
||||||
.form-check-input {
|
.form-check-input {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
flex-shrink: 0;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-right: $form-check-input-margin-x;
|
margin-right: $form-check-input-margin-x;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Bootstrap functions
|
// Bootstrap functions
|
||||||
//
|
//
|
||||||
// Utility mixins and functions for evalutating source code across our variables, maps, and mixins.
|
// Utility mixins and functions for evaluating source code across our variables, maps, and mixins.
|
||||||
|
|
||||||
// Ascending
|
// Ascending
|
||||||
// Used to evaluate Sass maps like our grid breakpoints.
|
// Used to evaluate Sass maps like our grid breakpoints.
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
$prev-key: null;
|
$prev-key: null;
|
||||||
$prev-num: null;
|
$prev-num: null;
|
||||||
@each $key, $num in $map {
|
@each $key, $num in $map {
|
||||||
@if $prev-num == null {
|
@if $prev-num == null or unit($num) == "%" {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
} @else if not comparable($prev-num, $num) {
|
} @else if not comparable($prev-num, $num) {
|
||||||
@warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
@warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
||||||
|
@ -21,12 +21,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Starts at zero
|
// Starts at zero
|
||||||
// Another grid mixin that ensures the min-width of the lowest breakpoint starts at 0.
|
// Used to ensure the min-width of the lowest breakpoint starts at 0.
|
||||||
@mixin _assert-starts-at-zero($map) {
|
@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
|
||||||
$values: map-values($map);
|
$values: map-values($map);
|
||||||
$first-value: nth($values, 1);
|
$first-value: nth($values, 1);
|
||||||
@if $first-value != 0 {
|
@if $first-value != 0 {
|
||||||
@warn "First breakpoint in `$grid-breakpoints` must start at 0, but starts at #{$first-value}.";
|
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Color contrast
|
// Color contrast
|
||||||
@function color-yiq($color) {
|
@function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) {
|
||||||
$r: red($color);
|
$r: red($color);
|
||||||
$g: green($color);
|
$g: green($color);
|
||||||
$b: blue($color);
|
$b: blue($color);
|
||||||
|
@ -57,9 +57,9 @@
|
||||||
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
|
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
|
||||||
|
|
||||||
@if ($yiq >= $yiq-contrasted-threshold) {
|
@if ($yiq >= $yiq-contrasted-threshold) {
|
||||||
@return $yiq-text-dark;
|
@return $dark;
|
||||||
} @else {
|
} @else {
|
||||||
@return $yiq-text-light;
|
@return $light;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
// Request a theme color level
|
// Request a theme color level
|
||||||
@function theme-color-level($color-name: "primary", $level: 0) {
|
@function theme-color-level($color-name: "primary", $level: 0) {
|
||||||
$color: theme-color($color-name);
|
$color: theme-color($color-name);
|
||||||
$color-base: if($level > 0, #000, #fff);
|
$color-base: if($level > 0, $black, $white);
|
||||||
$level: abs($level);
|
$level: abs($level);
|
||||||
|
|
||||||
@return mix($color-base, $color, $level * $theme-color-interval);
|
@return mix($color-base, $color, $level * $theme-color-interval);
|
||||||
|
|
|
@ -32,11 +32,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.figure-img {
|
.figure-img {
|
||||||
margin-bottom: ($spacer / 2);
|
margin-bottom: $spacer / 2;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.figure-caption {
|
.figure-caption {
|
||||||
font-size: $figure-caption-font-size;
|
@include font-size($figure-caption-font-size);
|
||||||
color: $figure-caption-color;
|
color: $figure-caption-color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
> .form-control,
|
> .form-control,
|
||||||
|
> .form-control-plaintext,
|
||||||
> .custom-select,
|
> .custom-select,
|
||||||
> .custom-file {
|
> .custom-file {
|
||||||
position: relative; // For focus state's z-index
|
position: relative; // For focus state's z-index
|
||||||
|
@ -21,11 +22,6 @@
|
||||||
width: 1%;
|
width: 1%;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
// Bring the "active" form control to the top of surrounding elements
|
|
||||||
&:focus {
|
|
||||||
z-index: 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ .form-control,
|
+ .form-control,
|
||||||
+ .custom-select,
|
+ .custom-select,
|
||||||
+ .custom-file {
|
+ .custom-file {
|
||||||
|
@ -33,14 +29,22 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bring the "active" form control to the top of surrounding elements
|
||||||
|
> .form-control:focus,
|
||||||
|
> .custom-select:focus,
|
||||||
|
> .custom-file .custom-file-input:focus ~ .custom-file-label {
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bring the custom file input above the label
|
||||||
|
> .custom-file .custom-file-input:focus {
|
||||||
|
z-index: 4;
|
||||||
|
}
|
||||||
|
|
||||||
> .form-control,
|
> .form-control,
|
||||||
> .custom-select {
|
> .custom-select {
|
||||||
&:not(:last-child) {
|
&:not(:last-child) { @include border-right-radius(0); }
|
||||||
@include border-right-radius(0);
|
&:not(:first-child) { @include border-left-radius(0); }
|
||||||
}
|
|
||||||
&:not(:first-child) {
|
|
||||||
@include border-left-radius(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom file inputs have more complex markup, thus requiring different
|
// Custom file inputs have more complex markup, thus requiring different
|
||||||
|
@ -50,16 +54,12 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
&:not(:last-child) .custom-file-label,
|
&:not(:last-child) .custom-file-label,
|
||||||
&:not(:last-child) .custom-file-label::before {
|
&:not(:last-child) .custom-file-label::after { @include border-right-radius(0); }
|
||||||
@include border-right-radius(0);
|
&:not(:first-child) .custom-file-label { @include border-left-radius(0); }
|
||||||
}
|
|
||||||
&:not(:first-child) .custom-file-label,
|
|
||||||
&:not(:first-child) .custom-file-label::before {
|
|
||||||
@include border-left-radius(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Prepend and append
|
// Prepend and append
|
||||||
//
|
//
|
||||||
// While it requires one extra layer of HTML for each, dedicated prepend and
|
// While it requires one extra layer of HTML for each, dedicated prepend and
|
||||||
|
@ -76,6 +76,10 @@
|
||||||
.btn {
|
.btn {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn + .btn,
|
.btn + .btn,
|
||||||
|
@ -86,12 +90,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-prepend {
|
.input-group-prepend { margin-right: -$input-border-width; }
|
||||||
margin-right: -$input-border-width;
|
.input-group-append { margin-left: -$input-border-width; }
|
||||||
}
|
|
||||||
.input-group-append {
|
|
||||||
margin-left: -$input-border-width;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Textual addons
|
// Textual addons
|
||||||
//
|
//
|
||||||
|
@ -103,8 +104,8 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: $input-padding-y $input-padding-x;
|
padding: $input-padding-y $input-padding-x;
|
||||||
margin-bottom: 0; // Allow use of <label> elements by overriding our default margin-bottom
|
margin-bottom: 0; // Allow use of <label> elements by overriding our default margin-bottom
|
||||||
font-size: $font-size-base; // Match inputs
|
@include font-size($input-font-size); // Match inputs
|
||||||
font-weight: 400;
|
font-weight: $font-weight-normal;
|
||||||
line-height: $input-line-height;
|
line-height: $input-line-height;
|
||||||
color: $input-group-addon-color;
|
color: $input-group-addon-color;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -114,49 +115,71 @@
|
||||||
@include border-radius($input-border-radius);
|
@include border-radius($input-border-radius);
|
||||||
|
|
||||||
// Nuke default margins from checkboxes and radios to vertically center within.
|
// Nuke default margins from checkboxes and radios to vertically center within.
|
||||||
input[type='radio'],
|
input[type="radio"],
|
||||||
input[type='checkbox'] {
|
input[type="checkbox"] {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Sizing
|
// Sizing
|
||||||
//
|
//
|
||||||
// Remix the default form control sizing classes into new ones for easier
|
// Remix the default form control sizing classes into new ones for easier
|
||||||
// manipulation.
|
// manipulation.
|
||||||
|
|
||||||
|
.input-group-lg > .form-control:not(textarea),
|
||||||
|
.input-group-lg > .custom-select {
|
||||||
|
height: $input-height-lg;
|
||||||
|
}
|
||||||
|
|
||||||
.input-group-lg > .form-control,
|
.input-group-lg > .form-control,
|
||||||
|
.input-group-lg > .custom-select,
|
||||||
.input-group-lg > .input-group-prepend > .input-group-text,
|
.input-group-lg > .input-group-prepend > .input-group-text,
|
||||||
.input-group-lg > .input-group-append > .input-group-text,
|
.input-group-lg > .input-group-append > .input-group-text,
|
||||||
.input-group-lg > .input-group-prepend > .btn,
|
.input-group-lg > .input-group-prepend > .btn,
|
||||||
.input-group-lg > .input-group-append > .btn {
|
.input-group-lg > .input-group-append > .btn {
|
||||||
@extend .form-control-lg;
|
padding: $input-padding-y-lg $input-padding-x-lg;
|
||||||
|
@include font-size($input-font-size-lg);
|
||||||
|
line-height: $input-line-height-lg;
|
||||||
|
@include border-radius($input-border-radius-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-group-sm > .form-control:not(textarea),
|
||||||
|
.input-group-sm > .custom-select {
|
||||||
|
height: $input-height-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group-sm > .form-control,
|
.input-group-sm > .form-control,
|
||||||
|
.input-group-sm > .custom-select,
|
||||||
.input-group-sm > .input-group-prepend > .input-group-text,
|
.input-group-sm > .input-group-prepend > .input-group-text,
|
||||||
.input-group-sm > .input-group-append > .input-group-text,
|
.input-group-sm > .input-group-append > .input-group-text,
|
||||||
.input-group-sm > .input-group-prepend > .btn,
|
.input-group-sm > .input-group-prepend > .btn,
|
||||||
.input-group-sm > .input-group-append > .btn {
|
.input-group-sm > .input-group-append > .btn {
|
||||||
@extend .form-control-sm;
|
padding: $input-padding-y-sm $input-padding-x-sm;
|
||||||
|
@include font-size($input-font-size-sm);
|
||||||
|
line-height: $input-line-height-sm;
|
||||||
|
@include border-radius($input-border-radius-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.input-group-lg > .custom-select,
|
||||||
|
.input-group-sm > .custom-select {
|
||||||
|
padding-right: $custom-select-padding-x + $custom-select-indicator-padding;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Prepend and append rounded corners
|
// Prepend and append rounded corners
|
||||||
//
|
//
|
||||||
// These rulesets must come after the sizing ones to properly override sm and lg
|
// These rulesets must come after the sizing ones to properly override sm and lg
|
||||||
// border-radius values when extending. They're more specific than we'd like
|
// border-radius values when extending. They're more specific than we'd like
|
||||||
// with the `.input-group >` part, but without it, we cannot override the sizing.
|
// with the `.input-group >` part, but without it, we cannot override the sizing.
|
||||||
|
|
||||||
|
|
||||||
.input-group > .input-group-prepend > .btn,
|
.input-group > .input-group-prepend > .btn,
|
||||||
.input-group > .input-group-prepend > .input-group-text,
|
.input-group > .input-group-prepend > .input-group-text,
|
||||||
.input-group > .input-group-append:not(:last-child) > .btn,
|
.input-group > .input-group-append:not(:last-child) > .btn,
|
||||||
.input-group > .input-group-append:not(:last-child) > .input-group-text,
|
.input-group > .input-group-append:not(:last-child) > .input-group-text,
|
||||||
.input-group
|
.input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle),
|
||||||
> .input-group-append:last-child
|
.input-group > .input-group-append:last-child > .input-group-text:not(:last-child) {
|
||||||
> .btn:not(:last-child):not(.dropdown-toggle),
|
|
||||||
.input-group
|
|
||||||
> .input-group-append:last-child
|
|
||||||
> .input-group-text:not(:last-child) {
|
|
||||||
@include border-right-radius(0);
|
@include border-right-radius(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,8 +188,6 @@
|
||||||
.input-group > .input-group-prepend:not(:first-child) > .btn,
|
.input-group > .input-group-prepend:not(:first-child) > .btn,
|
||||||
.input-group > .input-group-prepend:not(:first-child) > .input-group-text,
|
.input-group > .input-group-prepend:not(:first-child) > .input-group-text,
|
||||||
.input-group > .input-group-prepend:first-child > .btn:not(:first-child),
|
.input-group > .input-group-prepend:first-child > .btn:not(:first-child),
|
||||||
.input-group
|
.input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) {
|
||||||
> .input-group-prepend:first-child
|
|
||||||
> .input-group-text:not(:first-child) {
|
|
||||||
@include border-left-radius(0);
|
@include border-left-radius(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
.jumbotron {
|
.jumbotron {
|
||||||
padding: $jumbotron-padding ($jumbotron-padding / 2);
|
padding: $jumbotron-padding ($jumbotron-padding / 2);
|
||||||
margin-bottom: $jumbotron-padding;
|
margin-bottom: $jumbotron-padding;
|
||||||
|
color: $jumbotron-color;
|
||||||
background-color: $jumbotron-bg;
|
background-color: $jumbotron-bg;
|
||||||
@include border-radius($border-radius-lg);
|
@include border-radius($border-radius-lg);
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
// Hover state
|
// Hover state
|
||||||
@include hover-focus {
|
@include hover-focus {
|
||||||
|
z-index: 1; // Place hover/focus items above their siblings for proper border styling
|
||||||
color: $list-group-action-hover-color;
|
color: $list-group-action-hover-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: $list-group-hover-bg;
|
background-color: $list-group-hover-bg;
|
||||||
|
@ -46,6 +47,7 @@
|
||||||
padding: $list-group-item-padding-y $list-group-item-padding-x;
|
padding: $list-group-item-padding-y $list-group-item-padding-x;
|
||||||
// Place the border on the list items and negative margin up for better styling
|
// Place the border on the list items and negative margin up for better styling
|
||||||
margin-bottom: -$list-group-border-width;
|
margin-bottom: -$list-group-border-width;
|
||||||
|
color: $list-group-color;
|
||||||
background-color: $list-group-bg;
|
background-color: $list-group-bg;
|
||||||
border: $list-group-border-width solid $list-group-border-color;
|
border: $list-group-border-width solid $list-group-border-color;
|
||||||
|
|
||||||
|
@ -58,14 +60,10 @@
|
||||||
@include border-bottom-radius($list-group-border-radius);
|
@include border-bottom-radius($list-group-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
@include hover-focus {
|
|
||||||
z-index: 1; // Place hover/active items above their siblings for proper border styling
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.disabled,
|
&.disabled,
|
||||||
&:disabled {
|
&:disabled {
|
||||||
color: $list-group-disabled-color;
|
color: $list-group-disabled-color;
|
||||||
|
pointer-events: none;
|
||||||
background-color: $list-group-disabled-bg;
|
background-color: $list-group-disabled-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,6 +77,37 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Horizontal
|
||||||
|
//
|
||||||
|
// Change the layout of list group items from vertical (default) to horizontal.
|
||||||
|
|
||||||
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
||||||
|
@include media-breakpoint-up($breakpoint) {
|
||||||
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
||||||
|
|
||||||
|
.list-group-horizontal#{$infix} {
|
||||||
|
flex-direction: row;
|
||||||
|
|
||||||
|
.list-group-item {
|
||||||
|
margin-right: -$list-group-border-width;
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
@include border-left-radius($list-group-border-radius);
|
||||||
|
@include border-top-right-radius(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-right: 0;
|
||||||
|
@include border-right-radius($list-group-border-radius);
|
||||||
|
@include border-bottom-left-radius(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Flush list items
|
// Flush list items
|
||||||
//
|
//
|
||||||
// Remove borders and border-radius to keep list group items edge-to-edge. Most
|
// Remove borders and border-radius to keep list group items edge-to-edge. Most
|
||||||
|
@ -89,6 +118,10 @@
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
@include border-radius(0);
|
@include border-radius(0);
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: -$list-group-border-width;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
|
@ -99,6 +132,7 @@
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
.list-group-item:last-child {
|
.list-group-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,12 @@
|
||||||
//
|
//
|
||||||
// Used in conjunction with global variables to enable certain theme features.
|
// Used in conjunction with global variables to enable certain theme features.
|
||||||
|
|
||||||
|
// Vendor
|
||||||
|
@import "vendor/rfs";
|
||||||
|
|
||||||
|
// Deprecate
|
||||||
|
@import "mixins/deprecate";
|
||||||
|
|
||||||
// Utilities
|
// Utilities
|
||||||
@import "mixins/breakpoints";
|
@import "mixins/breakpoints";
|
||||||
@import "mixins/hover";
|
@import "mixins/hover";
|
||||||
|
@ -36,7 +42,6 @@
|
||||||
|
|
||||||
// // Layout
|
// // Layout
|
||||||
@import "mixins/clearfix";
|
@import "mixins/clearfix";
|
||||||
// @import "mixins/navbar-align";
|
|
||||||
@import "mixins/grid-framework";
|
@import "mixins/grid-framework";
|
||||||
@import "mixins/grid";
|
@import "mixins/grid";
|
||||||
@import "mixins/float";
|
@import "mixins/float";
|
||||||
|
|
|
@ -4,20 +4,25 @@
|
||||||
// .modal-content - actual modal w/ bg and corners and stuff
|
// .modal-content - actual modal w/ bg and corners and stuff
|
||||||
|
|
||||||
|
|
||||||
// Kill the scroll on the body
|
|
||||||
.modal-open {
|
.modal-open {
|
||||||
|
// Kill the scroll on the body
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
.modal {
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Container that the modal scrolls within
|
// Container that the modal scrolls within
|
||||||
.modal {
|
.modal {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: $zindex-modal;
|
z-index: $zindex-modal;
|
||||||
display: none;
|
display: none;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
// Prevent Chrome on Windows from adding a focus outline. For details, see
|
// Prevent Chrome on Windows from adding a focus outline. For details, see
|
||||||
// https://github.com/twbs/bootstrap/pull/10951.
|
// https://github.com/twbs/bootstrap/pull/10951.
|
||||||
|
@ -25,11 +30,6 @@
|
||||||
// We deliberately don't use `-webkit-overflow-scrolling: touch;` due to a
|
// We deliberately don't use `-webkit-overflow-scrolling: touch;` due to a
|
||||||
// gnarly iOS Safari bug: https://bugs.webkit.org/show_bug.cgi?id=158342
|
// gnarly iOS Safari bug: https://bugs.webkit.org/show_bug.cgi?id=158342
|
||||||
// See also https://github.com/twbs/bootstrap/issues/17695
|
// See also https://github.com/twbs/bootstrap/issues/17695
|
||||||
|
|
||||||
.modal-open & {
|
|
||||||
overflow-x: hidden;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shell div to position the modal with bottom padding
|
// Shell div to position the modal with bottom padding
|
||||||
|
@ -43,17 +43,58 @@
|
||||||
// When fading in the modal, animate it to slide down
|
// When fading in the modal, animate it to slide down
|
||||||
.modal.fade & {
|
.modal.fade & {
|
||||||
@include transition($modal-transition);
|
@include transition($modal-transition);
|
||||||
transform: translate(0, -25%);
|
transform: $modal-fade-transform;
|
||||||
}
|
}
|
||||||
.modal.show & {
|
.modal.show & {
|
||||||
transform: translate(0, 0);
|
transform: $modal-show-transform;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-dialog-scrollable {
|
||||||
|
display: flex; // IE10/11
|
||||||
|
max-height: calc(100% - #{$modal-dialog-margin * 2});
|
||||||
|
|
||||||
|
.modal-content {
|
||||||
|
max-height: calc(100vh - #{$modal-dialog-margin * 2}); // IE10/11
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-header,
|
||||||
|
.modal-footer {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-dialog-centered {
|
.modal-dialog-centered {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
min-height: calc(100% - (#{$modal-dialog-margin} * 2));
|
min-height: calc(100% - #{$modal-dialog-margin * 2});
|
||||||
|
|
||||||
|
// Ensure `modal-dialog-centered` extends the full height of the view (IE10/11)
|
||||||
|
&::before {
|
||||||
|
display: block; // IE10
|
||||||
|
height: calc(100vh - #{$modal-dialog-margin * 2});
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ensure `.modal-body` shows scrollbar (IE10/11)
|
||||||
|
&.modal-dialog-scrollable {
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.modal-content {
|
||||||
|
max-height: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actual modal
|
// Actual modal
|
||||||
|
@ -63,11 +104,12 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100%; // Ensure `.modal-content` extends the full width of the parent `.modal-dialog`
|
width: 100%; // Ensure `.modal-content` extends the full width of the parent `.modal-dialog`
|
||||||
// counteract the pointer-events: none; in the .modal-dialog
|
// counteract the pointer-events: none; in the .modal-dialog
|
||||||
|
color: $modal-content-color;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
background-color: $modal-content-bg;
|
background-color: $modal-content-bg;
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border: $modal-content-border-width solid $modal-content-border-color;
|
border: $modal-content-border-width solid $modal-content-border-color;
|
||||||
@include border-radius($border-radius-lg);
|
@include border-radius($modal-content-border-radius);
|
||||||
@include box-shadow($modal-content-box-shadow-xs);
|
@include box-shadow($modal-content-box-shadow-xs);
|
||||||
// Remove focus outline from opened modal
|
// Remove focus outline from opened modal
|
||||||
outline: 0;
|
outline: 0;
|
||||||
|
@ -77,10 +119,10 @@
|
||||||
.modal-backdrop {
|
.modal-backdrop {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: $zindex-modal-backdrop;
|
z-index: $zindex-modal-backdrop;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
background-color: $modal-backdrop-bg;
|
background-color: $modal-backdrop-bg;
|
||||||
|
|
||||||
// Fade for backdrop
|
// Fade for backdrop
|
||||||
|
@ -96,12 +138,12 @@
|
||||||
justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
|
justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
|
||||||
padding: $modal-header-padding;
|
padding: $modal-header-padding;
|
||||||
border-bottom: $modal-header-border-width solid $modal-header-border-color;
|
border-bottom: $modal-header-border-width solid $modal-header-border-color;
|
||||||
@include border-top-radius($border-radius-lg);
|
@include border-top-radius($modal-content-border-radius);
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
padding: $modal-header-padding;
|
padding: $modal-header-padding;
|
||||||
// auto on the left force icon to the right even when there is no .modal-title
|
// auto on the left force icon to the right even when there is no .modal-title
|
||||||
margin: (-$modal-header-padding) (-$modal-header-padding) (-$modal-header-padding) auto;
|
margin: (-$modal-header-padding-y) (-$modal-header-padding-x) (-$modal-header-padding-y) auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,6 +170,7 @@
|
||||||
justify-content: flex-end; // Right align buttons with flex property because text-align doesn't work on flex items
|
justify-content: flex-end; // Right align buttons with flex property because text-align doesn't work on flex items
|
||||||
padding: $modal-inner-padding;
|
padding: $modal-inner-padding;
|
||||||
border-top: $modal-footer-border-width solid $modal-footer-border-color;
|
border-top: $modal-footer-border-width solid $modal-footer-border-color;
|
||||||
|
@include border-bottom-radius($modal-content-border-radius);
|
||||||
|
|
||||||
// Easily place margin between footer elements
|
// Easily place margin between footer elements
|
||||||
> :not(:first-child) { margin-left: .25rem; }
|
> :not(:first-child) { margin-left: .25rem; }
|
||||||
|
@ -151,8 +194,20 @@
|
||||||
margin: $modal-dialog-margin-y-sm-up auto;
|
margin: $modal-dialog-margin-y-sm-up auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-dialog-scrollable {
|
||||||
|
max-height: calc(100% - #{$modal-dialog-margin-y-sm-up * 2});
|
||||||
|
|
||||||
|
.modal-content {
|
||||||
|
max-height: calc(100vh - #{$modal-dialog-margin-y-sm-up * 2});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.modal-dialog-centered {
|
.modal-dialog-centered {
|
||||||
min-height: calc(100% - (#{$modal-dialog-margin-y-sm-up} * 2));
|
min-height: calc(100% - #{$modal-dialog-margin-y-sm-up * 2});
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
height: calc(100vh - #{$modal-dialog-margin-y-sm-up * 2});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
|
@ -160,9 +215,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-sm { max-width: $modal-sm; }
|
.modal-sm { max-width: $modal-sm; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@include media-breakpoint-up(lg) {
|
@include media-breakpoint-up(lg) {
|
||||||
.modal-lg { max-width: $modal-lg; }
|
.modal-lg,
|
||||||
|
.modal-xl {
|
||||||
|
max-width: $modal-lg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(xl) {
|
||||||
|
.modal-xl { max-width: $modal-xl; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
// Disabled state lightens text
|
// Disabled state lightens text
|
||||||
&.disabled {
|
&.disabled {
|
||||||
color: $nav-link-disabled-color;
|
color: $nav-link-disabled-color;
|
||||||
|
pointer-events: none;
|
||||||
|
cursor: default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
padding: $navbar-padding-y $navbar-padding-x;
|
padding: $navbar-padding-y $navbar-padding-x;
|
||||||
|
|
||||||
// Because flex properties aren't inherited, we need to redeclare these first
|
// Because flex properties aren't inherited, we need to redeclare these first
|
||||||
// few properities so that content nested within behave properly.
|
// few properties so that content nested within behave properly.
|
||||||
> .container,
|
> .container,
|
||||||
> .container-fluid {
|
> .container-fluid {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
padding-top: $navbar-brand-padding-y;
|
padding-top: $navbar-brand-padding-y;
|
||||||
padding-bottom: $navbar-brand-padding-y;
|
padding-bottom: $navbar-brand-padding-y;
|
||||||
margin-right: $navbar-padding-x;
|
margin-right: $navbar-padding-x;
|
||||||
font-size: $navbar-brand-font-size;
|
@include font-size($navbar-brand-font-size);
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
// Powered by the collapse Bootstrap JavaScript plugin.
|
// Powered by the collapse Bootstrap JavaScript plugin.
|
||||||
|
|
||||||
// When collapsed, prevent the toggleable navbar contents from appearing in
|
// When collapsed, prevent the toggleable navbar contents from appearing in
|
||||||
// the default flexbox row orienation. Requires the use of `flex-wrap: wrap`
|
// the default flexbox row orientation. Requires the use of `flex-wrap: wrap`
|
||||||
// on the `.navbar` parent.
|
// on the `.navbar` parent.
|
||||||
.navbar-collapse {
|
.navbar-collapse {
|
||||||
flex-basis: 100%;
|
flex-basis: 100%;
|
||||||
|
@ -107,7 +107,7 @@
|
||||||
// Button for toggling the navbar when in its collapsed state
|
// Button for toggling the navbar when in its collapsed state
|
||||||
.navbar-toggler {
|
.navbar-toggler {
|
||||||
padding: $navbar-toggler-padding-y $navbar-toggler-padding-x;
|
padding: $navbar-toggler-padding-y $navbar-toggler-padding-x;
|
||||||
font-size: $navbar-toggler-font-size;
|
@include font-size($navbar-toggler-font-size);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
background-color: transparent; // remove default button style
|
background-color: transparent; // remove default button style
|
||||||
border: $border-width solid transparent; // remove default button style
|
border: $border-width solid transparent; // remove default button style
|
||||||
|
@ -116,11 +116,6 @@
|
||||||
@include hover-focus {
|
@include hover-focus {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Opinionated: add "hand" cursor to non-disabled .navbar-toggler elements
|
|
||||||
&:not(:disabled):not(.disabled) {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Keep as a separate element so folks can easily override it with another icon
|
// Keep as a separate element so folks can easily override it with another icon
|
||||||
|
@ -162,11 +157,6 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu-right {
|
|
||||||
right: 0;
|
|
||||||
left: auto; // Reset the default from `.dropdown-menu`
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-link {
|
.nav-link {
|
||||||
padding-right: $navbar-nav-link-padding-x;
|
padding-right: $navbar-nav-link-padding-x;
|
||||||
padding-left: $navbar-nav-link-padding-x;
|
padding-left: $navbar-nav-link-padding-x;
|
||||||
|
@ -180,7 +170,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-collapse {
|
.navbar-collapse {
|
||||||
display: flex !important; // stylelint-disable-line declaration-no-important
|
display: flex !important; // stylelint-disable-line declaration-no-important
|
||||||
|
|
||||||
// Changes flex-bases to auto because of an IE10 bug
|
// Changes flex-bases to auto because of an IE10 bug
|
||||||
flex-basis: auto;
|
flex-basis: auto;
|
||||||
|
@ -189,13 +179,6 @@
|
||||||
.navbar-toggler {
|
.navbar-toggler {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropup {
|
|
||||||
.dropdown-menu {
|
|
||||||
top: auto;
|
|
||||||
bottom: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -209,10 +192,10 @@
|
||||||
// Dark links against a light background
|
// Dark links against a light background
|
||||||
.navbar-light {
|
.navbar-light {
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
color: $navbar-light-active-color;
|
color: $navbar-light-brand-color;
|
||||||
|
|
||||||
@include hover-focus {
|
@include hover-focus {
|
||||||
color: $navbar-light-active-color;
|
color: $navbar-light-brand-hover-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,10 +244,10 @@
|
||||||
// White links against a dark background
|
// White links against a dark background
|
||||||
.navbar-dark {
|
.navbar-dark {
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
color: $navbar-dark-active-color;
|
color: $navbar-dark-brand-color;
|
||||||
|
|
||||||
@include hover-focus {
|
@include hover-focus {
|
||||||
color: $navbar-dark-active-color;
|
color: $navbar-dark-brand-hover-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
border: $pagination-border-width solid $pagination-border-color;
|
border: $pagination-border-width solid $pagination-border-color;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
z-index: 2;
|
||||||
color: $pagination-hover-color;
|
color: $pagination-hover-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: $pagination-hover-bg;
|
background-color: $pagination-hover-bg;
|
||||||
|
@ -23,14 +24,9 @@
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
outline: 0;
|
outline: $pagination-focus-outline;
|
||||||
box-shadow: $pagination-focus-box-shadow;
|
box-shadow: $pagination-focus-box-shadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Opinionated: add "hand" cursor to non-disabled .page-link elements
|
|
||||||
&:not(:disabled):not(.disabled) {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-item {
|
.page-item {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
||||||
// So reset our font and text properties to avoid inheriting weird values.
|
// So reset our font and text properties to avoid inheriting weird values.
|
||||||
@include reset-text();
|
@include reset-text();
|
||||||
font-size: $popover-font-size;
|
@include font-size($popover-font-size);
|
||||||
// Allow breaking very long words so they don't overflow the popover's bounds
|
// Allow breaking very long words so they don't overflow the popover's bounds
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
background-color: $popover-bg;
|
background-color: $popover-bg;
|
||||||
|
@ -38,72 +38,63 @@
|
||||||
.bs-popover-top {
|
.bs-popover-top {
|
||||||
margin-bottom: $popover-arrow-height;
|
margin-bottom: $popover-arrow-height;
|
||||||
|
|
||||||
.arrow {
|
> .arrow {
|
||||||
bottom: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
bottom: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
||||||
}
|
|
||||||
|
|
||||||
.arrow::before,
|
&::before {
|
||||||
.arrow::after {
|
bottom: 0;
|
||||||
border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
|
border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
|
||||||
}
|
border-top-color: $popover-arrow-outer-color;
|
||||||
|
}
|
||||||
|
|
||||||
.arrow::before {
|
&::after {
|
||||||
bottom: 0;
|
bottom: $popover-border-width;
|
||||||
border-top-color: $popover-arrow-outer-color;
|
border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
|
||||||
}
|
border-top-color: $popover-arrow-color;
|
||||||
|
}
|
||||||
.arrow::after {
|
|
||||||
bottom: $popover-border-width;
|
|
||||||
border-top-color: $popover-arrow-color;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-right {
|
.bs-popover-right {
|
||||||
margin-left: $popover-arrow-height;
|
margin-left: $popover-arrow-height;
|
||||||
|
|
||||||
.arrow {
|
> .arrow {
|
||||||
left: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
left: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
||||||
width: $popover-arrow-height;
|
width: $popover-arrow-height;
|
||||||
height: $popover-arrow-width;
|
height: $popover-arrow-width;
|
||||||
margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
|
margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
|
||||||
}
|
|
||||||
|
|
||||||
.arrow::before,
|
&::before {
|
||||||
.arrow::after {
|
left: 0;
|
||||||
border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
|
border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
|
||||||
}
|
border-right-color: $popover-arrow-outer-color;
|
||||||
|
}
|
||||||
|
|
||||||
.arrow::before {
|
&::after {
|
||||||
left: 0;
|
left: $popover-border-width;
|
||||||
border-right-color: $popover-arrow-outer-color;
|
border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
|
||||||
}
|
border-right-color: $popover-arrow-color;
|
||||||
|
}
|
||||||
.arrow::after {
|
|
||||||
left: $popover-border-width;
|
|
||||||
border-right-color: $popover-arrow-color;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.bs-popover-bottom {
|
.bs-popover-bottom {
|
||||||
margin-top: $popover-arrow-height;
|
margin-top: $popover-arrow-height;
|
||||||
|
|
||||||
.arrow {
|
> .arrow {
|
||||||
top: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
top: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
||||||
}
|
|
||||||
|
|
||||||
.arrow::before,
|
&::before {
|
||||||
.arrow::after {
|
top: 0;
|
||||||
border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
|
border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
|
||||||
}
|
border-bottom-color: $popover-arrow-outer-color;
|
||||||
|
}
|
||||||
|
|
||||||
.arrow::before {
|
&::after {
|
||||||
top: 0;
|
top: $popover-border-width;
|
||||||
border-bottom-color: $popover-arrow-outer-color;
|
border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
|
||||||
}
|
border-bottom-color: $popover-arrow-color;
|
||||||
|
}
|
||||||
.arrow::after {
|
|
||||||
top: $popover-border-width;
|
|
||||||
border-bottom-color: $popover-arrow-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This will remove the popover-header's border just below the arrow
|
// This will remove the popover-header's border just below the arrow
|
||||||
|
@ -113,7 +104,7 @@
|
||||||
left: 50%;
|
left: 50%;
|
||||||
display: block;
|
display: block;
|
||||||
width: $popover-arrow-width;
|
width: $popover-arrow-width;
|
||||||
margin-left: ($popover-arrow-width / -2);
|
margin-left: -$popover-arrow-width / 2;
|
||||||
content: "";
|
content: "";
|
||||||
border-bottom: $popover-border-width solid $popover-header-bg;
|
border-bottom: $popover-border-width solid $popover-header-bg;
|
||||||
}
|
}
|
||||||
|
@ -122,26 +113,23 @@
|
||||||
.bs-popover-left {
|
.bs-popover-left {
|
||||||
margin-right: $popover-arrow-height;
|
margin-right: $popover-arrow-height;
|
||||||
|
|
||||||
.arrow {
|
> .arrow {
|
||||||
right: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
right: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
||||||
width: $popover-arrow-height;
|
width: $popover-arrow-height;
|
||||||
height: $popover-arrow-width;
|
height: $popover-arrow-width;
|
||||||
margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
|
margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
|
||||||
}
|
|
||||||
|
|
||||||
.arrow::before,
|
&::before {
|
||||||
.arrow::after {
|
right: 0;
|
||||||
border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
|
border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
|
||||||
}
|
border-left-color: $popover-arrow-outer-color;
|
||||||
|
}
|
||||||
|
|
||||||
.arrow::before {
|
&::after {
|
||||||
right: 0;
|
right: $popover-border-width;
|
||||||
border-left-color: $popover-arrow-outer-color;
|
border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
|
||||||
}
|
border-left-color: $popover-arrow-color;
|
||||||
|
}
|
||||||
.arrow::after {
|
|
||||||
right: $popover-border-width;
|
|
||||||
border-left-color: $popover-arrow-color;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +153,7 @@
|
||||||
.popover-header {
|
.popover-header {
|
||||||
padding: $popover-header-padding-y $popover-header-padding-x;
|
padding: $popover-header-padding-y $popover-header-padding-x;
|
||||||
margin-bottom: 0; // Reset the default from Reboot
|
margin-bottom: 0; // Reset the default from Reboot
|
||||||
font-size: $font-size-base;
|
@include font-size($font-size-base);
|
||||||
color: $popover-header-color;
|
color: $popover-header-color;
|
||||||
background-color: $popover-header-bg;
|
background-color: $popover-header-bg;
|
||||||
border-bottom: $popover-border-width solid darken($popover-header-bg, 5%);
|
border-bottom: $popover-border-width solid darken($popover-header-bg, 5%);
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
// Print styles.
|
// Print styles.
|
||||||
// Inlined to avoid the additional HTTP request:
|
// Inlined to avoid the additional HTTP request:
|
||||||
// http://www.phpied.com/delay-loading-your-print-css/
|
// https://www.phpied.com/delay-loading-your-print-css/
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
|
|
||||||
@if $enable-print-styles {
|
@if $enable-print-styles {
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
*::before,
|
*::before,
|
||||||
*::after {
|
*::after {
|
||||||
// Bootstrap specific; comment out `color` and `background`
|
// Bootstrap specific; comment out `color` and `background`
|
||||||
//color: #000 !important; // Black prints faster: http://www.sanbeiji.com/archives/953
|
//color: $black !important; // Black prints faster
|
||||||
text-shadow: none !important;
|
text-shadow: none !important;
|
||||||
//background: transparent !important;
|
//background: transparent !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
}
|
}
|
||||||
pre,
|
pre,
|
||||||
blockquote {
|
blockquote {
|
||||||
border: $border-width solid #999; // Bootstrap custom code; using `$border-width` instead of 1px
|
border: $border-width solid $gray-500; // Bootstrap custom code; using `$border-width` instead of 1px
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.badge {
|
.badge {
|
||||||
border: $border-width solid #000;
|
border: $border-width solid $black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
|
@ -109,16 +109,33 @@
|
||||||
|
|
||||||
td,
|
td,
|
||||||
th {
|
th {
|
||||||
background-color: #fff !important;
|
background-color: $white !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-bordered {
|
.table-bordered {
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
border: 1px solid #ddd !important;
|
border: 1px solid $gray-300 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-dark {
|
||||||
|
color: inherit;
|
||||||
|
|
||||||
|
th,
|
||||||
|
td,
|
||||||
|
thead th,
|
||||||
|
tbody + tbody {
|
||||||
|
border-color: $table-border-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.table .thead-dark th {
|
||||||
|
color: inherit;
|
||||||
|
border-color: $table-border-color;
|
||||||
|
}
|
||||||
|
|
||||||
// Bootstrap specific changes end
|
// Bootstrap specific changes end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
@keyframes progress-bar-stripes {
|
// Disable animation if transitions are disabled
|
||||||
from { background-position: $progress-height 0; }
|
@if $enable-transitions {
|
||||||
to { background-position: 0 0; }
|
@keyframes progress-bar-stripes {
|
||||||
|
from { background-position: $progress-height 0; }
|
||||||
|
to { background-position: 0 0; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: $progress-height;
|
height: $progress-height;
|
||||||
overflow: hidden; // force rounded corners by cropping it
|
overflow: hidden; // force rounded corners by cropping it
|
||||||
font-size: $progress-font-size;
|
@include font-size($progress-font-size);
|
||||||
background-color: $progress-bg;
|
background-color: $progress-bg;
|
||||||
@include border-radius($progress-border-radius);
|
@include border-radius($progress-border-radius);
|
||||||
@include box-shadow($progress-box-shadow);
|
@include box-shadow($progress-box-shadow);
|
||||||
|
@ -19,6 +22,7 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: $progress-bar-color;
|
color: $progress-bar-color;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
background-color: $progress-bar-bg;
|
background-color: $progress-bar-bg;
|
||||||
@include transition($progress-bar-transition);
|
@include transition($progress-bar-transition);
|
||||||
}
|
}
|
||||||
|
@ -28,6 +32,12 @@
|
||||||
background-size: $progress-height $progress-height;
|
background-size: $progress-height $progress-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-bar-animated {
|
@if $enable-transitions {
|
||||||
animation: progress-bar-stripes $progress-bar-animation-timing;
|
.progress-bar-animated {
|
||||||
|
animation: progress-bar-stripes $progress-bar-animation-timing;
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,9 +14,7 @@
|
||||||
// 2. Change the default font family in all browsers.
|
// 2. Change the default font family in all browsers.
|
||||||
// 3. Correct the line height in all browsers.
|
// 3. Correct the line height in all browsers.
|
||||||
// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.
|
// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.
|
||||||
// 5. Setting @viewport causes scrollbars to overlap content in IE11 and Edge, so
|
// 5. Change the default tap highlight to be completely transparent in iOS.
|
||||||
// we force a non-overlapping, non-auto-hiding scrollbar to counteract.
|
|
||||||
// 6. Change the default tap highlight to be completely transparent in iOS.
|
|
||||||
|
|
||||||
*,
|
*,
|
||||||
*::before,
|
*::before,
|
||||||
|
@ -28,36 +26,27 @@ html {
|
||||||
font-family: sans-serif; // 2
|
font-family: sans-serif; // 2
|
||||||
line-height: 1.15; // 3
|
line-height: 1.15; // 3
|
||||||
-webkit-text-size-adjust: 100%; // 4
|
-webkit-text-size-adjust: 100%; // 4
|
||||||
-ms-text-size-adjust: 100%; // 4
|
-webkit-tap-highlight-color: rgba($black, 0); // 5
|
||||||
-ms-overflow-style: scrollbar; // 5
|
|
||||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 6
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// IE10+ doesn't honor `<meta name="viewport">` in some cases.
|
|
||||||
@at-root {
|
|
||||||
@-ms-viewport {
|
|
||||||
width: device-width;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// stylelint-disable selector-list-comma-newline-after
|
|
||||||
// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
|
// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
|
||||||
article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
|
// TODO: remove in v5
|
||||||
|
// stylelint-disable-next-line selector-list-comma-newline-after
|
||||||
|
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
// stylelint-enable selector-list-comma-newline-after
|
|
||||||
|
|
||||||
// Body
|
// Body
|
||||||
//
|
//
|
||||||
// 1. Remove the margin in all browsers.
|
// 1. Remove the margin in all browsers.
|
||||||
// 2. As a best practice, apply a default `background-color`.
|
// 2. As a best practice, apply a default `background-color`.
|
||||||
// 3. Set an explicit initial text-align value so that we can later use the
|
// 3. Set an explicit initial text-align value so that we can later use
|
||||||
// the `inherit` value on things like `<th>` elements.
|
// the `inherit` value on things like `<th>` elements.
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0; // 1
|
margin: 0; // 1
|
||||||
font-family: $font-family-base;
|
font-family: $font-family-base;
|
||||||
font-size: $font-size-base;
|
@include font-size($font-size-base);
|
||||||
font-weight: $font-weight-base;
|
font-weight: $font-weight-base;
|
||||||
line-height: $line-height-base;
|
line-height: $line-height-base;
|
||||||
color: $body-color;
|
color: $body-color;
|
||||||
|
@ -95,12 +84,11 @@ hr {
|
||||||
//
|
//
|
||||||
// By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
|
// By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
|
||||||
// margin for easier control within type scales as it avoids margin collapsing.
|
// margin for easier control within type scales as it avoids margin collapsing.
|
||||||
// stylelint-disable selector-list-comma-newline-after
|
// stylelint-disable-next-line selector-list-comma-newline-after
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: $headings-margin-bottom;
|
margin-bottom: $headings-margin-bottom;
|
||||||
}
|
}
|
||||||
// stylelint-enable selector-list-comma-newline-after
|
|
||||||
|
|
||||||
// Reset margins on paragraphs
|
// Reset margins on paragraphs
|
||||||
//
|
//
|
||||||
|
@ -113,17 +101,19 @@ p {
|
||||||
|
|
||||||
// Abbreviations
|
// Abbreviations
|
||||||
//
|
//
|
||||||
// 1. Remove the bottom border in Firefox 39-.
|
// 1. Duplicate behavior to the data-* attribute for our tooltip plugin
|
||||||
// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||||
// 3. Add explicit cursor to indicate changed behavior.
|
// 3. Add explicit cursor to indicate changed behavior.
|
||||||
// 4. Duplicate behavior to the data-* attribute for our tooltip plugin
|
// 4. Remove the bottom border in Firefox 39-.
|
||||||
|
// 5. Prevent the text-decoration to be skipped.
|
||||||
|
|
||||||
abbr[title],
|
abbr[title],
|
||||||
abbr[data-original-title] { // 4
|
abbr[data-original-title] { // 1
|
||||||
text-decoration: underline; // 2
|
text-decoration: underline; // 2
|
||||||
text-decoration: underline dotted; // 2
|
text-decoration: underline dotted; // 2
|
||||||
cursor: help; // 3
|
cursor: help; // 3
|
||||||
border-bottom: 0; // 1
|
border-bottom: 0; // 4
|
||||||
|
text-decoration-skip-ink: none; // 5
|
||||||
}
|
}
|
||||||
|
|
||||||
address {
|
address {
|
||||||
|
@ -159,19 +149,13 @@ blockquote {
|
||||||
margin: 0 0 1rem;
|
margin: 0 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
dfn {
|
|
||||||
font-style: italic; // Add the correct font style in Android 4.3-
|
|
||||||
}
|
|
||||||
|
|
||||||
// stylelint-disable font-weight-notation
|
|
||||||
b,
|
b,
|
||||||
strong {
|
strong {
|
||||||
font-weight: bolder; // Add the correct font weight in Chrome, Edge, and Safari
|
font-weight: $font-weight-bolder; // Add the correct font weight in Chrome, Edge, and Safari
|
||||||
}
|
}
|
||||||
// stylelint-enable font-weight-notation
|
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size: 80%; // Add the correct font size in all browsers
|
@include font-size(80%); // Add the correct font size in all browsers
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -182,7 +166,7 @@ small {
|
||||||
sub,
|
sub,
|
||||||
sup {
|
sup {
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 75%;
|
@include font-size(75%);
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
|
@ -199,7 +183,6 @@ a {
|
||||||
color: $link-color;
|
color: $link-color;
|
||||||
text-decoration: $link-decoration;
|
text-decoration: $link-decoration;
|
||||||
background-color: transparent; // Remove the gray background on active links in IE 10.
|
background-color: transparent; // Remove the gray background on active links in IE 10.
|
||||||
-webkit-text-decoration-skip: objects; // Remove gaps in links underline in iOS 8+ and Safari 8+.
|
|
||||||
|
|
||||||
@include hover {
|
@include hover {
|
||||||
color: $link-hover-color;
|
color: $link-hover-color;
|
||||||
|
@ -232,15 +215,13 @@ a:not([href]):not([tabindex]) {
|
||||||
// Code
|
// Code
|
||||||
//
|
//
|
||||||
|
|
||||||
// stylelint-disable font-family-no-duplicate-names
|
|
||||||
pre,
|
pre,
|
||||||
code,
|
code,
|
||||||
kbd,
|
kbd,
|
||||||
samp {
|
samp {
|
||||||
font-family: monospace, monospace; // Correct the inheritance and scaling of font size in all browsers.
|
font-family: $font-family-monospace;
|
||||||
font-size: 1em; // Correct the odd `em` font sizing in all browsers.
|
@include font-size(1em); // Correct the odd `em` font sizing in all browsers.
|
||||||
}
|
}
|
||||||
// stylelint-enable font-family-no-duplicate-names
|
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
// Remove browser default top margin
|
// Remove browser default top margin
|
||||||
|
@ -249,9 +230,6 @@ pre {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
// Don't allow content to break outside
|
// Don't allow content to break outside
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
// We have @viewport set which causes scrollbars to overlap content in IE11 and Edge, so
|
|
||||||
// we force a non-overlapping, non-auto-hiding scrollbar to counteract.
|
|
||||||
-ms-overflow-style: scrollbar;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -274,8 +252,11 @@ img {
|
||||||
border-style: none; // Remove the border on images inside links in IE 10-.
|
border-style: none; // Remove the border on images inside links in IE 10-.
|
||||||
}
|
}
|
||||||
|
|
||||||
svg:not(:root) {
|
svg {
|
||||||
overflow: hidden; // Hide the overflow in IE
|
// Workaround for the SVG overflow bug in IE10/11 is still required.
|
||||||
|
// See https://github.com/twbs/bootstrap/issues/26878
|
||||||
|
overflow: hidden;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -290,7 +271,7 @@ table {
|
||||||
caption {
|
caption {
|
||||||
padding-top: $table-cell-padding;
|
padding-top: $table-cell-padding;
|
||||||
padding-bottom: $table-cell-padding;
|
padding-bottom: $table-cell-padding;
|
||||||
color: $text-muted;
|
color: $table-caption-color;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
caption-side: bottom;
|
caption-side: bottom;
|
||||||
}
|
}
|
||||||
|
@ -309,13 +290,14 @@ th {
|
||||||
label {
|
label {
|
||||||
// Allow labels to use `margin` for spacing.
|
// Allow labels to use `margin` for spacing.
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: .5rem;
|
margin-bottom: $label-margin-bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the default `border-radius` that macOS Chrome adds.
|
// Remove the default `border-radius` that macOS Chrome adds.
|
||||||
//
|
//
|
||||||
// Details at https://github.com/twbs/bootstrap/issues/24093
|
// Details at https://github.com/twbs/bootstrap/issues/24093
|
||||||
button {
|
button {
|
||||||
|
// stylelint-disable-next-line property-blacklist
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -335,7 +317,7 @@ optgroup,
|
||||||
textarea {
|
textarea {
|
||||||
margin: 0; // Remove the margin in Firefox and Safari
|
margin: 0; // Remove the margin in Firefox and Safari
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: inherit;
|
@include font-size(inherit);
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -349,16 +331,36 @@ select {
|
||||||
text-transform: none; // Remove the inheritance of text transform in Firefox
|
text-transform: none; // Remove the inheritance of text transform in Firefox
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove the inheritance of word-wrap in Safari.
|
||||||
|
//
|
||||||
|
// Details at https://github.com/twbs/bootstrap/issues/24990
|
||||||
|
select {
|
||||||
|
word-wrap: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
||||||
// controls in Android 4.
|
// controls in Android 4.
|
||||||
// 2. Correct the inability to style clickable types in iOS and Safari.
|
// 2. Correct the inability to style clickable types in iOS and Safari.
|
||||||
button,
|
button,
|
||||||
html [type="button"], // 1
|
[type="button"], // 1
|
||||||
[type="reset"],
|
[type="reset"],
|
||||||
[type="submit"] {
|
[type="submit"] {
|
||||||
-webkit-appearance: button; // 2
|
-webkit-appearance: button; // 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Opinionated: add "hand" cursor to non-disabled button elements.
|
||||||
|
@if $enable-pointer-cursor-for-buttons {
|
||||||
|
button,
|
||||||
|
[type="button"],
|
||||||
|
[type="reset"],
|
||||||
|
[type="submit"] {
|
||||||
|
&:not(:disabled) {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.
|
// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.
|
||||||
button::-moz-focus-inner,
|
button::-moz-focus-inner,
|
||||||
[type="button"]::-moz-focus-inner,
|
[type="button"]::-moz-focus-inner,
|
||||||
|
@ -414,7 +416,7 @@ legend {
|
||||||
max-width: 100%; // 1
|
max-width: 100%; // 1
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-bottom: .5rem;
|
margin-bottom: .5rem;
|
||||||
font-size: 1.5rem;
|
@include font-size(1.5rem);
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
color: inherit; // 2
|
color: inherit; // 2
|
||||||
white-space: normal; // 1
|
white-space: normal; // 1
|
||||||
|
@ -440,10 +442,9 @@ progress {
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
|
// Remove the inner padding in Chrome and Safari on macOS.
|
||||||
//
|
//
|
||||||
|
|
||||||
[type="search"]::-webkit-search-cancel-button,
|
|
||||||
[type="search"]::-webkit-search-decoration {
|
[type="search"]::-webkit-search-decoration {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
55
assets/scss/bootstrap/_spinners.scss
Executable file
55
assets/scss/bootstrap/_spinners.scss
Executable file
|
@ -0,0 +1,55 @@
|
||||||
|
//
|
||||||
|
// Rotating border
|
||||||
|
//
|
||||||
|
|
||||||
|
@keyframes spinner-border {
|
||||||
|
to { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.spinner-border {
|
||||||
|
display: inline-block;
|
||||||
|
width: $spinner-width;
|
||||||
|
height: $spinner-height;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
border: $spinner-border-width solid currentColor;
|
||||||
|
border-right-color: transparent;
|
||||||
|
// stylelint-disable-next-line property-blacklist
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: spinner-border .75s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spinner-border-sm {
|
||||||
|
width: $spinner-width-sm;
|
||||||
|
height: $spinner-height-sm;
|
||||||
|
border-width: $spinner-border-width-sm;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Growing circle
|
||||||
|
//
|
||||||
|
|
||||||
|
@keyframes spinner-grow {
|
||||||
|
0% {
|
||||||
|
transform: scale(0);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.spinner-grow {
|
||||||
|
display: inline-block;
|
||||||
|
width: $spinner-width;
|
||||||
|
height: $spinner-height;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
background-color: currentColor;
|
||||||
|
// stylelint-disable-next-line property-blacklist
|
||||||
|
border-radius: 50%;
|
||||||
|
opacity: 0;
|
||||||
|
animation: spinner-grow .75s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spinner-grow-sm {
|
||||||
|
width: $spinner-width-sm;
|
||||||
|
height: $spinner-height-sm;
|
||||||
|
}
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100%;
|
|
||||||
margin-bottom: $spacer;
|
margin-bottom: $spacer;
|
||||||
|
color: $table-color;
|
||||||
background-color: $table-bg; // Reset for nesting within parents with `background-color`.
|
background-color: $table-bg; // Reset for nesting within parents with `background-color`.
|
||||||
|
|
||||||
th,
|
th,
|
||||||
|
@ -23,10 +23,6 @@
|
||||||
tbody + tbody {
|
tbody + tbody {
|
||||||
border-top: (2 * $table-border-width) solid $table-border-color;
|
border-top: (2 * $table-border-width) solid $table-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table {
|
|
||||||
background-color: $body-bg;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,9 +38,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Bordered version
|
// Border versions
|
||||||
//
|
//
|
||||||
// Add borders all around the table and between all the columns.
|
// Add or remove borders all around the table and between all the columns.
|
||||||
|
|
||||||
.table-bordered {
|
.table-bordered {
|
||||||
border: $table-border-width solid $table-border-color;
|
border: $table-border-width solid $table-border-color;
|
||||||
|
@ -57,18 +53,26 @@
|
||||||
thead {
|
thead {
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
border-bottom-width: (2 * $table-border-width);
|
border-bottom-width: 2 * $table-border-width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-borderless {
|
||||||
|
th,
|
||||||
|
td,
|
||||||
|
thead th,
|
||||||
|
tbody + tbody {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Zebra-striping
|
// Zebra-striping
|
||||||
//
|
//
|
||||||
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
||||||
|
|
||||||
.table-striped {
|
.table-striped {
|
||||||
tbody tr:nth-of-type(odd) {
|
tbody tr:nth-of-type(#{$table-striped-order}) {
|
||||||
background-color: $table-accent-bg;
|
background-color: $table-accent-bg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,6 +85,7 @@
|
||||||
.table-hover {
|
.table-hover {
|
||||||
tbody tr {
|
tbody tr {
|
||||||
@include hover {
|
@include hover {
|
||||||
|
color: $table-hover-color;
|
||||||
background-color: $table-hover-bg;
|
background-color: $table-hover-bg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,7 +98,7 @@
|
||||||
// inheritance to nested tables.
|
// inheritance to nested tables.
|
||||||
|
|
||||||
@each $color, $value in $theme-colors {
|
@each $color, $value in $theme-colors {
|
||||||
@include table-row-variant($color, theme-color-level($color, -9));
|
@include table-row-variant($color, theme-color-level($color, $table-bg-level), theme-color-level($color, $table-border-level));
|
||||||
}
|
}
|
||||||
|
|
||||||
@include table-row-variant(active, $table-active-bg);
|
@include table-row-variant(active, $table-active-bg);
|
||||||
|
@ -145,6 +150,7 @@
|
||||||
&.table-hover {
|
&.table-hover {
|
||||||
tbody tr {
|
tbody tr {
|
||||||
@include hover {
|
@include hover {
|
||||||
|
color: $table-dark-hover-color;
|
||||||
background-color: $table-dark-hover-bg;
|
background-color: $table-dark-hover-bg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -168,7 +174,6 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
-ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
|
|
||||||
|
|
||||||
// Prevent double border on horizontal scroll due to use of `display: block;`
|
// Prevent double border on horizontal scroll due to use of `display: block;`
|
||||||
> .table-bordered {
|
> .table-bordered {
|
||||||
|
|
44
assets/scss/bootstrap/_toasts.scss
Executable file
44
assets/scss/bootstrap/_toasts.scss
Executable file
|
@ -0,0 +1,44 @@
|
||||||
|
.toast {
|
||||||
|
max-width: $toast-max-width;
|
||||||
|
overflow: hidden; // cheap rounded corners on nested items
|
||||||
|
@include font-size($toast-font-size);
|
||||||
|
color: $toast-color;
|
||||||
|
background-color: $toast-background-color;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border: $toast-border-width solid $toast-border-color;
|
||||||
|
box-shadow: $toast-box-shadow;
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
opacity: 0;
|
||||||
|
@include border-radius($toast-border-radius);
|
||||||
|
|
||||||
|
&:not(:last-child) {
|
||||||
|
margin-bottom: $toast-padding-x;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.showing {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.show {
|
||||||
|
display: block;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.toast-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: $toast-padding-y $toast-padding-x;
|
||||||
|
color: $toast-header-color;
|
||||||
|
background-color: $toast-header-background-color;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border-bottom: $toast-border-width solid $toast-header-border-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toast-body {
|
||||||
|
padding: $toast-padding-x; // apply to both vertical and horizontal
|
||||||
|
}
|
|
@ -7,7 +7,7 @@
|
||||||
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
||||||
// So reset our font and text properties to avoid inheriting weird values.
|
// So reset our font and text properties to avoid inheriting weird values.
|
||||||
@include reset-text();
|
@include reset-text();
|
||||||
font-size: $tooltip-font-size;
|
@include font-size($tooltip-font-size);
|
||||||
// Allow breaking very long words so they don't overflow the tooltip's bounds
|
// Allow breaking very long words so they don't overflow the tooltip's bounds
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
|
@ -1,30 +1,14 @@
|
||||||
// stylelint-disable selector-no-qualifying-type
|
|
||||||
|
|
||||||
.fade {
|
.fade {
|
||||||
opacity: 0;
|
|
||||||
@include transition($transition-fade);
|
@include transition($transition-fade);
|
||||||
|
|
||||||
&.show {
|
&:not(.show) {
|
||||||
opacity: 1;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.collapse {
|
.collapse {
|
||||||
display: none;
|
&:not(.show) {
|
||||||
&.show {
|
display: none;
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tr {
|
|
||||||
&.collapse.show {
|
|
||||||
display: table-row;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tbody {
|
|
||||||
&.collapse.show {
|
|
||||||
display: table-row-group;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,18 +4,8 @@
|
||||||
// Headings
|
// Headings
|
||||||
//
|
//
|
||||||
|
|
||||||
h1,
|
h1, h2, h3, h4, h5, h6,
|
||||||
h2,
|
.h1, .h2, .h3, .h4, .h5, .h6 {
|
||||||
h3,
|
|
||||||
h4,
|
|
||||||
h5,
|
|
||||||
h6,
|
|
||||||
.h1,
|
|
||||||
.h2,
|
|
||||||
.h3,
|
|
||||||
.h4,
|
|
||||||
.h5,
|
|
||||||
.h6 {
|
|
||||||
margin-bottom: $headings-margin-bottom;
|
margin-bottom: $headings-margin-bottom;
|
||||||
font-family: $headings-font-family;
|
font-family: $headings-font-family;
|
||||||
font-weight: $headings-font-weight;
|
font-weight: $headings-font-weight;
|
||||||
|
@ -23,58 +13,41 @@ h6,
|
||||||
color: $headings-color;
|
color: $headings-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1, .h1 { @include font-size($h1-font-size); }
|
||||||
.h1 {
|
h2, .h2 { @include font-size($h2-font-size); }
|
||||||
font-size: $h1-font-size;
|
h3, .h3 { @include font-size($h3-font-size); }
|
||||||
}
|
h4, .h4 { @include font-size($h4-font-size); }
|
||||||
h2,
|
h5, .h5 { @include font-size($h5-font-size); }
|
||||||
.h2 {
|
h6, .h6 { @include font-size($h6-font-size); }
|
||||||
font-size: $h2-font-size;
|
|
||||||
}
|
|
||||||
h3,
|
|
||||||
.h3 {
|
|
||||||
font-size: $h3-font-size;
|
|
||||||
}
|
|
||||||
h4,
|
|
||||||
.h4 {
|
|
||||||
font-size: $h4-font-size;
|
|
||||||
}
|
|
||||||
h5,
|
|
||||||
.h5 {
|
|
||||||
font-size: $h5-font-size;
|
|
||||||
}
|
|
||||||
h6,
|
|
||||||
.h6 {
|
|
||||||
font-size: $h6-font-size;
|
|
||||||
}
|
|
||||||
|
|
||||||
.lead {
|
.lead {
|
||||||
font-size: $lead-font-size;
|
@include font-size($lead-font-size);
|
||||||
font-weight: $lead-font-weight;
|
font-weight: $lead-font-weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type display classes
|
// Type display classes
|
||||||
.display-1 {
|
.display-1 {
|
||||||
font-size: $display1-size;
|
@include font-size($display1-size);
|
||||||
font-weight: $display1-weight;
|
font-weight: $display1-weight;
|
||||||
line-height: $display-line-height;
|
line-height: $display-line-height;
|
||||||
}
|
}
|
||||||
.display-2 {
|
.display-2 {
|
||||||
font-size: $display2-size;
|
@include font-size($display2-size);
|
||||||
font-weight: $display2-weight;
|
font-weight: $display2-weight;
|
||||||
line-height: $display-line-height;
|
line-height: $display-line-height;
|
||||||
}
|
}
|
||||||
.display-3 {
|
.display-3 {
|
||||||
font-size: $display3-size;
|
@include font-size($display3-size);
|
||||||
font-weight: $display3-weight;
|
font-weight: $display3-weight;
|
||||||
line-height: $display-line-height;
|
line-height: $display-line-height;
|
||||||
}
|
}
|
||||||
.display-4 {
|
.display-4 {
|
||||||
font-size: $display4-size;
|
@include font-size($display4-size);
|
||||||
font-weight: $display4-weight;
|
font-weight: $display4-weight;
|
||||||
line-height: $display-line-height;
|
line-height: $display-line-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Horizontal rules
|
// Horizontal rules
|
||||||
//
|
//
|
||||||
|
@ -86,14 +59,15 @@ hr {
|
||||||
border-top: $hr-border-width solid $hr-border-color;
|
border-top: $hr-border-width solid $hr-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Emphasis
|
// Emphasis
|
||||||
//
|
//
|
||||||
|
|
||||||
small,
|
small,
|
||||||
.small {
|
.small {
|
||||||
font-size: $small-font-size;
|
@include font-size($small-font-size);
|
||||||
font-weight: 400;
|
font-weight: $font-weight-normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
mark,
|
mark,
|
||||||
|
@ -102,6 +76,7 @@ mark,
|
||||||
background-color: $mark-bg;
|
background-color: $mark-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Lists
|
// Lists
|
||||||
//
|
//
|
||||||
|
@ -122,28 +97,29 @@ mark,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Misc
|
// Misc
|
||||||
//
|
//
|
||||||
|
|
||||||
// Builds on `abbr`
|
// Builds on `abbr`
|
||||||
.initialism {
|
.initialism {
|
||||||
font-size: 90%;
|
@include font-size(90%);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Blockquotes
|
// Blockquotes
|
||||||
.blockquote {
|
.blockquote {
|
||||||
margin-bottom: $spacer;
|
margin-bottom: $spacer;
|
||||||
font-size: $blockquote-font-size;
|
@include font-size($blockquote-font-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
.blockquote-footer {
|
.blockquote-footer {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 80%; // back to default font-size
|
@include font-size($blockquote-small-font-size);
|
||||||
color: $blockquote-small-color;
|
color: $blockquote-small-color;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: '\2014 \00A0'; // em dash, nbsp
|
content: "\2014\00A0"; // em dash, nbsp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,12 @@
|
||||||
@import "utilities/embed";
|
@import "utilities/embed";
|
||||||
@import "utilities/flex";
|
@import "utilities/flex";
|
||||||
@import "utilities/float";
|
@import "utilities/float";
|
||||||
|
@import "utilities/overflow";
|
||||||
@import "utilities/position";
|
@import "utilities/position";
|
||||||
@import "utilities/screenreaders";
|
@import "utilities/screenreaders";
|
||||||
|
@import "utilities/shadows";
|
||||||
@import "utilities/sizing";
|
@import "utilities/sizing";
|
||||||
|
@import "utilities/stretched-link";
|
||||||
@import "utilities/spacing";
|
@import "utilities/spacing";
|
||||||
@import "utilities/text";
|
@import "utilities/text";
|
||||||
@import "utilities/visibility";
|
@import "utilities/visibility";
|
||||||
|
|
File diff suppressed because it is too large
Load diff
11
assets/scss/bootstrap/bootstrap-grid.scss
vendored
11
assets/scss/bootstrap/bootstrap-grid.scss
vendored
|
@ -1,14 +1,10 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Grid v4.0.0 (https://getbootstrap.com)
|
* Bootstrap Grid v4.3.1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2018 The Bootstrap Authors
|
* Copyright 2011-2019 The Bootstrap Authors
|
||||||
* Copyright 2011-2018 Twitter, Inc.
|
* Copyright 2011-2019 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@at-root {
|
|
||||||
@-ms-viewport { width: device-width; } // stylelint-disable-line at-rule-no-vendor-prefix
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
html {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-ms-overflow-style: scrollbar;
|
-ms-overflow-style: scrollbar;
|
||||||
|
@ -30,3 +26,4 @@ html {
|
||||||
@import "grid";
|
@import "grid";
|
||||||
@import "utilities/display";
|
@import "utilities/display";
|
||||||
@import "utilities/flex";
|
@import "utilities/flex";
|
||||||
|
@import "utilities/spacing";
|
||||||
|
|
6
assets/scss/bootstrap/bootstrap-reboot.scss
vendored
6
assets/scss/bootstrap/bootstrap-reboot.scss
vendored
|
@ -1,7 +1,7 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap Reboot v4.0.0 (https://getbootstrap.com)
|
* Bootstrap Reboot v4.3.1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2018 The Bootstrap Authors
|
* Copyright 2011-2019 The Bootstrap Authors
|
||||||
* Copyright 2011-2018 Twitter, Inc.
|
* Copyright 2011-2019 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
*/
|
*/
|
||||||
|
|
8
assets/scss/bootstrap/bootstrap.scss
vendored
8
assets/scss/bootstrap/bootstrap.scss
vendored
|
@ -1,7 +1,7 @@
|
||||||
/*!
|
/*!
|
||||||
* Bootstrap v4.0.0 (https://getbootstrap.com)
|
* Bootstrap v4.3.1 (https://getbootstrap.com/)
|
||||||
* Copyright 2011-2018 The Bootstrap Authors
|
* Copyright 2011-2019 The Bootstrap Authors
|
||||||
* Copyright 2011-2018 Twitter, Inc.
|
* Copyright 2011-2019 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -34,9 +34,11 @@
|
||||||
@import "media";
|
@import "media";
|
||||||
@import "list-group";
|
@import "list-group";
|
||||||
@import "close";
|
@import "close";
|
||||||
|
@import "toasts";
|
||||||
@import "modal";
|
@import "modal";
|
||||||
@import "tooltip";
|
@import "tooltip";
|
||||||
@import "popover";
|
@import "popover";
|
||||||
@import "carousel";
|
@import "carousel";
|
||||||
|
@import "spinners";
|
||||||
@import "utilities";
|
@import "utilities";
|
||||||
@import "print";
|
@import "print";
|
||||||
|
|
|
@ -2,11 +2,16 @@
|
||||||
color: color-yiq($bg);
|
color: color-yiq($bg);
|
||||||
background-color: $bg;
|
background-color: $bg;
|
||||||
|
|
||||||
&[href] {
|
@at-root a#{&} {
|
||||||
@include hover-focus {
|
@include hover-focus {
|
||||||
color: color-yiq($bg);
|
color: color-yiq($bg);
|
||||||
text-decoration: none;
|
|
||||||
background-color: darken($bg, 10%);
|
background-color: darken($bg, 10%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&.focus {
|
||||||
|
outline: 0;
|
||||||
|
box-shadow: 0 0 0 $badge-focus-width rgba($bg, .5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
|
// stylelint-disable property-blacklist
|
||||||
// Single side border-radius
|
// Single side border-radius
|
||||||
|
|
||||||
@mixin border-radius($radius: $border-radius) {
|
@mixin border-radius($radius: $border-radius, $fallback-border-radius: false) {
|
||||||
@if $enable-rounded {
|
@if $enable-rounded {
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
}
|
}
|
||||||
|
@else if $fallback-border-radius != false {
|
||||||
|
border-radius: $fallback-border-radius;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin border-top-radius($radius) {
|
@mixin border-top-radius($radius) {
|
||||||
|
@ -33,3 +37,27 @@
|
||||||
border-bottom-left-radius: $radius;
|
border-bottom-left-radius: $radius;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin border-top-left-radius($radius) {
|
||||||
|
@if $enable-rounded {
|
||||||
|
border-top-left-radius: $radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin border-top-right-radius($radius) {
|
||||||
|
@if $enable-rounded {
|
||||||
|
border-top-right-radius: $radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin border-bottom-right-radius($radius) {
|
||||||
|
@if $enable-rounded {
|
||||||
|
border-bottom-right-radius: $radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin border-bottom-left-radius($radius) {
|
||||||
|
@if $enable-rounded {
|
||||||
|
border-bottom-left-radius: $radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,20 @@
|
||||||
@mixin box-shadow($shadow...) {
|
@mixin box-shadow($shadow...) {
|
||||||
@if $enable-shadows {
|
@if $enable-shadows {
|
||||||
box-shadow: $shadow;
|
$result: ();
|
||||||
|
|
||||||
|
@if (length($shadow) == 1) {
|
||||||
|
// We can pass `@include box-shadow(none);`
|
||||||
|
$result: $shadow;
|
||||||
|
} @else {
|
||||||
|
// Filter to avoid invalid properties for example `box-shadow: none, 1px 1px black;`
|
||||||
|
@for $i from 1 through length($shadow) {
|
||||||
|
@if nth($shadow, $i) != "none" {
|
||||||
|
$result: append($result, nth($shadow, $i), "comma");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@if (length($result) > 0) {
|
||||||
|
box-shadow: $result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
// md
|
// md
|
||||||
@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
|
@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
|
||||||
$n: index($breakpoint-names, $name);
|
$n: index($breakpoint-names, $name);
|
||||||
@return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
|
@return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
||||||
|
@ -39,10 +39,10 @@
|
||||||
// 767.98px
|
// 767.98px
|
||||||
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
|
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
|
||||||
$next: breakpoint-next($name, $breakpoints);
|
$next: breakpoint-next($name, $breakpoints);
|
||||||
@return if($next, breakpoint-min($next, $breakpoints) - .02px, null);
|
@return if($next, breakpoint-min($next, $breakpoints) - .02, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
|
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.
|
||||||
// Useful for making responsive utilities.
|
// Useful for making responsive utilities.
|
||||||
//
|
//
|
||||||
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
&.focus {
|
&.focus {
|
||||||
// Avoid using mixin so we can pass custom focus shadow properly
|
// Avoid using mixin so we can pass custom focus shadow properly
|
||||||
@if $enable-shadows {
|
@if $enable-shadows {
|
||||||
box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
|
box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5);
|
||||||
} @else {
|
} @else {
|
||||||
box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
|
box-shadow: 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,10 @@
|
||||||
color: color-yiq($background);
|
color: color-yiq($background);
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
border-color: $border;
|
border-color: $border;
|
||||||
|
// Remove CSS gradients if they're enabled
|
||||||
|
@if $enable-gradients {
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(:disabled):not(.disabled):active,
|
&:not(:disabled):not(.disabled):active,
|
||||||
|
@ -45,10 +49,10 @@
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
// Avoid using mixin so we can pass custom focus shadow properly
|
// Avoid using mixin so we can pass custom focus shadow properly
|
||||||
@if $enable-shadows {
|
@if $enable-shadows and $btn-active-box-shadow != none {
|
||||||
box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
|
box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5);
|
||||||
} @else {
|
} @else {
|
||||||
box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
|
box-shadow: 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,11 +60,9 @@
|
||||||
|
|
||||||
@mixin button-outline-variant($color, $color-hover: color-yiq($color), $active-background: $color, $active-border: $color) {
|
@mixin button-outline-variant($color, $color-hover: color-yiq($color), $active-background: $color, $active-border: $color) {
|
||||||
color: $color;
|
color: $color;
|
||||||
background-color: transparent;
|
|
||||||
background-image: none;
|
|
||||||
border-color: $color;
|
border-color: $color;
|
||||||
|
|
||||||
&:hover {
|
@include hover {
|
||||||
color: $color-hover;
|
color: $color-hover;
|
||||||
background-color: $active-background;
|
background-color: $active-background;
|
||||||
border-color: $active-border;
|
border-color: $active-border;
|
||||||
|
@ -98,12 +100,8 @@
|
||||||
// Button sizes
|
// Button sizes
|
||||||
@mixin button-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
|
@mixin button-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
|
||||||
padding: $padding-y $padding-x;
|
padding: $padding-y $padding-x;
|
||||||
font-size: $font-size;
|
@include font-size($font-size);
|
||||||
line-height: $line-height;
|
line-height: $line-height;
|
||||||
// Manually declare to provide an override to the browser default
|
// Manually declare to provide an override to the browser default
|
||||||
@if $enable-rounded {
|
@include border-radius($border-radius, 0);
|
||||||
border-radius: $border-radius;
|
|
||||||
} @else {
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
@mixin caret-right {
|
@mixin caret-right {
|
||||||
border-top: $caret-width solid transparent;
|
border-top: $caret-width solid transparent;
|
||||||
|
border-right: 0;
|
||||||
border-bottom: $caret-width solid transparent;
|
border-bottom: $caret-width solid transparent;
|
||||||
border-left: $caret-width solid;
|
border-left: $caret-width solid;
|
||||||
}
|
}
|
||||||
|
@ -28,10 +29,8 @@
|
||||||
@if $enable-caret {
|
@if $enable-caret {
|
||||||
&::after {
|
&::after {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 0;
|
margin-left: $caret-spacing;
|
||||||
height: 0;
|
vertical-align: $caret-vertical-align;
|
||||||
margin-left: $caret-width * .85;
|
|
||||||
vertical-align: $caret-width * .85;
|
|
||||||
content: "";
|
content: "";
|
||||||
@if $direction == down {
|
@if $direction == down {
|
||||||
@include caret-down;
|
@include caret-down;
|
||||||
|
@ -49,10 +48,8 @@
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 0;
|
margin-right: $caret-spacing;
|
||||||
height: 0;
|
vertical-align: $caret-vertical-align;
|
||||||
margin-right: $caret-width * .85;
|
|
||||||
vertical-align: $caret-width * .85;
|
|
||||||
content: "";
|
content: "";
|
||||||
@include caret-left;
|
@include caret-left;
|
||||||
}
|
}
|
||||||
|
|
10
assets/scss/bootstrap/mixins/_deprecate.scss
Executable file
10
assets/scss/bootstrap/mixins/_deprecate.scss
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
// Deprecate mixin
|
||||||
|
//
|
||||||
|
// This mixin can be used to deprecate mixins or functions.
|
||||||
|
// `$enable-deprecation-messages` is a global variable, `$ignore-warning` is a variable that can be passed to
|
||||||
|
// some deprecated mixins to suppress the warning (for example if the mixin is still be used in the current version of Bootstrap)
|
||||||
|
@mixin deprecate($name, $deprecate-version, $remove-version, $ignore-warning: false) {
|
||||||
|
@if ($enable-deprecation-messages != false and $ignore-warning != true) {
|
||||||
|
@warn "#{$name} has been deprecated as of #{$deprecate-version}. It will be removed entirely in #{$remove-version}.";
|
||||||
|
}
|
||||||
|
}
|
|
@ -2,10 +2,13 @@
|
||||||
|
|
||||||
@mixin float-left {
|
@mixin float-left {
|
||||||
float: left !important;
|
float: left !important;
|
||||||
|
@include deprecate("The `float-left` mixin", "v4.3.0", "v5");
|
||||||
}
|
}
|
||||||
@mixin float-right {
|
@mixin float-right {
|
||||||
float: right !important;
|
float: right !important;
|
||||||
|
@include deprecate("The `float-right` mixin", "v4.3.0", "v5");
|
||||||
}
|
}
|
||||||
@mixin float-none {
|
@mixin float-none {
|
||||||
float: none !important;
|
float: none !important;
|
||||||
|
@include deprecate("The `float-none` mixin", "v4.3.0", "v5");
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,12 +26,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@mixin form-validation-state($state, $color) {
|
@mixin form-validation-state($state, $color, $icon) {
|
||||||
.#{$state}-feedback {
|
.#{$state}-feedback {
|
||||||
display: none;
|
display: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: $form-feedback-margin-top;
|
margin-top: $form-feedback-margin-top;
|
||||||
font-size: $form-feedback-font-size;
|
@include font-size($form-feedback-font-size);
|
||||||
color: $color;
|
color: $color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,21 +41,28 @@
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
display: none;
|
display: none;
|
||||||
max-width: 100%; // Contain to parent when possible
|
max-width: 100%; // Contain to parent when possible
|
||||||
padding: .5rem;
|
padding: $form-feedback-tooltip-padding-y $form-feedback-tooltip-padding-x;
|
||||||
margin-top: .1rem;
|
margin-top: .1rem;
|
||||||
font-size: .875rem;
|
@include font-size($form-feedback-tooltip-font-size);
|
||||||
line-height: 1;
|
line-height: $form-feedback-tooltip-line-height;
|
||||||
color: #fff;
|
color: color-yiq($color);
|
||||||
background-color: rgba($color, .8);
|
background-color: rgba($color, $form-feedback-tooltip-opacity);
|
||||||
border-radius: .2rem;
|
@include border-radius($form-feedback-tooltip-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-control,
|
.form-control {
|
||||||
.custom-select {
|
|
||||||
.was-validated &:#{$state},
|
.was-validated &:#{$state},
|
||||||
&.is-#{$state} {
|
&.is-#{$state} {
|
||||||
border-color: $color;
|
border-color: $color;
|
||||||
|
|
||||||
|
@if $enable-validation-icons {
|
||||||
|
padding-right: $input-height-inner;
|
||||||
|
background-image: $icon;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center right $input-height-inner-quarter;
|
||||||
|
background-size: $input-height-inner-half $input-height-inner-half;
|
||||||
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: $color;
|
border-color: $color;
|
||||||
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
||||||
|
@ -68,6 +75,50 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// stylelint-disable-next-line selector-no-qualifying-type
|
||||||
|
textarea.form-control {
|
||||||
|
.was-validated &:#{$state},
|
||||||
|
&.is-#{$state} {
|
||||||
|
@if $enable-validation-icons {
|
||||||
|
padding-right: $input-height-inner;
|
||||||
|
background-position: top $input-height-inner-quarter right $input-height-inner-quarter;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-select {
|
||||||
|
.was-validated &:#{$state},
|
||||||
|
&.is-#{$state} {
|
||||||
|
border-color: $color;
|
||||||
|
|
||||||
|
@if $enable-validation-icons {
|
||||||
|
padding-right: $custom-select-feedback-icon-padding-right;
|
||||||
|
background: $custom-select-background, $icon $custom-select-bg no-repeat $custom-select-feedback-icon-position / $custom-select-feedback-icon-size;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
border-color: $color;
|
||||||
|
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
||||||
|
}
|
||||||
|
|
||||||
|
~ .#{$state}-feedback,
|
||||||
|
~ .#{$state}-tooltip {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.form-control-file {
|
||||||
|
.was-validated &:#{$state},
|
||||||
|
&.is-#{$state} {
|
||||||
|
~ .#{$state}-feedback,
|
||||||
|
~ .#{$state}-tooltip {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.form-check-input {
|
.form-check-input {
|
||||||
.was-validated &:#{$state},
|
.was-validated &:#{$state},
|
||||||
&.is-#{$state} {
|
&.is-#{$state} {
|
||||||
|
@ -89,7 +140,7 @@
|
||||||
color: $color;
|
color: $color;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
background-color: lighten($color, 25%);
|
border-color: $color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,13 +151,18 @@
|
||||||
|
|
||||||
&:checked {
|
&:checked {
|
||||||
~ .custom-control-label::before {
|
~ .custom-control-label::before {
|
||||||
|
border-color: lighten($color, 10%);
|
||||||
@include gradient-bg(lighten($color, 10%));
|
@include gradient-bg(lighten($color, 10%));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
~ .custom-control-label::before {
|
~ .custom-control-label::before {
|
||||||
box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-focus-width rgba($color, .25);
|
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:checked) ~ .custom-control-label::before {
|
||||||
|
border-color: $color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,8 +174,6 @@
|
||||||
&.is-#{$state} {
|
&.is-#{$state} {
|
||||||
~ .custom-file-label {
|
~ .custom-file-label {
|
||||||
border-color: $color;
|
border-color: $color;
|
||||||
|
|
||||||
&::before { border-color: inherit; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
~ .#{$state}-feedback,
|
~ .#{$state}-feedback,
|
||||||
|
@ -129,6 +183,7 @@
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
~ .custom-file-label {
|
~ .custom-file-label {
|
||||||
|
border-color: $color;
|
||||||
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// Horizontal gradient, from left to right
|
// Horizontal gradient, from left to right
|
||||||
//
|
//
|
||||||
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||||
@mixin gradient-x($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
@mixin gradient-x($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) {
|
||||||
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
}
|
}
|
||||||
|
@ -19,27 +19,27 @@
|
||||||
// Vertical gradient, from top to bottom
|
// Vertical gradient, from top to bottom
|
||||||
//
|
//
|
||||||
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
||||||
@mixin gradient-y($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
@mixin gradient-y($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) {
|
||||||
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
|
@mixin gradient-directional($start-color: $gray-700, $end-color: $gray-800, $deg: 45deg) {
|
||||||
background-image: linear-gradient($deg, $start-color, $end-color);
|
background-image: linear-gradient($deg, $start-color, $end-color);
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
}
|
}
|
||||||
@mixin gradient-x-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
@mixin gradient-x-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
|
||||||
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
@mixin gradient-y-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
@mixin gradient-y-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
|
||||||
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
@mixin gradient-radial($inner-color: #555, $outer-color: #333) {
|
@mixin gradient-radial($inner-color: $gray-700, $outer-color: $gray-800) {
|
||||||
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
@mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
|
@mixin gradient-striped($color: rgba($white, .15), $angle: 45deg) {
|
||||||
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,8 @@
|
||||||
%grid-column {
|
%grid-column {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 1px; // Prevent columns from collapsing when empty
|
padding-right: $gutter / 2;
|
||||||
padding-right: ($gutter / 2);
|
padding-left: $gutter / 2;
|
||||||
padding-left: ($gutter / 2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@each $breakpoint in map-keys($breakpoints) {
|
@each $breakpoint in map-keys($breakpoints) {
|
||||||
|
@ -37,7 +36,7 @@
|
||||||
.col#{$infix}-auto {
|
.col#{$infix}-auto {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
width: auto;
|
width: auto;
|
||||||
max-width: none; // Reset earlier grid tiers
|
max-width: 100%; // Reset earlier grid tiers
|
||||||
}
|
}
|
||||||
|
|
||||||
@for $i from 1 through $columns {
|
@for $i from 1 through $columns {
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
//
|
//
|
||||||
// Generate semantic grid columns with these mixins.
|
// Generate semantic grid columns with these mixins.
|
||||||
|
|
||||||
@mixin make-container() {
|
@mixin make-container($gutter: $grid-gutter-width) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-right: ($grid-gutter-width / 2);
|
padding-right: $gutter / 2;
|
||||||
padding-left: ($grid-gutter-width / 2);
|
padding-left: $gutter / 2;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
@ -20,22 +20,21 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin make-row() {
|
@mixin make-row($gutter: $grid-gutter-width) {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-right: ($grid-gutter-width / -2);
|
margin-right: -$gutter / 2;
|
||||||
margin-left: ($grid-gutter-width / -2);
|
margin-left: -$gutter / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin make-col-ready() {
|
@mixin make-col-ready($gutter: $grid-gutter-width) {
|
||||||
position: relative;
|
position: relative;
|
||||||
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
||||||
// always setting `width: 100%;`. This works because we use `flex` values
|
// always setting `width: 100%;`. This works because we use `flex` values
|
||||||
// later on to override this initial width.
|
// later on to override this initial width.
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 1px; // Prevent collapsing
|
padding-right: $gutter / 2;
|
||||||
padding-right: ($grid-gutter-width / 2);
|
padding-left: $gutter / 2;
|
||||||
padding-left: ($grid-gutter-width / 2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin make-col($size, $columns: $grid-columns) {
|
@mixin make-col($size, $columns: $grid-columns) {
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
// stylelint-disable indentation
|
|
||||||
|
|
||||||
// Hover mixin and `$enable-hover-media-query` are deprecated.
|
// Hover mixin and `$enable-hover-media-query` are deprecated.
|
||||||
//
|
//
|
||||||
// Origally added during our alphas and maintained during betas, this mixin was
|
// Originally added during our alphas and maintained during betas, this mixin was
|
||||||
// designed to prevent `:hover` stickiness on iOS—an issue where hover styles
|
// designed to prevent `:hover` stickiness on iOS-an issue where hover styles
|
||||||
// would persist after initial touch.
|
// would persist after initial touch.
|
||||||
//
|
//
|
||||||
// For backward compatibility, we've kept these mixins and updated them to
|
// For backward compatibility, we've kept these mixins and updated them to
|
||||||
// always return their regular psuedo-classes instead of a shimmed media query.
|
// always return their regular pseudo-classes instead of a shimmed media query.
|
||||||
//
|
//
|
||||||
// Issue: https://github.com/twbs/bootstrap/issues/25195
|
// Issue: https://github.com/twbs/bootstrap/issues/25195
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
//
|
//
|
||||||
// Short retina mixin for setting background-image and -size.
|
// Short retina mixin for setting background-image and -size.
|
||||||
|
|
||||||
// stylelint-disable indentation, media-query-list-comma-newline-after
|
|
||||||
@mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) {
|
@mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) {
|
||||||
background-image: url($file-1x);
|
background-image: url($file-1x);
|
||||||
|
|
||||||
|
@ -29,8 +28,9 @@
|
||||||
// There's no such thing as unprefixed min-device-pixel-ratio since it's nonstandard.
|
// There's no such thing as unprefixed min-device-pixel-ratio since it's nonstandard.
|
||||||
// Compatibility info: https://caniuse.com/#feat=css-media-resolution
|
// Compatibility info: https://caniuse.com/#feat=css-media-resolution
|
||||||
@media only screen and (min-resolution: 192dpi), // IE9-11 don't support dppx
|
@media only screen and (min-resolution: 192dpi), // IE9-11 don't support dppx
|
||||||
only screen and (min-resolution: 2dppx) { // Standardized
|
only screen and (min-resolution: 2dppx) { // Standardized
|
||||||
background-image: url($file-2x);
|
background-image: url($file-2x);
|
||||||
background-size: $width-1x $height-1x;
|
background-size: $width-1x $height-1x;
|
||||||
}
|
}
|
||||||
|
@include deprecate("`img-retina()`", "v4.3.0", "v5");
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
color: #fff;
|
color: $white;
|
||||||
background-color: $color;
|
background-color: $color;
|
||||||
border-color: $color;
|
border-color: $color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
//
|
//
|
||||||
// Dividers (basically an hr) within dropdowns and nav lists
|
// Dividers (basically an hr) within dropdowns and nav lists
|
||||||
|
|
||||||
@mixin nav-divider($color: #e5e5e5) {
|
@mixin nav-divider($color: $nav-divider-color, $margin-y: $nav-divider-margin-y) {
|
||||||
height: 0;
|
height: 0;
|
||||||
margin: ($spacer / 2) 0;
|
margin: $margin-y 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-top: 1px solid $color;
|
border-top: 1px solid $color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
// Navbar vertical align
|
|
||||||
//
|
|
||||||
// Vertically center elements in the navbar.
|
|
||||||
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);`
|
|
||||||
// to calculate the appropriate top margin.
|
|
||||||
|
|
||||||
// @mixin navbar-vertical-align($element-height) {
|
|
||||||
// margin-top: (($navbar-height - $element-height) / 2);
|
|
||||||
// margin-bottom: (($navbar-height - $element-height) / 2);
|
|
||||||
// }
|
|
|
@ -3,7 +3,7 @@
|
||||||
@mixin pagination-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
|
@mixin pagination-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
|
||||||
.page-link {
|
.page-link {
|
||||||
padding: $padding-y $padding-x;
|
padding: $padding-y $padding-x;
|
||||||
font-size: $font-size;
|
@include font-size($font-size);
|
||||||
line-height: $line-height;
|
line-height: $line-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
font-family: $font-family-base;
|
font-family: $font-family-base;
|
||||||
// We deliberately do NOT reset font-size or word-wrap.
|
// We deliberately do NOT reset font-size or word-wrap.
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: $font-weight-normal;
|
||||||
line-height: $line-height-base;
|
line-height: $line-height-base;
|
||||||
text-align: left; // Fallback for where `start` is not supported
|
text-align: left; // Fallback for where `start` is not supported
|
||||||
text-align: start; // stylelint-disable-line declaration-block-no-duplicate-properties
|
text-align: start;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Only display content to screen readers
|
// Only display content to screen readers
|
||||||
//
|
//
|
||||||
// See: http://a11yproject.com/posts/how-to-hide-content/
|
// See: https://a11yproject.com/posts/how-to-hide-content/
|
||||||
// See: https://hugogiraudel.com/2016/10/13/css-hide-and-seek/
|
// See: https://hugogiraudel.com/2016/10/13/css-hide-and-seek/
|
||||||
|
|
||||||
@mixin sr-only {
|
@mixin sr-only {
|
||||||
|
@ -11,7 +11,6 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
clip: rect(0, 0, 0, 0);
|
clip: rect(0, 0, 0, 0);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
clip-path: inset(50%);
|
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,6 +29,5 @@
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
clip: auto;
|
clip: auto;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
clip-path: none;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,4 +3,5 @@
|
||||||
@mixin size($width, $height: $width) {
|
@mixin size($width, $height: $width) {
|
||||||
width: $width;
|
width: $width;
|
||||||
height: $height;
|
height: $height;
|
||||||
|
@include deprecate("`size()`", "v4.3.0", "v5");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Tables
|
// Tables
|
||||||
|
|
||||||
@mixin table-row-variant($state, $background) {
|
@mixin table-row-variant($state, $background, $border: null) {
|
||||||
// Exact selectors below required to override `.table-striped` and prevent
|
// Exact selectors below required to override `.table-striped` and prevent
|
||||||
// inheritance to nested tables.
|
// inheritance to nested tables.
|
||||||
.table-#{$state} {
|
.table-#{$state} {
|
||||||
|
@ -9,6 +9,15 @@
|
||||||
> td {
|
> td {
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@if $border != null {
|
||||||
|
th,
|
||||||
|
td,
|
||||||
|
thead th,
|
||||||
|
tbody + tbody {
|
||||||
|
border-color: $border;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hover states for `.table-hover`
|
// Hover states for `.table-hover`
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
#{$parent} {
|
#{$parent} {
|
||||||
color: $color !important;
|
color: $color !important;
|
||||||
}
|
}
|
||||||
a#{$parent} {
|
@if $emphasized-link-hover-darken-percentage != 0 {
|
||||||
@include hover-focus {
|
a#{$parent} {
|
||||||
color: darken($color, 10%) !important;
|
@include hover-focus {
|
||||||
|
color: darken($color, $emphasized-link-hover-darken-percentage) !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
// CSS image replacement
|
// CSS image replacement
|
||||||
@mixin text-hide() {
|
@mixin text-hide($ignore-warning: false) {
|
||||||
// stylelint-disable-next-line font-family-no-missing-generic-family-keyword
|
// stylelint-disable-next-line font-family-no-missing-generic-family-keyword
|
||||||
font: 0/0 a;
|
font: 0/0 a;
|
||||||
color: transparent;
|
color: transparent;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
||||||
|
@include deprecate("`text-hide()`", "v4.1.0", "v5", $ignore-warning);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// stylelint-disable property-blacklist
|
||||||
@mixin transition($transition...) {
|
@mixin transition($transition...) {
|
||||||
@if $enable-transitions {
|
@if $enable-transitions {
|
||||||
@if length($transition) == 0 {
|
@if length($transition) == 0 {
|
||||||
|
@ -6,4 +7,10 @@
|
||||||
transition: $transition;
|
transition: $transition;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@if $enable-prefers-reduced-motion-media-query {
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,4 +4,5 @@
|
||||||
|
|
||||||
@mixin invisible($visibility) {
|
@mixin invisible($visibility) {
|
||||||
visibility: $visibility !important;
|
visibility: $visibility !important;
|
||||||
|
@include deprecate("`invisible()`", "v4.3.0", "v5");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// stylelint-disable declaration-no-important
|
// stylelint-disable property-blacklist, declaration-no-important
|
||||||
|
|
||||||
//
|
//
|
||||||
// Border
|
// Border
|
||||||
|
@ -30,30 +30,46 @@
|
||||||
// Border-radius
|
// Border-radius
|
||||||
//
|
//
|
||||||
|
|
||||||
|
.rounded-sm {
|
||||||
|
border-radius: $border-radius-sm !important;
|
||||||
|
}
|
||||||
|
|
||||||
.rounded {
|
.rounded {
|
||||||
border-radius: $border-radius !important;
|
border-radius: $border-radius !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rounded-top {
|
.rounded-top {
|
||||||
border-top-left-radius: $border-radius !important;
|
border-top-left-radius: $border-radius !important;
|
||||||
border-top-right-radius: $border-radius !important;
|
border-top-right-radius: $border-radius !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rounded-right {
|
.rounded-right {
|
||||||
border-top-right-radius: $border-radius !important;
|
border-top-right-radius: $border-radius !important;
|
||||||
border-bottom-right-radius: $border-radius !important;
|
border-bottom-right-radius: $border-radius !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rounded-bottom {
|
.rounded-bottom {
|
||||||
border-bottom-right-radius: $border-radius !important;
|
border-bottom-right-radius: $border-radius !important;
|
||||||
border-bottom-left-radius: $border-radius !important;
|
border-bottom-left-radius: $border-radius !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rounded-left {
|
.rounded-left {
|
||||||
border-top-left-radius: $border-radius !important;
|
border-top-left-radius: $border-radius !important;
|
||||||
border-bottom-left-radius: $border-radius !important;
|
border-bottom-left-radius: $border-radius !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rounded-lg {
|
||||||
|
border-radius: $border-radius-lg !important;
|
||||||
|
}
|
||||||
|
|
||||||
.rounded-circle {
|
.rounded-circle {
|
||||||
border-radius: 50% !important;
|
border-radius: 50% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rounded-pill {
|
||||||
|
border-radius: $rounded-pill !important;
|
||||||
|
}
|
||||||
|
|
||||||
.rounded-0 {
|
.rounded-0 {
|
||||||
border-radius: 0 !important;
|
border-radius: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,15 +8,9 @@
|
||||||
@include media-breakpoint-up($breakpoint) {
|
@include media-breakpoint-up($breakpoint) {
|
||||||
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
||||||
|
|
||||||
.d#{$infix}-none { display: none !important; }
|
@each $value in $displays {
|
||||||
.d#{$infix}-inline { display: inline !important; }
|
.d#{$infix}-#{$value} { display: $value !important; }
|
||||||
.d#{$infix}-inline-block { display: inline-block !important; }
|
}
|
||||||
.d#{$infix}-block { display: block !important; }
|
|
||||||
.d#{$infix}-table { display: table !important; }
|
|
||||||
.d#{$infix}-table-row { display: table-row !important; }
|
|
||||||
.d#{$infix}-table-cell { display: table-cell !important; }
|
|
||||||
.d#{$infix}-flex { display: flex !important; }
|
|
||||||
.d#{$infix}-inline-flex { display: inline-flex !important; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,13 +20,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
.d-print-none { display: none !important; }
|
@each $value in $displays {
|
||||||
.d-print-inline { display: inline !important; }
|
.d-print-#{$value} { display: $value !important; }
|
||||||
.d-print-inline-block { display: inline-block !important; }
|
}
|
||||||
.d-print-block { display: block !important; }
|
|
||||||
.d-print-table { display: table !important; }
|
|
||||||
.d-print-table-row { display: table-row !important; }
|
|
||||||
.d-print-table-cell { display: table-cell !important; }
|
|
||||||
.d-print-flex { display: flex !important; }
|
|
||||||
.d-print-inline-flex { display: inline-flex !important; }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,26 +27,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.embed-responsive-21by9 {
|
@each $embed-responsive-aspect-ratio in $embed-responsive-aspect-ratios {
|
||||||
&::before {
|
$embed-responsive-aspect-ratio-x: nth($embed-responsive-aspect-ratio, 1);
|
||||||
padding-top: percentage(9 / 21);
|
$embed-responsive-aspect-ratio-y: nth($embed-responsive-aspect-ratio, 2);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.embed-responsive-16by9 {
|
.embed-responsive-#{$embed-responsive-aspect-ratio-x}by#{$embed-responsive-aspect-ratio-y} {
|
||||||
&::before {
|
&::before {
|
||||||
padding-top: percentage(9 / 16);
|
padding-top: percentage($embed-responsive-aspect-ratio-y / $embed-responsive-aspect-ratio-x);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.embed-responsive-4by3 {
|
|
||||||
&::before {
|
|
||||||
padding-top: percentage(3 / 4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.embed-responsive-1by1 {
|
|
||||||
&::before {
|
|
||||||
padding-top: percentage(1 / 1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,11 @@
|
||||||
.flex#{$infix}-wrap { flex-wrap: wrap !important; }
|
.flex#{$infix}-wrap { flex-wrap: wrap !important; }
|
||||||
.flex#{$infix}-nowrap { flex-wrap: nowrap !important; }
|
.flex#{$infix}-nowrap { flex-wrap: nowrap !important; }
|
||||||
.flex#{$infix}-wrap-reverse { flex-wrap: wrap-reverse !important; }
|
.flex#{$infix}-wrap-reverse { flex-wrap: wrap-reverse !important; }
|
||||||
|
.flex#{$infix}-fill { flex: 1 1 auto !important; }
|
||||||
|
.flex#{$infix}-grow-0 { flex-grow: 0 !important; }
|
||||||
|
.flex#{$infix}-grow-1 { flex-grow: 1 !important; }
|
||||||
|
.flex#{$infix}-shrink-0 { flex-shrink: 0 !important; }
|
||||||
|
.flex#{$infix}-shrink-1 { flex-shrink: 1 !important; }
|
||||||
|
|
||||||
.justify-content#{$infix}-start { justify-content: flex-start !important; }
|
.justify-content#{$infix}-start { justify-content: flex-start !important; }
|
||||||
.justify-content#{$infix}-end { justify-content: flex-end !important; }
|
.justify-content#{$infix}-end { justify-content: flex-end !important; }
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
|
// stylelint-disable declaration-no-important
|
||||||
|
|
||||||
@each $breakpoint in map-keys($grid-breakpoints) {
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
||||||
@include media-breakpoint-up($breakpoint) {
|
@include media-breakpoint-up($breakpoint) {
|
||||||
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
||||||
|
|
||||||
.float#{$infix}-left { @include float-left; }
|
.float#{$infix}-left { float: left !important; }
|
||||||
.float#{$infix}-right { @include float-right; }
|
.float#{$infix}-right { float: right !important; }
|
||||||
.float#{$infix}-none { @include float-none; }
|
.float#{$infix}-none { float: none !important; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
5
assets/scss/bootstrap/utilities/_overflow.scss
Executable file
5
assets/scss/bootstrap/utilities/_overflow.scss
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
// stylelint-disable declaration-no-important
|
||||||
|
|
||||||
|
@each $value in $overflows {
|
||||||
|
.overflow-#{$value} { overflow: $value !important; }
|
||||||
|
}
|
|
@ -1,10 +1,6 @@
|
||||||
// stylelint-disable declaration-no-important
|
// stylelint-disable declaration-no-important
|
||||||
|
|
||||||
// Common values
|
// Common values
|
||||||
|
|
||||||
// Sass list not in variables since it's not intended for customization.
|
|
||||||
$positions: static, relative, absolute, fixed, sticky;
|
|
||||||
|
|
||||||
@each $position in $positions {
|
@each $position in $positions {
|
||||||
.position-#{$position} { position: $position !important; }
|
.position-#{$position} { position: $position !important; }
|
||||||
}
|
}
|
||||||
|
|
6
assets/scss/bootstrap/utilities/_shadows.scss
Executable file
6
assets/scss/bootstrap/utilities/_shadows.scss
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
// stylelint-disable declaration-no-important
|
||||||
|
|
||||||
|
.shadow-sm { box-shadow: $box-shadow-sm !important; }
|
||||||
|
.shadow { box-shadow: $box-shadow !important; }
|
||||||
|
.shadow-lg { box-shadow: $box-shadow-lg !important; }
|
||||||
|
.shadow-none { box-shadow: none !important; }
|
|
@ -10,3 +10,11 @@
|
||||||
|
|
||||||
.mw-100 { max-width: 100% !important; }
|
.mw-100 { max-width: 100% !important; }
|
||||||
.mh-100 { max-height: 100% !important; }
|
.mh-100 { max-height: 100% !important; }
|
||||||
|
|
||||||
|
// Viewport additional helpers
|
||||||
|
|
||||||
|
.min-vw-100 { min-width: 100vw !important; }
|
||||||
|
.min-vh-100 { min-height: 100vh !important; }
|
||||||
|
|
||||||
|
.vw-100 { width: 100vw !important; }
|
||||||
|
.vh-100 { height: 100vh !important; }
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
@each $prop, $abbrev in (margin: m, padding: p) {
|
@each $prop, $abbrev in (margin: m, padding: p) {
|
||||||
@each $size, $length in $spacers {
|
@each $size, $length in $spacers {
|
||||||
|
|
||||||
.#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
|
.#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
|
||||||
.#{$abbrev}t#{$infix}-#{$size},
|
.#{$abbrev}t#{$infix}-#{$size},
|
||||||
.#{$abbrev}y#{$infix}-#{$size} {
|
.#{$abbrev}y#{$infix}-#{$size} {
|
||||||
|
@ -29,6 +28,29 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Negative margins (e.g., where `.mb-n1` is negative version of `.mb-1`)
|
||||||
|
@each $size, $length in $spacers {
|
||||||
|
@if $size != 0 {
|
||||||
|
.m#{$infix}-n#{$size} { margin: -$length !important; }
|
||||||
|
.mt#{$infix}-n#{$size},
|
||||||
|
.my#{$infix}-n#{$size} {
|
||||||
|
margin-top: -$length !important;
|
||||||
|
}
|
||||||
|
.mr#{$infix}-n#{$size},
|
||||||
|
.mx#{$infix}-n#{$size} {
|
||||||
|
margin-right: -$length !important;
|
||||||
|
}
|
||||||
|
.mb#{$infix}-n#{$size},
|
||||||
|
.my#{$infix}-n#{$size} {
|
||||||
|
margin-bottom: -$length !important;
|
||||||
|
}
|
||||||
|
.ml#{$infix}-n#{$size},
|
||||||
|
.mx#{$infix}-n#{$size} {
|
||||||
|
margin-left: -$length !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Some special margin utils
|
// Some special margin utils
|
||||||
.m#{$infix}-auto { margin: auto !important; }
|
.m#{$infix}-auto { margin: auto !important; }
|
||||||
.mt#{$infix}-auto,
|
.mt#{$infix}-auto,
|
||||||
|
|
19
assets/scss/bootstrap/utilities/_stretched-link.scss
Executable file
19
assets/scss/bootstrap/utilities/_stretched-link.scss
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
//
|
||||||
|
// Stretched link
|
||||||
|
//
|
||||||
|
|
||||||
|
.stretched-link {
|
||||||
|
&::after {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1;
|
||||||
|
// Just in case `pointer-events: none` is set on a parent
|
||||||
|
pointer-events: auto;
|
||||||
|
content: "";
|
||||||
|
// IE10 bugfix, see https://stackoverflow.com/questions/16947967/ie10-hover-pseudo-class-doesnt-work-without-background-color
|
||||||
|
background-color: rgba(0, 0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
|
@ -4,17 +4,14 @@
|
||||||
// Text
|
// Text
|
||||||
//
|
//
|
||||||
|
|
||||||
|
.text-monospace { font-family: $font-family-monospace !important; }
|
||||||
|
|
||||||
// Alignment
|
// Alignment
|
||||||
|
|
||||||
.text-justify {
|
.text-justify { text-align: justify !important; }
|
||||||
text-align: justify !important;
|
.text-wrap { white-space: normal !important; }
|
||||||
}
|
.text-nowrap { white-space: nowrap !important; }
|
||||||
.text-nowrap {
|
.text-truncate { @include text-truncate; }
|
||||||
white-space: nowrap !important;
|
|
||||||
}
|
|
||||||
.text-truncate {
|
|
||||||
@include text-truncate;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Responsive alignment
|
// Responsive alignment
|
||||||
|
|
||||||
|
@ -22,61 +19,54 @@
|
||||||
@include media-breakpoint-up($breakpoint) {
|
@include media-breakpoint-up($breakpoint) {
|
||||||
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
||||||
|
|
||||||
.text#{$infix}-left {
|
.text#{$infix}-left { text-align: left !important; }
|
||||||
text-align: left !important;
|
.text#{$infix}-right { text-align: right !important; }
|
||||||
}
|
.text#{$infix}-center { text-align: center !important; }
|
||||||
.text#{$infix}-right {
|
|
||||||
text-align: right !important;
|
|
||||||
}
|
|
||||||
.text#{$infix}-center {
|
|
||||||
text-align: center !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transformation
|
// Transformation
|
||||||
|
|
||||||
.text-lowercase {
|
.text-lowercase { text-transform: lowercase !important; }
|
||||||
text-transform: lowercase !important;
|
.text-uppercase { text-transform: uppercase !important; }
|
||||||
}
|
.text-capitalize { text-transform: capitalize !important; }
|
||||||
.text-uppercase {
|
|
||||||
text-transform: uppercase !important;
|
|
||||||
}
|
|
||||||
.text-capitalize {
|
|
||||||
text-transform: capitalize !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Weight and italics
|
// Weight and italics
|
||||||
|
|
||||||
.font-weight-light {
|
.font-weight-light { font-weight: $font-weight-light !important; }
|
||||||
font-weight: 300 !important;
|
.font-weight-lighter { font-weight: $font-weight-lighter !important; }
|
||||||
}
|
.font-weight-normal { font-weight: $font-weight-normal !important; }
|
||||||
.font-weight-normal {
|
.font-weight-bold { font-weight: $font-weight-bold !important; }
|
||||||
font-weight: 400 !important;
|
.font-weight-bolder { font-weight: $font-weight-bolder !important; }
|
||||||
}
|
.font-italic { font-style: italic !important; }
|
||||||
.font-weight-bold {
|
|
||||||
font-weight: 400 !important;
|
|
||||||
}
|
|
||||||
.font-italic {
|
|
||||||
font-style: italic !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Contextual colors
|
// Contextual colors
|
||||||
|
|
||||||
.text-white {
|
.text-white { color: $white !important; }
|
||||||
color: #fff !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@each $color, $value in $theme-colors {
|
@each $color, $value in $theme-colors {
|
||||||
@include text-emphasis-variant('.text-#{$color}', $value);
|
@include text-emphasis-variant(".text-#{$color}", $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-muted {
|
.text-body { color: $body-color !important; }
|
||||||
color: $text-muted !important;
|
.text-muted { color: $text-muted !important; }
|
||||||
}
|
|
||||||
|
.text-black-50 { color: rgba($black, .5) !important; }
|
||||||
|
.text-white-50 { color: rgba($white, .5) !important; }
|
||||||
|
|
||||||
// Misc
|
// Misc
|
||||||
|
|
||||||
.text-hide {
|
.text-hide {
|
||||||
@include text-hide();
|
@include text-hide($ignore-warning: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-decoration-none { text-decoration: none !important; }
|
||||||
|
|
||||||
|
.text-break {
|
||||||
|
word-break: break-word !important; // IE & < Edge 18
|
||||||
|
overflow-wrap: break-word !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset
|
||||||
|
|
||||||
|
.text-reset { color: inherit !important; }
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
|
// stylelint-disable declaration-no-important
|
||||||
|
|
||||||
//
|
//
|
||||||
// Visibility utilities
|
// Visibility utilities
|
||||||
//
|
//
|
||||||
|
|
||||||
.visible {
|
.visible {
|
||||||
@include invisible(visible);
|
visibility: visible !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.invisible {
|
.invisible {
|
||||||
@include invisible(hidden);
|
visibility: hidden !important;
|
||||||
}
|
}
|
||||||
|
|
204
assets/scss/bootstrap/vendor/_rfs.scss
vendored
Executable file
204
assets/scss/bootstrap/vendor/_rfs.scss
vendored
Executable file
|
@ -0,0 +1,204 @@
|
||||||
|
// stylelint-disable property-blacklist, scss/dollar-variable-default
|
||||||
|
|
||||||
|
// SCSS RFS mixin
|
||||||
|
//
|
||||||
|
// Automated font-resizing
|
||||||
|
//
|
||||||
|
// See https://github.com/twbs/rfs
|
||||||
|
|
||||||
|
// Configuration
|
||||||
|
|
||||||
|
// Base font size
|
||||||
|
$rfs-base-font-size: 1.25rem !default;
|
||||||
|
$rfs-font-size-unit: rem !default;
|
||||||
|
|
||||||
|
// Breakpoint at where font-size starts decreasing if screen width is smaller
|
||||||
|
$rfs-breakpoint: 1200px !default;
|
||||||
|
$rfs-breakpoint-unit: px !default;
|
||||||
|
|
||||||
|
// Resize font-size based on screen height and width
|
||||||
|
$rfs-two-dimensional: false !default;
|
||||||
|
|
||||||
|
// Factor of decrease
|
||||||
|
$rfs-factor: 10 !default;
|
||||||
|
|
||||||
|
@if type-of($rfs-factor) != "number" or $rfs-factor <= 1 {
|
||||||
|
@error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Generate enable or disable classes. Possibilities: false, "enable" or "disable"
|
||||||
|
$rfs-class: false !default;
|
||||||
|
|
||||||
|
// 1 rem = $rfs-rem-value px
|
||||||
|
$rfs-rem-value: 16 !default;
|
||||||
|
|
||||||
|
// Safari iframe resize bug: https://github.com/twbs/rfs/issues/14
|
||||||
|
$rfs-safari-iframe-resize-bug-fix: false !default;
|
||||||
|
|
||||||
|
// Disable RFS by setting $enable-responsive-font-sizes to false
|
||||||
|
$enable-responsive-font-sizes: true !default;
|
||||||
|
|
||||||
|
// Cache $rfs-base-font-size unit
|
||||||
|
$rfs-base-font-size-unit: unit($rfs-base-font-size);
|
||||||
|
|
||||||
|
// Remove px-unit from $rfs-base-font-size for calculations
|
||||||
|
@if $rfs-base-font-size-unit == "px" {
|
||||||
|
$rfs-base-font-size: $rfs-base-font-size / ($rfs-base-font-size * 0 + 1);
|
||||||
|
}
|
||||||
|
@else if $rfs-base-font-size-unit == "rem" {
|
||||||
|
$rfs-base-font-size: $rfs-base-font-size / ($rfs-base-font-size * 0 + 1 / $rfs-rem-value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cache $rfs-breakpoint unit to prevent multiple calls
|
||||||
|
$rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
|
||||||
|
|
||||||
|
// Remove unit from $rfs-breakpoint for calculations
|
||||||
|
@if $rfs-breakpoint-unit-cache == "px" {
|
||||||
|
$rfs-breakpoint: $rfs-breakpoint / ($rfs-breakpoint * 0 + 1);
|
||||||
|
}
|
||||||
|
@else if $rfs-breakpoint-unit-cache == "rem" or $rfs-breakpoint-unit-cache == "em" {
|
||||||
|
$rfs-breakpoint: $rfs-breakpoint / ($rfs-breakpoint * 0 + 1 / $rfs-rem-value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Responsive font-size mixin
|
||||||
|
@mixin rfs($fs, $important: false) {
|
||||||
|
// Cache $fs unit
|
||||||
|
$fs-unit: if(type-of($fs) == "number", unit($fs), false);
|
||||||
|
|
||||||
|
// Add !important suffix if needed
|
||||||
|
$rfs-suffix: if($important, " !important", "");
|
||||||
|
|
||||||
|
// If $fs isn't a number (like inherit) or $fs has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
|
||||||
|
@if not $fs-unit or $fs-unit != "" and $fs-unit != "px" and $fs-unit != "rem" or $fs == 0 {
|
||||||
|
font-size: #{$fs}#{$rfs-suffix};
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
// Variables for storing static and fluid rescaling
|
||||||
|
$rfs-static: null;
|
||||||
|
$rfs-fluid: null;
|
||||||
|
|
||||||
|
// Remove px-unit from $fs for calculations
|
||||||
|
@if $fs-unit == "px" {
|
||||||
|
$fs: $fs / ($fs * 0 + 1);
|
||||||
|
}
|
||||||
|
@else if $fs-unit == "rem" {
|
||||||
|
$fs: $fs / ($fs * 0 + 1 / $rfs-rem-value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set default font-size
|
||||||
|
@if $rfs-font-size-unit == rem {
|
||||||
|
$rfs-static: #{$fs / $rfs-rem-value}rem#{$rfs-suffix};
|
||||||
|
}
|
||||||
|
@else if $rfs-font-size-unit == px {
|
||||||
|
$rfs-static: #{$fs}px#{$rfs-suffix};
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
@error "`#{$rfs-font-size-unit}` is not a valid unit for $rfs-font-size-unit. Use `px` or `rem`.";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Only add media query if font-size is bigger as the minimum font-size
|
||||||
|
// If $rfs-factor == 1, no rescaling will take place
|
||||||
|
@if $fs > $rfs-base-font-size and $enable-responsive-font-sizes {
|
||||||
|
$min-width: null;
|
||||||
|
$variable-unit: null;
|
||||||
|
|
||||||
|
// Calculate minimum font-size for given font-size
|
||||||
|
$fs-min: $rfs-base-font-size + ($fs - $rfs-base-font-size) / $rfs-factor;
|
||||||
|
|
||||||
|
// Calculate difference between given font-size and minimum font-size for given font-size
|
||||||
|
$fs-diff: $fs - $fs-min;
|
||||||
|
|
||||||
|
// Base font-size formatting
|
||||||
|
// No need to check if the unit is valid, because we did that before
|
||||||
|
$min-width: if($rfs-font-size-unit == rem, #{$fs-min / $rfs-rem-value}rem, #{$fs-min}px);
|
||||||
|
|
||||||
|
// If two-dimensional, use smallest of screen width and height
|
||||||
|
$variable-unit: if($rfs-two-dimensional, vmin, vw);
|
||||||
|
|
||||||
|
// Calculate the variable width between 0 and $rfs-breakpoint
|
||||||
|
$variable-width: #{$fs-diff * 100 / $rfs-breakpoint}#{$variable-unit};
|
||||||
|
|
||||||
|
// Set the calculated font-size.
|
||||||
|
$rfs-fluid: calc(#{$min-width} + #{$variable-width}) #{$rfs-suffix};
|
||||||
|
}
|
||||||
|
|
||||||
|
// Rendering
|
||||||
|
@if $rfs-fluid == null {
|
||||||
|
// Only render static font-size if no fluid font-size is available
|
||||||
|
font-size: $rfs-static;
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
$mq-value: null;
|
||||||
|
|
||||||
|
// RFS breakpoint formatting
|
||||||
|
@if $rfs-breakpoint-unit == em or $rfs-breakpoint-unit == rem {
|
||||||
|
$mq-value: #{$rfs-breakpoint / $rfs-rem-value}#{$rfs-breakpoint-unit};
|
||||||
|
}
|
||||||
|
@else if $rfs-breakpoint-unit == px {
|
||||||
|
$mq-value: #{$rfs-breakpoint}px;
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
@error "`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.";
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $rfs-class == "disable" {
|
||||||
|
// Adding an extra class increases specificity,
|
||||||
|
// which prevents the media query to override the font size
|
||||||
|
&,
|
||||||
|
.disable-responsive-font-size &,
|
||||||
|
&.disable-responsive-font-size {
|
||||||
|
font-size: $rfs-static;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
font-size: $rfs-static;
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $rfs-two-dimensional {
|
||||||
|
@media (max-width: #{$mq-value}), (max-height: #{$mq-value}) {
|
||||||
|
@if $rfs-class == "enable" {
|
||||||
|
.enable-responsive-font-size &,
|
||||||
|
&.enable-responsive-font-size {
|
||||||
|
font-size: $rfs-fluid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
font-size: $rfs-fluid;
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $rfs-safari-iframe-resize-bug-fix {
|
||||||
|
// stylelint-disable-next-line length-zero-no-unit
|
||||||
|
min-width: 0vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
@media (max-width: #{$mq-value}) {
|
||||||
|
@if $rfs-class == "enable" {
|
||||||
|
.enable-responsive-font-size &,
|
||||||
|
&.enable-responsive-font-size {
|
||||||
|
font-size: $rfs-fluid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
font-size: $rfs-fluid;
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $rfs-safari-iframe-resize-bug-fix {
|
||||||
|
// stylelint-disable-next-line length-zero-no-unit
|
||||||
|
min-width: 0vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// The font-size & responsive-font-size mixin uses RFS to rescale font sizes
|
||||||
|
@mixin font-size($fs, $important: false) {
|
||||||
|
@include rfs($fs, $important);
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin responsive-font-size($fs, $important: false) {
|
||||||
|
@include rfs($fs, $important);
|
||||||
|
}
|
|
@ -6,44 +6,15 @@
|
||||||
@import 'bootstrap-variables';
|
@import 'bootstrap-variables';
|
||||||
@import 'bootstrap/variables';
|
@import 'bootstrap/variables';
|
||||||
@import 'bootstrap/mixins';
|
@import 'bootstrap/mixins';
|
||||||
// @import 'bootstrap/root';
|
|
||||||
@import 'bootstrap/reboot';
|
@import 'bootstrap/reboot';
|
||||||
@import 'bootstrap/utilities';
|
@import 'bootstrap/utilities';
|
||||||
@import 'bootstrap/grid';
|
@import 'bootstrap/grid';
|
||||||
// @import 'bootstrap/type';
|
|
||||||
@import 'bootstrap/tables';
|
@import 'bootstrap/tables';
|
||||||
// @import "bootstrap/images";
|
|
||||||
// @import "bootstrap/code";
|
|
||||||
// @import "bootstrap/forms";
|
|
||||||
// @import "bootstrap/buttons";
|
|
||||||
// @import "bootstrap/transitions";
|
|
||||||
// @import "bootstrap/dropdown";
|
|
||||||
// @import "bootstrap/button-group";
|
|
||||||
// @import "bootstrap/input-group";
|
|
||||||
// @import "bootstrap/custom-forms";
|
|
||||||
// @import "bootstrap/nav";
|
|
||||||
// @import "bootstrap/navbar";
|
|
||||||
// @import "bootstrap/card";
|
|
||||||
// @import "bootstrap/breadcrumb";
|
|
||||||
// @import "bootstrap/pagination";
|
|
||||||
// @import "bootstrap/badge";
|
|
||||||
// @import "bootstrap/jumbotron";
|
|
||||||
// @import "bootstrap/alert";
|
|
||||||
// @import "bootstrap/progress";
|
|
||||||
// @import "bootstrap/media";
|
|
||||||
// @import "bootstrap/list-group";
|
|
||||||
// @import "bootstrap/close";
|
|
||||||
// @import "bootstrap/modal";
|
|
||||||
// @import "bootstrap/tooltip";
|
|
||||||
// @import "bootstrap/popover";
|
|
||||||
// @import "bootstrap/carousel";
|
|
||||||
// @import "bootstrap/print";
|
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
@import 'libraries/hamburgers/hamburgers';
|
@import 'libraries/hamburgers/hamburgers';
|
||||||
@import 'libraries/pygments/github';
|
@import 'libraries/pygments/github';
|
||||||
|
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
@import 'components/reset';
|
@import 'components/reset';
|
||||||
@import 'components/type';
|
@import 'components/type';
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"css/style.min.020d604e977275cf093999068602ba80e6eb2f78df409ccca5a76f02778bea56.css","MediaType":"text/css","Data":{"Integrity":"sha256-Ag1gTpdydc8JOZkGhgK6gObrL3jfQJzMpadvAneL6lY="}}
|
{"Target":"css/style.min.6aa5eecd4ca7c47fb2ca9b0775a7bd787e3e64a2eadf0fef8c9f924498f49127.css","MediaType":"text/css","Data":{"Integrity":"sha256-aqXuzUynxH+yypsHdae9eH4+ZKLq3w/vjJ+SRJj0kSc="}}
|
Loading…
Add table
Add a link
Reference in a new issue