|
87 | 87 | .ui.dropdown:not(.labeled) > .dropdown.icon {
|
88 | 88 | position: relative;
|
89 | 89 | width: auto;
|
| 90 | + min-width: @dropdownIconMinWidth; |
90 | 91 | font-size: @dropdownIconSize;
|
91 | 92 | margin: @dropdownIconMargin;
|
92 | 93 | }
|
@@ -771,29 +772,44 @@ select.ui.dropdown {
|
771 | 772 | }
|
772 | 773 | }
|
773 | 774 |
|
774 |
| -/* Clearable Selection */ |
775 |
| -.ui.dropdown > .remove.icon { |
776 |
| - cursor: pointer; |
777 |
| - font-size: @dropdownIconSize; |
778 |
| - margin: @selectionIconMargin; |
779 |
| - padding: @selectionIconPadding; |
780 |
| - right: 3em; |
781 |
| - top: @selectionVerticalPadding; |
782 |
| - position: absolute; |
783 |
| - opacity: 0.6; |
784 |
| - z-index: @selectionIconZIndex; |
785 |
| -} |
| 775 | +& when (@variationDropdownClear) { |
| 776 | + /* Clearable Selection */ |
| 777 | + .ui.dropdown > .remove.icon { |
| 778 | + cursor: pointer; |
| 779 | + font-size: @dropdownIconSize; |
| 780 | + margin: @selectionIconMargin; |
| 781 | + padding: @selectionIconPadding; |
| 782 | + right: @clearableIconPosition; |
| 783 | + top: @selectionVerticalPadding; |
| 784 | + position: absolute; |
| 785 | + opacity: @clearableIconOpacity; |
| 786 | + z-index: @selectionIconZIndex; |
| 787 | + } |
| 788 | + .ui.selection.dropdown > .remove.icon { |
| 789 | + right: @clearableIconSelectionPosition; |
| 790 | + } |
| 791 | + .ui.inline.dropdown > .remove.icon { |
| 792 | + right: @clearableIconInlinePosition; |
| 793 | + } |
786 | 794 |
|
787 |
| -.ui.clearable.dropdown .text, |
788 |
| -.ui.clearable.dropdown a:last-of-type { |
789 |
| - margin-right: 1.5em; |
790 |
| -} |
| 795 | + .ui.clearable.dropdown .text, |
| 796 | + .ui.clearable.dropdown a:last-of-type { |
| 797 | + margin-right: @clearableTextMargin; |
| 798 | + } |
791 | 799 |
|
792 |
| -.ui.dropdown select.noselection ~ .remove.icon, |
793 |
| -.ui.dropdown input[value=''] ~ .remove.icon, |
794 |
| -.ui.dropdown input:not([value]) ~ .remove.icon, |
795 |
| -.ui.dropdown.loading > .remove.icon { |
796 |
| - display: none; |
| 800 | + .ui.dropdown select.noselection ~ .remove.icon, |
| 801 | + .ui.dropdown input[value=''] ~ .remove.icon, |
| 802 | + .ui.dropdown input:not([value]) ~ .remove.icon, |
| 803 | + .ui.dropdown.loading > .remove.icon { |
| 804 | + display: none; |
| 805 | + } |
| 806 | + |
| 807 | + .ui.dropdown:not(.selection) > .remove.icon ~ .dropdown.icon { |
| 808 | + margin-left: @clearableIconMargin; |
| 809 | + } |
| 810 | + .ui.dropdown:not(.selection) > .remove.icon { |
| 811 | + margin-top: -@clearableIconMarginTop; |
| 812 | + } |
797 | 813 | }
|
798 | 814 |
|
799 | 815 | & when (@variationDropdownMultiple) {
|
@@ -1111,11 +1127,12 @@ select.ui.dropdown {
|
1111 | 1127 | /*--------------------
|
1112 | 1128 | Clear
|
1113 | 1129 | ----------------------*/
|
1114 |
| - |
| 1130 | + .ui.dropdown > .remove.icon, |
1115 | 1131 | .ui.dropdown > .clear.dropdown.icon {
|
1116 | 1132 | opacity: @clearableIconOpacity;
|
1117 | 1133 | transition: opacity @defaultDuration @defaultEasing;
|
1118 | 1134 | }
|
| 1135 | + .ui.dropdown > .remove.icon:hover, |
1119 | 1136 | .ui.dropdown > .clear.dropdown.icon:hover {
|
1120 | 1137 | opacity: @clearableIconActiveOpacity;
|
1121 | 1138 | }
|
|
0 commit comments