2015-11-28 05:12:37 +01:00
|
|
|
// The dropdown wrapper (`<div>`)
|
2015-01-18 22:39:40 +01:00
|
|
|
.dropup,
|
2020-06-26 16:06:20 +02:00
|
|
|
.dropend,
|
2018-03-12 18:44:05 +01:00
|
|
|
.dropdown,
|
2022-02-25 17:53:17 +01:00
|
|
|
.dropstart,
|
|
|
|
.dropup-center,
|
|
|
|
.dropdown-center {
|
2013-08-01 20:07:34 +02:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2014-07-08 23:23:34 +02:00
|
|
|
.dropdown-toggle {
|
2019-01-13 08:43:52 +01:00
|
|
|
white-space: nowrap;
|
|
|
|
|
2014-07-08 23:23:34 +02:00
|
|
|
// Generate the caret automatically
|
2019-07-24 08:41:18 +02:00
|
|
|
@include caret();
|
2013-08-13 06:23:28 +02:00
|
|
|
}
|
|
|
|
|
2015-11-28 05:12:37 +01:00
|
|
|
// The dropdown menu
|
2011-12-21 23:22:20 +01:00
|
|
|
.dropdown-menu {
|
2021-11-28 11:56:37 +01:00
|
|
|
// scss-docs-start dropdown-css-vars
|
2022-08-24 15:42:02 +02:00
|
|
|
--#{$prefix}dropdown-zindex: #{$zindex-dropdown};
|
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}dropdown-min-width: #{$dropdown-min-width};
|
|
|
|
--#{$prefix}dropdown-padding-x: #{$dropdown-padding-x};
|
|
|
|
--#{$prefix}dropdown-padding-y: #{$dropdown-padding-y};
|
|
|
|
--#{$prefix}dropdown-spacer: #{$dropdown-spacer};
|
|
|
|
@include rfs($dropdown-font-size, --#{$prefix}dropdown-font-size);
|
2022-05-23 04:24:08 +02:00
|
|
|
--#{$prefix}dropdown-color: #{$dropdown-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}dropdown-bg: #{$dropdown-bg};
|
|
|
|
--#{$prefix}dropdown-border-color: #{$dropdown-border-color};
|
|
|
|
--#{$prefix}dropdown-border-radius: #{$dropdown-border-radius};
|
|
|
|
--#{$prefix}dropdown-border-width: #{$dropdown-border-width};
|
|
|
|
--#{$prefix}dropdown-inner-border-radius: #{$dropdown-inner-border-radius};
|
|
|
|
--#{$prefix}dropdown-divider-bg: #{$dropdown-divider-bg};
|
|
|
|
--#{$prefix}dropdown-divider-margin-y: #{$dropdown-divider-margin-y};
|
|
|
|
--#{$prefix}dropdown-box-shadow: #{$dropdown-box-shadow};
|
|
|
|
--#{$prefix}dropdown-link-color: #{$dropdown-link-color};
|
|
|
|
--#{$prefix}dropdown-link-hover-color: #{$dropdown-link-hover-color};
|
|
|
|
--#{$prefix}dropdown-link-hover-bg: #{$dropdown-link-hover-bg};
|
|
|
|
--#{$prefix}dropdown-link-active-color: #{$dropdown-link-active-color};
|
|
|
|
--#{$prefix}dropdown-link-active-bg: #{$dropdown-link-active-bg};
|
|
|
|
--#{$prefix}dropdown-link-disabled-color: #{$dropdown-link-disabled-color};
|
|
|
|
--#{$prefix}dropdown-item-padding-x: #{$dropdown-item-padding-x};
|
|
|
|
--#{$prefix}dropdown-item-padding-y: #{$dropdown-item-padding-y};
|
|
|
|
--#{$prefix}dropdown-header-color: #{$dropdown-header-color};
|
|
|
|
--#{$prefix}dropdown-header-padding-x: #{$dropdown-header-padding-x};
|
|
|
|
--#{$prefix}dropdown-header-padding-y: #{$dropdown-header-padding-y};
|
2021-11-28 11:56:37 +01:00
|
|
|
// scss-docs-end dropdown-css-vars
|
|
|
|
|
2011-12-21 23:22:20 +01:00
|
|
|
position: absolute;
|
2022-08-24 15:42:02 +02:00
|
|
|
z-index: var(--#{$prefix}dropdown-zindex);
|
2012-01-07 12:45:24 +01:00
|
|
|
display: none; // none by default, but block on "open" of the menu
|
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
|
|
|
min-width: var(--#{$prefix}dropdown-min-width);
|
|
|
|
padding: var(--#{$prefix}dropdown-padding-y) var(--#{$prefix}dropdown-padding-x);
|
2021-02-03 20:37:25 +01:00
|
|
|
margin: 0; // Override default margin of ul
|
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
|
|
|
@include font-size(var(--#{$prefix}dropdown-font-size));
|
|
|
|
color: var(--#{$prefix}dropdown-color);
|
2014-03-25 04:02:56 +01:00
|
|
|
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
2014-12-11 21:05:29 +01:00
|
|
|
list-style: 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}dropdown-bg);
|
2014-12-11 21:05:29 +01:00
|
|
|
background-clip: padding-box;
|
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}dropdown-border-width) solid var(--#{$prefix}dropdown-border-color);
|
|
|
|
@include border-radius(var(--#{$prefix}dropdown-border-radius));
|
|
|
|
@include box-shadow(var(--#{$prefix}dropdown-box-shadow));
|
2021-02-08 18:19:19 +01:00
|
|
|
|
|
|
|
&[data-bs-popper] {
|
2021-03-24 20:29:45 +01:00
|
|
|
top: 100%;
|
2021-02-08 18:19:19 +01:00
|
|
|
left: 0;
|
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
|
|
|
margin-top: var(--#{$prefix}dropdown-spacer);
|
2021-02-08 18:19:19 +01:00
|
|
|
}
|
2022-05-26 23:40:19 +02:00
|
|
|
|
|
|
|
@if $dropdown-padding-y == 0 {
|
|
|
|
> .dropdown-item:first-child,
|
|
|
|
> li:first-child .dropdown-item {
|
|
|
|
@include border-top-radius(var(--#{$prefix}dropdown-inner-border-radius));
|
|
|
|
}
|
|
|
|
> .dropdown-item:last-child,
|
|
|
|
> li:last-child .dropdown-item {
|
|
|
|
@include border-bottom-radius(var(--#{$prefix}dropdown-inner-border-radius));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2015-08-17 20:21:10 +02:00
|
|
|
}
|
2011-12-21 23:22:20 +01:00
|
|
|
|
2020-04-06 20:13:35 +02:00
|
|
|
// scss-docs-start responsive-breakpoints
|
2020-11-25 21:12:32 +01:00
|
|
|
// We deliberately hardcode the `bs-` prefix because we check
|
|
|
|
// this custom property in JS to determine Popper's positioning
|
|
|
|
|
2018-10-21 10:01:22 +02:00
|
|
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
|
|
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
|
|
|
2020-06-26 16:06:20 +02:00
|
|
|
.dropdown-menu#{$infix}-start {
|
2020-11-25 21:12:32 +01:00
|
|
|
--bs-position: start;
|
2021-02-05 23:57:43 +01:00
|
|
|
|
|
|
|
&[data-bs-popper] {
|
2021-05-27 16:36:32 +02:00
|
|
|
right: auto;
|
|
|
|
left: 0;
|
2021-02-05 23:57:43 +01:00
|
|
|
}
|
2018-10-21 10:01:22 +02:00
|
|
|
}
|
2019-01-07 02:12:51 +01:00
|
|
|
|
2020-06-26 16:06:20 +02:00
|
|
|
.dropdown-menu#{$infix}-end {
|
2020-11-25 21:12:32 +01:00
|
|
|
--bs-position: end;
|
2021-02-05 23:57:43 +01:00
|
|
|
|
|
|
|
&[data-bs-popper] {
|
2021-05-27 16:36:32 +02:00
|
|
|
right: 0;
|
|
|
|
left: auto;
|
2021-02-05 23:57:43 +01:00
|
|
|
}
|
2019-01-07 02:12:51 +01:00
|
|
|
}
|
2018-10-21 10:01:22 +02:00
|
|
|
}
|
2018-03-12 18:44:05 +01:00
|
|
|
}
|
2020-04-06 20:13:35 +02:00
|
|
|
// scss-docs-end responsive-breakpoints
|
2018-03-12 18:44:05 +01:00
|
|
|
|
2017-10-10 15:46:43 +02:00
|
|
|
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
|
|
|
// Just add .dropup after the standard .dropdown class and you're set.
|
|
|
|
.dropup {
|
2021-02-22 07:57:21 +01:00
|
|
|
.dropdown-menu[data-bs-popper] {
|
2018-03-12 18:44:05 +01:00
|
|
|
top: auto;
|
|
|
|
bottom: 100%;
|
2021-02-22 07:57:21 +01:00
|
|
|
margin-top: 0;
|
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
|
|
|
margin-bottom: var(--#{$prefix}dropdown-spacer);
|
2017-10-10 15:46:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-toggle {
|
|
|
|
@include caret(up);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-26 16:06:20 +02:00
|
|
|
.dropend {
|
2021-03-24 20:29:45 +01:00
|
|
|
.dropdown-menu[data-bs-popper] {
|
2018-03-12 18:44:05 +01:00
|
|
|
top: 0;
|
|
|
|
right: auto;
|
|
|
|
left: 100%;
|
2021-03-24 20:29:45 +01:00
|
|
|
margin-top: 0;
|
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
|
|
|
margin-left: var(--#{$prefix}dropdown-spacer);
|
2017-10-29 23:29:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-toggle {
|
2020-06-26 16:06:20 +02:00
|
|
|
@include caret(end);
|
2017-10-29 23:29:13 +01:00
|
|
|
&::after {
|
|
|
|
vertical-align: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-26 16:06:20 +02:00
|
|
|
.dropstart {
|
2021-03-24 20:29:45 +01:00
|
|
|
.dropdown-menu[data-bs-popper] {
|
2018-03-12 18:44:05 +01:00
|
|
|
top: 0;
|
|
|
|
right: 100%;
|
|
|
|
left: auto;
|
2021-03-24 20:29:45 +01:00
|
|
|
margin-top: 0;
|
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
|
|
|
margin-right: var(--#{$prefix}dropdown-spacer);
|
2017-10-29 23:29:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-toggle {
|
2020-06-26 16:06:20 +02:00
|
|
|
@include caret(start);
|
2017-10-29 23:29:13 +01:00
|
|
|
&::before {
|
|
|
|
vertical-align: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-26 16:06:20 +02:00
|
|
|
|
2015-11-28 05:12:37 +01:00
|
|
|
// Dividers (basically an `<hr>`) within the dropdown
|
2015-08-17 20:21:10 +02:00
|
|
|
.dropdown-divider {
|
2019-08-21 10:33:26 +02:00
|
|
|
height: 0;
|
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
|
|
|
margin: var(--#{$prefix}dropdown-divider-margin-y) 0;
|
2019-08-21 10:33:26 +02:00
|
|
|
overflow: hidden;
|
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-top: 1px solid var(--#{$prefix}dropdown-divider-bg);
|
2022-03-11 17:59:30 +01:00
|
|
|
opacity: 1; // Revisit in v6 to de-dupe styles that conflict with <hr> element
|
2012-01-08 10:50:12 +01:00
|
|
|
}
|
2012-01-08 09:49:38 +01:00
|
|
|
|
2015-08-17 20:19:14 +02:00
|
|
|
// Links, buttons, and more within the dropdown menu
|
2015-08-23 10:12:00 +02:00
|
|
|
//
|
2015-11-28 05:12:37 +01:00
|
|
|
// `<button>`-specific styles are denoted with `// For <button>s`
|
2015-08-17 20:19:14 +02:00
|
|
|
.dropdown-item {
|
|
|
|
display: block;
|
2015-08-23 10:12:00 +02:00
|
|
|
width: 100%; // For `<button>`s
|
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}dropdown-item-padding-y) var(--#{$prefix}dropdown-item-padding-x);
|
2015-08-17 20:19:14 +02:00
|
|
|
clear: both;
|
2016-10-19 21:41:27 +02:00
|
|
|
font-weight: $font-weight-normal;
|
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}dropdown-link-color);
|
2015-08-23 10:12:00 +02:00
|
|
|
text-align: inherit; // For `<button>`s
|
2020-03-05 15:22:52 +01:00
|
|
|
text-decoration: if($link-decoration == none, null, none);
|
2015-08-17 20:19:14 +02:00
|
|
|
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
2017-11-06 01:23:36 +01:00
|
|
|
background-color: transparent; // For `<button>`s
|
2015-08-23 10:12:00 +02:00
|
|
|
border: 0; // For `<button>`s
|
Add dark mode support (#35857)
* Add dark mode to docs
* Minor fix: missing space indentation
* Minor fix: revert utilities/z-index added-in modification
* Remove prev: and next: from doc because extracted to another PR
* Use .bg-body-tertiary in all Utilities > Overflow examples
* fix example
* Fix up spacing examples
* Update box-shadow Sass variables and utilities to auto-adjust to color modes
* Remove unused docs class
* Refactor form styles to use CSS variable for background images on .form-check and .form-switch
* Fix docs selector
* Rename shortcut for clarity
* Heading consistency
* Reintroduce missing 4th grid item in Utilities > Spacing example
* Fix bundlewatch
* .bd-callout* rendering is OK so removing comments in the code
* Update scss/_utilities.scss
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Fix gutters example styling
* Fix text colors on background utils docs
* redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken
* fix some color utils examples
* Deprecate mixin notice
* Deprecate notice for list-group-item-variant() mixin
* Revamp new link CSS vars
* Use map-keys in some each Sass files
* Remove list-group-item-variant mixin ref in sass loop desc
* Display CSS vars scoped to our built-in dark mode
* Revert previous commit
* Fix list group variant link
* Fix typo
* Remove imports of alert/list-group mixins in scss/_mixins.scss
* Small formatting + comments removal in scss/_content.scss
* Fix alert links colors
* fix dropdown border-radius mixin
* fix link color and underline again, this time using CSS var override for color var and fallback value for the underline
* fix colors on docs navbar for dark mode
* remove two changes
* missing ref
* another link underline fix, just use sass vars for link decoration for now
* missing color bg docs, plus move dropdown override to scss
* more changes from review
* fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin
* Few fixes around type
- Restored CSS variable for color on headings, this time with a fallback value
- In conjunction, restored and wrapped the default CSS var with a null value check
- Split headings and paragraphs docs in Reboot, elaborated on them
* Restyle custom details > summary element in docs
* Rewrite some migration docs
* fix form checks
* Fix up some navbar styling, tweak docs callout
* Fix select images, mostly for validation styling
* Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs
* Update site/content/docs/5.2/components/scrollspy.md
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* mention form control css vars in migration guide
* Tweak grid and flex docs background examples
* clarify some docs
* fix some more things
Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
2022-11-29 07:30:26 +01:00
|
|
|
@include border-radius(var(--#{$prefix}dropdown-item-border-radius, 0));
|
2015-08-18 03:18:37 +02:00
|
|
|
|
2018-09-18 01:10:07 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
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}dropdown-link-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
|
|
|
@include gradient-bg(var(--#{$prefix}dropdown-link-hover-bg));
|
2013-07-07 07:27:56 +02:00
|
|
|
}
|
2012-06-20 04:17:42 +02:00
|
|
|
|
2016-12-28 09:20:06 +01:00
|
|
|
&.active,
|
|
|
|
&:active {
|
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}dropdown-link-active-color);
|
2016-12-28 09:20:06 +01:00
|
|
|
text-decoration: 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
|
|
|
@include gradient-bg(var(--#{$prefix}dropdown-link-active-bg));
|
2013-07-07 07:27:56 +02:00
|
|
|
}
|
2013-08-12 02:47:30 +02:00
|
|
|
|
2016-12-28 09:20:06 +01:00
|
|
|
&.disabled,
|
|
|
|
&: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}dropdown-link-disabled-color);
|
2018-06-11 15:52:56 +02:00
|
|
|
pointer-events: none;
|
2016-12-28 09:20:06 +01:00
|
|
|
background-color: transparent;
|
|
|
|
// Remove CSS gradients if they're enabled
|
2019-12-19 11:18:05 +01:00
|
|
|
background-image: if($enable-gradients, none, null);
|
2013-07-07 07:27:56 +02:00
|
|
|
}
|
2012-06-19 22:52:07 +02:00
|
|
|
}
|
|
|
|
|
2017-04-14 11:25:53 +02:00
|
|
|
.dropdown-menu.show {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2013-07-18 08:54:09 +02:00
|
|
|
// Dropdown section headers
|
|
|
|
.dropdown-header {
|
|
|
|
display: 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}dropdown-header-padding-y) var(--#{$prefix}dropdown-header-padding-x);
|
2016-10-03 03:25:51 +02:00
|
|
|
margin-bottom: 0; // for use with heading elements
|
2019-02-07 23:32:05 +01:00
|
|
|
@include font-size($font-size-sm);
|
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}dropdown-header-color);
|
2014-06-18 19:07:55 +02:00
|
|
|
white-space: nowrap; // as with > li > a
|
2013-07-18 08:54:09 +02:00
|
|
|
}
|
2018-01-22 07:40:55 +01:00
|
|
|
|
|
|
|
// Dropdown text
|
|
|
|
.dropdown-item-text {
|
|
|
|
display: block;
|
2022-03-14 21:00:33 +01:00
|
|
|
padding: var(--#{$prefix}dropdown-item-padding-y) var(--#{$prefix}dropdown-item-padding-x);
|
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}dropdown-link-color);
|
2018-01-22 07:40:55 +01:00
|
|
|
}
|
2020-09-24 17:55:15 +02:00
|
|
|
|
|
|
|
// Dark dropdowns
|
|
|
|
.dropdown-menu-dark {
|
2021-11-28 11:56:37 +01:00
|
|
|
// scss-docs-start dropdown-dark-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}dropdown-color: #{$dropdown-dark-color};
|
|
|
|
--#{$prefix}dropdown-bg: #{$dropdown-dark-bg};
|
|
|
|
--#{$prefix}dropdown-border-color: #{$dropdown-dark-border-color};
|
|
|
|
--#{$prefix}dropdown-box-shadow: #{$dropdown-dark-box-shadow};
|
|
|
|
--#{$prefix}dropdown-link-color: #{$dropdown-dark-link-color};
|
|
|
|
--#{$prefix}dropdown-link-hover-color: #{$dropdown-dark-link-hover-color};
|
|
|
|
--#{$prefix}dropdown-divider-bg: #{$dropdown-dark-divider-bg};
|
|
|
|
--#{$prefix}dropdown-link-hover-bg: #{$dropdown-dark-link-hover-bg};
|
|
|
|
--#{$prefix}dropdown-link-active-color: #{$dropdown-dark-link-active-color};
|
|
|
|
--#{$prefix}dropdown-link-active-bg: #{$dropdown-dark-link-active-bg};
|
|
|
|
--#{$prefix}dropdown-link-disabled-color: #{$dropdown-dark-link-disabled-color};
|
|
|
|
--#{$prefix}dropdown-header-color: #{$dropdown-dark-header-color};
|
2021-11-28 11:56:37 +01:00
|
|
|
// scss-docs-end dropdown-dark-css-vars
|
2020-09-24 17:55:15 +02:00
|
|
|
}
|