2015-04-18 20:15:40 +02:00
|
|
|
//
|
2012-01-26 20:10:07 +01:00
|
|
|
// Base styles
|
2015-04-18 20:15:40 +02:00
|
|
|
//
|
2012-01-26 20:10:07 +01:00
|
|
|
|
2012-12-20 07:25:56 +01:00
|
|
|
.btn {
|
2021-07-28 06:36:12 +02:00
|
|
|
// scss-docs-start btn-css-vars
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
--#{$prefix}btn-padding-x: #{$btn-padding-x};
|
|
|
|
--#{$prefix}btn-padding-y: #{$btn-padding-y};
|
|
|
|
--#{$prefix}btn-font-family: #{$btn-font-family};
|
|
|
|
@include rfs($btn-font-size, --#{$prefix}btn-font-size);
|
|
|
|
--#{$prefix}btn-font-weight: #{$btn-font-weight};
|
|
|
|
--#{$prefix}btn-line-height: #{$btn-line-height};
|
2023-03-02 19:49:54 +01:00
|
|
|
--#{$prefix}btn-color: #{$btn-color};
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
--#{$prefix}btn-bg: transparent;
|
|
|
|
--#{$prefix}btn-border-width: #{$btn-border-width};
|
|
|
|
--#{$prefix}btn-border-color: transparent;
|
|
|
|
--#{$prefix}btn-border-radius: #{$btn-border-radius};
|
2022-08-19 01:09:48 +02:00
|
|
|
--#{$prefix}btn-hover-border-color: transparent;
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
--#{$prefix}btn-box-shadow: #{$btn-box-shadow};
|
|
|
|
--#{$prefix}btn-disabled-opacity: #{$btn-disabled-opacity};
|
|
|
|
--#{$prefix}btn-focus-box-shadow: 0 0 0 #{$btn-focus-width} rgba(var(--#{$prefix}btn-focus-shadow-rgb), .5);
|
2021-07-28 06:36:12 +02:00
|
|
|
// scss-docs-end btn-css-vars
|
|
|
|
|
2012-12-20 07:25:56 +01:00
|
|
|
display: inline-block;
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
padding: var(--#{$prefix}btn-padding-y) var(--#{$prefix}btn-padding-x);
|
|
|
|
font-family: var(--#{$prefix}btn-font-family);
|
2022-03-31 18:12:52 +02:00
|
|
|
@include font-size(var(--#{$prefix}btn-font-size));
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
font-weight: var(--#{$prefix}btn-font-weight);
|
|
|
|
line-height: var(--#{$prefix}btn-line-height);
|
|
|
|
color: var(--#{$prefix}btn-color);
|
2012-12-20 07:54:04 +01:00
|
|
|
text-align: center;
|
2020-03-05 15:22:52 +01:00
|
|
|
text-decoration: if($link-decoration == none, null, none);
|
2019-10-25 11:37:52 +02:00
|
|
|
white-space: $btn-white-space;
|
2012-12-20 07:25:56 +01:00
|
|
|
vertical-align: middle;
|
2020-04-14 02:48:19 +02:00
|
|
|
cursor: if($enable-button-pointers, pointer, null);
|
2014-12-11 21:05:29 +01:00
|
|
|
user-select: none;
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
border: var(--#{$prefix}btn-border-width) solid var(--#{$prefix}btn-border-color);
|
|
|
|
@include border-radius(var(--#{$prefix}btn-border-radius));
|
|
|
|
@include gradient-bg(var(--#{$prefix}btn-bg));
|
|
|
|
@include box-shadow(var(--#{$prefix}btn-box-shadow));
|
2016-12-20 05:33:17 +01:00
|
|
|
@include transition($btn-transition);
|
2012-12-20 07:25:56 +01:00
|
|
|
|
2022-09-20 15:15:46 +02:00
|
|
|
&:hover {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
color: var(--#{$prefix}btn-hover-color);
|
2020-03-20 09:35:55 +01:00
|
|
|
text-decoration: if($link-hover-decoration == underline, none, null);
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
background-color: var(--#{$prefix}btn-hover-bg);
|
|
|
|
border-color: var(--#{$prefix}btn-hover-border-color);
|
2015-01-01 10:05:01 +01:00
|
|
|
}
|
2017-12-28 01:42:59 +01:00
|
|
|
|
2022-09-20 15:15:46 +02:00
|
|
|
.btn-check + &:hover {
|
|
|
|
// override for the checkbox/radio buttons
|
|
|
|
color: var(--#{$prefix}btn-color);
|
|
|
|
background-color: var(--#{$prefix}btn-bg);
|
|
|
|
border-color: var(--#{$prefix}btn-border-color);
|
|
|
|
}
|
|
|
|
|
2022-09-04 18:59:14 +02:00
|
|
|
&:focus-visible {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
color: var(--#{$prefix}btn-hover-color);
|
|
|
|
@include gradient-bg(var(--#{$prefix}btn-hover-bg));
|
|
|
|
border-color: var(--#{$prefix}btn-hover-border-color);
|
2022-09-04 18:59:14 +02:00
|
|
|
outline: 0;
|
2021-07-28 06:36:12 +02:00
|
|
|
// Avoid using mixin so we can pass custom focus shadow properly
|
|
|
|
@if $enable-shadows {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
box-shadow: var(--#{$prefix}btn-box-shadow), var(--#{$prefix}btn-focus-box-shadow);
|
2021-07-28 06:36:12 +02:00
|
|
|
} @else {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
box-shadow: var(--#{$prefix}btn-focus-box-shadow);
|
2021-07-28 06:36:12 +02:00
|
|
|
}
|
2013-12-18 23:29:33 +01:00
|
|
|
}
|
|
|
|
|
2022-09-04 18:59:14 +02:00
|
|
|
.btn-check:focus-visible + & {
|
|
|
|
border-color: var(--#{$prefix}btn-hover-border-color);
|
2022-09-01 03:30:23 +02:00
|
|
|
outline: 0;
|
2022-09-04 18:59:14 +02:00
|
|
|
// Avoid using mixin so we can pass custom focus shadow properly
|
|
|
|
@if $enable-shadows {
|
|
|
|
box-shadow: var(--#{$prefix}btn-box-shadow), var(--#{$prefix}btn-focus-box-shadow);
|
|
|
|
} @else {
|
|
|
|
box-shadow: var(--#{$prefix}btn-focus-box-shadow);
|
|
|
|
}
|
2022-09-01 03:30:23 +02:00
|
|
|
}
|
|
|
|
|
2020-06-04 15:59:24 +02:00
|
|
|
.btn-check:checked + &,
|
2022-09-04 18:59:14 +02:00
|
|
|
:not(.btn-check) + &:active,
|
|
|
|
&:first-child:active,
|
2021-07-28 06:36:12 +02:00
|
|
|
&.active,
|
2022-02-15 14:04:16 +01:00
|
|
|
&.show {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
color: var(--#{$prefix}btn-active-color);
|
|
|
|
background-color: var(--#{$prefix}btn-active-bg);
|
2021-07-28 06:36:12 +02:00
|
|
|
// Remove CSS gradients if they're enabled
|
|
|
|
background-image: if($enable-gradients, none, null);
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
border-color: var(--#{$prefix}btn-active-border-color);
|
|
|
|
@include box-shadow(var(--#{$prefix}btn-active-shadow));
|
2017-12-24 05:33:41 +01:00
|
|
|
|
2022-09-04 18:59:14 +02:00
|
|
|
&:focus-visible {
|
2021-07-28 06:36:12 +02:00
|
|
|
// Avoid using mixin so we can pass custom focus shadow properly
|
|
|
|
@if $enable-shadows {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
box-shadow: var(--#{$prefix}btn-active-shadow), var(--#{$prefix}btn-focus-box-shadow);
|
2021-07-28 06:36:12 +02:00
|
|
|
} @else {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
box-shadow: var(--#{$prefix}btn-focus-box-shadow);
|
2021-07-28 06:36:12 +02:00
|
|
|
}
|
2017-12-24 05:33:41 +01:00
|
|
|
}
|
2016-12-26 23:42:29 +01:00
|
|
|
}
|
2015-03-17 18:24:31 +01:00
|
|
|
|
2019-12-27 17:40:06 +01:00
|
|
|
&:disabled,
|
|
|
|
&.disabled,
|
2020-06-12 10:11:36 +02:00
|
|
|
fieldset:disabled & {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
color: var(--#{$prefix}btn-disabled-color);
|
2019-12-27 17:40:06 +01:00
|
|
|
pointer-events: none;
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
background-color: var(--#{$prefix}btn-disabled-bg);
|
2021-07-28 06:36:12 +02:00
|
|
|
background-image: if($enable-gradients, none, null);
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
border-color: var(--#{$prefix}btn-disabled-border-color);
|
|
|
|
opacity: var(--#{$prefix}btn-disabled-opacity);
|
2019-12-27 17:40:06 +01:00
|
|
|
@include box-shadow(none);
|
|
|
|
}
|
2012-12-20 07:25:56 +01:00
|
|
|
}
|
|
|
|
|
2012-01-31 05:50:51 +01:00
|
|
|
|
2015-04-18 20:15:40 +02:00
|
|
|
//
|
2012-01-31 05:50:51 +01:00
|
|
|
// Alternate buttons
|
2015-04-18 20:15:40 +02:00
|
|
|
//
|
2012-01-31 05:50:51 +01:00
|
|
|
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-start btn-variant-loops
|
2017-06-18 11:57:16 +02:00
|
|
|
@each $color, $value in $theme-colors {
|
|
|
|
.btn-#{$color} {
|
2022-04-14 05:43:37 +02:00
|
|
|
@if $color == "light" {
|
|
|
|
@include button-variant(
|
|
|
|
$value,
|
|
|
|
$value,
|
|
|
|
$hover-background: shade-color($value, $btn-hover-bg-shade-amount),
|
|
|
|
$hover-border: shade-color($value, $btn-hover-border-shade-amount),
|
|
|
|
$active-background: shade-color($value, $btn-active-bg-shade-amount),
|
|
|
|
$active-border: shade-color($value, $btn-active-border-shade-amount)
|
|
|
|
);
|
|
|
|
} @else if $color == "dark" {
|
|
|
|
@include button-variant(
|
|
|
|
$value,
|
|
|
|
$value,
|
|
|
|
$hover-background: tint-color($value, $btn-hover-bg-tint-amount),
|
|
|
|
$hover-border: tint-color($value, $btn-hover-border-tint-amount),
|
|
|
|
$active-background: tint-color($value, $btn-active-bg-tint-amount),
|
|
|
|
$active-border: tint-color($value, $btn-active-border-tint-amount)
|
|
|
|
);
|
|
|
|
} @else {
|
|
|
|
@include button-variant($value, $value);
|
|
|
|
}
|
2017-06-18 11:57:16 +02:00
|
|
|
}
|
2012-01-31 05:50:51 +01:00
|
|
|
}
|
|
|
|
|
2017-06-18 11:57:16 +02:00
|
|
|
@each $color, $value in $theme-colors {
|
|
|
|
.btn-outline-#{$color} {
|
2018-01-18 00:45:25 +01:00
|
|
|
@include button-outline-variant($value);
|
2017-06-18 11:57:16 +02:00
|
|
|
}
|
2015-08-10 07:48:48 +02:00
|
|
|
}
|
2021-02-11 04:29:59 +01:00
|
|
|
// scss-docs-end btn-variant-loops
|
2015-08-10 07:48:48 +02:00
|
|
|
|
2012-07-18 08:32:52 +02:00
|
|
|
|
2015-04-18 20:15:40 +02:00
|
|
|
//
|
2012-07-18 08:32:52 +02:00
|
|
|
// Link buttons
|
2015-04-18 20:15:40 +02:00
|
|
|
//
|
2012-07-18 08:32:52 +02:00
|
|
|
|
|
|
|
// Make a button look and behave like a link
|
2012-08-19 01:30:47 +02:00
|
|
|
.btn-link {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
--#{$prefix}btn-font-weight: #{$font-weight-normal};
|
|
|
|
--#{$prefix}btn-color: #{$btn-link-color};
|
|
|
|
--#{$prefix}btn-bg: transparent;
|
|
|
|
--#{$prefix}btn-border-color: transparent;
|
|
|
|
--#{$prefix}btn-hover-color: #{$btn-link-hover-color};
|
|
|
|
--#{$prefix}btn-hover-border-color: transparent;
|
2022-07-16 11:33:45 +02:00
|
|
|
--#{$prefix}btn-active-color: #{$btn-link-hover-color};
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 18:13:09 +01:00
|
|
|
--#{$prefix}btn-active-border-color: transparent;
|
|
|
|
--#{$prefix}btn-disabled-color: #{$btn-link-disabled-color};
|
|
|
|
--#{$prefix}btn-disabled-border-color: transparent;
|
2023-01-06 06:10:00 +01:00
|
|
|
--#{$prefix}btn-box-shadow: 0 0 0 #000; // Can't use `none` as keyword negates all values when used with multiple shadows
|
2023-02-20 12:17:08 +01:00
|
|
|
--#{$prefix}btn-focus-shadow-rgb: #{to-rgb(mix(color-contrast($link-color), $link-color, 15%))};
|
2013-07-07 07:13:37 +02:00
|
|
|
|
2021-07-28 06:36:12 +02:00
|
|
|
text-decoration: $link-decoration;
|
2022-09-03 00:48:48 +02:00
|
|
|
@if $enable-gradients {
|
|
|
|
background-image: none;
|
|
|
|
}
|
2017-08-13 23:55:28 +02:00
|
|
|
|
2021-07-28 06:36:12 +02:00
|
|
|
&:hover,
|
2022-09-04 18:59:14 +02:00
|
|
|
&:focus-visible {
|
2017-11-08 17:05:12 +01:00
|
|
|
text-decoration: $link-hover-decoration;
|
2013-07-07 07:13:37 +02:00
|
|
|
}
|
2016-12-26 23:02:24 +01:00
|
|
|
|
2022-09-04 18:59:14 +02:00
|
|
|
&:focus-visible {
|
2022-07-16 11:33:45 +02:00
|
|
|
color: var(--#{$prefix}btn-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--#{$prefix}btn-hover-color);
|
|
|
|
}
|
|
|
|
|
2017-08-13 23:55:28 +02:00
|
|
|
// No need for an active state here
|
2012-08-31 23:02:18 +02:00
|
|
|
}
|
2013-05-08 03:07:06 +02:00
|
|
|
|
|
|
|
|
2015-04-18 20:15:40 +02:00
|
|
|
//
|
2013-05-08 03:07:06 +02:00
|
|
|
// Button Sizes
|
2015-04-18 20:15:40 +02:00
|
|
|
//
|
2013-05-08 03:07:06 +02:00
|
|
|
|
2013-08-04 06:39:57 +02:00
|
|
|
.btn-lg {
|
2019-08-30 09:42:41 +02:00
|
|
|
@include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-border-radius-lg);
|
2013-05-08 03:07:06 +02:00
|
|
|
}
|
2017-03-28 18:28:27 +02:00
|
|
|
|
2013-12-04 03:03:04 +01:00
|
|
|
.btn-sm {
|
2019-08-30 09:42:41 +02:00
|
|
|
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-border-radius-sm);
|
2013-07-30 02:08:04 +02:00
|
|
|
}
|