@@ -435,20 +435,24 @@ select.ui.dropdown {
435
435
}
436
436
437
437
/* Selection Menu */
438
- .ui.selection.dropdown .menu {
438
+ .ui.selection.dropdown : not ( .unlimited ) .menu {
439
439
overflow-x : hidden ;
440
440
overflow-y : auto ;
441
441
overscroll-behavior : @overscrollBehavior ;
442
442
backface-visibility : hidden ;
443
- border-top-width : 0 !important ;
443
+ }
444
+ .ui.selection.dropdown .menu {
444
445
outline : none ;
445
446
margin : 0 - @menuBorderWidth ;
446
447
min-width : @menuMinWidth ;
447
448
width : @menuMinWidth ;
448
- border-radius : @selectionMenuBorderRadius ;
449
449
box-shadow : @selectionMenuBoxShadow ;
450
450
transition : @selectionMenuTransition ;
451
451
}
452
+ .ui.selection.dropdown :not (.pointing ):not (.floating ) .menu {
453
+ border-top-width : 0 ;
454
+ border-radius : @selectionMenuBorderRadius ;
455
+ }
452
456
.ui.selection.dropdown .menu ::after ,
453
457
.ui.selection.dropdown .menu ::before {
454
458
display : none ;
@@ -471,7 +475,7 @@ select.ui.dropdown {
471
475
max-height : @selectionMobileMaxMenuHeight * 0.5 ;
472
476
}
473
477
}
474
- .ui.selection.dropdown .menu {
478
+ .ui.selection.dropdown : not ( .unlimited ) .menu {
475
479
max-height : @selectionMobileMaxMenuHeight ;
476
480
}
477
481
& when (@variationDropdownLong ) {
@@ -492,7 +496,7 @@ select.ui.dropdown {
492
496
max-height : @selectionTabletMaxMenuHeight * 0.5 ;
493
497
}
494
498
}
495
- .ui.selection.dropdown .menu {
499
+ .ui.selection.dropdown : not ( .unlimited ) .menu {
496
500
max-height : @selectionTabletMaxMenuHeight ;
497
501
}
498
502
& when (@variationDropdownLong ) {
@@ -513,7 +517,7 @@ select.ui.dropdown {
513
517
max-height : @selectionComputerMaxMenuHeight * 0.5 ;
514
518
}
515
519
}
516
- .ui.selection.dropdown .menu {
520
+ .ui.selection.dropdown : not ( .unlimited ) .menu {
517
521
max-height : @selectionComputerMaxMenuHeight ;
518
522
}
519
523
& when (@variationDropdownLong ) {
@@ -534,7 +538,7 @@ select.ui.dropdown {
534
538
max-height : @selectionWidescreenMaxMenuHeight * 0.5 ;
535
539
}
536
540
}
537
- .ui.selection.dropdown .menu {
541
+ .ui.selection.dropdown : not ( .unlimited ) .menu {
538
542
max-height : @selectionWidescreenMaxMenuHeight ;
539
543
}
540
544
& when (@variationDropdownLong ) {
@@ -554,6 +558,12 @@ select.ui.dropdown {
554
558
white-space : normal ;
555
559
word-wrap : normal ;
556
560
}
561
+ & when (@variationDropdownPointing ) or (@variationDropdownFloating ) {
562
+ .ui.selection.pointing.dropdown .menu > .item :first-child ,
563
+ .ui.selection.floating.dropdown .menu > .item :first-child {
564
+ border-top : none ;
565
+ }
566
+ }
557
567
558
568
/* User Item */
559
569
.ui.selection.dropdown .menu > .hidden.addition.item {
@@ -621,7 +631,7 @@ select.ui.dropdown {
621
631
}
622
632
623
633
/* Connecting Border */
624
- .ui.active.selection.dropdown {
634
+ .ui.active.selection.dropdown : not ( .pointing ): not ( .floating ) {
625
635
border-bottom-left-radius : @selectionVisibleConnectingBorder !important ;
626
636
border-bottom-right-radius : @selectionVisibleConnectingBorder !important ;
627
637
}
@@ -749,29 +759,29 @@ select.ui.dropdown {
749
759
}
750
760
751
761
/* Search Menu */
752
- .ui.search.dropdown .menu {
762
+ .ui.search.dropdown : not ( .unlimited ) .menu {
753
763
overflow-x : hidden ;
754
764
overflow-y : auto ;
755
765
overscroll-behavior : @overscrollBehavior ;
756
766
backface-visibility : hidden ;
757
767
}
758
768
@media only screen and (max-width : @largestMobileScreen ) {
759
- .ui.search.dropdown .menu {
769
+ .ui.search.dropdown : not ( .unlimited ) .menu {
760
770
max-height : @searchMobileMaxMenuHeight ;
761
771
}
762
772
}
763
773
@media only screen and (min-width : @tabletBreakpoint ) {
764
- .ui.search.dropdown .menu {
774
+ .ui.search.dropdown : not ( .unlimited ) .menu {
765
775
max-height : @searchTabletMaxMenuHeight ;
766
776
}
767
777
}
768
778
@media only screen and (min-width : @computerBreakpoint ) {
769
- .ui.search.dropdown .menu {
779
+ .ui.search.dropdown : not ( .unlimited ) .menu {
770
780
max-height : @searchComputerMaxMenuHeight ;
771
781
}
772
782
}
773
783
@media only screen and (min-width : @widescreenMonitorBreakpoint ) {
774
- .ui.search.dropdown .menu {
784
+ .ui.search.dropdown : not ( .unlimited ) .menu {
775
785
max-height : @searchWidescreenMaxMenuHeight ;
776
786
}
777
787
}
@@ -1283,9 +1293,9 @@ select.ui.dropdown {
1283
1293
1284
1294
& when (@variationDropdownSelection ) {
1285
1295
/* Selection */
1286
- .ui.ui.upward.selection.dropdown .menu {
1287
- border-top-width : @menuBorderWidth !important ;
1288
- border-bottom-width : 0 !important ;
1296
+ .ui.ui.upward.selection.dropdown : not ( .pointing ): not ( .floating ) .menu {
1297
+ border-top-width : @menuBorderWidth ;
1298
+ border-bottom-width : 0 ;
1289
1299
box-shadow : @upwardSelectionMenuBoxShadow ;
1290
1300
border-radius : @upwardSelectionMenuBorderRadius ;
1291
1301
}
@@ -1294,21 +1304,23 @@ select.ui.dropdown {
1294
1304
}
1295
1305
1296
1306
/* Active Upward */
1297
- .ui.active.upward.selection.dropdown {
1307
+ .ui.active.upward.selection.dropdown : not ( .pointing ): not ( .floating ) {
1298
1308
border-radius : @upwardSelectionVisibleBorderRadius !important ;
1299
1309
}
1300
1310
1301
1311
/* Visible Upward */
1302
1312
.ui.upward.selection.dropdown.visible {
1303
1313
box-shadow : @upwardSelectionVisibleBoxShadow ;
1304
- border-radius : @upwardSelectionVisibleBorderRadius !important ;
1314
+ & :not (.pointing ):not (.floating ) {
1315
+ border-radius : @upwardSelectionVisibleBorderRadius !important ;
1316
+ }
1305
1317
}
1306
1318
1307
1319
/* Visible Hover Upward */
1308
1320
.ui.upward.active.selection.dropdown :hover {
1309
1321
box-shadow : @upwardSelectionActiveHoverBoxShadow ;
1310
1322
}
1311
- .ui.upward.active.selection.dropdown :hover .menu {
1323
+ .ui.upward.active.selection.dropdown :hover : not ( .pointing ): not ( .floating ) .menu {
1312
1324
box-shadow : @upwardSelectionActiveHoverMenuBoxShadow ;
1313
1325
}
1314
1326
}
@@ -1623,6 +1635,22 @@ select.ui.dropdown {
1623
1635
z-index : @pointingArrowZIndex ;
1624
1636
}
1625
1637
1638
+ @supports selector(:has(.f )) {
1639
+ .ui.pointing.dropdown :not (.upward ) .menu :has(:first-child:hover )::after ,
1640
+ .ui.upward.pointing.dropdown .menu :has(:last-child:hover )::after {
1641
+ background : @hoveredItemBackground ;
1642
+ }
1643
+ .ui.pointing.dropdown :not (.upward ) .menu :has(.selected.item :first-child )::after ,
1644
+ .ui.upward.pointing.dropdown .menu :has(.selected.item :last-child )::after {
1645
+ background : @selectedBackground ;
1646
+ }
1647
+ }
1648
+
1649
+ & when (@variationDropdownSelection ) {
1650
+ .ui.selection.pointing.dropdown > .menu ::after {
1651
+ box-shadow : @pointingArrowBoxShadowSelection ;
1652
+ }
1653
+ }
1626
1654
.ui.pointing.dropdown > .menu :not (.hidden )::after {
1627
1655
top : @pointingArrowOffset ;
1628
1656
left : 50% ;
@@ -1768,6 +1796,12 @@ select.ui.dropdown {
1768
1796
margin : @pointingArrowOffset 0 0 ;
1769
1797
}
1770
1798
1799
+ & when (@variationDropdownSelection ) {
1800
+ .ui.selection.pointing.upward.dropdown .menu ::after {
1801
+ box-shadow : @pointingUpwardArrowBoxShadowSelection ;
1802
+ }
1803
+ }
1804
+
1771
1805
/* Right Pointing Upward */
1772
1806
.ui.right.pointing.upward.dropdown :not (.top ):not (.bottom ) .menu {
1773
1807
top : auto !important ;
@@ -1795,6 +1829,19 @@ select.ui.dropdown {
1795
1829
}
1796
1830
}
1797
1831
1832
+ & when (@variationDropdownPointing ) or (@variationDropdownFloating ) {
1833
+ .ui.floating.dropdown .menu .item :first-child ,
1834
+ .ui.pointing.dropdown .menu .item :first-child {
1835
+ border-top-left-radius : @borderRadius ;
1836
+ border-top-right-radius : @borderRadius ;
1837
+ }
1838
+ .ui.floating.dropdown .menu .item :last-child ,
1839
+ .ui.pointing.dropdown .menu .item :last-child {
1840
+ border-bottom-left-radius : @borderRadius ;
1841
+ border-bottom-right-radius : @borderRadius ;
1842
+ }
1843
+ }
1844
+
1798
1845
/* --------------------
1799
1846
Sizes
1800
1847
--------------------- */
@@ -2008,6 +2055,21 @@ select.ui.dropdown {
2008
2055
background : @invertedPointingArrowBackground ;
2009
2056
box-shadow : @invertedPointingArrowBoxShadow ;
2010
2057
}
2058
+ & when (@variationDropdownUpward ) {
2059
+ .ui.inverted.upward.pointing.dropdown > .menu ::after {
2060
+ box-shadow : @invertedPointingUpwardArrowBoxShadow ;
2061
+ }
2062
+ }
2063
+ @supports selector(:has(.f )) {
2064
+ .ui.inverted.pointing.dropdown :not (.upward ) .menu :has(:first-child:hover )::after ,
2065
+ .ui.inverted.upward.pointing.dropdown .menu :has(:last-child:hover )::after {
2066
+ background : @invertedHoveredItemBackground ;
2067
+ }
2068
+ .ui.inverted.pointing.dropdown :not (.upward ) .menu :has(.selected.item :first-child )::after ,
2069
+ .ui.inverted.upward.pointing.dropdown .menu :has(.selected.item :last-child )::after {
2070
+ background : @invertedSelectedBackground ;
2071
+ }
2072
+ }
2011
2073
}
2012
2074
}
2013
2075
0 commit comments