fomantic-ui 2.9.1-beta.19 → 2.9.1-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/.eslintrc.js +1 -0
  2. package/.stylelintrc.js +46 -0
  3. package/dist/components/accordion.css +19 -26
  4. package/dist/components/accordion.js +1 -1
  5. package/dist/components/accordion.min.css +1 -1
  6. package/dist/components/accordion.min.js +1 -1
  7. package/dist/components/ad.css +31 -41
  8. package/dist/components/ad.min.css +1 -1
  9. package/dist/components/api.js +1 -1
  10. package/dist/components/api.min.js +1 -1
  11. package/dist/components/breadcrumb.css +1 -1
  12. package/dist/components/breadcrumb.min.css +1 -1
  13. package/dist/components/button.css +71 -96
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +6 -8
  16. package/dist/components/calendar.js +1 -1
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +1 -1
  19. package/dist/components/card.css +83 -115
  20. package/dist/components/card.min.css +1 -1
  21. package/dist/components/checkbox.css +47 -64
  22. package/dist/components/checkbox.js +1 -1
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +1 -1
  25. package/dist/components/comment.css +37 -51
  26. package/dist/components/comment.min.css +1 -1
  27. package/dist/components/container.css +4 -5
  28. package/dist/components/container.min.css +1 -1
  29. package/dist/components/dimmer.css +31 -41
  30. package/dist/components/dimmer.js +1 -1
  31. package/dist/components/dimmer.min.css +1 -1
  32. package/dist/components/dimmer.min.js +1 -1
  33. package/dist/components/divider.css +32 -44
  34. package/dist/components/divider.min.css +1 -1
  35. package/dist/components/dropdown.css +109 -152
  36. package/dist/components/dropdown.js +1 -1
  37. package/dist/components/dropdown.min.css +1 -1
  38. package/dist/components/dropdown.min.js +1 -1
  39. package/dist/components/embed.css +13 -19
  40. package/dist/components/embed.js +1 -1
  41. package/dist/components/embed.min.css +1 -1
  42. package/dist/components/embed.min.js +1 -1
  43. package/dist/components/emoji.css +7 -6
  44. package/dist/components/feed.css +24 -32
  45. package/dist/components/feed.min.css +1 -1
  46. package/dist/components/flag.css +5 -3
  47. package/dist/components/flag.min.css +1 -1
  48. package/dist/components/flyout.css +39 -56
  49. package/dist/components/flyout.js +1 -1
  50. package/dist/components/flyout.min.css +1 -1
  51. package/dist/components/flyout.min.js +1 -1
  52. package/dist/components/form.css +85 -111
  53. package/dist/components/form.js +1 -1
  54. package/dist/components/form.min.css +1 -1
  55. package/dist/components/form.min.js +1 -1
  56. package/dist/components/grid.css +70 -96
  57. package/dist/components/grid.min.css +1 -1
  58. package/dist/components/header.css +47 -65
  59. package/dist/components/header.min.css +1 -1
  60. package/dist/components/icon.css +42 -53
  61. package/dist/components/icon.min.css +1 -1
  62. package/dist/components/image.css +32 -42
  63. package/dist/components/image.min.css +1 -1
  64. package/dist/components/input.css +45 -58
  65. package/dist/components/input.min.css +1 -1
  66. package/dist/components/item.css +55 -77
  67. package/dist/components/item.min.css +1 -1
  68. package/dist/components/label.css +61 -90
  69. package/dist/components/label.min.css +1 -1
  70. package/dist/components/list.css +44 -59
  71. package/dist/components/list.min.css +1 -1
  72. package/dist/components/loader.css +16 -22
  73. package/dist/components/loader.min.css +1 -1
  74. package/dist/components/menu.css +126 -186
  75. package/dist/components/message.css +25 -35
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +33 -40
  78. package/dist/components/modal.js +1 -1
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +1 -1
  81. package/dist/components/nag.css +19 -25
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +10 -12
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +49 -59
  88. package/dist/components/popup.js +1 -1
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +1 -1
  91. package/dist/components/progress.css +29 -39
  92. package/dist/components/progress.js +1 -1
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +15 -20
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +9 -13
  98. package/dist/components/rating.js +1 -1
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +19 -26
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +41 -58
  106. package/dist/components/search.js +1 -1
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +1 -1
  109. package/dist/components/segment.css +62 -83
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +10 -14
  112. package/dist/components/shape.js +1 -1
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +41 -58
  116. package/dist/components/sidebar.js +1 -1
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +5 -5
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +27 -37
  124. package/dist/components/slider.js +1 -1
  125. package/dist/components/slider.min.js +1 -1
  126. package/dist/components/state.js +1 -1
  127. package/dist/components/state.min.js +1 -1
  128. package/dist/components/statistic.css +29 -41
  129. package/dist/components/statistic.min.css +1 -1
  130. package/dist/components/step.css +26 -35
  131. package/dist/components/step.min.css +1 -1
  132. package/dist/components/sticky.css +1 -1
  133. package/dist/components/sticky.js +1 -1
  134. package/dist/components/sticky.min.css +1 -1
  135. package/dist/components/sticky.min.js +1 -1
  136. package/dist/components/tab.css +6 -8
  137. package/dist/components/tab.js +1 -1
  138. package/dist/components/tab.min.css +1 -1
  139. package/dist/components/tab.min.js +1 -1
  140. package/dist/components/table.css +87 -117
  141. package/dist/components/table.min.css +1 -1
  142. package/dist/components/text.css +1 -1
  143. package/dist/components/text.min.css +1 -1
  144. package/dist/components/toast.css +4 -6
  145. package/dist/components/toast.js +1 -1
  146. package/dist/components/toast.min.css +1 -1
  147. package/dist/components/toast.min.js +1 -1
  148. package/dist/components/transition.css +4 -3
  149. package/dist/components/transition.js +1 -1
  150. package/dist/components/transition.min.css +1 -1
  151. package/dist/components/transition.min.js +1 -1
  152. package/dist/components/visibility.js +1 -1
  153. package/dist/components/visibility.min.js +1 -1
  154. package/dist/semantic.css +1719 -1719
  155. package/dist/semantic.js +26 -26
  156. package/dist/semantic.min.css +1 -1
  157. package/dist/semantic.min.js +1 -1
  158. package/package.json +8 -4
  159. package/src/definitions/collections/breadcrumb.less +41 -44
  160. package/src/definitions/collections/form.less +869 -879
  161. package/src/definitions/collections/grid.less +1690 -1695
  162. package/src/definitions/collections/menu.less +1493 -1503
  163. package/src/definitions/collections/message.less +292 -295
  164. package/src/definitions/collections/table.less +1616 -1622
  165. package/src/definitions/elements/button.less +1723 -1737
  166. package/src/definitions/elements/container.less +209 -210
  167. package/src/definitions/elements/divider.less +205 -206
  168. package/src/definitions/elements/emoji.less +38 -44
  169. package/src/definitions/elements/flag.less +44 -46
  170. package/src/definitions/elements/header.less +337 -345
  171. package/src/definitions/elements/icon.less +511 -512
  172. package/src/definitions/elements/image.less +221 -225
  173. package/src/definitions/elements/input.less +661 -667
  174. package/src/definitions/elements/label.less +800 -799
  175. package/src/definitions/elements/list.less +809 -809
  176. package/src/definitions/elements/loader.less +272 -266
  177. package/src/definitions/elements/placeholder.less +171 -168
  178. package/src/definitions/elements/rail.less +91 -91
  179. package/src/definitions/elements/reveal.less +192 -196
  180. package/src/definitions/elements/segment.less +743 -747
  181. package/src/definitions/elements/step.less +425 -433
  182. package/src/definitions/elements/text.less +32 -34
  183. package/src/definitions/globals/reset.less +9 -6
  184. package/src/definitions/globals/site.less +106 -108
  185. package/src/definitions/modules/accordion.less +242 -246
  186. package/src/definitions/modules/calendar.less +91 -92
  187. package/src/definitions/modules/checkbox.less +536 -542
  188. package/src/definitions/modules/dimmer.less +300 -297
  189. package/src/definitions/modules/dropdown.less +1577 -1591
  190. package/src/definitions/modules/embed.less +81 -82
  191. package/src/definitions/modules/flyout.less +443 -452
  192. package/src/definitions/modules/modal.less +459 -462
  193. package/src/definitions/modules/nag.less +134 -137
  194. package/src/definitions/modules/popup.less +738 -739
  195. package/src/definitions/modules/progress.less +521 -494
  196. package/src/definitions/modules/rating.less +94 -101
  197. package/src/definitions/modules/search.less +375 -383
  198. package/src/definitions/modules/shape.less +71 -76
  199. package/src/definitions/modules/sidebar.less +464 -474
  200. package/src/definitions/modules/slider.less +307 -308
  201. package/src/definitions/modules/sticky.less +21 -23
  202. package/src/definitions/modules/tab.less +51 -52
  203. package/src/definitions/modules/toast.less +584 -586
  204. package/src/definitions/modules/transition.less +55 -56
  205. package/src/definitions/views/ad.less +206 -206
  206. package/src/definitions/views/card.less +968 -970
  207. package/src/definitions/views/comment.less +190 -198
  208. package/src/definitions/views/feed.less +220 -224
  209. package/src/definitions/views/item.less +436 -446
  210. package/src/definitions/views/statistic.less +269 -280
  211. package/src/theme.less +29 -32
  212. package/src/themes/default/globals/colors.less +589 -589
@@ -8,12 +8,11 @@
8
8
  *
9
9
  */
10
10
 
11
-
12
11
  /*******************************
13
12
  Theme
14
13
  *******************************/
15
14
 
16
- @type : 'module';
15
+ @type : 'module';
17
16
  @element : 'dropdown';
18
17
 
19
18
  @import (multiple) '../../theme.config';
@@ -23,249 +22,246 @@
23
22
  *******************************/
24
23
 
25
24
  .ui.dropdown {
26
- cursor: pointer;
27
- position: relative;
28
- display: inline-block;
29
- outline: none;
30
- text-align: left;
31
- transition: @transition;
32
- user-select: none;
25
+ cursor: pointer;
26
+ position: relative;
27
+ display: inline-block;
28
+ outline: none;
29
+ text-align: left;
30
+ transition: @transition;
31
+ user-select: none;
33
32
 
34
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
33
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
35
34
  }
36
35
 
37
36
  /*******************************
38
37
  Content
39
38
  *******************************/
40
39
 
41
- /*--------------
40
+ /* --------------
42
41
  Menu
43
- ---------------*/
42
+ --------------- */
44
43
 
45
44
  .ui.dropdown .menu {
46
- cursor: auto;
47
- position: absolute;
48
- display: none;
49
- outline: none;
50
- top: 100%;
51
- min-width: max-content;
45
+ cursor: auto;
46
+ position: absolute;
47
+ display: none;
48
+ outline: none;
49
+ top: 100%;
50
+ min-width: max-content;
52
51
 
53
- margin: @menuMargin;
54
- padding: @menuPadding;
55
- background: @menuBackground;
52
+ margin: @menuMargin;
53
+ padding: @menuPadding;
54
+ background: @menuBackground;
56
55
 
57
- font-size: @relativeMedium;
58
- text-shadow: none;
59
- text-align: @menuTextAlign;
56
+ font-size: @relativeMedium;
57
+ text-shadow: none;
58
+ text-align: @menuTextAlign;
60
59
 
61
- box-shadow: @menuBoxShadow;
62
- border: @menuBorder;
63
- border-radius: @menuBorderRadius;
64
- transition: @menuTransition;
65
- z-index: @menuZIndex;
66
- will-change: transform, opacity;
60
+ box-shadow: @menuBoxShadow;
61
+ border: @menuBorder;
62
+ border-radius: @menuBorderRadius;
63
+ transition: @menuTransition;
64
+ z-index: @menuZIndex;
65
+ will-change: transform, opacity;
67
66
  }
68
67
 
69
68
  .ui.dropdown .menu > * {
70
- white-space: nowrap;
69
+ white-space: nowrap;
71
70
  }
72
71
 
73
-
74
- /*--------------
72
+ /* --------------
75
73
  Hidden Input
76
- ---------------*/
74
+ --------------- */
77
75
 
78
76
  .ui.dropdown > input:not(.search):first-child,
79
77
  .ui.dropdown > select {
80
- display: none !important;
78
+ display: none !important;
81
79
  }
82
80
 
83
- /*--------------
81
+ /* --------------
84
82
  Dropdown Icon
85
- ---------------*/
83
+ --------------- */
86
84
 
87
85
  .ui.dropdown:not(.labeled) > .dropdown.icon {
88
- position: relative;
89
- width: auto;
90
- min-width: @dropdownIconMinWidth;
91
- font-size: @dropdownIconSize;
92
- margin: @dropdownIconMargin;
86
+ position: relative;
87
+ width: auto;
88
+ min-width: @dropdownIconMinWidth;
89
+ font-size: @dropdownIconSize;
90
+ margin: @dropdownIconMargin;
93
91
  }
94
92
  .ui.dropdown .menu > .item .dropdown.icon {
95
- width: auto;
96
- float: @itemDropdownIconFloat;
97
- margin: @itemDropdownIconMargin;
93
+ width: auto;
94
+ float: @itemDropdownIconFloat;
95
+ margin: @itemDropdownIconMargin;
98
96
  }
99
97
  .ui.dropdown .menu > .item .dropdown.icon + .text {
100
- margin-right: @itemDropdownIconDistance;
98
+ margin-right: @itemDropdownIconDistance;
101
99
  }
102
100
 
103
-
104
- /*--------------
101
+ /* --------------
105
102
  Text
106
- ---------------*/
103
+ --------------- */
107
104
 
108
105
  .ui.dropdown > .text {
109
- display: inline-block;
110
- transition: @textTransition;
106
+ display: inline-block;
107
+ transition: @textTransition;
111
108
  }
112
109
 
113
- /*--------------
110
+ /* --------------
114
111
  Menu Item
115
- ---------------*/
112
+ --------------- */
116
113
 
117
114
  .ui.dropdown .menu > .item {
118
- position: relative;
119
- cursor: pointer;
120
- display: block;
121
- border: @itemBorder;
122
- height: @itemHeight;
123
- min-height: @itemMinHeight;
124
- text-align: @itemTextAlign;
125
-
126
- border-top: @itemDivider;
127
- line-height: @itemLineHeight;
128
- font-size: @itemFontSize;
129
- color: @itemColor;
130
-
131
- padding: @itemPadding;
132
- text-transform: @itemTextTransform;
133
- font-weight: @itemFontWeight;
134
- box-shadow: @itemBoxShadow;
135
- -webkit-touch-callout: none;
115
+ position: relative;
116
+ cursor: pointer;
117
+ display: block;
118
+ border: @itemBorder;
119
+ height: @itemHeight;
120
+ min-height: @itemMinHeight;
121
+ text-align: @itemTextAlign;
122
+
123
+ border-top: @itemDivider;
124
+ line-height: @itemLineHeight;
125
+ font-size: @itemFontSize;
126
+ color: @itemColor;
127
+
128
+ padding: @itemPadding;
129
+ text-transform: @itemTextTransform;
130
+ font-weight: @itemFontWeight;
131
+ box-shadow: @itemBoxShadow;
132
+ -webkit-touch-callout: none;
136
133
  }
137
134
  .ui.dropdown .menu > .item:first-child {
138
- border-top-width: 0;
135
+ border-top-width: 0;
139
136
  }
140
137
 
141
138
  .ui.dropdown .menu > .item.vertical {
142
- display: flex;
143
- flex-direction: column-reverse;
139
+ display: flex;
140
+ flex-direction: column-reverse;
144
141
  }
145
142
 
146
- /*--------------
143
+ /* --------------
147
144
  Floated Content
148
- ---------------*/
145
+ --------------- */
149
146
 
150
147
  .ui.dropdown > .text > [class*="right floated"],
151
148
  .ui.dropdown .menu .item > [class*="right floated"] {
152
- float: right !important;
153
- margin-right: 0 !important;
154
- margin-left: @floatedDistance !important;
149
+ float: right !important;
150
+ margin-right: 0 !important;
151
+ margin-left: @floatedDistance !important;
155
152
  }
156
153
  .ui.dropdown > .text > [class*="left floated"],
157
154
  .ui.dropdown .menu .item > [class*="left floated"] {
158
- float: left !important;
159
- margin-left: 0 !important;
160
- margin-right: @floatedDistance !important;
155
+ float: left !important;
156
+ margin-left: 0 !important;
157
+ margin-right: @floatedDistance !important;
161
158
  }
162
159
 
163
160
  .ui.dropdown .menu .item > i.icon.floated,
164
161
  .ui.dropdown .menu .item > .flag.floated,
165
162
  .ui.dropdown .menu .item > .image.floated,
166
163
  .ui.dropdown .menu .item > img.floated {
167
- margin-top: @itemLineHeightOffset;
164
+ margin-top: @itemLineHeightOffset;
168
165
  }
169
166
 
170
-
171
- /*--------------
167
+ /* --------------
172
168
  Menu Divider
173
- ---------------*/
169
+ --------------- */
174
170
 
175
171
  .ui.dropdown .menu > .header {
176
- margin: @menuHeaderMargin;
177
- padding: @menuHeaderPadding;
178
- font-weight: @menuHeaderFontWeight;
179
- text-transform: @menuHeaderTextTransform;
172
+ margin: @menuHeaderMargin;
173
+ padding: @menuHeaderPadding;
174
+ font-weight: @menuHeaderFontWeight;
175
+ text-transform: @menuHeaderTextTransform;
180
176
  }
181
177
  .ui.dropdown .menu > .header:not(.ui) {
182
- color: @menuHeaderColor;
183
- font-size: @menuHeaderFontSize;
178
+ color: @menuHeaderColor;
179
+ font-size: @menuHeaderFontSize;
184
180
  }
185
181
  .ui.dropdown .menu > .divider {
186
- border-top: @menuDividerBorder;
187
- height: 0;
188
- margin: @menuDividerMargin;
182
+ border-top: @menuDividerBorder;
183
+ height: 0;
184
+ margin: @menuDividerMargin;
189
185
  }
190
186
  .ui.dropdown .menu > .horizontal.divider {
191
- border-top: none;
187
+ border-top: none;
192
188
  }
193
189
 
194
190
  .ui.ui.ui.dropdown .menu > .input {
195
- width: auto;
196
- display: flex;
197
- margin: @menuInputMargin;
198
- min-width: @menuInputMinWidth;
191
+ width: auto;
192
+ display: flex;
193
+ margin: @menuInputMargin;
194
+ min-width: @menuInputMinWidth;
199
195
  }
200
196
  .ui.dropdown .menu > .header + .input {
201
- margin-top: 0;
197
+ margin-top: 0;
202
198
  }
203
199
  .ui.dropdown .menu > .input:not(.transparent) input {
204
- padding: @menuInputPadding;
200
+ padding: @menuInputPadding;
205
201
  }
206
202
  .ui.dropdown .menu > .input:not(.transparent) .button,
207
203
  .ui.dropdown .menu > .input:not(.transparent) i.icon,
208
204
  .ui.dropdown .menu > .input:not(.transparent) .label {
209
- padding-top: @menuInputVerticalPadding;
210
- padding-bottom: @menuInputVerticalPadding;
205
+ padding-top: @menuInputVerticalPadding;
206
+ padding-bottom: @menuInputVerticalPadding;
211
207
  }
212
208
 
213
- /*-----------------
209
+ /* -----------------
214
210
  Item Description
215
- -------------------*/
211
+ ------------------- */
216
212
 
217
213
  .ui.dropdown > .text > .description,
218
214
  .ui.dropdown .menu > .item > .description {
219
- float: @itemDescriptionFloat;
220
- margin: @itemDescriptionMargin;
221
- color: @itemDescriptionColor;
215
+ float: @itemDescriptionFloat;
216
+ margin: @itemDescriptionMargin;
217
+ color: @itemDescriptionColor;
222
218
  }
223
219
 
224
220
  .ui.dropdown .menu > .item.vertical > .description {
225
- margin: 0;
221
+ margin: 0;
226
222
  }
227
223
 
228
- /*-----------------
224
+ /* -----------------
229
225
  Item Text
230
- -------------------*/
226
+ ------------------- */
231
227
 
232
228
  .ui.dropdown .menu > .item.vertical > .text {
233
- margin-bottom: @verticalItemMargin;
229
+ margin-bottom: @verticalItemMargin;
234
230
  }
235
231
 
236
- /*-----------------
232
+ /* -----------------
237
233
  Message
238
- -------------------*/
234
+ ------------------- */
239
235
 
240
236
  .ui.dropdown .menu > .message {
241
- padding: @messagePadding;
242
- font-weight: @messageFontWeight;
237
+ padding: @messagePadding;
238
+ font-weight: @messageFontWeight;
243
239
  }
244
240
  .ui.dropdown .menu > .message:not(.ui) {
245
- color: @messageColor;
241
+ color: @messageColor;
246
242
  }
247
243
 
248
- /*--------------
244
+ /* --------------
249
245
  Sub Menu
250
- ---------------*/
246
+ --------------- */
251
247
 
252
248
  .ui.dropdown .menu .menu {
253
- top: @subMenuTop;
254
- left: @subMenuLeft;
255
- right: @subMenuRight;
256
- margin: @subMenuMargin !important;
257
- border-radius: @subMenuBorderRadius !important;
258
- z-index: @subMenuZIndex !important;
249
+ top: @subMenuTop;
250
+ left: @subMenuLeft;
251
+ right: @subMenuRight;
252
+ margin: @subMenuMargin !important;
253
+ border-radius: @subMenuBorderRadius !important;
254
+ z-index: @subMenuZIndex !important;
259
255
  }
260
256
 
261
257
  /* Hide Arrow */
262
258
  .ui.dropdown .menu .menu::after {
263
- display: none;
259
+ display: none;
264
260
  }
265
261
 
266
- /*--------------
262
+ /* --------------
267
263
  Sub Elements
268
- ---------------*/
264
+ --------------- */
269
265
 
270
266
  /* Icons / Flags / Labels / Image */
271
267
  .ui.dropdown > .text > i.icons,
@@ -274,15 +270,15 @@
274
270
  .ui.dropdown > .text > .flag,
275
271
  .ui.dropdown > .text > img,
276
272
  .ui.dropdown > .text > .image {
277
- margin-top: @textLineHeightOffset;
273
+ margin-top: @textLineHeightOffset;
278
274
  }
279
275
  .ui.dropdown .menu > .item > i.icons,
280
276
  .ui.dropdown .menu > .item > i.icon,
281
277
  .ui.dropdown .menu > .item > .label,
282
278
  .ui.dropdown .menu > .item > .flag,
283
279
  .ui.dropdown .menu > .item > .image,
284
- .ui.dropdown .menu > .item > img {
285
- margin-top: @itemLineHeightOffset;
280
+ .ui.dropdown .menu > .item > img {
281
+ margin-top: @itemLineHeightOffset;
286
282
  }
287
283
 
288
284
  .ui.dropdown > .text > i.icons,
@@ -296,1695 +292,1685 @@
296
292
  .ui.dropdown .menu > .item > .label,
297
293
  .ui.dropdown .menu > .item > .flag,
298
294
  .ui.dropdown .menu > .item > .image,
299
- .ui.dropdown .menu > .item > img {
300
- margin-left: 0;
301
- float: @itemElementFloat;
302
- margin-right: @itemElementDistance;
295
+ .ui.dropdown .menu > .item > img {
296
+ margin-left: 0;
297
+ float: @itemElementFloat;
298
+ margin-right: @itemElementDistance;
303
299
  }
304
300
 
305
- /*--------------
301
+ /* --------------
306
302
  Image
307
- ---------------*/
303
+ --------------- */
308
304
 
309
305
  .ui.dropdown > .text > img,
310
306
  .ui.dropdown > .text > .image:not(.icon),
311
307
  .ui.dropdown .menu > .item > .image:not(.icon),
312
308
  .ui.dropdown .menu > .item > img {
313
- display: inline-block;
314
- vertical-align: top;
315
- width: auto;
316
- margin-top: @menuImageVerticalMargin;
317
- margin-bottom: @menuImageVerticalMargin;
318
- max-height: @menuImageMaxHeight;
309
+ display: inline-block;
310
+ vertical-align: top;
311
+ width: auto;
312
+ margin-top: @menuImageVerticalMargin;
313
+ margin-bottom: @menuImageVerticalMargin;
314
+ max-height: @menuImageMaxHeight;
319
315
  }
320
316
 
321
-
322
317
  /*******************************
323
318
  Coupling
324
319
  *******************************/
325
320
 
326
-
327
- /*--------------
321
+ /* --------------
328
322
  Menu
329
- ---------------*/
323
+ --------------- */
330
324
 
331
325
  /* Remove Menu Item Divider */
332
326
  .ui.dropdown .ui.menu > .item::before,
333
327
  .ui.menu .ui.dropdown .menu > .item::before {
334
- display: none;
328
+ display: none;
335
329
  }
336
330
 
337
331
  /* Prevent Menu Item Border */
338
332
  .ui.menu .ui.dropdown .menu .active.item {
339
- border-left: none;
333
+ border-left: none;
340
334
  }
341
335
 
342
336
  /* Automatically float dropdown menu right on last menu item */
343
337
  .ui.menu .right.menu .dropdown:last-child > .menu:not(.left),
344
338
  .ui.menu .right.dropdown.item > .menu:not(.left),
345
339
  .ui.buttons > .ui.dropdown:last-child > .menu:not(.left) {
346
- left: auto;
347
- right: 0;
340
+ left: auto;
341
+ right: 0;
348
342
  }
349
343
 
350
344
  & when (@variationDropdownLabel) {
351
- /*--------------
352
- Label
353
- ---------------*/
345
+ /* --------------
346
+ Label
347
+ --------------- */
354
348
 
355
- /* Dropdown Menu */
356
- .ui.label.dropdown .menu {
357
- min-width: 100%;
358
- }
349
+ /* Dropdown Menu */
350
+ .ui.label.dropdown .menu {
351
+ min-width: 100%;
352
+ }
359
353
  }
360
354
 
361
355
  & when (@variationDropdownButton) {
362
- /*--------------
363
- Button
364
- ---------------*/
356
+ /* --------------
357
+ Button
358
+ --------------- */
365
359
 
366
- /* No Margin On Icon Button */
367
- .ui.dropdown.icon.button > .dropdown.icon {
368
- margin: 0;
369
- }
370
- .ui.dropdown.button .menu {
371
- min-width: 100%;
372
- }
373
- .ui.dropdown.button:not(.pointing):not(.floating).active {
374
- border-radius: @borderRadius @borderRadius 0 0;
375
- }
376
- .ui.dropdown.button:not(.pointing):not(.floating) > .menu {
377
- border-radius: 0 0 @borderRadius @borderRadius;
378
- }
360
+ /* No Margin On Icon Button */
361
+ .ui.dropdown.icon.button > .dropdown.icon {
362
+ margin: 0;
363
+ }
364
+ .ui.dropdown.button .menu {
365
+ min-width: 100%;
366
+ }
367
+ .ui.dropdown.button:not(.pointing):not(.floating).active {
368
+ border-radius: @borderRadius @borderRadius 0 0;
369
+ }
370
+ .ui.dropdown.button:not(.pointing):not(.floating) > .menu {
371
+ border-radius: 0 0 @borderRadius @borderRadius;
372
+ }
379
373
  }
380
374
 
381
-
382
-
383
375
  /*******************************
384
376
  Types
385
377
  *******************************/
386
378
  select.ui.dropdown {
387
- height: @selectHeight;
388
- padding: @selectPadding;
389
- border: @selectBorder;
390
- visibility: @selectVisibility;
379
+ height: @selectHeight;
380
+ padding: @selectPadding;
381
+ border: @selectBorder;
382
+ visibility: @selectVisibility;
391
383
  }
392
384
 
393
385
  & when (@variationDropdownSelection) {
394
- /*--------------
395
- Selection
396
- ---------------*/
397
-
398
- /* Displays like a select box */
399
- .ui.selection.dropdown {
400
- cursor: pointer;
401
- word-wrap: break-word;
402
- line-height: 1em;
403
- white-space: normal;
404
- outline: 0;
405
- transform: rotateZ(0deg);
406
-
407
- min-width: @selectionMinWidth;
408
- min-height: @selectionMinHeight;
409
-
410
- background: @selectionBackground;
411
- display: @selectionDisplay;
412
- padding: @selectionPadding;
413
- color: @selectionTextColor;
414
- box-shadow: @selectionBoxShadow;
415
- border: @selectionBorder;
416
- border-radius: @selectionBorderRadius;
417
- transition: @selectionTransition;
418
- }
419
- .ui.selection.dropdown.visible,
420
- .ui.selection.dropdown.active {
421
- z-index: @selectionZIndex;
422
- }
423
-
424
- .ui.selection.dropdown > .search.icon,
425
- .ui.selection.dropdown > .delete.icon,
426
- .ui.selection.dropdown > .dropdown.icon {
427
- cursor: pointer;
428
- position: absolute;
429
- width: auto;
430
- height: auto;
431
- line-height: @searchSelectionLineHeight;
432
- top: @selectionVerticalPadding;
433
- right: @selectionHorizontalPadding;
434
- z-index: @selectionIconZIndex;
435
- margin: @selectionIconMargin;
436
- padding: @selectionIconPadding;
437
- opacity: @selectionIconOpacity;
438
- transition: @selectionIconTransition;
439
- }
440
- & when (@variationDropdownCompact) {
441
- /* Compact */
442
- .ui.compact.selection.dropdown {
443
- min-width: 0;
444
- }
445
- }
446
-
447
- /* Selection Menu */
448
- .ui.selection.dropdown .menu {
449
- overflow-x: hidden;
450
- overflow-y: auto;
451
- overscroll-behavior: @overscrollBehavior;
452
- backface-visibility: hidden;
453
- -webkit-overflow-scrolling: touch;
454
- border-top-width: 0 !important;
455
- width: auto;
456
- outline: none;
457
- margin: 0 -@menuBorderWidth;
458
- min-width: @menuMinWidth;
459
- width: @menuMinWidth;
460
-
461
- border-radius: @selectionMenuBorderRadius;
462
- box-shadow: @selectionMenuBoxShadow;
463
- transition: @selectionMenuTransition;
464
- }
465
- .ui.selection.dropdown .menu::after,
466
- .ui.selection.dropdown .menu::before {
467
- display: none;
468
- }
469
-
470
- /*--------------
471
- Message
472
- ---------------*/
473
-
474
- .ui.selection.dropdown .menu > .message {
475
- padding: @selectionMessagePadding;
476
- }
477
-
478
- @media only screen and (max-width : @largestMobileScreen) {
479
- & when (@variationDropdownShort) {
480
- .ui.selection.dropdown.short .menu {
481
- max-height: @selectionMobileMaxMenuHeight * 0.75;
482
- }
483
- .ui.selection.dropdown[class*="very short"] .menu {
484
- max-height: @selectionMobileMaxMenuHeight * 0.5;
485
- }
386
+ /* --------------
387
+ Selection
388
+ --------------- */
389
+
390
+ /* Displays like a select box */
391
+ .ui.selection.dropdown {
392
+ cursor: pointer;
393
+ word-wrap: break-word;
394
+ line-height: 1em;
395
+ white-space: normal;
396
+ outline: 0;
397
+ transform: rotateZ(0deg);
398
+
399
+ min-width: @selectionMinWidth;
400
+ min-height: @selectionMinHeight;
401
+
402
+ background: @selectionBackground;
403
+ display: @selectionDisplay;
404
+ padding: @selectionPadding;
405
+ color: @selectionTextColor;
406
+ box-shadow: @selectionBoxShadow;
407
+ border: @selectionBorder;
408
+ border-radius: @selectionBorderRadius;
409
+ transition: @selectionTransition;
410
+ }
411
+ .ui.selection.dropdown.visible,
412
+ .ui.selection.dropdown.active {
413
+ z-index: @selectionZIndex;
414
+ }
415
+
416
+ .ui.selection.dropdown > .search.icon,
417
+ .ui.selection.dropdown > .delete.icon,
418
+ .ui.selection.dropdown > .dropdown.icon {
419
+ cursor: pointer;
420
+ position: absolute;
421
+ width: auto;
422
+ height: auto;
423
+ line-height: @searchSelectionLineHeight;
424
+ top: @selectionVerticalPadding;
425
+ right: @selectionHorizontalPadding;
426
+ z-index: @selectionIconZIndex;
427
+ margin: @selectionIconMargin;
428
+ padding: @selectionIconPadding;
429
+ opacity: @selectionIconOpacity;
430
+ transition: @selectionIconTransition;
431
+ }
432
+ & when (@variationDropdownCompact) {
433
+ /* Compact */
434
+ .ui.compact.selection.dropdown {
435
+ min-width: 0;
436
+ }
486
437
  }
438
+
439
+ /* Selection Menu */
487
440
  .ui.selection.dropdown .menu {
488
- max-height: @selectionMobileMaxMenuHeight;
489
- }
490
- & when (@variationDropdownLong) {
491
- .ui.selection.dropdown.long .menu {
492
- max-height: @selectionMobileMaxMenuHeight * 2;
493
- }
494
- .ui.selection.dropdown[class*="very long"] .menu {
495
- max-height: @selectionMobileMaxMenuHeight * 3;
496
- }
497
- }
498
- }
499
- @media only screen and (min-width: @tabletBreakpoint) {
500
- & when (@variationDropdownShort) {
501
- .ui.selection.dropdown.short .menu {
502
- max-height: @selectionTabletMaxMenuHeight * 0.75;
503
- }
504
- .ui.selection.dropdown[class*="very short"] .menu {
505
- max-height: @selectionTabletMaxMenuHeight * 0.5;
506
- }
441
+ overflow-x: hidden;
442
+ overflow-y: auto;
443
+ overscroll-behavior: @overscrollBehavior;
444
+ backface-visibility: hidden;
445
+ -webkit-overflow-scrolling: touch;
446
+ border-top-width: 0 !important;
447
+ width: auto;
448
+ outline: none;
449
+ margin: 0 -@menuBorderWidth;
450
+ min-width: @menuMinWidth;
451
+ width: @menuMinWidth;
452
+
453
+ border-radius: @selectionMenuBorderRadius;
454
+ box-shadow: @selectionMenuBoxShadow;
455
+ transition: @selectionMenuTransition;
456
+ }
457
+ .ui.selection.dropdown .menu::after,
458
+ .ui.selection.dropdown .menu::before {
459
+ display: none;
460
+ }
461
+
462
+ /* --------------
463
+ Message
464
+ --------------- */
465
+
466
+ .ui.selection.dropdown .menu > .message {
467
+ padding: @selectionMessagePadding;
468
+ }
469
+
470
+ @media only screen and (max-width: @largestMobileScreen) {
471
+ & when (@variationDropdownShort) {
472
+ .ui.selection.dropdown.short .menu {
473
+ max-height: @selectionMobileMaxMenuHeight * 0.75;
474
+ }
475
+ .ui.selection.dropdown[class*="very short"] .menu {
476
+ max-height: @selectionMobileMaxMenuHeight * 0.5;
477
+ }
478
+ }
479
+ .ui.selection.dropdown .menu {
480
+ max-height: @selectionMobileMaxMenuHeight;
481
+ }
482
+ & when (@variationDropdownLong) {
483
+ .ui.selection.dropdown.long .menu {
484
+ max-height: @selectionMobileMaxMenuHeight * 2;
485
+ }
486
+ .ui.selection.dropdown[class*="very long"] .menu {
487
+ max-height: @selectionMobileMaxMenuHeight * 3;
488
+ }
489
+ }
507
490
  }
508
- .ui.selection.dropdown .menu {
509
- max-height: @selectionTabletMaxMenuHeight;
510
- }
511
- & when (@variationDropdownLong) {
512
- .ui.selection.dropdown.long .menu {
513
- max-height: @selectionTabletMaxMenuHeight * 2;
514
- }
515
- .ui.selection.dropdown[class*="very long"] .menu {
516
- max-height: @selectionTabletMaxMenuHeight * 3;
517
- }
518
- }
519
- }
520
- @media only screen and (min-width: @computerBreakpoint) {
521
- & when (@variationDropdownShort) {
522
- .ui.selection.dropdown.short .menu {
523
- max-height: @selectionComputerMaxMenuHeight * 0.75;
524
- }
525
- .ui.selection.dropdown[class*="very short"] .menu {
526
- max-height: @selectionComputerMaxMenuHeight * 0.5;
527
- }
491
+ @media only screen and (min-width: @tabletBreakpoint) {
492
+ & when (@variationDropdownShort) {
493
+ .ui.selection.dropdown.short .menu {
494
+ max-height: @selectionTabletMaxMenuHeight * 0.75;
495
+ }
496
+ .ui.selection.dropdown[class*="very short"] .menu {
497
+ max-height: @selectionTabletMaxMenuHeight * 0.5;
498
+ }
499
+ }
500
+ .ui.selection.dropdown .menu {
501
+ max-height: @selectionTabletMaxMenuHeight;
502
+ }
503
+ & when (@variationDropdownLong) {
504
+ .ui.selection.dropdown.long .menu {
505
+ max-height: @selectionTabletMaxMenuHeight * 2;
506
+ }
507
+ .ui.selection.dropdown[class*="very long"] .menu {
508
+ max-height: @selectionTabletMaxMenuHeight * 3;
509
+ }
510
+ }
528
511
  }
529
- .ui.selection.dropdown .menu {
530
- max-height: @selectionComputerMaxMenuHeight;
531
- }
532
- & when (@variationDropdownLong) {
533
- .ui.selection.dropdown.long .menu {
534
- max-height: @selectionComputerMaxMenuHeight * 2;
535
- }
536
- .ui.selection.dropdown[class*="very long"] .menu {
537
- max-height: @selectionComputerMaxMenuHeight * 3;
538
- }
539
- }
540
- }
541
- @media only screen and (min-width: @widescreenMonitorBreakpoint) {
542
- & when (@variationDropdownShort) {
543
- .ui.selection.dropdown.short .menu {
544
- max-height: @selectionWidescreenMaxMenuHeight * 0.75;
545
- }
546
- .ui.selection.dropdown[class*="very short"] .menu {
547
- max-height: @selectionWidescreenMaxMenuHeight * 0.5;
548
- }
512
+ @media only screen and (min-width: @computerBreakpoint) {
513
+ & when (@variationDropdownShort) {
514
+ .ui.selection.dropdown.short .menu {
515
+ max-height: @selectionComputerMaxMenuHeight * 0.75;
516
+ }
517
+ .ui.selection.dropdown[class*="very short"] .menu {
518
+ max-height: @selectionComputerMaxMenuHeight * 0.5;
519
+ }
520
+ }
521
+ .ui.selection.dropdown .menu {
522
+ max-height: @selectionComputerMaxMenuHeight;
523
+ }
524
+ & when (@variationDropdownLong) {
525
+ .ui.selection.dropdown.long .menu {
526
+ max-height: @selectionComputerMaxMenuHeight * 2;
527
+ }
528
+ .ui.selection.dropdown[class*="very long"] .menu {
529
+ max-height: @selectionComputerMaxMenuHeight * 3;
530
+ }
531
+ }
549
532
  }
550
- .ui.selection.dropdown .menu {
551
- max-height: @selectionWidescreenMaxMenuHeight;
552
- }
553
- & when (@variationDropdownLong) {
554
- .ui.selection.dropdown.long .menu {
555
- max-height: @selectionWidescreenMaxMenuHeight * 2;
556
- }
557
- .ui.selection.dropdown[class*="very long"] .menu {
558
- max-height: @selectionWidescreenMaxMenuHeight * 3;
559
- }
560
- }
561
- }
562
-
563
- /* Menu Item */
564
- .ui.selection.dropdown .menu > .item {
565
- border-top: @selectionItemDivider;
566
- padding: @selectionItemPadding;
567
- white-space: normal;
568
- word-wrap: normal;
569
- }
570
-
571
- /* User Item */
572
- .ui.selection.dropdown .menu > .hidden.addition.item {
573
- display: none;
574
- }
575
-
576
- /* User addition item */
577
- .ui.dropdown > .menu > .stuck.addition.item:first-child {
578
- position: -webkit-sticky;
579
- position: sticky;
580
- top: 0;
581
- box-shadow: @selectionVisibleBoxShadow;
582
- background: @menuBackground;
583
- z-index: @additionZIndex;
584
- }
585
-
586
- /* Hover */
587
- .ui.selection.dropdown:hover {
588
- border-color: @selectionHoverBorderColor;
589
- box-shadow: @selectionHoverBoxShadow;
590
- }
591
-
592
- /* Active */
593
- .ui.selection.simple.dropdown:hover,
594
- .ui.selection.active.dropdown {
595
- border-color: @selectionVisibleBorderColor;
596
- box-shadow: @selectionVisibleBoxShadow;
597
- }
598
- .ui.selection.simple.dropdown:hover .menu,
599
- .ui.selection.active.dropdown .menu {
600
- border-color: @selectionVisibleBorderColor;
601
- box-shadow: @selectionVisibleMenuBoxShadow;
602
- }
603
-
604
- /* Focus */
605
- .ui.selection.dropdown:focus {
606
- border-color: @selectionFocusBorderColor;
607
- box-shadow: @selectionFocusBoxShadow;
608
- }
609
- .ui.selection.dropdown:focus .menu {
610
- border-color: @selectionFocusBorderColor;
611
- box-shadow: @selectionFocusMenuBoxShadow;
612
- }
613
-
614
- /* Visible */
615
- .ui.selection.visible.dropdown > .text:not(.default) {
616
- font-weight: @selectionVisibleTextFontWeight;
617
- color: @selectionVisibleTextColor;
618
- }
619
-
620
- /* Visible Hover */
621
- .ui.selection.active.dropdown:hover {
622
- border-color: @selectionActiveHoverBorderColor;
623
- box-shadow: @selectionActiveHoverBoxShadow;
624
- }
625
- .ui.selection.active.dropdown:hover .menu {
626
- border-color: @selectionActiveHoverBorderColor;
627
- box-shadow: @selectionActiveHoverMenuBoxShadow;
628
- }
629
-
630
- /* Dropdown Icon */
631
- .ui.active.selection.dropdown > .dropdown.icon,
632
- .ui.visible.selection.dropdown > .dropdown.icon {
633
- opacity: @selectionVisibleIconOpacity;
634
- z-index: 3;
635
- }
636
-
637
- /* Connecting Border */
638
- .ui.active.selection.dropdown {
639
- border-bottom-left-radius: @selectionVisibleConnectingBorder !important;
640
- border-bottom-right-radius: @selectionVisibleConnectingBorder !important;
641
- }
642
-
643
- /* Empty Connecting Border */
644
- .ui.active.empty.selection.dropdown {
645
- border-radius: @selectionBorderRadius !important;
646
- box-shadow: @selectionBoxShadow !important;
647
- }
648
- .ui.active.empty.selection.dropdown .menu {
649
- border: none !important;
650
- box-shadow: none !important;
651
- }
652
- & when (@variationDropdownScrollhint) {
653
- /* CSS specific to iOS devices or firefox mobile only */
654
- @supports (-webkit-touch-callout: none) or (-webkit-overflow-scrolling: touch) or (-moz-appearance:none) {
655
- @media (-moz-touch-enabled), (pointer: coarse) {
656
- .ui.dropdown .scrollhint.menu:not(.hidden)::before {
657
- animation: scrollhint @scrollhintDuration @scrollhintEasing @scrollhintIteration;
658
- content: '';
659
- z-index: @scrollhintZIndex;
660
- display: block;
661
- position: absolute;
662
- opacity: 0;
663
- right: @scrollhintOffsetRight;
664
- top: 0;
665
- height: 100%;
666
- border-right: @scrollhintRightBorder;
667
- border-left: @scrollhintLeftBorder;
668
- border-image: linear-gradient(to bottom, @scrollhintStartColor, @scrollhintEndColor) 1 100%;
669
- }
670
-
671
- .ui.inverted.dropdown .scrollhint.menu:not(.hidden)::before {
672
- border-image: linear-gradient(to bottom, @invertedScrollhintStartColor, @invertedScrollhintEndColor) 1 100%;
673
- }
674
-
675
- @keyframes scrollhint {
676
- 0% {
677
- opacity: 1;
678
- top: 100%;
679
- }
680
- 100% {
681
- opacity: 0;
682
- top: 0;
683
- }
533
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
534
+ & when (@variationDropdownShort) {
535
+ .ui.selection.dropdown.short .menu {
536
+ max-height: @selectionWidescreenMaxMenuHeight * 0.75;
537
+ }
538
+ .ui.selection.dropdown[class*="very short"] .menu {
539
+ max-height: @selectionWidescreenMaxMenuHeight * 0.5;
540
+ }
541
+ }
542
+ .ui.selection.dropdown .menu {
543
+ max-height: @selectionWidescreenMaxMenuHeight;
544
+ }
545
+ & when (@variationDropdownLong) {
546
+ .ui.selection.dropdown.long .menu {
547
+ max-height: @selectionWidescreenMaxMenuHeight * 2;
548
+ }
549
+ .ui.selection.dropdown[class*="very long"] .menu {
550
+ max-height: @selectionWidescreenMaxMenuHeight * 3;
551
+ }
552
+ }
553
+ }
554
+
555
+ /* Menu Item */
556
+ .ui.selection.dropdown .menu > .item {
557
+ border-top: @selectionItemDivider;
558
+ padding: @selectionItemPadding;
559
+ white-space: normal;
560
+ word-wrap: normal;
561
+ }
562
+
563
+ /* User Item */
564
+ .ui.selection.dropdown .menu > .hidden.addition.item {
565
+ display: none;
566
+ }
567
+
568
+ /* User addition item */
569
+ .ui.dropdown > .menu > .stuck.addition.item:first-child {
570
+ position: -webkit-sticky;
571
+ position: sticky;
572
+ top: 0;
573
+ box-shadow: @selectionVisibleBoxShadow;
574
+ background: @menuBackground;
575
+ z-index: @additionZIndex;
576
+ }
577
+
578
+ /* Hover */
579
+ .ui.selection.dropdown:hover {
580
+ border-color: @selectionHoverBorderColor;
581
+ box-shadow: @selectionHoverBoxShadow;
582
+ }
583
+
584
+ /* Active */
585
+ .ui.selection.simple.dropdown:hover,
586
+ .ui.selection.active.dropdown {
587
+ border-color: @selectionVisibleBorderColor;
588
+ box-shadow: @selectionVisibleBoxShadow;
589
+ }
590
+ .ui.selection.simple.dropdown:hover .menu,
591
+ .ui.selection.active.dropdown .menu {
592
+ border-color: @selectionVisibleBorderColor;
593
+ box-shadow: @selectionVisibleMenuBoxShadow;
594
+ }
595
+
596
+ /* Focus */
597
+ .ui.selection.dropdown:focus {
598
+ border-color: @selectionFocusBorderColor;
599
+ box-shadow: @selectionFocusBoxShadow;
600
+ }
601
+ .ui.selection.dropdown:focus .menu {
602
+ border-color: @selectionFocusBorderColor;
603
+ box-shadow: @selectionFocusMenuBoxShadow;
604
+ }
605
+
606
+ /* Visible */
607
+ .ui.selection.visible.dropdown > .text:not(.default) {
608
+ font-weight: @selectionVisibleTextFontWeight;
609
+ color: @selectionVisibleTextColor;
610
+ }
611
+
612
+ /* Visible Hover */
613
+ .ui.selection.active.dropdown:hover {
614
+ border-color: @selectionActiveHoverBorderColor;
615
+ box-shadow: @selectionActiveHoverBoxShadow;
616
+ }
617
+ .ui.selection.active.dropdown:hover .menu {
618
+ border-color: @selectionActiveHoverBorderColor;
619
+ box-shadow: @selectionActiveHoverMenuBoxShadow;
620
+ }
621
+
622
+ /* Dropdown Icon */
623
+ .ui.active.selection.dropdown > .dropdown.icon,
624
+ .ui.visible.selection.dropdown > .dropdown.icon {
625
+ opacity: @selectionVisibleIconOpacity;
626
+ z-index: 3;
627
+ }
628
+
629
+ /* Connecting Border */
630
+ .ui.active.selection.dropdown {
631
+ border-bottom-left-radius: @selectionVisibleConnectingBorder !important;
632
+ border-bottom-right-radius: @selectionVisibleConnectingBorder !important;
633
+ }
634
+
635
+ /* Empty Connecting Border */
636
+ .ui.active.empty.selection.dropdown {
637
+ border-radius: @selectionBorderRadius !important;
638
+ box-shadow: @selectionBoxShadow !important;
639
+ }
640
+ .ui.active.empty.selection.dropdown .menu {
641
+ border: none !important;
642
+ box-shadow: none !important;
643
+ }
644
+ & when (@variationDropdownScrollhint) {
645
+ /* CSS specific to iOS devices or firefox mobile only */
646
+ @supports (-webkit-touch-callout: none) or (-webkit-overflow-scrolling: touch) or (-moz-appearance:none) {
647
+ @media (-moz-touch-enabled), (pointer: coarse) {
648
+ .ui.dropdown .scrollhint.menu:not(.hidden)::before {
649
+ animation: scrollhint @scrollhintDuration @scrollhintEasing @scrollhintIteration;
650
+ content: '';
651
+ z-index: @scrollhintZIndex;
652
+ display: block;
653
+ position: absolute;
654
+ opacity: 0;
655
+ right: @scrollhintOffsetRight;
656
+ top: 0;
657
+ height: 100%;
658
+ border-right: @scrollhintRightBorder;
659
+ border-left: @scrollhintLeftBorder;
660
+ border-image: linear-gradient(to bottom, @scrollhintStartColor, @scrollhintEndColor) 1 100%;
661
+ }
662
+
663
+ .ui.inverted.dropdown .scrollhint.menu:not(.hidden)::before {
664
+ border-image: linear-gradient(to bottom, @invertedScrollhintStartColor, @invertedScrollhintEndColor) 1 100%;
665
+ }
666
+
667
+ @keyframes scrollhint {
668
+ 0% {
669
+ opacity: 1;
670
+ top: 100%;
671
+ }
672
+ 100% {
673
+ opacity: 0;
674
+ top: 0;
675
+ }
676
+ }
677
+ }
684
678
  }
685
- }
686
679
  }
687
- }
688
680
  }
689
681
 
690
682
  & when (@variationDropdownSearch) {
691
- /*--------------
692
- Searchable
693
- ---------------*/
694
-
695
- /* Search Selection */
696
- .ui.search.dropdown {
697
- min-width: @searchMinWidth;
698
- }
699
-
700
- /* Search Dropdown */
701
- .ui.search.dropdown > input.search {
702
- background: none transparent !important;
703
- border: none !important;
704
- box-shadow: none !important;
705
- cursor: text;
706
- top: 0;
707
- left: @textCursorSpacing;
708
- width: 100%;
709
- outline: none;
710
- -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
711
- padding: inherit;
712
- }
713
-
714
- /* Text Layering */
715
- .ui.search.dropdown > input.search {
716
- position: absolute;
717
- z-index: 2;
718
- }
719
- .ui.search.dropdown > .text {
720
- cursor: text;
721
- position: relative;
722
- left: @textCursorSpacing;
723
- z-index: auto;
724
- }
683
+ /* --------------
684
+ Searchable
685
+ --------------- */
725
686
 
726
- & when (@variationDropdownSelection) {
727
687
  /* Search Selection */
728
- .ui.search.selection.dropdown > input.search {
729
- line-height: @searchSelectionLineHeight;
730
- padding: @searchSelectionInputPadding;
688
+ .ui.search.dropdown {
689
+ min-width: @searchMinWidth;
731
690
  }
732
691
 
733
- /* Used to size multi select input to character width */
734
- .ui.search.selection.dropdown > span.sizer {
735
- line-height: @searchSelectionLineHeight;
736
- padding: @searchSelectionInputPadding;
737
- display: none;
738
- white-space: pre;
692
+ /* Search Dropdown */
693
+ .ui.search.dropdown > input.search {
694
+ background: none transparent !important;
695
+ border: none !important;
696
+ box-shadow: none !important;
697
+ cursor: text;
698
+ top: 0;
699
+ left: @textCursorSpacing;
700
+ width: 100%;
701
+ outline: none;
702
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
703
+ padding: inherit;
739
704
  }
740
- }
741
705
 
742
- /* Active/Visible Search */
743
- .ui.search.dropdown.active > input.search,
744
- .ui.search.dropdown.visible > input.search {
745
- cursor: auto;
746
- }
747
- .ui.search.dropdown.active > .text,
748
- .ui.search.dropdown.visible > .text {
749
- pointer-events: none;
750
- }
751
-
752
- /* Filtered Text */
753
- .ui.active.search.dropdown input.search:focus + .text i.icon,
754
- .ui.active.search.dropdown input.search:focus + .text .flag {
755
- opacity: @selectionTextUnderlayIconOpacity;
756
- }
757
- .ui.active.search.dropdown input.search:focus + .text {
758
- color: @selectionTextUnderlayColor !important;
759
- }
760
-
761
- .ui.search.dropdown.button > span.sizer {
762
- display: none;
763
- }
764
-
765
- /* Search Menu */
766
- .ui.search.dropdown .menu {
767
- overflow-x: hidden;
768
- overflow-y: auto;
769
- overscroll-behavior: @overscrollBehavior;
770
- backface-visibility: hidden;
771
- -webkit-overflow-scrolling: touch;
772
- }
773
- @media only screen and (max-width : @largestMobileScreen) {
774
- .ui.search.dropdown .menu {
775
- max-height: @searchMobileMaxMenuHeight;
706
+ /* Text Layering */
707
+ .ui.search.dropdown > input.search {
708
+ position: absolute;
709
+ z-index: 2;
776
710
  }
777
- }
778
- @media only screen and (min-width: @tabletBreakpoint) {
779
- .ui.search.dropdown .menu {
780
- max-height: @searchTabletMaxMenuHeight;
711
+ .ui.search.dropdown > .text {
712
+ cursor: text;
713
+ position: relative;
714
+ left: @textCursorSpacing;
715
+ z-index: auto;
781
716
  }
782
- }
783
- @media only screen and (min-width: @computerBreakpoint) {
784
- .ui.search.dropdown .menu {
785
- max-height: @searchComputerMaxMenuHeight;
717
+
718
+ & when (@variationDropdownSelection) {
719
+ /* Search Selection */
720
+ .ui.search.selection.dropdown > input.search {
721
+ line-height: @searchSelectionLineHeight;
722
+ padding: @searchSelectionInputPadding;
723
+ }
724
+
725
+ /* Used to size multi select input to character width */
726
+ .ui.search.selection.dropdown > span.sizer {
727
+ line-height: @searchSelectionLineHeight;
728
+ padding: @searchSelectionInputPadding;
729
+ display: none;
730
+ white-space: pre;
731
+ }
732
+ }
733
+
734
+ /* Active/Visible Search */
735
+ .ui.search.dropdown.active > input.search,
736
+ .ui.search.dropdown.visible > input.search {
737
+ cursor: auto;
786
738
  }
787
- }
788
- @media only screen and (min-width: @widescreenMonitorBreakpoint) {
739
+ .ui.search.dropdown.active > .text,
740
+ .ui.search.dropdown.visible > .text {
741
+ pointer-events: none;
742
+ }
743
+
744
+ /* Filtered Text */
745
+ .ui.active.search.dropdown input.search:focus + .text i.icon,
746
+ .ui.active.search.dropdown input.search:focus + .text .flag {
747
+ opacity: @selectionTextUnderlayIconOpacity;
748
+ }
749
+ .ui.active.search.dropdown input.search:focus + .text {
750
+ color: @selectionTextUnderlayColor !important;
751
+ }
752
+
753
+ .ui.search.dropdown.button > span.sizer {
754
+ display: none;
755
+ }
756
+
757
+ /* Search Menu */
789
758
  .ui.search.dropdown .menu {
790
- max-height: @searchWidescreenMaxMenuHeight;
759
+ overflow-x: hidden;
760
+ overflow-y: auto;
761
+ overscroll-behavior: @overscrollBehavior;
762
+ backface-visibility: hidden;
763
+ -webkit-overflow-scrolling: touch;
764
+ }
765
+ @media only screen and (max-width: @largestMobileScreen) {
766
+ .ui.search.dropdown .menu {
767
+ max-height: @searchMobileMaxMenuHeight;
768
+ }
769
+ }
770
+ @media only screen and (min-width: @tabletBreakpoint) {
771
+ .ui.search.dropdown .menu {
772
+ max-height: @searchTabletMaxMenuHeight;
773
+ }
774
+ }
775
+ @media only screen and (min-width: @computerBreakpoint) {
776
+ .ui.search.dropdown .menu {
777
+ max-height: @searchComputerMaxMenuHeight;
778
+ }
779
+ }
780
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
781
+ .ui.search.dropdown .menu {
782
+ max-height: @searchWidescreenMaxMenuHeight;
783
+ }
791
784
  }
792
- }
793
785
  }
794
786
 
795
787
  & when (@variationDropdownClear) {
796
- /* Clearable Selection */
797
- .ui.dropdown > .remove.icon {
798
- cursor: pointer;
799
- font-size: @dropdownIconSize;
800
- margin: @selectionIconMargin;
801
- padding: @selectionIconPadding;
802
- right: @clearableIconPosition;
803
- top: @selectionVerticalPadding;
804
- position: absolute;
805
- opacity: @clearableIconOpacity;
806
- z-index: @selectionIconZIndex;
807
- }
808
- & when (@variationDropdownSelection) {
809
- .ui.selection.dropdown > .remove.icon {
810
- right: @clearableIconSelectionPosition;
811
- }
812
- }
813
- & when (@variationDropdownInline) {
814
- .ui.inline.dropdown > .remove.icon {
815
- right: @clearableIconInlinePosition;
816
- }
817
- }
818
-
819
- .ui.clearable.dropdown .text,
820
- .ui.clearable.dropdown a:last-of-type {
821
- margin-right: @clearableTextMargin;
822
- }
823
-
824
- .ui.dropdown select.noselection ~ .remove.icon,
825
- .ui.dropdown input[value=''] ~ .remove.icon,
826
- .ui.dropdown input:not([value]) ~ .remove.icon,
827
- .ui.dropdown.loading > .remove.icon {
828
- display: none;
829
- }
788
+ /* Clearable Selection */
789
+ .ui.dropdown > .remove.icon {
790
+ cursor: pointer;
791
+ font-size: @dropdownIconSize;
792
+ margin: @selectionIconMargin;
793
+ padding: @selectionIconPadding;
794
+ right: @clearableIconPosition;
795
+ top: @selectionVerticalPadding;
796
+ position: absolute;
797
+ opacity: @clearableIconOpacity;
798
+ z-index: @selectionIconZIndex;
799
+ }
800
+ & when (@variationDropdownSelection) {
801
+ .ui.selection.dropdown > .remove.icon {
802
+ right: @clearableIconSelectionPosition;
803
+ }
804
+ }
805
+ & when (@variationDropdownInline) {
806
+ .ui.inline.dropdown > .remove.icon {
807
+ right: @clearableIconInlinePosition;
808
+ }
809
+ }
830
810
 
831
- .ui.dropdown:not(.selection) > .remove.icon ~ .dropdown.icon {
832
- margin-left: @clearableIconMargin;
833
- }
834
- .ui.dropdown:not(.selection) > .remove.icon {
835
- margin-top: -@clearableIconMarginTop;
836
- }
811
+ .ui.clearable.dropdown .text,
812
+ .ui.clearable.dropdown a:last-of-type {
813
+ margin-right: @clearableTextMargin;
814
+ }
815
+
816
+ .ui.dropdown select.noselection ~ .remove.icon,
817
+ .ui.dropdown input[value=''] ~ .remove.icon,
818
+ .ui.dropdown input:not([value]) ~ .remove.icon,
819
+ .ui.dropdown.loading > .remove.icon {
820
+ display: none;
821
+ }
822
+
823
+ .ui.dropdown:not(.selection) > .remove.icon ~ .dropdown.icon {
824
+ margin-left: @clearableIconMargin;
825
+ }
826
+ .ui.dropdown:not(.selection) > .remove.icon {
827
+ margin-top: -@clearableIconMarginTop;
828
+ }
837
829
  }
838
830
 
839
831
  & when (@variationDropdownMultiple) {
840
- /*--------------
841
- Multiple
842
- ---------------*/
843
-
844
- /* Multiple Selection */
845
- .ui.ui.multiple.dropdown {
846
- padding: @multipleSelectionPadding;
847
- }
848
- .ui.multiple.dropdown .menu {
849
- cursor: auto;
850
- }
851
-
852
- /* Selection Label */
853
- .ui.multiple.dropdown > .label {
854
- display: inline-block;
855
- white-space: normal;
856
- font-size: @labelSize;
857
- padding: @labelPadding;
858
- margin: @labelMargin;
859
- box-shadow: @labelBoxShadow;
860
- }
861
-
862
- /* Dropdown Icon */
863
- .ui.multiple.dropdown .dropdown.icon {
864
- margin: @multipleSelectionDropdownIconMargin;
865
- padding: @multipleSelectionDropdownIconPadding;
866
- }
867
-
868
- /* Text */
869
- .ui.multiple.dropdown > .text {
870
- position: static;
871
- padding: 0;
872
- max-width: 100%;
873
- margin: @multipleSelectionChildMargin;
874
- line-height: @multipleSelectionChildLineHeight;
875
- &.default {
876
- white-space: nowrap;
877
- overflow: hidden;
878
- text-overflow: ellipsis;
879
- }
880
- }
881
- .ui.multiple.dropdown > .label ~ input.search {
882
- margin-left: @multipleSelectionSearchAfterLabelDistance !important;
883
- }
884
- .ui.multiple.dropdown > .label ~ .text {
885
- display: none;
886
- }
887
- .ui.multiple.dropdown > .label:not(.image) > img:not(.centered) {
888
- margin-right: @itemElementDistance;
889
- }
890
- .ui.multiple.dropdown > .label:not(.image) > img.ui:not(.avatar) {
891
- margin-bottom: @itemElementBottomDistance;
892
- }
893
- .ui.multiple.dropdown > .image.label img {
894
- margin: @imageLabelImageMargin;
895
- height: @imageLabelHeight;
896
- }
832
+ /* --------------
833
+ Multiple
834
+ --------------- */
835
+
836
+ /* Multiple Selection */
837
+ .ui.ui.multiple.dropdown {
838
+ padding: @multipleSelectionPadding;
839
+ }
840
+ .ui.multiple.dropdown .menu {
841
+ cursor: auto;
842
+ }
843
+
844
+ /* Selection Label */
845
+ .ui.multiple.dropdown > .label {
846
+ display: inline-block;
847
+ white-space: normal;
848
+ font-size: @labelSize;
849
+ padding: @labelPadding;
850
+ margin: @labelMargin;
851
+ box-shadow: @labelBoxShadow;
852
+ }
853
+
854
+ /* Dropdown Icon */
855
+ .ui.multiple.dropdown .dropdown.icon {
856
+ margin: @multipleSelectionDropdownIconMargin;
857
+ padding: @multipleSelectionDropdownIconPadding;
858
+ }
859
+
860
+ /* Text */
861
+ .ui.multiple.dropdown > .text {
862
+ position: static;
863
+ padding: 0;
864
+ max-width: 100%;
865
+ margin: @multipleSelectionChildMargin;
866
+ line-height: @multipleSelectionChildLineHeight;
867
+ &.default {
868
+ white-space: nowrap;
869
+ overflow: hidden;
870
+ text-overflow: ellipsis;
871
+ }
872
+ }
873
+ .ui.multiple.dropdown > .label ~ input.search {
874
+ margin-left: @multipleSelectionSearchAfterLabelDistance !important;
875
+ }
876
+ .ui.multiple.dropdown > .label ~ .text {
877
+ display: none;
878
+ }
879
+ .ui.multiple.dropdown > .label:not(.image) > img:not(.centered) {
880
+ margin-right: @itemElementDistance;
881
+ }
882
+ .ui.multiple.dropdown > .label:not(.image) > img.ui:not(.avatar) {
883
+ margin-bottom: @itemElementBottomDistance;
884
+ }
885
+ .ui.multiple.dropdown > .image.label img {
886
+ margin: @imageLabelImageMargin;
887
+ height: @imageLabelHeight;
888
+ }
897
889
 
898
- & when (@variationDropdownSearch) {
899
- /*-----------------
900
- Multiple Search
901
- -----------------*/
890
+ & when (@variationDropdownSearch) {
891
+ /* -----------------
892
+ Multiple Search
893
+ ----------------- */
902
894
 
903
- /* Multiple Search Selection */
904
- .ui.multiple.search.dropdown,
905
- .ui.multiple.search.dropdown > input.search {
906
- cursor: text;
907
- }
895
+ /* Multiple Search Selection */
896
+ .ui.multiple.search.dropdown,
897
+ .ui.multiple.search.dropdown > input.search {
898
+ cursor: text;
899
+ }
908
900
 
909
- /* Prompt Text */
910
- .ui.multiple.search.dropdown > .text {
911
- display: inline-block;
912
- position: absolute;
913
- top: 0;
914
- left: 0;
915
- padding: inherit;
916
- margin: @multipleSelectionChildMargin;
917
- line-height: @multipleSelectionChildLineHeight;
918
- }
901
+ /* Prompt Text */
902
+ .ui.multiple.search.dropdown > .text {
903
+ display: inline-block;
904
+ position: absolute;
905
+ top: 0;
906
+ left: 0;
907
+ padding: inherit;
908
+ margin: @multipleSelectionChildMargin;
909
+ line-height: @multipleSelectionChildLineHeight;
910
+ }
919
911
 
920
- .ui.multiple.search.dropdown > .label ~ .text {
921
- display: none;
922
- }
912
+ .ui.multiple.search.dropdown > .label ~ .text {
913
+ display: none;
914
+ }
923
915
 
924
- /* Search */
925
- .ui.multiple.search.dropdown > input.search {
926
- position: static;
927
- padding: 0;
928
- max-width: 100%;
929
- margin: @multipleSelectionChildMargin;
930
- width: @multipleSelectionSearchStartWidth;
931
- line-height: @multipleSelectionChildLineHeight;
932
- }
916
+ /* Search */
917
+ .ui.multiple.search.dropdown > input.search {
918
+ position: static;
919
+ padding: 0;
920
+ max-width: 100%;
921
+ margin: @multipleSelectionChildMargin;
922
+ width: @multipleSelectionSearchStartWidth;
923
+ line-height: @multipleSelectionChildLineHeight;
924
+ }
933
925
 
934
- .ui.multiple.search.dropdown.button {
935
- min-width: @selectionMinWidth;
926
+ .ui.multiple.search.dropdown.button {
927
+ min-width: @selectionMinWidth;
928
+ }
936
929
  }
937
- }
938
930
  }
939
931
 
940
932
  & when (@variationDropdownInline) {
941
- /*--------------
942
- Inline
943
- ---------------*/
933
+ /* --------------
934
+ Inline
935
+ --------------- */
944
936
 
945
- .ui.inline.dropdown {
946
- cursor: pointer;
947
- display: inline-block;
948
- color: @inlineTextColor;
949
- }
950
- .ui.inline.dropdown .dropdown.icon {
951
- margin: @inlineIconMargin;
952
- vertical-align: baseline;
953
- }
954
- .ui.inline.dropdown > .text {
955
- font-weight: @inlineTextFontWeight;
956
- }
957
- .ui.inline.dropdown .menu {
958
- cursor: auto;
959
- margin-top: @inlineMenuDistance;
960
- border-radius: @inlineMenuBorderRadius;
961
- }
937
+ .ui.inline.dropdown {
938
+ cursor: pointer;
939
+ display: inline-block;
940
+ color: @inlineTextColor;
941
+ }
942
+ .ui.inline.dropdown .dropdown.icon {
943
+ margin: @inlineIconMargin;
944
+ vertical-align: baseline;
945
+ }
946
+ .ui.inline.dropdown > .text {
947
+ font-weight: @inlineTextFontWeight;
948
+ }
949
+ .ui.inline.dropdown .menu {
950
+ cursor: auto;
951
+ margin-top: @inlineMenuDistance;
952
+ border-radius: @inlineMenuBorderRadius;
953
+ }
962
954
  }
963
955
 
964
-
965
956
  /*******************************
966
957
  States
967
958
  *******************************/
968
959
 
969
-
970
- /*--------------------
960
+ /* --------------------
971
961
  Active
972
- ----------------------*/
962
+ ---------------------- */
973
963
 
974
964
  /* Menu Item Active */
975
965
  .ui.dropdown .menu .active.item {
976
- background: @activeItemBackground;
977
- font-weight: @activeItemFontWeight;
978
- color: @activeItemColor;
979
- box-shadow: @activeItemBoxShadow;
980
- z-index: @activeItemZIndex;
966
+ background: @activeItemBackground;
967
+ font-weight: @activeItemFontWeight;
968
+ color: @activeItemColor;
969
+ box-shadow: @activeItemBoxShadow;
970
+ z-index: @activeItemZIndex;
981
971
  }
982
972
 
983
-
984
- /*--------------------
973
+ /* --------------------
985
974
  Hover
986
- ----------------------*/
975
+ ---------------------- */
987
976
 
988
977
  /* Menu Item Hover */
989
978
  .ui.dropdown .menu > .item:hover {
990
- background: @hoveredItemBackground;
991
- color: @hoveredItemColor;
992
- z-index: @hoveredZIndex;
979
+ background: @hoveredItemBackground;
980
+ color: @hoveredItemColor;
981
+ z-index: @hoveredZIndex;
993
982
  }
994
983
 
995
- /*--------------------
984
+ /* --------------------
996
985
  Default Text
997
- ----------------------*/
986
+ ---------------------- */
998
987
 
999
988
  .ui.dropdown:not(.button) > .default.text,
1000
989
  .ui.default.dropdown:not(.button) > .text {
1001
- color: @defaultTextColor;
990
+ color: @defaultTextColor;
1002
991
  }
1003
992
  .ui.dropdown:not(.button) > input:focus ~ .default.text,
1004
993
  .ui.default.dropdown:not(.button) > input:focus ~ .text {
1005
- color: @defaultTextFocusColor;
994
+ color: @defaultTextFocusColor;
1006
995
  }
1007
996
 
1008
997
  & when (@variationDropdownLoading) {
998
+ /* --------------------
999
+ Loading
1000
+ --------------------- */
1009
1001
 
1010
- /*--------------------
1011
- Loading
1012
- ---------------------*/
1013
-
1014
- .ui.loading.dropdown > i.icon {
1015
- height: @relative14px !important;
1016
- }
1017
- .ui.loading.selection.dropdown > i.icon {
1018
- padding: @relative21px @relative18px !important;
1019
- }
1020
- .ui.loading.dropdown > i.icon::before {
1021
- position: absolute;
1022
- content: '';
1023
- top: 50%;
1024
- left: 50%;
1025
-
1026
- margin: @loaderMargin;
1027
- width: @loaderSize;
1028
- height: @loaderSize;
1029
-
1030
- border-radius: @circularRadius;
1031
- border: @loaderLineWidth solid @loaderFillColor;
1032
- }
1033
- .ui.loading.dropdown > i.icon::after {
1034
- position: absolute;
1035
- content: '';
1036
- top: 50%;
1037
- left: 50%;
1038
- box-shadow: 0 0 0 1px transparent;
1002
+ .ui.loading.dropdown > i.icon {
1003
+ height: @relative14px !important;
1004
+ }
1005
+ .ui.loading.selection.dropdown > i.icon {
1006
+ padding: @relative21px @relative18px !important;
1007
+ }
1008
+ .ui.loading.dropdown > i.icon::before {
1009
+ position: absolute;
1010
+ content: '';
1011
+ top: 50%;
1012
+ left: 50%;
1039
1013
 
1040
- margin: @loaderMargin;
1041
- width: @loaderSize;
1042
- height: @loaderSize;
1014
+ margin: @loaderMargin;
1015
+ width: @loaderSize;
1016
+ height: @loaderSize;
1043
1017
 
1044
- animation: loader @loaderSpeed infinite linear;
1045
- border: @loaderLineWidth solid @loaderLineColor;
1046
- border-radius: @circularRadius;
1018
+ border-radius: @circularRadius;
1019
+ border: @loaderLineWidth solid @loaderFillColor;
1020
+ }
1021
+ .ui.loading.dropdown > i.icon::after {
1022
+ position: absolute;
1023
+ content: '';
1024
+ top: 50%;
1025
+ left: 50%;
1026
+ box-shadow: 0 0 0 1px transparent;
1047
1027
 
1048
- }
1028
+ margin: @loaderMargin;
1029
+ width: @loaderSize;
1030
+ height: @loaderSize;
1049
1031
 
1050
- /* Coupling */
1051
- .ui.loading.dropdown.button > i.icon::before,
1052
- .ui.loading.dropdown.button > i.icon::after {
1053
- display: none;
1054
- }
1032
+ animation: loader @loaderSpeed infinite linear;
1033
+ border: @loaderLineWidth solid @loaderLineColor;
1034
+ border-radius: @circularRadius;
1035
+ }
1055
1036
 
1056
- .ui.loading.dropdown > .text {
1057
- transition: none;
1058
- }
1037
+ /* Coupling */
1038
+ .ui.loading.dropdown.button > i.icon::before,
1039
+ .ui.loading.dropdown.button > i.icon::after {
1040
+ display: none;
1041
+ }
1059
1042
 
1060
- /* Used To Check Position */
1061
- .ui.dropdown .loading.menu {
1062
- display: block;
1063
- visibility: hidden;
1064
- z-index: @loadingZIndex;
1065
- }
1066
- .ui.dropdown > .loading.menu {
1067
- left: 0 !important;
1068
- right: auto !important;
1069
- }
1070
- .ui.dropdown > .menu .loading.menu {
1071
- left: 100% !important;
1072
- right: auto !important;
1073
- }
1043
+ .ui.loading.dropdown > .text {
1044
+ transition: none;
1045
+ }
1046
+
1047
+ /* Used To Check Position */
1048
+ .ui.dropdown .loading.menu {
1049
+ display: block;
1050
+ visibility: hidden;
1051
+ z-index: @loadingZIndex;
1052
+ }
1053
+ .ui.dropdown > .loading.menu {
1054
+ left: 0 !important;
1055
+ right: auto !important;
1056
+ }
1057
+ .ui.dropdown > .menu .loading.menu {
1058
+ left: 100% !important;
1059
+ right: auto !important;
1060
+ }
1074
1061
  }
1075
1062
 
1076
- /*--------------------
1063
+ /* --------------------
1077
1064
  Keyboard Select
1078
- ----------------------*/
1065
+ ---------------------- */
1079
1066
 
1080
1067
  /* Selected Item */
1081
1068
  .ui.dropdown.selected,
1082
1069
  .ui.dropdown .menu .selected.item {
1083
- background: @selectedBackground;
1084
- color: @selectedColor;
1070
+ background: @selectedBackground;
1071
+ color: @selectedColor;
1085
1072
  }
1086
1073
 
1087
-
1088
- /*--------------------
1074
+ /* --------------------
1089
1075
  Search Filtered
1090
- ----------------------*/
1076
+ ---------------------- */
1091
1077
 
1092
1078
  /* Filtered Item */
1093
1079
  .ui.dropdown > .filtered.text {
1094
- visibility: hidden;
1080
+ visibility: hidden;
1095
1081
  }
1096
1082
  .ui.dropdown .filtered.item {
1097
- display: none !important;
1083
+ display: none !important;
1098
1084
  }
1099
1085
 
1100
1086
  & when not (@variationDropdownStates = false) {
1101
- /*--------------------
1102
- States
1103
- ----------------------*/
1104
- each(@variationDropdownStates, {
1105
- @state: @value;
1106
- @c: @formStates[@@state][dropdownLabelColor];
1107
- @bdc: @formStates[@@state][borderColor];
1108
-
1109
- .ui.dropdown.@{state},
1110
- .ui.dropdown.@{state} > .text,
1111
- .ui.dropdown.@{state} > .default.text {
1112
- color: @c;
1113
- }
1114
- & when (@variationDropdownSelection) {
1115
- .ui.selection.dropdown.@{state} {
1116
- background: @formStates[@@state][background];
1117
- border-color: @bdc;
1118
- }
1119
-
1120
- .ui.selection.dropdown.@{state}:hover {
1121
- border-color: @bdc;
1122
- }
1123
-
1124
- & when (@variationDropdownMultiple) {
1125
- .ui.multiple.selection.@{state}.dropdown > .label {
1126
- border-color: @bdc;
1087
+ /* --------------------
1088
+ States
1089
+ ---------------------- */
1090
+ each(@variationDropdownStates, {
1091
+ @state: @value;
1092
+ @c: @formStates[@@state][dropdownLabelColor];
1093
+ @bdc: @formStates[@@state][borderColor];
1094
+
1095
+ .ui.dropdown.@{state},
1096
+ .ui.dropdown.@{state} > .text,
1097
+ .ui.dropdown.@{state} > .default.text {
1098
+ color: @c;
1099
+ }
1100
+ & when (@variationDropdownSelection) {
1101
+ .ui.selection.dropdown.@{state} {
1102
+ background: @formStates[@@state][background];
1103
+ border-color: @bdc;
1104
+ }
1105
+
1106
+ .ui.selection.dropdown.@{state}:hover {
1107
+ border-color: @bdc;
1108
+ }
1109
+
1110
+ & when (@variationDropdownMultiple) {
1111
+ .ui.multiple.selection.@{state}.dropdown > .label {
1112
+ border-color: @bdc;
1113
+ }
1114
+ }
1115
+ }
1116
+ .ui.dropdown.@{state} > .menu,
1117
+ .ui.dropdown.@{state} > .menu .menu {
1118
+ border-color: @bdc;
1119
+ }
1120
+ .ui.dropdown.@{state} > .menu > .item {
1121
+ color: @c;
1127
1122
  }
1128
- }
1129
- }
1130
- .ui.dropdown.@{state} > .menu,
1131
- .ui.dropdown.@{state} > .menu .menu {
1132
- border-color: @bdc;
1133
- }
1134
- .ui.dropdown.@{state} > .menu > .item {
1135
- color: @c;
1136
- }
1137
1123
 
1138
- /* Item Hover */
1139
- .ui.dropdown.@{state} > .menu > .item:hover {
1140
- background-color: @formStates[@@state][dropdownHoverBackground];
1141
- }
1124
+ /* Item Hover */
1125
+ .ui.dropdown.@{state} > .menu > .item:hover {
1126
+ background-color: @formStates[@@state][dropdownHoverBackground];
1127
+ }
1142
1128
 
1143
- /* Item Active */
1144
- .ui.dropdown.@{state} > .menu .active.item {
1145
- background-color: @formStates[@@state][dropdownActiveBackground];
1146
- }
1147
- })
1129
+ /* Item Active */
1130
+ .ui.dropdown.@{state} > .menu .active.item {
1131
+ background-color: @formStates[@@state][dropdownActiveBackground];
1132
+ }
1133
+ })
1148
1134
  }
1149
1135
 
1150
1136
  & when (@variationDropdownClear) {
1151
- /*--------------------
1152
- Clear
1153
- ----------------------*/
1154
- .ui.dropdown > .remove.icon,
1155
- .ui.dropdown > .clear.dropdown.icon {
1156
- opacity: @clearableIconOpacity;
1157
- transition: opacity @defaultDuration @defaultEasing;
1158
- }
1159
- .ui.dropdown > .remove.icon:hover,
1160
- .ui.dropdown > .clear.dropdown.icon:hover {
1161
- opacity: @clearableIconActiveOpacity;
1162
- }
1137
+ /* --------------------
1138
+ Clear
1139
+ ---------------------- */
1140
+ .ui.dropdown > .remove.icon,
1141
+ .ui.dropdown > .clear.dropdown.icon {
1142
+ opacity: @clearableIconOpacity;
1143
+ transition: opacity @defaultDuration @defaultEasing;
1144
+ }
1145
+ .ui.dropdown > .remove.icon:hover,
1146
+ .ui.dropdown > .clear.dropdown.icon:hover {
1147
+ opacity: @clearableIconActiveOpacity;
1148
+ }
1163
1149
  }
1164
1150
 
1165
1151
  & when (@variationDropdownDisabled) {
1166
- /*--------------------
1167
- Disabled
1168
- ----------------------*/
1152
+ /* --------------------
1153
+ Disabled
1154
+ ---------------------- */
1169
1155
 
1170
- /* Disabled */
1171
- .ui.disabled.dropdown,
1172
- .ui.dropdown .menu > .disabled.item {
1173
- cursor: default;
1174
- pointer-events: none;
1175
- opacity: @disabledOpacity;
1176
- }
1156
+ /* Disabled */
1157
+ .ui.disabled.dropdown,
1158
+ .ui.dropdown .menu > .disabled.item {
1159
+ cursor: default;
1160
+ pointer-events: none;
1161
+ opacity: @disabledOpacity;
1162
+ }
1177
1163
  }
1178
1164
 
1179
1165
  & when (@variationDropdownReadonly) {
1180
- /*--------------------
1181
- Read-Only
1182
- ----------------------*/
1166
+ /* --------------------
1167
+ Read-Only
1168
+ ---------------------- */
1183
1169
 
1184
- .ui.read-only.dropdown {
1185
- cursor: default;
1186
- pointer-events: none;
1187
- }
1170
+ .ui.read-only.dropdown {
1171
+ cursor: default;
1172
+ pointer-events: none;
1173
+ }
1188
1174
  }
1189
1175
 
1190
1176
  /*******************************
1191
1177
  Variations
1192
1178
  *******************************/
1193
1179
 
1194
- /*--------------
1180
+ /* --------------
1195
1181
  Direction
1196
- ---------------*/
1182
+ --------------- */
1197
1183
 
1198
1184
  /* Flyout Direction */
1199
1185
  .ui.dropdown .menu {
1200
- left: 0;
1186
+ left: 0;
1201
1187
  }
1202
1188
 
1203
-
1204
1189
  /* Default Side (Right) */
1205
1190
  .ui.dropdown .right.menu > .menu,
1206
1191
  .ui.dropdown .menu .right.menu {
1207
- left: 100% !important;
1208
- right: auto !important;
1209
- border-radius: @subMenuBorderRadius !important;
1192
+ left: 100% !important;
1193
+ right: auto !important;
1194
+ border-radius: @subMenuBorderRadius !important;
1210
1195
  }
1211
1196
  & when (@variationDropdownLeft) {
1212
- /* Leftward Opening Menu */
1213
- .ui.dropdown > .left.menu {
1214
- left: auto !important;
1215
- right: 0 !important;
1216
- }
1217
-
1218
- .ui.dropdown > .left.menu .menu,
1219
- .ui.dropdown .menu .left.menu {
1220
- left: auto;
1221
- right: 100%;
1222
- margin: @leftSubMenuMargin !important;
1223
- border-radius: @leftSubMenuBorderRadius !important;
1224
- }
1197
+ /* Leftward Opening Menu */
1198
+ .ui.dropdown > .left.menu {
1199
+ left: auto !important;
1200
+ right: 0 !important;
1201
+ }
1225
1202
 
1226
- .ui.dropdown .item .left.dropdown.icon,
1227
- .ui.dropdown .left.menu .item .dropdown.icon {
1228
- width: auto;
1229
- float: @leftMenuDropdownIconFloat;
1230
- margin: @leftMenuDropdownIconMargin;
1231
- }
1232
- .ui.dropdown .item .left.dropdown.icon,
1233
- .ui.dropdown .left.menu .item .dropdown.icon {
1234
- width: auto;
1235
- float: @leftMenuDropdownIconFloat;
1236
- margin: @leftMenuDropdownIconMargin;
1237
- }
1238
- .ui.dropdown .item .left.dropdown.icon + .text,
1239
- .ui.dropdown .left.menu .item .dropdown.icon + .text {
1240
- margin-left: @itemDropdownIconDistance;
1241
- margin-right: 0;
1242
- }
1203
+ .ui.dropdown > .left.menu .menu,
1204
+ .ui.dropdown .menu .left.menu {
1205
+ left: auto;
1206
+ right: 100%;
1207
+ margin: @leftSubMenuMargin !important;
1208
+ border-radius: @leftSubMenuBorderRadius !important;
1209
+ }
1210
+
1211
+ .ui.dropdown .item .left.dropdown.icon,
1212
+ .ui.dropdown .left.menu .item .dropdown.icon {
1213
+ width: auto;
1214
+ float: @leftMenuDropdownIconFloat;
1215
+ margin: @leftMenuDropdownIconMargin;
1216
+ }
1217
+ .ui.dropdown .item .left.dropdown.icon,
1218
+ .ui.dropdown .left.menu .item .dropdown.icon {
1219
+ width: auto;
1220
+ float: @leftMenuDropdownIconFloat;
1221
+ margin: @leftMenuDropdownIconMargin;
1222
+ }
1223
+ .ui.dropdown .item .left.dropdown.icon + .text,
1224
+ .ui.dropdown .left.menu .item .dropdown.icon + .text {
1225
+ margin-left: @itemDropdownIconDistance;
1226
+ margin-right: 0;
1227
+ }
1243
1228
  }
1244
1229
 
1245
1230
  & when (@variationDropdownUpward) {
1246
- /*--------------
1247
- Upward
1248
- ---------------*/
1231
+ /* --------------
1232
+ Upward
1233
+ --------------- */
1249
1234
 
1250
- /* Upward Main Menu */
1251
- .ui.upward.dropdown > .menu {
1252
- top: auto;
1253
- bottom: 100%;
1254
- box-shadow: @upwardMenuBoxShadow;
1255
- }
1256
-
1257
- /* Upward Sub Menu */
1258
- .ui.dropdown .upward.menu {
1259
- top: auto !important;
1260
- bottom: 0 !important;
1261
- }
1262
-
1263
- & when (@variationDropdownSimple) {
1264
- /* Active Upward */
1265
- .ui.simple.upward.active.dropdown,
1266
- .ui.simple.upward.dropdown:hover {
1267
- border-radius: 0 0 @borderRadius @borderRadius;
1235
+ /* Upward Main Menu */
1236
+ .ui.upward.dropdown > .menu {
1237
+ top: auto;
1238
+ bottom: 100%;
1239
+ box-shadow: @upwardMenuBoxShadow;
1268
1240
  }
1269
- }
1270
1241
 
1271
- & when (@variationDropdownButton) {
1272
- /* Button */
1273
- .ui.upward.dropdown.button:not(.pointing):not(.floating).active {
1274
- border-radius: 0 0 @borderRadius @borderRadius;
1275
- }
1276
- .ui.upward.dropdown.button:not(.pointing):not(.floating) > .menu {
1277
- border-radius: @borderRadius @borderRadius 0 0;
1242
+ /* Upward Sub Menu */
1243
+ .ui.dropdown .upward.menu {
1244
+ top: auto !important;
1245
+ bottom: 0 !important;
1278
1246
  }
1279
- }
1280
1247
 
1281
- & when (@variationDropdownSelection) {
1282
- /* Selection */
1283
- .ui.ui.upward.selection.dropdown .menu {
1284
- border-top-width: @menuBorderWidth !important;
1285
- border-bottom-width: 0 !important;
1286
- box-shadow: @upwardSelectionMenuBoxShadow;
1287
- border-radius: @upwardSelectionMenuBorderRadius;
1288
- }
1289
- .ui.upward.selection.dropdown:hover {
1290
- box-shadow: @upwardSelectionHoverBoxShadow;
1248
+ & when (@variationDropdownSimple) {
1249
+ /* Active Upward */
1250
+ .ui.simple.upward.active.dropdown,
1251
+ .ui.simple.upward.dropdown:hover {
1252
+ border-radius: 0 0 @borderRadius @borderRadius;
1253
+ }
1291
1254
  }
1292
1255
 
1293
- /* Active Upward */
1294
- .ui.active.upward.selection.dropdown {
1295
- border-radius: @upwardSelectionVisibleBorderRadius !important;
1256
+ & when (@variationDropdownButton) {
1257
+ /* Button */
1258
+ .ui.upward.dropdown.button:not(.pointing):not(.floating).active {
1259
+ border-radius: 0 0 @borderRadius @borderRadius;
1260
+ }
1261
+ .ui.upward.dropdown.button:not(.pointing):not(.floating) > .menu {
1262
+ border-radius: @borderRadius @borderRadius 0 0;
1263
+ }
1296
1264
  }
1297
1265
 
1298
- /* Visible Upward */
1299
- .ui.upward.selection.dropdown.visible {
1300
- box-shadow: @upwardSelectionVisibleBoxShadow;
1301
- border-radius: @upwardSelectionVisibleBorderRadius !important;
1302
- }
1266
+ & when (@variationDropdownSelection) {
1267
+ /* Selection */
1268
+ .ui.ui.upward.selection.dropdown .menu {
1269
+ border-top-width: @menuBorderWidth !important;
1270
+ border-bottom-width: 0 !important;
1271
+ box-shadow: @upwardSelectionMenuBoxShadow;
1272
+ border-radius: @upwardSelectionMenuBorderRadius;
1273
+ }
1274
+ .ui.upward.selection.dropdown:hover {
1275
+ box-shadow: @upwardSelectionHoverBoxShadow;
1276
+ }
1303
1277
 
1304
- /* Visible Hover Upward */
1305
- .ui.upward.active.selection.dropdown:hover {
1306
- box-shadow: @upwardSelectionActiveHoverBoxShadow;
1307
- }
1308
- .ui.upward.active.selection.dropdown:hover .menu {
1309
- box-shadow: @upwardSelectionActiveHoverMenuBoxShadow;
1278
+ /* Active Upward */
1279
+ .ui.active.upward.selection.dropdown {
1280
+ border-radius: @upwardSelectionVisibleBorderRadius !important;
1281
+ }
1282
+
1283
+ /* Visible Upward */
1284
+ .ui.upward.selection.dropdown.visible {
1285
+ box-shadow: @upwardSelectionVisibleBoxShadow;
1286
+ border-radius: @upwardSelectionVisibleBorderRadius !important;
1287
+ }
1288
+
1289
+ /* Visible Hover Upward */
1290
+ .ui.upward.active.selection.dropdown:hover {
1291
+ box-shadow: @upwardSelectionActiveHoverBoxShadow;
1292
+ }
1293
+ .ui.upward.active.selection.dropdown:hover .menu {
1294
+ box-shadow: @upwardSelectionActiveHoverMenuBoxShadow;
1295
+ }
1310
1296
  }
1311
- }
1312
1297
  }
1313
1298
 
1314
1299
  & when (@variationDropdownScrolling) {
1315
- /*--------------
1316
- Scrolling
1317
- ---------------*/
1318
-
1319
- /* Selection Menu */
1320
- .ui.scrolling.dropdown .menu,
1321
- .ui.dropdown .scrolling.menu {
1322
- overflow-x: hidden;
1323
- overflow-y: auto;
1324
- overscroll-behavior: @overscrollBehavior;
1325
- backface-visibility: hidden;
1326
- -webkit-overflow-scrolling: touch;
1327
- min-width: 100% !important;
1328
- width: auto !important;
1329
- }
1330
-
1331
- .ui.dropdown .scrolling.menu {
1332
- position: static;
1333
- border: none;
1334
- box-shadow: none !important;
1335
- border-radius: 0 0 @floatingMenuBorderRadius @floatingMenuBorderRadius !important;
1336
- margin: 0 !important;
1337
- border-top: @menuBorder;
1338
- }
1339
- .ui.scrolling.dropdown .menu .item.item.item,
1340
- .ui.dropdown .scrolling.menu > .item.item.item {
1341
- border-top: @scrollingMenuItemBorder;
1342
- }
1343
- .ui.scrolling.dropdown .menu .item:first-child,
1344
- .ui.dropdown .scrolling.menu .item:first-child {
1345
- border-top: none;
1346
- }
1347
- .ui.dropdown > .animating.menu .scrolling.menu,
1348
- .ui.dropdown > .visible.menu .scrolling.menu {
1349
- display: block;
1350
- }
1351
- & when (@supportIE) {
1352
- /* Scrollbar in IE */
1353
- @media all and (-ms-high-contrast: none) {
1354
- .ui.scrolling.dropdown .menu,
1355
- .ui.dropdown .scrolling.menu {
1356
- min-width: e(%("calc(100%% - %d)", @scrollbarWidth));
1357
- }
1358
- }
1359
- }
1360
- @media only screen and (max-width : @largestMobileScreen) {
1300
+ /* --------------
1301
+ Scrolling
1302
+ --------------- */
1303
+
1304
+ /* Selection Menu */
1361
1305
  .ui.scrolling.dropdown .menu,
1362
1306
  .ui.dropdown .scrolling.menu {
1363
- max-height: @scrollingMobileMaxMenuHeight;
1307
+ overflow-x: hidden;
1308
+ overflow-y: auto;
1309
+ overscroll-behavior: @overscrollBehavior;
1310
+ backface-visibility: hidden;
1311
+ -webkit-overflow-scrolling: touch;
1312
+ min-width: 100% !important;
1313
+ width: auto !important;
1364
1314
  }
1365
- }
1366
- @media only screen and (min-width: @tabletBreakpoint) {
1367
- .ui.scrolling.dropdown .menu,
1315
+
1368
1316
  .ui.dropdown .scrolling.menu {
1369
- max-height: @scrollingTabletMaxMenuHeight;
1317
+ position: static;
1318
+ border: none;
1319
+ box-shadow: none !important;
1320
+ border-radius: 0 0 @floatingMenuBorderRadius @floatingMenuBorderRadius !important;
1321
+ margin: 0 !important;
1322
+ border-top: @menuBorder;
1370
1323
  }
1371
- }
1372
- @media only screen and (min-width: @computerBreakpoint) {
1373
- .ui.scrolling.dropdown .menu,
1374
- .ui.dropdown .scrolling.menu {
1375
- max-height: @scrollingComputerMaxMenuHeight;
1324
+ .ui.scrolling.dropdown .menu .item.item.item,
1325
+ .ui.dropdown .scrolling.menu > .item.item.item {
1326
+ border-top: @scrollingMenuItemBorder;
1376
1327
  }
1377
- }
1378
- @media only screen and (min-width: @widescreenMonitorBreakpoint) {
1379
- .ui.scrolling.dropdown .menu,
1380
- .ui.dropdown .scrolling.menu {
1381
- max-height: @scrollingWidescreenMaxMenuHeight;
1328
+ .ui.scrolling.dropdown .menu .item:first-child,
1329
+ .ui.dropdown .scrolling.menu .item:first-child {
1330
+ border-top: none;
1331
+ }
1332
+ .ui.dropdown > .animating.menu .scrolling.menu,
1333
+ .ui.dropdown > .visible.menu .scrolling.menu {
1334
+ display: block;
1335
+ }
1336
+ & when (@supportIE) {
1337
+ /* Scrollbar in IE */
1338
+ @media all and (-ms-high-contrast: none) {
1339
+ .ui.scrolling.dropdown .menu,
1340
+ .ui.dropdown .scrolling.menu {
1341
+ min-width: e(%("calc(100%% - %d)", @scrollbarWidth));
1342
+ }
1343
+ }
1344
+ }
1345
+ @media only screen and (max-width: @largestMobileScreen) {
1346
+ .ui.scrolling.dropdown .menu,
1347
+ .ui.dropdown .scrolling.menu {
1348
+ max-height: @scrollingMobileMaxMenuHeight;
1349
+ }
1350
+ }
1351
+ @media only screen and (min-width: @tabletBreakpoint) {
1352
+ .ui.scrolling.dropdown .menu,
1353
+ .ui.dropdown .scrolling.menu {
1354
+ max-height: @scrollingTabletMaxMenuHeight;
1355
+ }
1356
+ }
1357
+ @media only screen and (min-width: @computerBreakpoint) {
1358
+ .ui.scrolling.dropdown .menu,
1359
+ .ui.dropdown .scrolling.menu {
1360
+ max-height: @scrollingComputerMaxMenuHeight;
1361
+ }
1362
+ }
1363
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
1364
+ .ui.scrolling.dropdown .menu,
1365
+ .ui.dropdown .scrolling.menu {
1366
+ max-height: @scrollingWidescreenMaxMenuHeight;
1367
+ }
1382
1368
  }
1383
- }
1384
1369
  }
1385
1370
 
1386
1371
  & when (@variationInputLabeled) {
1387
- /*--------------------
1388
- Labeled
1389
- ---------------------*/
1390
-
1391
- /* Regular Label on Left */
1392
- .ui.labeled.input:not([class*="corner labeled"]) .label:first-child + .dropdown {
1393
- border-top-left-radius: 0;
1394
- border-bottom-left-radius: 0;
1395
- border-left-color: transparent;
1396
- }
1397
-
1398
- /* Regular Label on Right */
1399
- .ui[class*="right labeled"].input > .dropdown:not(:last-child) {
1400
- border-top-right-radius: 0 !important;
1401
- border-bottom-right-radius: 0 !important;
1402
- border-right-color: transparent !important;
1403
- }
1404
- .ui[class*="right labeled"].input > .dropdown + .label {
1405
- border-top-left-radius: 0;
1406
- border-bottom-left-radius: 0;
1407
- }
1372
+ /* --------------------
1373
+ Labeled
1374
+ --------------------- */
1375
+
1376
+ /* Regular Label on Left */
1377
+ .ui.labeled.input:not([class*="corner labeled"]) .label:first-child + .dropdown {
1378
+ border-top-left-radius: 0;
1379
+ border-bottom-left-radius: 0;
1380
+ border-left-color: transparent;
1381
+ }
1382
+
1383
+ /* Regular Label on Right */
1384
+ .ui[class*="right labeled"].input > .dropdown:not(:last-child) {
1385
+ border-top-right-radius: 0 !important;
1386
+ border-bottom-right-radius: 0 !important;
1387
+ border-right-color: transparent !important;
1388
+ }
1389
+ .ui[class*="right labeled"].input > .dropdown + .label {
1390
+ border-top-left-radius: 0;
1391
+ border-bottom-left-radius: 0;
1392
+ }
1408
1393
  }
1409
1394
 
1410
1395
  & when (@variationDropdownColumnar) {
1411
- /*--------------
1412
- Columnar
1413
- ---------------*/
1414
- .ui.column.dropdown > .menu {
1415
- flex-wrap: wrap;
1416
- }
1417
- .ui.dropdown[class*="two column"] > .menu > .item {
1418
- width: 50%;
1419
- }
1420
- .ui.dropdown[class*="three column"] > .menu > .item {
1421
- width: 33%;
1422
- }
1423
- .ui.dropdown[class*="four column"] > .menu > .item {
1424
- width: 25%;
1425
- }
1426
- .ui.dropdown[class*="five column"] > .menu > .item {
1427
- width: 20%;
1428
- }
1396
+ /* --------------
1397
+ Columnar
1398
+ --------------- */
1399
+ .ui.column.dropdown > .menu {
1400
+ flex-wrap: wrap;
1401
+ }
1402
+ .ui.dropdown[class*="two column"] > .menu > .item {
1403
+ width: 50%;
1404
+ }
1405
+ .ui.dropdown[class*="three column"] > .menu > .item {
1406
+ width: 33%;
1407
+ }
1408
+ .ui.dropdown[class*="four column"] > .menu > .item {
1409
+ width: 25%;
1410
+ }
1411
+ .ui.dropdown[class*="five column"] > .menu > .item {
1412
+ width: 20%;
1413
+ }
1429
1414
  }
1430
1415
 
1431
1416
  & when (@variationDropdownSimple) {
1432
- /*--------------
1433
- Simple
1434
- ---------------*/
1417
+ /* --------------
1418
+ Simple
1419
+ --------------- */
1435
1420
 
1436
- /* Displays without javascript */
1421
+ /* Displays without javascript */
1437
1422
 
1438
- .ui.simple.dropdown .menu::before,
1439
- .ui.simple.dropdown .menu::after {
1440
- display: none;
1441
- }
1442
- .ui.simple.dropdown .menu {
1443
- position: absolute;
1444
- & when (@supportIE) {
1445
- /* IE hack to make dropdown icons appear inline */
1446
- display: -ms-inline-flexbox !important;
1423
+ .ui.simple.dropdown .menu::before,
1424
+ .ui.simple.dropdown .menu::after {
1425
+ display: none;
1447
1426
  }
1448
- display: block;
1449
- overflow: hidden;
1450
- top: -9999px;
1451
- opacity: 0;
1452
- width: 0;
1453
- height: 0;
1454
- transition: @simpleTransition;
1455
- margin-top: 0 !important;
1456
- }
1457
- & when (@variationDropdownUpward) {
1458
- .ui.simple.dropdown .upward.menu {
1459
- margin-bottom: @simpleUpwardMenuMargin;
1460
- }
1461
- .ui.simple.selection.dropdown .upward.menu {
1462
- margin-bottom: @simpleUpwardSelectionMenuMargin;
1463
- }
1464
- .ui.menu:not(.vertical) .ui.simple.dropdown.item .upward.menu {
1465
- margin-bottom: @simpleUpwardItemMenuMargin;
1466
- }
1467
- }
1468
-
1469
- .ui.simple.active.dropdown,
1470
- .ui.simple.dropdown:hover {
1471
- border-bottom-left-radius: 0;
1472
- border-bottom-right-radius: 0;
1473
- }
1474
-
1475
- .ui.simple.active.dropdown > .menu,
1476
- .ui.simple.dropdown:hover > .menu {
1477
- overflow: visible;
1478
- width: auto;
1479
- height: auto;
1480
- top: 100%;
1481
- opacity: 1;
1482
- }
1483
- .ui.simple.dropdown > .menu > .item:active > .menu,
1484
- .ui.simple.dropdown .menu .item:hover > .menu {
1485
- overflow: visible;
1486
- width: auto;
1487
- height: auto;
1488
- top: 0 !important;
1489
- left: 100%;
1490
- opacity: 1;
1491
- }
1492
- & when (@variationDropdownSelection) {
1493
- .ui.simple.selection.active.dropdown > .menu,
1494
- .ui.simple.selection.dropdown:hover > .menu,
1495
- .ui.simple.selection.dropdown > .menu > .item:active > .menu,
1496
- .ui.simple.selection.dropdown .menu .item:hover > .menu {
1497
- overflow: auto;
1498
- overscroll-behavior: @overscrollBehavior;
1499
- }
1500
- }
1501
- .ui.simple.dropdown > .menu > .item:active > .left.menu,
1502
- .ui.simple.dropdown .menu .item:hover > .left.menu,
1503
- .right.menu .ui.simple.dropdown > .menu > .item:active > .menu:not(.right),
1504
- .right.menu .ui.simple.dropdown > .menu .item:hover > .menu:not(.right) {
1505
- left: auto;
1506
- right: 100%;
1507
- }
1508
- & when (@variationDropdownDisabled) {
1509
- .ui.simple.disabled.dropdown:hover .menu {
1510
- display: none;
1511
- height: 0;
1512
- width: 0;
1513
- overflow: hidden;
1514
- }
1515
- }
1516
-
1517
- /* Visible */
1518
- .ui.simple.visible.dropdown > .menu {
1519
- display: block;
1520
- }
1521
- & when (@variationDropdownScrolling) {
1522
- /* Scrolling */
1523
- .ui.simple.scrolling.active.dropdown > .menu,
1524
- .ui.simple.scrolling.dropdown:hover > .menu {
1525
- overflow-x: hidden;
1526
- overflow-y: auto;
1527
- overscroll-behavior: @overscrollBehavior;
1427
+ .ui.simple.dropdown .menu {
1428
+ position: absolute;
1429
+ & when (@supportIE) {
1430
+ /* IE hack to make dropdown icons appear inline */
1431
+ display: -ms-inline-flexbox !important;
1432
+ }
1433
+ display: block;
1434
+ overflow: hidden;
1435
+ top: -9999px;
1436
+ opacity: 0;
1437
+ width: 0;
1438
+ height: 0;
1439
+ transition: @simpleTransition;
1440
+ margin-top: 0 !important;
1441
+ }
1442
+ & when (@variationDropdownUpward) {
1443
+ .ui.simple.dropdown .upward.menu {
1444
+ margin-bottom: @simpleUpwardMenuMargin;
1445
+ }
1446
+ .ui.simple.selection.dropdown .upward.menu {
1447
+ margin-bottom: @simpleUpwardSelectionMenuMargin;
1448
+ }
1449
+ .ui.menu:not(.vertical) .ui.simple.dropdown.item .upward.menu {
1450
+ margin-bottom: @simpleUpwardItemMenuMargin;
1451
+ }
1452
+ }
1453
+
1454
+ .ui.simple.active.dropdown,
1455
+ .ui.simple.dropdown:hover {
1456
+ border-bottom-left-radius: 0;
1457
+ border-bottom-right-radius: 0;
1458
+ }
1459
+
1460
+ .ui.simple.active.dropdown > .menu,
1461
+ .ui.simple.dropdown:hover > .menu {
1462
+ overflow: visible;
1463
+ width: auto;
1464
+ height: auto;
1465
+ top: 100%;
1466
+ opacity: 1;
1467
+ }
1468
+ .ui.simple.dropdown > .menu > .item:active > .menu,
1469
+ .ui.simple.dropdown .menu .item:hover > .menu {
1470
+ overflow: visible;
1471
+ width: auto;
1472
+ height: auto;
1473
+ top: 0 !important;
1474
+ left: 100%;
1475
+ opacity: 1;
1476
+ }
1477
+ & when (@variationDropdownSelection) {
1478
+ .ui.simple.selection.active.dropdown > .menu,
1479
+ .ui.simple.selection.dropdown:hover > .menu,
1480
+ .ui.simple.selection.dropdown > .menu > .item:active > .menu,
1481
+ .ui.simple.selection.dropdown .menu .item:hover > .menu {
1482
+ overflow: auto;
1483
+ overscroll-behavior: @overscrollBehavior;
1484
+ }
1485
+ }
1486
+ .ui.simple.dropdown > .menu > .item:active > .left.menu,
1487
+ .ui.simple.dropdown .menu .item:hover > .left.menu,
1488
+ .right.menu .ui.simple.dropdown > .menu > .item:active > .menu:not(.right),
1489
+ .right.menu .ui.simple.dropdown > .menu .item:hover > .menu:not(.right) {
1490
+ left: auto;
1491
+ right: 100%;
1492
+ }
1493
+ & when (@variationDropdownDisabled) {
1494
+ .ui.simple.disabled.dropdown:hover .menu {
1495
+ display: none;
1496
+ height: 0;
1497
+ width: 0;
1498
+ overflow: hidden;
1499
+ }
1500
+ }
1501
+
1502
+ /* Visible */
1503
+ .ui.simple.visible.dropdown > .menu {
1504
+ display: block;
1505
+ }
1506
+ & when (@variationDropdownScrolling) {
1507
+ /* Scrolling */
1508
+ .ui.simple.scrolling.active.dropdown > .menu,
1509
+ .ui.simple.scrolling.dropdown:hover > .menu {
1510
+ overflow-x: hidden;
1511
+ overflow-y: auto;
1512
+ overscroll-behavior: @overscrollBehavior;
1513
+ }
1528
1514
  }
1529
- }
1530
1515
  }
1531
1516
 
1532
1517
  & when (@variationDropdownFluid) {
1533
- /*--------------
1534
- Fluid
1535
- ---------------*/
1518
+ /* --------------
1519
+ Fluid
1520
+ --------------- */
1536
1521
 
1537
- .ui.fluid.dropdown {
1538
- display: block;
1539
- width: 100% !important;
1540
- min-width: 0;
1541
- }
1542
- .ui.fluid.dropdown > .dropdown.icon {
1543
- float: right;
1544
- }
1522
+ .ui.fluid.dropdown {
1523
+ display: block;
1524
+ width: 100% !important;
1525
+ min-width: 0;
1526
+ }
1527
+ .ui.fluid.dropdown > .dropdown.icon {
1528
+ float: right;
1529
+ }
1545
1530
  }
1546
1531
 
1547
1532
  & when (@variationDropdownFloating) {
1548
- /*--------------
1549
- Floating
1550
- ---------------*/
1533
+ /* --------------
1534
+ Floating
1535
+ --------------- */
1551
1536
 
1552
- .ui.floating.dropdown > .menu {
1553
- left: 0;
1554
- right: auto;
1555
- box-shadow: @floatingMenuBoxShadow !important;
1556
- border-radius: @floatingMenuBorderRadius !important;
1557
- }
1558
- .ui:not(.upward).floating.dropdown > .menu {
1559
- margin-top: @floatingMenuDistance;
1560
- }
1561
- .ui.upward.floating.dropdown:not(.simple) > .menu {
1562
- margin-bottom: @floatingMenuDistance;
1563
- }
1537
+ .ui.floating.dropdown > .menu {
1538
+ left: 0;
1539
+ right: auto;
1540
+ box-shadow: @floatingMenuBoxShadow !important;
1541
+ border-radius: @floatingMenuBorderRadius !important;
1542
+ }
1543
+ .ui:not(.upward).floating.dropdown > .menu {
1544
+ margin-top: @floatingMenuDistance;
1545
+ }
1546
+ .ui.upward.floating.dropdown:not(.simple) > .menu {
1547
+ margin-bottom: @floatingMenuDistance;
1548
+ }
1564
1549
  }
1565
1550
 
1566
1551
  & when (@variationDropdownPointing) {
1567
- /*--------------
1568
- Pointing
1569
- ---------------*/
1570
-
1571
- .ui.pointing.dropdown > .menu {
1572
- top: 100%;
1573
- margin-top: @pointingMenuDistance;
1574
- border-radius: @pointingMenuBorderRadius;
1575
- }
1576
-
1577
- .ui.pointing.dropdown > .menu:not(.hidden)::after {
1578
- display: block;
1579
- position: absolute;
1580
- pointer-events: none;
1581
- content: '';
1582
- visibility: visible;
1583
- transform: rotate(45deg);
1584
-
1585
- width: @pointingArrowSize;
1586
- height: @pointingArrowSize;
1587
- box-shadow: @pointingArrowBoxShadow;
1588
- background: @pointingArrowBackground;
1589
- z-index: @pointingArrowZIndex;
1590
- }
1591
-
1592
- .ui.pointing.dropdown > .menu:not(.hidden)::after {
1593
- top: @pointingArrowOffset;
1594
- left: 50%;
1595
- margin: 0 0 0 @pointingArrowOffset;
1596
- }
1597
-
1598
- /* Top Left Pointing */
1599
- .ui.top.left.pointing.dropdown > .menu {
1600
- top: 100%;
1601
- bottom: auto;
1602
- left: 0;
1603
- right: auto;
1604
- margin: @pointingArrowDistanceFromEdge 0 0;
1605
- }
1606
- .ui.top.left.pointing.dropdown > .menu {
1607
- top: 100%;
1608
- bottom: auto;
1609
- left: 0;
1610
- right: auto;
1611
- margin: @pointingArrowDistanceFromEdge 0 0;
1612
- }
1613
- .ui.top.left.pointing.dropdown > .menu::after {
1614
- top: @pointingArrowOffset;
1615
- left: @pointingArrowDistanceFromEdge;
1616
- right: auto;
1617
- margin: 0;
1618
- transform: rotate(45deg);
1619
- }
1620
- /* Top Right Pointing */
1621
- .ui.top.right.pointing.dropdown > .menu {
1622
- top: 100%;
1623
- bottom: auto;
1624
- right: 0;
1625
- left: auto;
1626
- margin: @pointingArrowDistanceFromEdge 0 0;
1627
- }
1628
- .ui.top.pointing.dropdown > .left.menu::after,
1629
- .ui.top.right.pointing.dropdown > .menu::after {
1630
- top: @pointingArrowOffset;
1631
- left: auto !important;
1632
- right: @pointingArrowDistanceFromEdge !important;
1633
- margin: 0;
1634
- transform: rotate(45deg);
1635
- }
1636
-
1637
- /* Left Pointing */
1638
- .ui.left.pointing.dropdown > .menu {
1639
- top: 0;
1640
- left: 100%;
1641
- right: auto;
1642
- margin: 0 0 0 @pointingArrowDistanceFromEdge;
1643
- }
1644
- .ui.left.pointing.dropdown > .menu::after {
1645
- top: 1em;
1646
- left: @pointingArrowOffset;
1647
- margin: 0 0 0 0;
1648
- transform: rotate(-45deg);
1649
- }
1650
- .ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu {
1651
- left: auto !important;
1652
- right: 100% !important;
1653
- margin: 0 @pointingArrowDistanceFromEdge 0 0;
1654
- }
1655
- .ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu::after {
1656
- top: 1em;
1657
- left: auto;
1658
- right: @pointingArrowOffset;
1659
- margin: 0 0 0 0;
1660
- transform: rotate(135deg);
1661
- }
1662
-
1552
+ /* --------------
1553
+ Pointing
1554
+ --------------- */
1555
+
1556
+ .ui.pointing.dropdown > .menu {
1557
+ top: 100%;
1558
+ margin-top: @pointingMenuDistance;
1559
+ border-radius: @pointingMenuBorderRadius;
1560
+ }
1561
+
1562
+ .ui.pointing.dropdown > .menu:not(.hidden)::after {
1563
+ display: block;
1564
+ position: absolute;
1565
+ pointer-events: none;
1566
+ content: '';
1567
+ visibility: visible;
1568
+ transform: rotate(45deg);
1569
+
1570
+ width: @pointingArrowSize;
1571
+ height: @pointingArrowSize;
1572
+ box-shadow: @pointingArrowBoxShadow;
1573
+ background: @pointingArrowBackground;
1574
+ z-index: @pointingArrowZIndex;
1575
+ }
1576
+
1577
+ .ui.pointing.dropdown > .menu:not(.hidden)::after {
1578
+ top: @pointingArrowOffset;
1579
+ left: 50%;
1580
+ margin: 0 0 0 @pointingArrowOffset;
1581
+ }
1582
+
1583
+ /* Top Left Pointing */
1584
+ .ui.top.left.pointing.dropdown > .menu {
1585
+ top: 100%;
1586
+ bottom: auto;
1587
+ left: 0;
1588
+ right: auto;
1589
+ margin: @pointingArrowDistanceFromEdge 0 0;
1590
+ }
1591
+ .ui.top.left.pointing.dropdown > .menu {
1592
+ top: 100%;
1593
+ bottom: auto;
1594
+ left: 0;
1595
+ right: auto;
1596
+ margin: @pointingArrowDistanceFromEdge 0 0;
1597
+ }
1598
+ .ui.top.left.pointing.dropdown > .menu::after {
1599
+ top: @pointingArrowOffset;
1600
+ left: @pointingArrowDistanceFromEdge;
1601
+ right: auto;
1602
+ margin: 0;
1603
+ transform: rotate(45deg);
1604
+ }
1605
+
1606
+ /* Top Right Pointing */
1607
+ .ui.top.right.pointing.dropdown > .menu {
1608
+ top: 100%;
1609
+ bottom: auto;
1610
+ right: 0;
1611
+ left: auto;
1612
+ margin: @pointingArrowDistanceFromEdge 0 0;
1613
+ }
1614
+ .ui.top.pointing.dropdown > .left.menu::after,
1615
+ .ui.top.right.pointing.dropdown > .menu::after {
1616
+ top: @pointingArrowOffset;
1617
+ left: auto !important;
1618
+ right: @pointingArrowDistanceFromEdge !important;
1619
+ margin: 0;
1620
+ transform: rotate(45deg);
1621
+ }
1622
+
1623
+ /* Left Pointing */
1624
+ .ui.left.pointing.dropdown > .menu {
1625
+ top: 0;
1626
+ left: 100%;
1627
+ right: auto;
1628
+ margin: 0 0 0 @pointingArrowDistanceFromEdge;
1629
+ }
1630
+ .ui.left.pointing.dropdown > .menu::after {
1631
+ top: 1em;
1632
+ left: @pointingArrowOffset;
1633
+ margin: 0 0 0 0;
1634
+ transform: rotate(-45deg);
1635
+ }
1636
+ .ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu {
1637
+ left: auto !important;
1638
+ right: 100% !important;
1639
+ margin: 0 @pointingArrowDistanceFromEdge 0 0;
1640
+ }
1641
+ .ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu::after {
1642
+ top: 1em;
1643
+ left: auto;
1644
+ right: @pointingArrowOffset;
1645
+ margin: 0 0 0 0;
1646
+ transform: rotate(135deg);
1647
+ }
1648
+
1649
+ /* Right Pointing */
1650
+ .ui.right.pointing.dropdown > .menu {
1651
+ top: 0;
1652
+ left: auto;
1653
+ right: 100%;
1654
+ margin: 0 @pointingArrowDistanceFromEdge 0 0;
1655
+ }
1656
+ .ui.right.pointing.dropdown > .menu::after {
1657
+ top: 1em;
1658
+ left: auto;
1659
+ right: @pointingArrowOffset;
1660
+ margin: 0 0 0 0;
1661
+ transform: rotate(135deg);
1662
+ }
1663
+
1664
+ /* Bottom Pointing */
1665
+ .ui.bottom.pointing.dropdown > .menu {
1666
+ top: auto;
1667
+ bottom: 100%;
1668
+ left: 0;
1669
+ right: auto;
1670
+ margin: 0 0 @pointingArrowDistanceFromEdge;
1671
+ }
1672
+ .ui.bottom.pointing.dropdown > .menu::after {
1673
+ top: auto;
1674
+ bottom: @pointingArrowOffset;
1675
+ right: auto;
1676
+ margin: 0;
1677
+ transform: rotate(-135deg);
1678
+ }
1679
+
1680
+ /* Reverse Sub-Menu Direction */
1681
+ .ui.bottom.pointing.dropdown > .menu .menu {
1682
+ top: auto !important;
1683
+ bottom: 0 !important;
1684
+ }
1685
+
1686
+ /* Bottom Left */
1687
+ .ui.bottom.left.pointing.dropdown > .menu {
1688
+ left: 0;
1689
+ right: auto;
1690
+ }
1691
+ .ui.bottom.left.pointing.dropdown > .menu::after {
1692
+ left: @pointingArrowDistanceFromEdge;
1693
+ right: auto;
1694
+ }
1695
+
1696
+ /* Bottom Right */
1697
+ .ui.bottom.right.pointing.dropdown > .menu {
1698
+ right: 0;
1699
+ left: auto;
1700
+ }
1701
+ .ui.bottom.right.pointing.dropdown > .menu::after {
1702
+ left: auto;
1703
+ right: @pointingArrowDistanceFromEdge;
1704
+ }
1705
+
1706
+ /* Upward pointing */
1707
+ .ui.pointing.upward.dropdown .menu,
1708
+ .ui.top.pointing.upward.dropdown .menu {
1709
+ top: auto !important;
1710
+ bottom: 100% !important;
1711
+ margin: 0 0 @pointingMenuDistance;
1712
+ border-radius: @pointingUpwardMenuBorderRadius;
1713
+ }
1714
+ .ui.pointing.upward.dropdown .menu::after,
1715
+ .ui.top.pointing.upward.dropdown .menu::after {
1716
+ top: 100% !important;
1717
+ bottom: auto !important;
1718
+ box-shadow: @pointingUpwardArrowBoxShadow;
1719
+ margin: @pointingArrowOffset 0 0;
1720
+ }
1721
+
1722
+ /* Right Pointing Upward */
1723
+ .ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
1724
+ top: auto !important;
1725
+ bottom: 0 !important;
1726
+ margin: 0 @pointingArrowDistanceFromEdge 0 0;
1727
+ }
1728
+ .ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu::after {
1729
+ top: auto !important;
1730
+ bottom: 0 !important;
1731
+ margin: 0 0 @pointingArrowDistanceFromEdge 0;
1732
+ box-shadow: @pointingArrowBoxShadow;
1733
+ }
1734
+
1735
+ /* Left Pointing Upward */
1736
+ .ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
1737
+ top: auto !important;
1738
+ bottom: 0 !important;
1739
+ margin: 0 0 0 @pointingArrowDistanceFromEdge;
1740
+ }
1741
+ .ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu::after {
1742
+ top: auto !important;
1743
+ bottom: 0 !important;
1744
+ margin: 0 0 @pointingArrowDistanceFromEdge 0;
1745
+ box-shadow: @pointingArrowBoxShadow;
1746
+ }
1747
+ }
1663
1748
 
1664
- /* Right Pointing */
1665
- .ui.right.pointing.dropdown > .menu {
1666
- top: 0;
1667
- left: auto;
1668
- right: 100%;
1669
- margin: 0 @pointingArrowDistanceFromEdge 0 0;
1670
- }
1671
- .ui.right.pointing.dropdown > .menu::after {
1672
- top: 1em;
1673
- left: auto;
1674
- right: @pointingArrowOffset;
1675
- margin: 0 0 0 0;
1676
- transform: rotate(135deg);
1677
- }
1678
-
1679
- /* Bottom Pointing */
1680
- .ui.bottom.pointing.dropdown > .menu {
1681
- top: auto;
1682
- bottom: 100%;
1683
- left: 0;
1684
- right: auto;
1685
- margin: 0 0 @pointingArrowDistanceFromEdge ;
1686
- }
1687
- .ui.bottom.pointing.dropdown > .menu::after {
1688
- top: auto;
1689
- bottom: @pointingArrowOffset;
1690
- right: auto;
1691
- margin: 0;
1692
- transform: rotate(-135deg);
1693
- }
1694
- /* Reverse Sub-Menu Direction */
1695
- .ui.bottom.pointing.dropdown > .menu .menu {
1696
- top: auto !important;
1697
- bottom: 0 !important;
1698
- }
1699
-
1700
- /* Bottom Left */
1701
- .ui.bottom.left.pointing.dropdown > .menu {
1702
- left: 0;
1703
- right: auto;
1704
- }
1705
- .ui.bottom.left.pointing.dropdown > .menu::after {
1706
- left: @pointingArrowDistanceFromEdge;
1707
- right: auto;
1708
- }
1709
-
1710
- /* Bottom Right */
1711
- .ui.bottom.right.pointing.dropdown > .menu {
1712
- right: 0;
1713
- left: auto;
1714
- }
1715
- .ui.bottom.right.pointing.dropdown > .menu::after {
1716
- left: auto;
1717
- right: @pointingArrowDistanceFromEdge;
1718
- }
1719
-
1720
- /* Upward pointing */
1721
- .ui.pointing.upward.dropdown .menu,
1722
- .ui.top.pointing.upward.dropdown .menu {
1723
- top: auto !important;
1724
- bottom: 100% !important;
1725
- margin: 0 0 @pointingMenuDistance;
1726
- border-radius: @pointingUpwardMenuBorderRadius;
1727
- }
1728
- .ui.pointing.upward.dropdown .menu::after,
1729
- .ui.top.pointing.upward.dropdown .menu::after {
1730
- top: 100% !important;
1731
- bottom: auto !important;
1732
- box-shadow: @pointingUpwardArrowBoxShadow;
1733
- margin: @pointingArrowOffset 0 0;
1734
- }
1735
-
1736
- /* Right Pointing Upward */
1737
- .ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
1738
- top: auto !important;
1739
- bottom: 0 !important;
1740
- margin: 0 @pointingArrowDistanceFromEdge 0 0;
1741
- }
1742
- .ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu::after {
1743
- top: auto !important;
1744
- bottom: 0 !important;
1745
- margin: 0 0 @pointingArrowDistanceFromEdge 0;
1746
- box-shadow: @pointingArrowBoxShadow;
1747
- }
1748
-
1749
-
1750
- /* Left Pointing Upward */
1751
- .ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
1752
- top: auto !important;
1753
- bottom: 0 !important;
1754
- margin: 0 0 0 @pointingArrowDistanceFromEdge;
1755
- }
1756
- .ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu::after {
1757
- top: auto !important;
1758
- bottom: 0 !important;
1759
- margin: 0 0 @pointingArrowDistanceFromEdge 0;
1760
- box-shadow: @pointingArrowBoxShadow;
1761
- }
1762
- }
1763
-
1764
- /*--------------------
1749
+ /* --------------------
1765
1750
  Sizes
1766
- ---------------------*/
1751
+ --------------------- */
1767
1752
 
1768
1753
  .ui.dropdown,
1769
1754
  .ui.dropdown .menu > .item {
1770
- font-size: @medium;
1755
+ font-size: @medium;
1771
1756
  }
1772
1757
  & when not (@variationDropdownSizes = false) {
1773
- each(@variationDropdownSizes, {
1774
- @s: @@value;
1775
- .ui.@{value}.dropdown,
1776
- .ui.@{value}.dropdown .menu > .item {
1777
- font-size: @s;
1778
- }
1779
- })
1758
+ each(@variationDropdownSizes, {
1759
+ @s: @@value;
1760
+ .ui.@{value}.dropdown,
1761
+ .ui.@{value}.dropdown .menu > .item {
1762
+ font-size: @s;
1763
+ }
1764
+ })
1780
1765
  }
1781
1766
 
1782
1767
  & when (@variationDropdownInverted) {
1783
- /*--------------
1784
- Inverted
1785
- ---------------*/
1786
-
1787
- /* General rules and basic dropdowns */
1788
- .ui.dropdown .inverted.menu,
1789
- .ui.inverted.dropdown .menu {
1790
- background: @invertedMenuBackground;
1791
- box-shadow: @invertedMenuBoxShadow;
1792
- border: @invertedMenuBorder;
1793
- }
1794
-
1795
- .ui.dropdown .inverted.menu > .item,
1796
- .ui.inverted.dropdown .menu > .item {
1797
- color: @invertedMenuColor;
1798
- }
1799
-
1800
- .ui.dropdown .inverted.menu .active.item,
1801
- .ui.inverted.dropdown .menu .active.item {
1802
- background: @invertedActiveItemBackground;
1803
- color: @invertedActiveItemColor;
1804
- box-shadow: @invertedActiveItemBoxShadow;
1805
- }
1806
-
1807
- .ui.dropdown .inverted.menu > .item:hover,
1808
- .ui.inverted.dropdown .menu > .item:hover {
1809
- background: @invertedHoveredItemBackground;
1810
- color: @invertedHoveredItemColor;
1811
- }
1812
-
1813
- .ui.inverted.dropdown.selected,
1814
- .ui.dropdown .inverted.menu .selected.item,
1815
- .ui.inverted.dropdown .menu .selected.item {
1816
- background: @invertedSelectedBackground;
1817
- color: @invertedSelectedColor;
1818
- }
1819
-
1820
- .ui.dropdown .inverted.menu > .header,
1821
- .ui.inverted.dropdown .menu > .header {
1822
- color: @invertedMenuHeaderColor;
1823
- }
1824
-
1825
- .ui.inverted.dropdown > .text > .description,
1826
- .ui.dropdown .inverted.menu > .item > .description,
1827
- .ui.inverted.dropdown .menu > .item > .description {
1828
- color: @invertedItemDescriptionColor;
1829
- }
1830
-
1831
- .ui.dropdown .inverted.menu > .divider,
1832
- .ui.inverted.dropdown .menu > .divider {
1833
- border-top: @invertedMenuDividerBorder;
1834
- }
1835
-
1836
- .ui.dropdown .inverted.scrolling.menu,
1837
- .ui.inverted.dropdown .scrolling.menu {
1838
- border: none;
1839
- border-top: @invertedMenuBorder;
1840
- }
1841
-
1842
- & when (@variationDropdownSelection) {
1843
- /* Selection */
1844
- .ui.inverted.selection.dropdown {
1845
- border: @invertedSelectionBorder;
1846
- background: @invertedSelectionBackground;
1847
- color: @invertedSelectionTextColor;
1848
- }
1849
-
1850
- .ui.inverted.selection.dropdown:hover {
1851
- border-color: @invertedSelectionHoverBorderColor;
1852
- box-shadow: @invertedSelectionHoverBoxShadow;
1853
- }
1854
-
1855
- .ui.inverted.selection.dropdown input {
1856
- color: @invertedSelectionInputTextColor;
1857
- }
1858
-
1859
- .ui.inverted.selection.visible.dropdown > .text:not(.default) {
1860
- color: @invertedSelectionVisibleTextColor;
1861
- }
1862
-
1863
- .ui.selection.simple.dropdown:hover .inverted.menu,
1864
- .ui.inverted.selection.simple.dropdown:hover .menu,
1865
- .ui.selection.active.dropdown .inverted.menu,
1866
- .ui.inverted.selection.active.dropdown .menu,
1867
- .ui.inverted.selection.active.dropdown:hover {
1868
- border-color: @invertedSelectionVisibleBorderColor;
1869
- }
1870
-
1871
- .ui.selection.dropdown .inverted.menu > .item,
1872
- .ui.inverted.selection.dropdown .menu > .item {
1873
- border-top: @invertedSelectionItemDivider;
1874
- }
1875
- }
1876
-
1877
- .ui.inverted.dropdown:not(.button) > .default.text,
1878
- .ui.inverted.default.dropdown:not(.button) > .text {
1879
- color: @invertedDefaultTextColor;
1880
- }
1881
- .ui.inverted.dropdown:not(.button) > input:focus ~ .default.text,
1882
- .ui.inverted.default.dropdown:not(.button) > input:focus ~ .text {
1883
- color: @invertedDefaultTextFocusColor;
1884
- }
1885
-
1886
- .ui.inverted.active.search.dropdown input.search:focus + .text i.icon,
1887
- .ui.inverted.active.search.dropdown input.search:focus + .text .flag {
1888
- opacity: @invertedSelectionTextUnderlayIconOpacity;
1889
- }
1890
- .ui.inverted.active.search.dropdown input.search:focus + .text {
1891
- color: @invertedSelectionTextUnderlayColor !important;
1892
- }
1893
-
1894
- .ui.dropdown .inverted.menu > .message:not(.ui),
1895
- .ui.inverted.dropdown .menu > .message:not(.ui) {
1896
- color: @invertedMessageColor;
1897
- }
1898
-
1899
- /* Fixing the border */
1900
- .ui.dropdown .inverted.menu > .item:first-child,
1901
- .ui.inverted.dropdown .menu > .item:first-child {
1902
- border-top-width: 0;
1903
- }
1904
-
1905
- & when (@variationDropdownMultiple) {
1906
- /* Labels */
1907
- .ui.inverted.multiple.dropdown > .label {
1908
- background-color: @invertedLabelBackgroundColor;
1909
- background-image: @invertedLabelBackgroundImage;
1910
- color: @invertedLabelColor;
1911
- box-shadow: @invertedLabelBoxShadow;
1912
- }
1913
-
1914
- .ui.inverted.multiple.dropdown > .label:hover {
1915
- background-color: @invertedLabelHoverBackgroundColor;
1916
- border-color: @invertedLabelHoverBackgroundColor;
1917
-
1918
- background-image: @invertedLabelHoverBackgroundImage;
1919
- color: @invertedLabelHoverTextColor;
1920
- }
1921
-
1922
- .ui.inverted.multiple.dropdown > .label > .close.icon,
1923
- .ui.inverted.multiple.dropdown > .label > .delete.icon {
1924
- opacity: @invertedLabelIconOpacity;
1925
- }
1926
-
1927
- .ui.inverted.multiple.dropdown > .label > .close.icon:hover,
1928
- .ui.inverted.multiple.dropdown > .label > .delete.icon:hover {
1929
- opacity: @invertedLabelIconHoverOpacity;
1930
- }
1931
- }
1932
-
1933
- /* Selection for form elements */
1934
- .ui.inverted.dropdown textarea::-webkit-selection,
1935
- .ui.inverted.dropdown input::-webkit-selection {
1936
- background-color: @invertedInputHighlightBackground;
1937
- color: @invertedInputHighlightColor;
1938
- }
1939
- .ui.inverted.dropdown textarea::-moz-selection,
1940
- .ui.inverted.dropdown input::-moz-selection {
1941
- background-color: @invertedInputHighlightBackground;
1942
- color: @invertedInputHighlightColor;
1943
- }
1944
- .ui.inverted.dropdown textarea::selection,
1945
- .ui.inverted.dropdown input::selection {
1946
- background-color: @invertedInputHighlightBackground;
1947
- color: @invertedInputHighlightColor;
1948
- }
1949
-
1950
- /* Scrollbars */
1951
- & when (@useCustomScrollbars) {
1952
- .ui.dropdown .inverted.menu::-webkit-scrollbar-track,
1953
- .ui.inverted.dropdown .menu::-webkit-scrollbar-track {
1954
- background: @trackInvertedBackground;
1955
- }
1956
- .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb,
1957
- .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb {
1958
- background: @thumbInvertedBackground;
1959
- }
1960
- .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb:window-inactive,
1961
- .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:window-inactive {
1962
- background: @thumbInvertedInactiveBackground;
1963
- }
1964
- .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb:hover,
1965
- .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:hover {
1966
- background: @thumbInvertedHoverBackground;
1967
- }
1768
+ /* --------------
1769
+ Inverted
1770
+ --------------- */
1771
+
1772
+ /* General rules and basic dropdowns */
1968
1773
  .ui.dropdown .inverted.menu,
1969
1774
  .ui.inverted.dropdown .menu {
1970
- & when (@supportIE) {
1971
- /* IE11 */
1972
- scrollbar-face-color: @thumbInvertedBackgroundHex;
1973
- scrollbar-shadow-color: @thumbInvertedBackgroundHex;
1974
- scrollbar-track-color: @trackInvertedBackgroundHex;
1975
- scrollbar-arrow-color: @trackInvertedBackgroundHex;
1976
- }
1977
- /* firefox : first color thumb, second track */
1978
- scrollbar-color: @thumbInvertedBackground @trackInvertedBackground;
1979
- }
1980
- }
1981
- & when (@variationDropdownPointing) {
1982
- .ui.pointing.dropdown > .inverted.menu::after,
1983
- .ui.inverted.pointing.dropdown > .menu::after {
1984
- background: @invertedPointingArrowBackground;
1985
- box-shadow: @invertedPointingArrowBoxShadow;
1986
- }
1987
- }
1775
+ background: @invertedMenuBackground;
1776
+ box-shadow: @invertedMenuBoxShadow;
1777
+ border: @invertedMenuBorder;
1778
+ }
1779
+
1780
+ .ui.dropdown .inverted.menu > .item,
1781
+ .ui.inverted.dropdown .menu > .item {
1782
+ color: @invertedMenuColor;
1783
+ }
1784
+
1785
+ .ui.dropdown .inverted.menu .active.item,
1786
+ .ui.inverted.dropdown .menu .active.item {
1787
+ background: @invertedActiveItemBackground;
1788
+ color: @invertedActiveItemColor;
1789
+ box-shadow: @invertedActiveItemBoxShadow;
1790
+ }
1791
+
1792
+ .ui.dropdown .inverted.menu > .item:hover,
1793
+ .ui.inverted.dropdown .menu > .item:hover {
1794
+ background: @invertedHoveredItemBackground;
1795
+ color: @invertedHoveredItemColor;
1796
+ }
1797
+
1798
+ .ui.inverted.dropdown.selected,
1799
+ .ui.dropdown .inverted.menu .selected.item,
1800
+ .ui.inverted.dropdown .menu .selected.item {
1801
+ background: @invertedSelectedBackground;
1802
+ color: @invertedSelectedColor;
1803
+ }
1804
+
1805
+ .ui.dropdown .inverted.menu > .header,
1806
+ .ui.inverted.dropdown .menu > .header {
1807
+ color: @invertedMenuHeaderColor;
1808
+ }
1809
+
1810
+ .ui.inverted.dropdown > .text > .description,
1811
+ .ui.dropdown .inverted.menu > .item > .description,
1812
+ .ui.inverted.dropdown .menu > .item > .description {
1813
+ color: @invertedItemDescriptionColor;
1814
+ }
1815
+
1816
+ .ui.dropdown .inverted.menu > .divider,
1817
+ .ui.inverted.dropdown .menu > .divider {
1818
+ border-top: @invertedMenuDividerBorder;
1819
+ }
1820
+
1821
+ .ui.dropdown .inverted.scrolling.menu,
1822
+ .ui.inverted.dropdown .scrolling.menu {
1823
+ border: none;
1824
+ border-top: @invertedMenuBorder;
1825
+ }
1826
+
1827
+ & when (@variationDropdownSelection) {
1828
+ /* Selection */
1829
+ .ui.inverted.selection.dropdown {
1830
+ border: @invertedSelectionBorder;
1831
+ background: @invertedSelectionBackground;
1832
+ color: @invertedSelectionTextColor;
1833
+ }
1834
+
1835
+ .ui.inverted.selection.dropdown:hover {
1836
+ border-color: @invertedSelectionHoverBorderColor;
1837
+ box-shadow: @invertedSelectionHoverBoxShadow;
1838
+ }
1839
+
1840
+ .ui.inverted.selection.dropdown input {
1841
+ color: @invertedSelectionInputTextColor;
1842
+ }
1843
+
1844
+ .ui.inverted.selection.visible.dropdown > .text:not(.default) {
1845
+ color: @invertedSelectionVisibleTextColor;
1846
+ }
1847
+
1848
+ .ui.selection.simple.dropdown:hover .inverted.menu,
1849
+ .ui.inverted.selection.simple.dropdown:hover .menu,
1850
+ .ui.selection.active.dropdown .inverted.menu,
1851
+ .ui.inverted.selection.active.dropdown .menu,
1852
+ .ui.inverted.selection.active.dropdown:hover {
1853
+ border-color: @invertedSelectionVisibleBorderColor;
1854
+ }
1855
+
1856
+ .ui.selection.dropdown .inverted.menu > .item,
1857
+ .ui.inverted.selection.dropdown .menu > .item {
1858
+ border-top: @invertedSelectionItemDivider;
1859
+ }
1860
+ }
1861
+
1862
+ .ui.inverted.dropdown:not(.button) > .default.text,
1863
+ .ui.inverted.default.dropdown:not(.button) > .text {
1864
+ color: @invertedDefaultTextColor;
1865
+ }
1866
+ .ui.inverted.dropdown:not(.button) > input:focus ~ .default.text,
1867
+ .ui.inverted.default.dropdown:not(.button) > input:focus ~ .text {
1868
+ color: @invertedDefaultTextFocusColor;
1869
+ }
1870
+
1871
+ .ui.inverted.active.search.dropdown input.search:focus + .text i.icon,
1872
+ .ui.inverted.active.search.dropdown input.search:focus + .text .flag {
1873
+ opacity: @invertedSelectionTextUnderlayIconOpacity;
1874
+ }
1875
+ .ui.inverted.active.search.dropdown input.search:focus + .text {
1876
+ color: @invertedSelectionTextUnderlayColor !important;
1877
+ }
1878
+
1879
+ .ui.dropdown .inverted.menu > .message:not(.ui),
1880
+ .ui.inverted.dropdown .menu > .message:not(.ui) {
1881
+ color: @invertedMessageColor;
1882
+ }
1883
+
1884
+ /* Fixing the border */
1885
+ .ui.dropdown .inverted.menu > .item:first-child,
1886
+ .ui.inverted.dropdown .menu > .item:first-child {
1887
+ border-top-width: 0;
1888
+ }
1889
+
1890
+ & when (@variationDropdownMultiple) {
1891
+ /* Labels */
1892
+ .ui.inverted.multiple.dropdown > .label {
1893
+ background-color: @invertedLabelBackgroundColor;
1894
+ background-image: @invertedLabelBackgroundImage;
1895
+ color: @invertedLabelColor;
1896
+ box-shadow: @invertedLabelBoxShadow;
1897
+ }
1898
+
1899
+ .ui.inverted.multiple.dropdown > .label:hover {
1900
+ background-color: @invertedLabelHoverBackgroundColor;
1901
+ border-color: @invertedLabelHoverBackgroundColor;
1902
+
1903
+ background-image: @invertedLabelHoverBackgroundImage;
1904
+ color: @invertedLabelHoverTextColor;
1905
+ }
1906
+
1907
+ .ui.inverted.multiple.dropdown > .label > .close.icon,
1908
+ .ui.inverted.multiple.dropdown > .label > .delete.icon {
1909
+ opacity: @invertedLabelIconOpacity;
1910
+ }
1911
+
1912
+ .ui.inverted.multiple.dropdown > .label > .close.icon:hover,
1913
+ .ui.inverted.multiple.dropdown > .label > .delete.icon:hover {
1914
+ opacity: @invertedLabelIconHoverOpacity;
1915
+ }
1916
+ }
1917
+
1918
+ /* Selection for form elements */
1919
+ .ui.inverted.dropdown textarea::-webkit-selection,
1920
+ .ui.inverted.dropdown input::-webkit-selection {
1921
+ background-color: @invertedInputHighlightBackground;
1922
+ color: @invertedInputHighlightColor;
1923
+ }
1924
+ .ui.inverted.dropdown textarea::-moz-selection,
1925
+ .ui.inverted.dropdown input::-moz-selection {
1926
+ background-color: @invertedInputHighlightBackground;
1927
+ color: @invertedInputHighlightColor;
1928
+ }
1929
+ .ui.inverted.dropdown textarea::selection,
1930
+ .ui.inverted.dropdown input::selection {
1931
+ background-color: @invertedInputHighlightBackground;
1932
+ color: @invertedInputHighlightColor;
1933
+ }
1934
+
1935
+ /* Scrollbars */
1936
+ & when (@useCustomScrollbars) {
1937
+ .ui.dropdown .inverted.menu::-webkit-scrollbar-track,
1938
+ .ui.inverted.dropdown .menu::-webkit-scrollbar-track {
1939
+ background: @trackInvertedBackground;
1940
+ }
1941
+ .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb,
1942
+ .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb {
1943
+ background: @thumbInvertedBackground;
1944
+ }
1945
+ .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb:window-inactive,
1946
+ .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:window-inactive {
1947
+ background: @thumbInvertedInactiveBackground;
1948
+ }
1949
+ .ui.dropdown .inverted.menu::-webkit-scrollbar-thumb:hover,
1950
+ .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:hover {
1951
+ background: @thumbInvertedHoverBackground;
1952
+ }
1953
+ .ui.dropdown .inverted.menu,
1954
+ .ui.inverted.dropdown .menu {
1955
+ & when (@supportIE) {
1956
+ /* IE11 */
1957
+ scrollbar-face-color: @thumbInvertedBackgroundHex;
1958
+ scrollbar-shadow-color: @thumbInvertedBackgroundHex;
1959
+ scrollbar-track-color: @trackInvertedBackgroundHex;
1960
+ scrollbar-arrow-color: @trackInvertedBackgroundHex;
1961
+ }
1962
+
1963
+ /* firefox : first color thumb, second track */
1964
+ scrollbar-color: @thumbInvertedBackground @trackInvertedBackground;
1965
+ }
1966
+ }
1967
+ & when (@variationDropdownPointing) {
1968
+ .ui.pointing.dropdown > .inverted.menu::after,
1969
+ .ui.inverted.pointing.dropdown > .menu::after {
1970
+ background: @invertedPointingArrowBackground;
1971
+ box-shadow: @invertedPointingArrowBoxShadow;
1972
+ }
1973
+ }
1988
1974
  }
1989
1975
 
1990
1976
  .loadUIOverrides();