1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Adding @include everytime it's not the case

This commit is contained in:
louismaxime.piton 2022-03-31 18:12:52 +02:00 committed by Mark Otto
parent 8006203e47
commit 00d028e646
6 changed files with 7 additions and 8 deletions

View file

@ -17,7 +17,7 @@
display: inline-block; display: inline-block;
padding: var(--#{$prefix}badge-padding-y) var(--#{$prefix}badge-padding-x); padding: var(--#{$prefix}badge-padding-y) var(--#{$prefix}badge-padding-x);
font-size: var(--#{$prefix}badge-font-size); @include font-size(var(--#{$prefix}badge-font-size));
font-weight: var(--#{$prefix}badge-font-weight); font-weight: var(--#{$prefix}badge-font-weight);
line-height: 1; line-height: 1;
color: var(--#{$prefix}badge-color); color: var(--#{$prefix}badge-color);

View file

@ -17,8 +17,7 @@
flex-wrap: wrap; flex-wrap: wrap;
padding: var(--#{$prefix}breadcrumb-padding-y) var(--#{$prefix}breadcrumb-padding-x); padding: var(--#{$prefix}breadcrumb-padding-y) var(--#{$prefix}breadcrumb-padding-x);
margin-bottom: var(--#{$prefix}breadcrumb-margin-bottom); margin-bottom: var(--#{$prefix}breadcrumb-margin-bottom);
@include font-size($breadcrumb-font-size); @include font-size(var(--#{$prefix}breadcrumb-font-size));
font-size: var(--#{$prefix}breadcrumb-font-size);
list-style: none; list-style: none;
background-color: var(--#{$prefix}breadcrumb-bg); background-color: var(--#{$prefix}breadcrumb-bg);
@include border-radius(var(--#{$prefix}breadcrumb-border-radius)); @include border-radius(var(--#{$prefix}breadcrumb-border-radius));

View file

@ -25,7 +25,7 @@
display: inline-block; display: inline-block;
padding: var(--#{$prefix}btn-padding-y) var(--#{$prefix}btn-padding-x); padding: var(--#{$prefix}btn-padding-y) var(--#{$prefix}btn-padding-x);
font-family: var(--#{$prefix}btn-font-family); font-family: var(--#{$prefix}btn-font-family);
font-size: var(--#{$prefix}btn-font-size); @include font-size(var(--#{$prefix}btn-font-size));
font-weight: var(--#{$prefix}btn-font-weight); font-weight: var(--#{$prefix}btn-font-weight);
line-height: var(--#{$prefix}btn-line-height); line-height: var(--#{$prefix}btn-line-height);
color: var(--#{$prefix}btn-color); color: var(--#{$prefix}btn-color);

View file

@ -32,7 +32,7 @@
position: relative; position: relative;
display: block; display: block;
padding: var(--#{$prefix}pagination-padding-y) var(--#{$prefix}pagination-padding-x); padding: var(--#{$prefix}pagination-padding-y) var(--#{$prefix}pagination-padding-x);
font-size: var(--#{$prefix}pagination-font-size); @include font-size(var(--#{$prefix}pagination-font-size));
color: var(--#{$prefix}pagination-color); color: var(--#{$prefix}pagination-color);
text-decoration: if($link-decoration == none, null, none); text-decoration: if($link-decoration == none, null, none);
background-color: var(--#{$prefix}pagination-bg); background-color: var(--#{$prefix}pagination-bg);

View file

@ -31,7 +31,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: var(--#{$prefix}popover-font-size); @include font-size(var(--#{$prefix}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: var(--#{$prefix}popover-bg); background-color: var(--#{$prefix}popover-bg);

View file

@ -27,7 +27,7 @@
:root { :root {
@if $font-size-root != null { @if $font-size-root != null {
font-size: var(--#{$prefix}root-font-size); @include font-size(var(--#{$prefix}root-font-size));
} }
@if $enable-smooth-scroll { @if $enable-smooth-scroll {
@ -49,7 +49,7 @@
body { body {
margin: 0; // 1 margin: 0; // 1
font-family: var(--#{$prefix}body-font-family); font-family: var(--#{$prefix}body-font-family);
font-size: var(--#{$prefix}body-font-size); @include font-size(var(--#{$prefix}body-font-size));
font-weight: var(--#{$prefix}body-font-weight); font-weight: var(--#{$prefix}body-font-weight);
line-height: var(--#{$prefix}body-line-height); line-height: var(--#{$prefix}body-line-height);
color: var(--#{$prefix}body-color); color: var(--#{$prefix}body-color);