| 
									
										
										
										
											2015-11-28 12:12:37 +08:00
										 |  |  | // The dropdown wrapper (`<div>`)
 | 
					
						
							| 
									
										
										
										
											2015-01-19 05:39:40 +08:00
										 |  |  | .dropup, | 
					
						
							| 
									
										
										
										
											2020-06-26 22:06:20 +08:00
										 |  |  | .dropend, | 
					
						
							| 
									
										
										
										
											2018-03-13 01:44:05 +08:00
										 |  |  | .dropdown, | 
					
						
							| 
									
										
										
										
											2020-06-26 22:06:20 +08:00
										 |  |  | .dropstart { | 
					
						
							| 
									
										
										
										
											2013-08-02 02:07:34 +08:00
										 |  |  |   position: relative; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-07-09 05:23:34 +08:00
										 |  |  | .dropdown-toggle { | 
					
						
							| 
									
										
										
										
											2019-01-13 15:43:52 +08:00
										 |  |  |   white-space: nowrap; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-07-09 05:23:34 +08:00
										 |  |  |   // Generate the caret automatically
 | 
					
						
							| 
									
										
										
										
											2019-07-24 14:41:18 +08:00
										 |  |  |   @include caret(); | 
					
						
							| 
									
										
										
										
											2013-08-13 12:23:28 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-28 12:12:37 +08:00
										 |  |  | // The dropdown menu
 | 
					
						
							| 
									
										
										
										
											2011-12-22 06:22:20 +08:00
										 |  |  | .dropdown-menu { | 
					
						
							|  |  |  |   position: absolute; | 
					
						
							| 
									
										
										
										
											2014-12-03 06:02:35 +08:00
										 |  |  |   z-index: $zindex-dropdown; | 
					
						
							| 
									
										
										
										
											2012-01-07 19:45:24 +08:00
										 |  |  |   display: none; // none by default, but block on "open" of the menu
 | 
					
						
							| 
									
										
										
										
											2016-02-16 16:42:10 +08:00
										 |  |  |   min-width: $dropdown-min-width; | 
					
						
							| 
									
										
										
										
											2020-09-22 07:27:26 +08:00
										 |  |  |   padding: $dropdown-padding-y $dropdown-padding-x; | 
					
						
							| 
									
										
										
										
											2021-02-04 03:37:25 +08:00
										 |  |  |   margin: 0; // Override default margin of ul
 | 
					
						
							| 
									
										
										
										
											2019-02-08 06:32:05 +08:00
										 |  |  |   @include font-size($dropdown-font-size); | 
					
						
							| 
									
										
										
										
											2019-01-21 05:38:29 +08:00
										 |  |  |   color: $dropdown-color; | 
					
						
							| 
									
										
										
										
											2014-03-25 11:02:56 +08:00
										 |  |  |   text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
 | 
					
						
							| 
									
										
										
										
											2014-12-12 04:05:29 +08:00
										 |  |  |   list-style: none; | 
					
						
							| 
									
										
										
										
											2014-12-03 06:02:35 +08:00
										 |  |  |   background-color: $dropdown-bg; | 
					
						
							| 
									
										
										
										
											2014-12-12 04:05:29 +08:00
										 |  |  |   background-clip: padding-box; | 
					
						
							| 
									
										
										
										
											2015-11-15 14:30:16 +08:00
										 |  |  |   border: $dropdown-border-width solid $dropdown-border-color; | 
					
						
							| 
									
										
										
										
											2017-10-23 04:47:31 +08:00
										 |  |  |   @include border-radius($dropdown-border-radius); | 
					
						
							| 
									
										
										
										
											2016-01-10 07:31:29 +08:00
										 |  |  |   @include box-shadow($dropdown-box-shadow); | 
					
						
							| 
									
										
										
										
											2021-02-09 01:19:19 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   &[data-bs-popper] { | 
					
						
							| 
									
										
										
										
											2021-03-25 03:29:45 +08:00
										 |  |  |     top: 100%; | 
					
						
							| 
									
										
										
										
											2021-02-09 01:19:19 +08:00
										 |  |  |     left: 0; | 
					
						
							| 
									
										
										
										
											2021-02-10 03:04:23 +08:00
										 |  |  |     margin-top: $dropdown-spacer; | 
					
						
							| 
									
										
										
										
											2021-02-09 01:19:19 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2015-08-18 02:21:10 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2011-12-22 06:22:20 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-07 02:13:35 +08:00
										 |  |  | // scss-docs-start responsive-breakpoints
 | 
					
						
							| 
									
										
										
										
											2020-11-26 04:12:32 +08:00
										 |  |  | // We deliberately hardcode the `bs-` prefix because we check
 | 
					
						
							|  |  |  | // this custom property in JS to determine Popper's positioning
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-21 16:01:22 +08:00
										 |  |  | @each $breakpoint in map-keys($grid-breakpoints) { | 
					
						
							|  |  |  |   @include media-breakpoint-up($breakpoint) { | 
					
						
							|  |  |  |     $infix: breakpoint-infix($breakpoint, $grid-breakpoints); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-26 22:06:20 +08:00
										 |  |  |     .dropdown-menu#{$infix}-start { | 
					
						
							| 
									
										
										
										
											2020-11-26 04:12:32 +08:00
										 |  |  |       --bs-position: start; | 
					
						
							| 
									
										
										
										
											2021-02-06 06:57:43 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |       &[data-bs-popper] { | 
					
						
							| 
									
										
										
										
											2021-05-27 22:36:32 +08:00
										 |  |  |         right: auto; | 
					
						
							|  |  |  |         left: 0; | 
					
						
							| 
									
										
										
										
											2021-02-06 06:57:43 +08:00
										 |  |  |       } | 
					
						
							| 
									
										
										
										
											2018-10-21 16:01:22 +08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2019-01-07 09:12:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-26 22:06:20 +08:00
										 |  |  |     .dropdown-menu#{$infix}-end { | 
					
						
							| 
									
										
										
										
											2020-11-26 04:12:32 +08:00
										 |  |  |       --bs-position: end; | 
					
						
							| 
									
										
										
										
											2021-02-06 06:57:43 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |       &[data-bs-popper] { | 
					
						
							| 
									
										
										
										
											2021-05-27 22:36:32 +08:00
										 |  |  |         right: 0; | 
					
						
							|  |  |  |         left: auto; | 
					
						
							| 
									
										
										
										
											2021-02-06 06:57:43 +08:00
										 |  |  |       } | 
					
						
							| 
									
										
										
										
											2019-01-07 09:12:51 +08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2018-10-21 16:01:22 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-03-13 01:44:05 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2020-04-07 02:13:35 +08:00
										 |  |  | // scss-docs-end responsive-breakpoints
 | 
					
						
							| 
									
										
										
										
											2018-03-13 01:44:05 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-10 21:46:43 +08: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 14:57:21 +08:00
										 |  |  |   .dropdown-menu[data-bs-popper] { | 
					
						
							| 
									
										
										
										
											2018-03-13 01:44:05 +08:00
										 |  |  |     top: auto; | 
					
						
							|  |  |  |     bottom: 100%; | 
					
						
							| 
									
										
										
										
											2021-02-22 14:57:21 +08:00
										 |  |  |     margin-top: 0; | 
					
						
							|  |  |  |     margin-bottom: $dropdown-spacer; | 
					
						
							| 
									
										
										
										
											2017-10-10 21:46:43 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .dropdown-toggle { | 
					
						
							|  |  |  |     @include caret(up); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-26 22:06:20 +08:00
										 |  |  | .dropend { | 
					
						
							| 
									
										
										
										
											2021-03-25 03:29:45 +08:00
										 |  |  |   .dropdown-menu[data-bs-popper] { | 
					
						
							| 
									
										
										
										
											2018-03-13 01:44:05 +08:00
										 |  |  |     top: 0; | 
					
						
							|  |  |  |     right: auto; | 
					
						
							|  |  |  |     left: 100%; | 
					
						
							| 
									
										
										
										
											2021-03-25 03:29:45 +08:00
										 |  |  |     margin-top: 0; | 
					
						
							|  |  |  |     margin-left: $dropdown-spacer; | 
					
						
							| 
									
										
										
										
											2017-10-30 06:29:13 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .dropdown-toggle { | 
					
						
							| 
									
										
										
										
											2020-06-26 22:06:20 +08:00
										 |  |  |     @include caret(end); | 
					
						
							| 
									
										
										
										
											2017-10-30 06:29:13 +08:00
										 |  |  |     &::after { | 
					
						
							|  |  |  |       vertical-align: 0; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-26 22:06:20 +08:00
										 |  |  | .dropstart { | 
					
						
							| 
									
										
										
										
											2021-03-25 03:29:45 +08:00
										 |  |  |   .dropdown-menu[data-bs-popper] { | 
					
						
							| 
									
										
										
										
											2018-03-13 01:44:05 +08:00
										 |  |  |     top: 0; | 
					
						
							|  |  |  |     right: 100%; | 
					
						
							|  |  |  |     left: auto; | 
					
						
							| 
									
										
										
										
											2021-03-25 03:29:45 +08:00
										 |  |  |     margin-top: 0; | 
					
						
							|  |  |  |     margin-right: $dropdown-spacer; | 
					
						
							| 
									
										
										
										
											2017-10-30 06:29:13 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .dropdown-toggle { | 
					
						
							| 
									
										
										
										
											2020-06-26 22:06:20 +08:00
										 |  |  |     @include caret(start); | 
					
						
							| 
									
										
										
										
											2017-10-30 06:29:13 +08:00
										 |  |  |     &::before { | 
					
						
							|  |  |  |       vertical-align: 0; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-26 22:06:20 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-28 12:12:37 +08:00
										 |  |  | // Dividers (basically an `<hr>`) within the dropdown
 | 
					
						
							| 
									
										
										
										
											2015-08-18 02:21:10 +08:00
										 |  |  | .dropdown-divider { | 
					
						
							| 
									
										
										
										
											2019-08-21 16:33:26 +08:00
										 |  |  |   height: 0; | 
					
						
							|  |  |  |   margin: $dropdown-divider-margin-y 0; | 
					
						
							|  |  |  |   overflow: hidden; | 
					
						
							|  |  |  |   border-top: 1px solid $dropdown-divider-bg; | 
					
						
							| 
									
										
										
										
											2012-01-08 17:50:12 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2012-01-08 16:49:38 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-18 02:19:14 +08:00
										 |  |  | // Links, buttons, and more within the dropdown menu
 | 
					
						
							| 
									
										
										
										
											2015-08-23 16:12:00 +08:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2015-11-28 12:12:37 +08:00
										 |  |  | // `<button>`-specific styles are denoted with `// For <button>s`
 | 
					
						
							| 
									
										
										
										
											2015-08-18 02:19:14 +08:00
										 |  |  | .dropdown-item { | 
					
						
							|  |  |  |   display: block; | 
					
						
							| 
									
										
										
										
											2015-08-23 16:12:00 +08:00
										 |  |  |   width: 100%; // For `<button>`s
 | 
					
						
							| 
									
										
										
										
											2017-04-09 05:17:06 +08:00
										 |  |  |   padding: $dropdown-item-padding-y $dropdown-item-padding-x; | 
					
						
							| 
									
										
										
										
											2015-08-18 02:19:14 +08:00
										 |  |  |   clear: both; | 
					
						
							| 
									
										
										
										
											2016-10-20 03:41:27 +08:00
										 |  |  |   font-weight: $font-weight-normal; | 
					
						
							| 
									
										
										
										
											2015-08-18 02:19:14 +08:00
										 |  |  |   color: $dropdown-link-color; | 
					
						
							| 
									
										
										
										
											2015-08-23 16:12:00 +08:00
										 |  |  |   text-align: inherit; // For `<button>`s
 | 
					
						
							| 
									
										
										
										
											2020-03-05 22:22:52 +08:00
										 |  |  |   text-decoration: if($link-decoration == none, null, none); | 
					
						
							| 
									
										
										
										
											2015-08-18 02:19:14 +08:00
										 |  |  |   white-space: nowrap; // prevent links from randomly breaking onto new lines
 | 
					
						
							| 
									
										
										
										
											2017-11-06 08:23:36 +08:00
										 |  |  |   background-color: transparent; // For `<button>`s
 | 
					
						
							| 
									
										
										
										
											2015-08-23 16:12:00 +08:00
										 |  |  |   border: 0; // For `<button>`s
 | 
					
						
							| 
									
										
										
										
											2015-08-18 09:18:37 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 05:07:16 +08:00
										 |  |  |   // 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); | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2018-11-22 06:24:13 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 05:07:16 +08:00
										 |  |  |     &:last-child { | 
					
						
							|  |  |  |       @include border-bottom-radius($dropdown-inner-border-radius); | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2018-11-22 06:24:13 +08:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-18 07:10:07 +08:00
										 |  |  |   &:hover, | 
					
						
							|  |  |  |   &:focus { | 
					
						
							| 
									
										
										
										
											2014-12-03 06:02:35 +08:00
										 |  |  |     color: $dropdown-link-hover-color; | 
					
						
							| 
									
										
										
										
											2020-03-20 16:35:55 +08:00
										 |  |  |     text-decoration: if($link-hover-decoration == underline, none, null); | 
					
						
							| 
									
										
										
										
											2017-10-20 00:03:33 +08:00
										 |  |  |     @include gradient-bg($dropdown-link-hover-bg); | 
					
						
							| 
									
										
										
										
											2013-07-07 13:27:56 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2012-06-20 10:17:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-12-28 16:20:06 +08:00
										 |  |  |   &.active, | 
					
						
							|  |  |  |   &:active { | 
					
						
							|  |  |  |     color: $dropdown-link-active-color; | 
					
						
							|  |  |  |     text-decoration: none; | 
					
						
							| 
									
										
										
										
											2017-10-20 00:03:33 +08:00
										 |  |  |     @include gradient-bg($dropdown-link-active-bg); | 
					
						
							| 
									
										
										
										
											2013-07-07 13:27:56 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2013-08-12 08:47:30 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-12-28 16:20:06 +08:00
										 |  |  |   &.disabled, | 
					
						
							|  |  |  |   &:disabled { | 
					
						
							|  |  |  |     color: $dropdown-link-disabled-color; | 
					
						
							| 
									
										
										
										
											2018-06-11 21:52:56 +08:00
										 |  |  |     pointer-events: none; | 
					
						
							| 
									
										
										
										
											2016-12-28 16:20:06 +08:00
										 |  |  |     background-color: transparent; | 
					
						
							|  |  |  |     // Remove CSS gradients if they're enabled
 | 
					
						
							| 
									
										
										
										
											2019-12-19 18:18:05 +08:00
										 |  |  |     background-image: if($enable-gradients, none, null); | 
					
						
							| 
									
										
										
										
											2013-07-07 13:27:56 +08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2012-06-20 04:52:07 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-14 17:25:53 +08:00
										 |  |  | .dropdown-menu.show { | 
					
						
							|  |  |  |   display: block; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-18 14:54:09 +08:00
										 |  |  | // Dropdown section headers
 | 
					
						
							|  |  |  | .dropdown-header { | 
					
						
							|  |  |  |   display: block; | 
					
						
							| 
									
										
										
										
											2020-02-15 19:06:02 +08:00
										 |  |  |   padding: $dropdown-header-padding; | 
					
						
							| 
									
										
										
										
											2016-10-03 09:25:51 +08:00
										 |  |  |   margin-bottom: 0; // for use with heading elements
 | 
					
						
							| 
									
										
										
										
											2019-02-08 06:32:05 +08:00
										 |  |  |   @include font-size($font-size-sm); | 
					
						
							| 
									
										
										
										
											2014-12-03 06:02:35 +08:00
										 |  |  |   color: $dropdown-header-color; | 
					
						
							| 
									
										
										
										
											2014-06-19 01:07:55 +08:00
										 |  |  |   white-space: nowrap; // as with > li > a
 | 
					
						
							| 
									
										
										
										
											2013-07-18 14:54:09 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2018-01-22 14:40:55 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Dropdown text
 | 
					
						
							|  |  |  | .dropdown-item-text { | 
					
						
							|  |  |  |   display: block; | 
					
						
							|  |  |  |   padding: $dropdown-item-padding-y $dropdown-item-padding-x; | 
					
						
							|  |  |  |   color: $dropdown-link-color; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2020-09-24 23:55:15 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Dark dropdowns
 | 
					
						
							|  |  |  | .dropdown-menu-dark { | 
					
						
							|  |  |  |   color: $dropdown-dark-color; | 
					
						
							|  |  |  |   background-color: $dropdown-dark-bg; | 
					
						
							|  |  |  |   border-color: $dropdown-dark-border-color; | 
					
						
							|  |  |  |   @include box-shadow($dropdown-dark-box-shadow); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .dropdown-item { | 
					
						
							|  |  |  |     color: $dropdown-dark-link-color; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     &:hover, | 
					
						
							|  |  |  |     &:focus { | 
					
						
							|  |  |  |       color: $dropdown-dark-link-hover-color; | 
					
						
							|  |  |  |       @include gradient-bg($dropdown-dark-link-hover-bg); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     &.active, | 
					
						
							|  |  |  |     &:active { | 
					
						
							|  |  |  |       color: $dropdown-dark-link-active-color; | 
					
						
							|  |  |  |       @include gradient-bg($dropdown-dark-link-active-bg); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     &.disabled, | 
					
						
							|  |  |  |     &:disabled { | 
					
						
							|  |  |  |       color: $dropdown-dark-link-disabled-color; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .dropdown-divider { | 
					
						
							|  |  |  |     border-color: $dropdown-dark-divider-bg; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .dropdown-item-text { | 
					
						
							|  |  |  |     color: $dropdown-dark-link-color; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .dropdown-header { | 
					
						
							|  |  |  |     color: $dropdown-dark-header-color; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |