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 : 'search';
18
17
 
19
18
  @import (multiple) '../../theme.config';
@@ -23,367 +22,363 @@
23
22
  *******************************/
24
23
 
25
24
  .ui.search {
26
- position: relative;
25
+ position: relative;
27
26
  }
28
27
 
29
28
  .ui.search > .prompt {
30
- margin: 0;
31
- outline: none;
32
- -webkit-appearance: none;
33
- -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
29
+ margin: 0;
30
+ outline: none;
31
+ -webkit-appearance: none;
32
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
34
33
 
35
- text-shadow: none;
36
- font-style: normal;
37
- font-weight: @normal;
34
+ text-shadow: none;
35
+ font-style: normal;
36
+ font-weight: @normal;
38
37
 
39
- line-height: @promptLineHeight;
40
- padding: @promptPadding;
41
- font-size: @promptFontSize;
38
+ line-height: @promptLineHeight;
39
+ padding: @promptPadding;
40
+ font-size: @promptFontSize;
42
41
 
43
- background: @promptBackground;
44
- border: @promptBorder;
45
- color: @promptColor;
46
- box-shadow: @promptBoxShadow;
47
- transition: @promptTransition;
42
+ background: @promptBackground;
43
+ border: @promptBorder;
44
+ color: @promptColor;
45
+ box-shadow: @promptBoxShadow;
46
+ transition: @promptTransition;
48
47
  }
49
48
 
50
49
  .ui.search .prompt {
51
- border-radius: @promptBorderRadius;
50
+ border-radius: @promptBorderRadius;
52
51
  }
53
52
 
54
-
55
- /*--------------
53
+ /* --------------
56
54
  Icon
57
- ---------------*/
55
+ --------------- */
58
56
 
59
57
  .ui.search .prompt ~ .search.icon {
60
- cursor: pointer;
58
+ cursor: pointer;
61
59
  }
62
60
 
63
- /*--------------
61
+ /* --------------
64
62
  Results
65
- ---------------*/
63
+ --------------- */
66
64
 
67
65
  .ui.search > .results {
68
- display: none;
66
+ display: none;
69
67
 
70
- position: absolute;
71
- top: 100%;
72
- left: 0;
73
- transform-origin: center top;
74
- white-space: normal;
75
- text-align: left;
76
- text-transform: none;
68
+ position: absolute;
69
+ top: 100%;
70
+ left: 0;
71
+ transform-origin: center top;
72
+ white-space: normal;
73
+ text-align: left;
74
+ text-transform: none;
77
75
 
78
- background: @resultsBackground;
76
+ background: @resultsBackground;
79
77
 
80
- margin-top: @resultsDistance;
81
- width: @resultsWidth;
78
+ margin-top: @resultsDistance;
79
+ width: @resultsWidth;
82
80
 
83
- border-radius: @resultsBorderRadius;
84
- box-shadow: @resultsBoxShadow;
85
- border: @resultsBorder;
86
- z-index: @resultsZIndex;
81
+ border-radius: @resultsBorderRadius;
82
+ box-shadow: @resultsBoxShadow;
83
+ border: @resultsBorder;
84
+ z-index: @resultsZIndex;
87
85
  }
88
86
  .ui.search > .results > :first-child {
89
- border-radius: @resultsBorderRadius @resultsBorderRadius 0 0;
87
+ border-radius: @resultsBorderRadius @resultsBorderRadius 0 0;
90
88
  }
91
89
  .ui.search > .results > :last-child {
92
- border-radius: 0 0 @resultsBorderRadius @resultsBorderRadius;
90
+ border-radius: 0 0 @resultsBorderRadius @resultsBorderRadius;
93
91
  }
94
92
 
95
- /*--------------
93
+ /* --------------
96
94
  Result
97
- ---------------*/
95
+ --------------- */
98
96
 
99
97
  .ui.search > .results .result {
100
- cursor: pointer;
101
- display: block;
102
- overflow: hidden;
103
- font-size: @resultFontSize;
104
- padding: @resultPadding;
105
- color: @resultTextColor;
106
- line-height: @resultLineHeight;
107
- border-bottom: @resultDivider;
98
+ cursor: pointer;
99
+ display: block;
100
+ overflow: hidden;
101
+ font-size: @resultFontSize;
102
+ padding: @resultPadding;
103
+ color: @resultTextColor;
104
+ line-height: @resultLineHeight;
105
+ border-bottom: @resultDivider;
108
106
  }
109
107
  .ui.search > .results .result:last-child {
110
- border-bottom: @resultLastDivider !important;
108
+ border-bottom: @resultLastDivider !important;
111
109
  }
112
110
 
113
111
  /* Image */
114
112
  .ui.search > .results .result .image {
115
- float: @resultImageFloat;
116
- overflow: hidden;
117
- background: @resultImageBackground;
118
- width: @resultImageWidth;
119
- height: @resultImageHeight;
120
- border-radius: @resultImageBorderRadius;
113
+ float: @resultImageFloat;
114
+ overflow: hidden;
115
+ background: @resultImageBackground;
116
+ width: @resultImageWidth;
117
+ height: @resultImageHeight;
118
+ border-radius: @resultImageBorderRadius;
121
119
  }
122
120
  .ui.search > .results .result .image img {
123
- display: block;
124
- width: auto;
125
- height: 100%;
121
+ display: block;
122
+ width: auto;
123
+ height: 100%;
126
124
  }
127
125
 
128
- /*--------------
126
+ /* --------------
129
127
  Info
130
- ---------------*/
128
+ --------------- */
131
129
 
132
130
  .ui.search > .results .result .image + .content {
133
- margin: @resultImageMargin;
131
+ margin: @resultImageMargin;
134
132
  }
135
133
 
136
134
  .ui.search > .results .result .title {
137
- margin: @resultTitleMargin;
138
- font-family: @resultTitleFont;
139
- font-weight: @resultTitleFontWeight;
140
- font-size: @resultTitleFontSize;
141
- color: @resultTitleColor;
135
+ margin: @resultTitleMargin;
136
+ font-family: @resultTitleFont;
137
+ font-weight: @resultTitleFontWeight;
138
+ font-size: @resultTitleFontSize;
139
+ color: @resultTitleColor;
142
140
  }
143
141
  .ui.search > .results .result .description {
144
- margin-top: @resultDescriptionDistance;
145
- font-size: @resultDescriptionFontSize;
146
- color: @resultDescriptionColor;
142
+ margin-top: @resultDescriptionDistance;
143
+ font-size: @resultDescriptionFontSize;
144
+ color: @resultDescriptionColor;
147
145
  }
148
146
  .ui.search > .results .result .price {
149
- float: @resultPriceFloat;
150
- color: @resultPriceColor;
147
+ float: @resultPriceFloat;
148
+ color: @resultPriceColor;
151
149
  }
152
150
 
153
- /*--------------
151
+ /* --------------
154
152
  Message
155
- ---------------*/
153
+ --------------- */
156
154
 
157
155
  .ui.search > .results > .message {
158
- padding: @messageVerticalPadding @messageHorizontalPadding;
156
+ padding: @messageVerticalPadding @messageHorizontalPadding;
159
157
  }
160
158
  .ui.search > .results > .message .header {
161
- font-family: @headerFont;
162
- font-size: @messageHeaderFontSize;
163
- font-weight: @messageHeaderFontWeight;
164
- color: @messageHeaderColor;
159
+ font-family: @headerFont;
160
+ font-size: @messageHeaderFontSize;
161
+ font-weight: @messageHeaderFontWeight;
162
+ color: @messageHeaderColor;
165
163
  }
166
164
  .ui.search > .results > .message .description {
167
- margin-top: @messageDescriptionDistance;
168
- font-size: @messageDescriptionFontSize;
169
- color: @messageDescriptionColor;
165
+ margin-top: @messageDescriptionDistance;
166
+ font-size: @messageDescriptionFontSize;
167
+ color: @messageDescriptionColor;
170
168
  }
171
169
 
172
170
  /* View All Results */
173
171
  .ui.search > .results > .action {
174
- display: block;
175
- border-top: @actionBorder;
176
- background: @actionBackground;
177
- padding: @actionPadding;
178
- color: @actionColor;
179
- font-weight: @actionFontWeight;
180
- text-align: @actionAlign;
172
+ display: block;
173
+ border-top: @actionBorder;
174
+ background: @actionBackground;
175
+ padding: @actionPadding;
176
+ color: @actionColor;
177
+ font-weight: @actionFontWeight;
178
+ text-align: @actionAlign;
181
179
  }
182
180
 
183
-
184
181
  /*******************************
185
182
  States
186
183
  *******************************/
187
184
 
188
- /*--------------------
185
+ /* --------------------
189
186
  Focus
190
- ---------------------*/
187
+ --------------------- */
191
188
 
192
189
  .ui.search > .prompt:focus {
193
- border-color: @promptFocusBorderColor;
194
- background: @promptFocusBackground;
195
- color: @promptFocusColor;
190
+ border-color: @promptFocusBorderColor;
191
+ background: @promptFocusBackground;
192
+ color: @promptFocusColor;
196
193
  }
197
194
 
198
195
  & when (@variationSearchLoading) {
199
- /*--------------------
200
- Loading
201
- ---------------------*/
202
-
203
- .ui.loading.search .input > i.icon::before {
204
- position: absolute;
205
- content: '';
206
- top: 50%;
207
- left: 50%;
208
-
209
- margin: @loaderMargin;
210
- width: @loaderSize;
211
- height: @loaderSize;
212
-
213
- border-radius: @circularRadius;
214
- border: @loaderLineWidth solid @loaderFillColor;
215
- }
216
- .ui.loading.search .input > i.icon::after {
217
- position: absolute;
218
- content: '';
219
- top: 50%;
220
- left: 50%;
196
+ /* --------------------
197
+ Loading
198
+ --------------------- */
199
+
200
+ .ui.loading.search .input > i.icon::before {
201
+ position: absolute;
202
+ content: '';
203
+ top: 50%;
204
+ left: 50%;
205
+
206
+ margin: @loaderMargin;
207
+ width: @loaderSize;
208
+ height: @loaderSize;
209
+
210
+ border-radius: @circularRadius;
211
+ border: @loaderLineWidth solid @loaderFillColor;
212
+ }
213
+ .ui.loading.search .input > i.icon::after {
214
+ position: absolute;
215
+ content: '';
216
+ top: 50%;
217
+ left: 50%;
221
218
 
222
- margin: @loaderMargin;
223
- width: @loaderSize;
224
- height: @loaderSize;
219
+ margin: @loaderMargin;
220
+ width: @loaderSize;
221
+ height: @loaderSize;
225
222
 
226
- animation: loader @loaderSpeed infinite linear;
227
- border: @loaderLineWidth solid @loaderLineColor;
228
- border-radius: @circularRadius;
223
+ animation: loader @loaderSpeed infinite linear;
224
+ border: @loaderLineWidth solid @loaderLineColor;
225
+ border-radius: @circularRadius;
229
226
 
230
- box-shadow: 0 0 0 1px transparent;
231
- }
227
+ box-shadow: 0 0 0 1px transparent;
228
+ }
232
229
  }
233
230
 
234
-
235
- /*--------------
231
+ /* --------------
236
232
  Hover
237
- ---------------*/
233
+ --------------- */
238
234
 
239
235
  .ui.search > .results .result:hover,
240
236
  .ui.category.search > .results .category .result:hover {
241
- background: @resultHoverBackground;
237
+ background: @resultHoverBackground;
242
238
  }
243
239
  .ui.search .action:hover:not(div) {
244
- background: @actionHoverBackground;
240
+ background: @actionHoverBackground;
245
241
  }
246
242
 
247
- /*--------------
243
+ /* --------------
248
244
  Active
249
- ---------------*/
245
+ --------------- */
250
246
  & when (@variationSearchCategory) {
251
- .ui.category.search > .results .category.active {
252
- background: @categoryActiveBackground;
253
- }
254
- .ui.category.search > .results .category.active > .name {
255
- color: @categoryNameActiveColor;
256
- }
247
+ .ui.category.search > .results .category.active {
248
+ background: @categoryActiveBackground;
249
+ }
250
+ .ui.category.search > .results .category.active > .name {
251
+ color: @categoryNameActiveColor;
252
+ }
257
253
  }
258
254
 
259
255
  .ui.search > .results .result.active,
260
256
  .ui.category.search > .results .category .result.active {
261
- position: relative;
262
- border-left-color: @resultActiveBorderLeft;
263
- background: @resultActiveBackground;
264
- box-shadow: @resultActiveBoxShadow;
257
+ position: relative;
258
+ border-left-color: @resultActiveBorderLeft;
259
+ background: @resultActiveBackground;
260
+ box-shadow: @resultActiveBoxShadow;
265
261
  }
266
262
  .ui.search > .results .result.active .title {
267
- color: @resultActiveTitleColor;
263
+ color: @resultActiveTitleColor;
268
264
  }
269
265
  .ui.search > .results .result.active .description {
270
- color: @resultActiveDescriptionColor;
266
+ color: @resultActiveDescriptionColor;
271
267
  }
272
268
 
273
269
  & when (@variationSearchDisabled) {
274
- /*--------------------
275
- Disabled
276
- ----------------------*/
277
-
278
- /* Disabled */
279
- .ui.disabled.search {
280
- cursor: default;
281
- pointer-events: none;
282
- opacity: @disabledOpacity;
283
- }
270
+ /* --------------------
271
+ Disabled
272
+ ---------------------- */
273
+
274
+ /* Disabled */
275
+ .ui.disabled.search {
276
+ cursor: default;
277
+ pointer-events: none;
278
+ opacity: @disabledOpacity;
279
+ }
284
280
  }
285
281
 
286
-
287
282
  /*******************************
288
283
  Types
289
284
  *******************************/
290
285
 
291
286
  & when (@variationSearchSelection) {
292
- /*--------------
293
- Selection
294
- ---------------*/
287
+ /* --------------
288
+ Selection
289
+ --------------- */
295
290
 
296
- .ui.search.selection .prompt {
297
- border-radius: @selectionPromptBorderRadius;
298
- }
291
+ .ui.search.selection .prompt {
292
+ border-radius: @selectionPromptBorderRadius;
293
+ }
299
294
 
300
- /* Remove input */
301
- .ui.search.selection > .icon.input > .remove.icon {
302
- pointer-events: none;
303
- position: absolute;
304
- left: auto;
305
- opacity: 0;
306
- color: @selectionCloseIconColor;
307
- top: @selectionCloseTop;
308
- right: @selectionCloseRight;
309
- transition: @selectionCloseTransition;
310
- }
311
- .ui.search.selection > .icon.input > .active.remove.icon {
312
- cursor: pointer;
313
- opacity: @selectionCloseIconOpacity;
314
- pointer-events: auto;
315
- }
316
- .ui.search.selection > .icon.input:not([class*="left icon"]) > .icon ~ .remove.icon {
317
- right: @selectionCloseIconInputRight;
318
- }
319
- .ui.search.selection > .icon.input > .remove.icon:hover {
320
- opacity: @selectionCloseIconHoverOpacity;
321
- color: @selectionCloseIconHoverColor;
322
- }
295
+ /* Remove input */
296
+ .ui.search.selection > .icon.input > .remove.icon {
297
+ pointer-events: none;
298
+ position: absolute;
299
+ left: auto;
300
+ opacity: 0;
301
+ color: @selectionCloseIconColor;
302
+ top: @selectionCloseTop;
303
+ right: @selectionCloseRight;
304
+ transition: @selectionCloseTransition;
305
+ }
306
+ .ui.search.selection > .icon.input > .active.remove.icon {
307
+ cursor: pointer;
308
+ opacity: @selectionCloseIconOpacity;
309
+ pointer-events: auto;
310
+ }
311
+ .ui.search.selection > .icon.input:not([class*="left icon"]) > .icon ~ .remove.icon {
312
+ right: @selectionCloseIconInputRight;
313
+ }
314
+ .ui.search.selection > .icon.input > .remove.icon:hover {
315
+ opacity: @selectionCloseIconHoverOpacity;
316
+ color: @selectionCloseIconHoverColor;
317
+ }
323
318
  }
324
319
 
325
320
  & when (@variationSearchCategory) {
326
- /*--------------
327
- Category
328
- ---------------*/
329
-
330
- .ui.category.search .results {
331
- width: @categoryResultsWidth;
332
- }
333
-
334
- .ui.category.search .results.animating,
335
- .ui.category.search .results.visible {
336
- display: table;
337
- }
338
-
339
- /* Category */
340
- .ui.category.search > .results .category {
341
- display: table-row;
342
- background: @categoryBackground;
343
- box-shadow: @categoryBoxShadow;
344
- transition: @categoryTransition;
345
- }
346
-
347
- /* Last Category */
348
- .ui.category.search > .results .category:last-child {
349
- border-bottom: none;
350
- }
351
-
352
- /* First / Last */
353
- .ui.category.search > .results .category:first-child .name + .result {
354
- border-radius: 0 @resultsBorderRadius 0 0;
355
- }
356
- .ui.category.search > .results .category:last-child .result:last-child {
357
- border-radius: 0 0 @resultsBorderRadius 0;
358
- }
359
-
360
- /* Category Result Name */
361
- .ui.category.search > .results .category > .name {
362
- display: table-cell;
363
- text-overflow: ellipsis;
364
- width: @categoryNameWidth;
365
- white-space: @categoryNameWhitespace;
366
- background: @categoryNameBackground;
367
- font-family: @categoryNameFont;
368
- font-size: @categoryNameFontSize;
369
- padding: @categoryNamePadding;
370
- font-weight: @categoryNameFontWeight;
371
- color: @categoryNameColor;
372
- border-bottom: @categoryDivider;
373
- }
374
-
375
- /* Category Result */
376
- .ui.category.search > .results .category .results {
377
- display: table-cell;
378
- background: @categoryResultBackground;
379
- border-left: @categoryResultLeftBorder;
380
- border-bottom: @categoryDivider;
381
- }
382
- .ui.category.search > .results .category .result {
383
- border-bottom: @categoryResultDivider;
384
- transition: @categoryResultTransition;
385
- padding: @categoryResultPadding;
386
- }
321
+ /* --------------
322
+ Category
323
+ --------------- */
324
+
325
+ .ui.category.search .results {
326
+ width: @categoryResultsWidth;
327
+ }
328
+
329
+ .ui.category.search .results.animating,
330
+ .ui.category.search .results.visible {
331
+ display: table;
332
+ }
333
+
334
+ /* Category */
335
+ .ui.category.search > .results .category {
336
+ display: table-row;
337
+ background: @categoryBackground;
338
+ box-shadow: @categoryBoxShadow;
339
+ transition: @categoryTransition;
340
+ }
341
+
342
+ /* Last Category */
343
+ .ui.category.search > .results .category:last-child {
344
+ border-bottom: none;
345
+ }
346
+
347
+ /* First / Last */
348
+ .ui.category.search > .results .category:first-child .name + .result {
349
+ border-radius: 0 @resultsBorderRadius 0 0;
350
+ }
351
+ .ui.category.search > .results .category:last-child .result:last-child {
352
+ border-radius: 0 0 @resultsBorderRadius 0;
353
+ }
354
+
355
+ /* Category Result Name */
356
+ .ui.category.search > .results .category > .name {
357
+ display: table-cell;
358
+ text-overflow: ellipsis;
359
+ width: @categoryNameWidth;
360
+ white-space: @categoryNameWhitespace;
361
+ background: @categoryNameBackground;
362
+ font-family: @categoryNameFont;
363
+ font-size: @categoryNameFontSize;
364
+ padding: @categoryNamePadding;
365
+ font-weight: @categoryNameFontWeight;
366
+ color: @categoryNameColor;
367
+ border-bottom: @categoryDivider;
368
+ }
369
+
370
+ /* Category Result */
371
+ .ui.category.search > .results .category .results {
372
+ display: table-cell;
373
+ background: @categoryResultBackground;
374
+ border-left: @categoryResultLeftBorder;
375
+ border-bottom: @categoryDivider;
376
+ }
377
+ .ui.category.search > .results .category .result {
378
+ border-bottom: @categoryResultDivider;
379
+ transition: @categoryResultTransition;
380
+ padding: @categoryResultPadding;
381
+ }
387
382
  }
388
383
 
389
384
  /*******************************
@@ -391,187 +386,184 @@
391
386
  *******************************/
392
387
 
393
388
  & when (@variationSearchScrolling),
394
- (@variationSearchShort),
395
- (@variationSearchLong) {
389
+ (@variationSearchShort),
390
+ (@variationSearchLong) {
391
+ /* -------------------
392
+ Scrolling
393
+ -------------------- */
396
394
 
397
- /*-------------------
398
- Scrolling
399
- --------------------*/
400
-
401
- .ui.scrolling.search > .results,
395
+ .ui.scrolling.search > .results,
402
396
  .ui.search.long > .results,
403
- .ui.search.short > .results {
404
- overflow-x: hidden;
405
- overflow-y: auto;
406
- overscroll-behavior: @overscrollBehavior;
407
- backface-visibility: hidden;
408
- -webkit-overflow-scrolling: touch;
409
- }
397
+ .ui.search.short > .results {
398
+ overflow-x: hidden;
399
+ overflow-y: auto;
400
+ overscroll-behavior: @overscrollBehavior;
401
+ backface-visibility: hidden;
402
+ -webkit-overflow-scrolling: touch;
403
+ }
410
404
  }
411
405
 
412
-
413
406
  & when (@variationSearchScrolling) {
414
- @media only screen and (max-width : @largestMobileScreen) {
415
- .ui.scrolling.search > .results {
416
- max-height: @scrollingMobileMaxResultsHeight;
407
+ @media only screen and (max-width: @largestMobileScreen) {
408
+ .ui.scrolling.search > .results {
409
+ max-height: @scrollingMobileMaxResultsHeight;
410
+ }
417
411
  }
418
- }
419
- @media only screen and (min-width: @tabletBreakpoint) {
420
- .ui.scrolling.search > .results {
421
- max-height: @scrollingTabletMaxResultsHeight;
412
+ @media only screen and (min-width: @tabletBreakpoint) {
413
+ .ui.scrolling.search > .results {
414
+ max-height: @scrollingTabletMaxResultsHeight;
415
+ }
422
416
  }
423
- }
424
- @media only screen and (min-width: @computerBreakpoint) {
425
- .ui.scrolling.search > .results {
426
- max-height: @scrollingComputerMaxResultsHeight;
417
+ @media only screen and (min-width: @computerBreakpoint) {
418
+ .ui.scrolling.search > .results {
419
+ max-height: @scrollingComputerMaxResultsHeight;
420
+ }
427
421
  }
428
- }
429
- @media only screen and (min-width: @widescreenMonitorBreakpoint) {
430
- .ui.scrolling.search > .results {
431
- max-height: @scrollingWidescreenMaxResultsHeight;
422
+ @media only screen and (min-width: @widescreenMonitorBreakpoint) {
423
+ .ui.scrolling.search > .results {
424
+ max-height: @scrollingWidescreenMaxResultsHeight;
425
+ }
432
426
  }
433
- }
434
427
  }
435
428
 
436
- @media only screen and (max-width : @largestMobileScreen) {
437
- & when (@variationSearchShort) {
438
- .ui.search.short > .results {
439
- max-height: @scrollingMobileMaxResultsHeight;
440
- }
441
- & when (@variationSearchVeryShort) {
442
- .ui.search[class*="very short"] > .results {
443
- max-height: @scrollingMobileMaxResultsHeight * 0.75;
444
- }
445
- }
446
- }
447
- & when (@variationSearchLong) {
448
- .ui.search.long > .results {
449
- max-height: @scrollingMobileMaxResultsHeight * 2;
429
+ @media only screen and (max-width: @largestMobileScreen) {
430
+ & when (@variationSearchShort) {
431
+ .ui.search.short > .results {
432
+ max-height: @scrollingMobileMaxResultsHeight;
433
+ }
434
+ & when (@variationSearchVeryShort) {
435
+ .ui.search[class*="very short"] > .results {
436
+ max-height: @scrollingMobileMaxResultsHeight * 0.75;
437
+ }
438
+ }
450
439
  }
451
- & when (@variationSearchVeryLong) {
452
- .ui.search[class*="very long"] > .results {
453
- max-height: @scrollingMobileMaxResultsHeight * 3;
454
- }
440
+ & when (@variationSearchLong) {
441
+ .ui.search.long > .results {
442
+ max-height: @scrollingMobileMaxResultsHeight * 2;
443
+ }
444
+ & when (@variationSearchVeryLong) {
445
+ .ui.search[class*="very long"] > .results {
446
+ max-height: @scrollingMobileMaxResultsHeight * 3;
447
+ }
448
+ }
455
449
  }
456
- }
457
450
  }
458
451
  @media only screen and (min-width: @tabletBreakpoint) {
459
- & when (@variationSearchShort) {
460
- .ui.search.short > .results {
461
- max-height: @scrollingTabletMaxResultsHeight;
462
- }
463
- & when (@variationSearchVeryShort) {
464
- .ui.search[class*="very short"] > .results {
465
- max-height: @scrollingTabletMaxResultsHeight * 0.75;
466
- }
452
+ & when (@variationSearchShort) {
453
+ .ui.search.short > .results {
454
+ max-height: @scrollingTabletMaxResultsHeight;
455
+ }
456
+ & when (@variationSearchVeryShort) {
457
+ .ui.search[class*="very short"] > .results {
458
+ max-height: @scrollingTabletMaxResultsHeight * 0.75;
459
+ }
460
+ }
467
461
  }
468
- }
469
- & when (@variationSearchLong) {
470
- .ui.search.long > .results {
471
- max-height: @scrollingTabletMaxResultsHeight * 2;
462
+ & when (@variationSearchLong) {
463
+ .ui.search.long > .results {
464
+ max-height: @scrollingTabletMaxResultsHeight * 2;
465
+ }
466
+ & when (@variationSearchVeryLong) {
467
+ .ui.search[class*="very long"] > .results {
468
+ max-height: @scrollingTabletMaxResultsHeight * 3;
469
+ }
470
+ }
472
471
  }
473
- & when (@variationSearchVeryLong) {
474
- .ui.search[class*="very long"] > .results {
475
- max-height: @scrollingTabletMaxResultsHeight * 3;
476
- }
477
- }
478
- }
479
472
  }
480
473
  @media only screen and (min-width: @computerBreakpoint) {
481
- & when (@variationSearchShort) {
482
- .ui.search.short > .results {
483
- max-height: @scrollingComputerMaxResultsHeight;
474
+ & when (@variationSearchShort) {
475
+ .ui.search.short > .results {
476
+ max-height: @scrollingComputerMaxResultsHeight;
477
+ }
478
+ & when (@variationSearchVeryShort) {
479
+ .ui.search[class*="very short"] > .results {
480
+ max-height: @scrollingComputerMaxResultsHeight * 0.75;
481
+ }
482
+ }
484
483
  }
485
- & when (@variationSearchVeryShort) {
486
- .ui.search[class*="very short"] > .results {
487
- max-height: @scrollingComputerMaxResultsHeight * 0.75;
488
- }
484
+ & when (@variationSearchLong) {
485
+ .ui.search.long > .results {
486
+ max-height: @scrollingComputerMaxResultsHeight * 2;
487
+ }
488
+ & when (@variationSearchVeryLong) {
489
+ .ui.search[class*="very long"] > .results {
490
+ max-height: @scrollingComputerMaxResultsHeight * 3;
491
+ }
492
+ }
489
493
  }
490
- }
491
- & when (@variationSearchLong) {
492
- .ui.search.long > .results {
493
- max-height: @scrollingComputerMaxResultsHeight * 2;
494
- }
495
- & when (@variationSearchVeryLong) {
496
- .ui.search[class*="very long"] > .results {
497
- max-height: @scrollingComputerMaxResultsHeight * 3;
498
- }
499
- }
500
- }
501
494
  }
502
495
  @media only screen and (min-width: @widescreenMonitorBreakpoint) {
503
- & when (@variationSearchShort) {
504
- .ui.search.short > .results {
505
- max-height: @scrollingWidescreenMaxResultsHeight;
506
- }
507
- & when (@variationSearchVeryShort) {
508
- .ui.search[class*="very short"] > .results {
509
- max-height: @scrollingWidescreenMaxResultsHeight * 0.75;
510
- }
496
+ & when (@variationSearchShort) {
497
+ .ui.search.short > .results {
498
+ max-height: @scrollingWidescreenMaxResultsHeight;
499
+ }
500
+ & when (@variationSearchVeryShort) {
501
+ .ui.search[class*="very short"] > .results {
502
+ max-height: @scrollingWidescreenMaxResultsHeight * 0.75;
503
+ }
504
+ }
511
505
  }
512
- }
513
- & when (@variationSearchLong) {
514
- .ui.search.long > .results {
515
- max-height: @scrollingWidescreenMaxResultsHeight * 2;
506
+ & when (@variationSearchLong) {
507
+ .ui.search.long > .results {
508
+ max-height: @scrollingWidescreenMaxResultsHeight * 2;
509
+ }
510
+ & when (@variationSearchVeryLong) {
511
+ .ui.search[class*="very long"] > .results {
512
+ max-height: @scrollingWidescreenMaxResultsHeight * 3;
513
+ }
514
+ }
516
515
  }
517
- & when (@variationSearchVeryLong) {
518
- .ui.search[class*="very long"] > .results {
519
- max-height: @scrollingWidescreenMaxResultsHeight * 3;
520
- }
521
- }
522
- }
523
516
  }
524
517
 
525
518
  & when (@variationSearchAligned) {
526
- /*-------------------
527
- Left / Right
528
- --------------------*/
519
+ /* -------------------
520
+ Left / Right
521
+ -------------------- */
529
522
 
530
- .ui[class*="left aligned"].search > .results {
531
- right: auto;
532
- left: 0;
533
- }
534
- .ui[class*="right aligned"].search > .results {
535
- right: 0;
536
- left: auto;
537
- }
523
+ .ui[class*="left aligned"].search > .results {
524
+ right: auto;
525
+ left: 0;
526
+ }
527
+ .ui[class*="right aligned"].search > .results {
528
+ right: 0;
529
+ left: auto;
530
+ }
538
531
  }
539
532
 
540
- /*--------------
533
+ /* --------------
541
534
  Fluid
542
- ---------------*/
535
+ --------------- */
543
536
 
544
537
  & when (@variationSearchFluid) {
545
- .ui.fluid.search .results {
546
- width: 100%;
547
- }
538
+ .ui.fluid.search .results {
539
+ width: 100%;
540
+ }
548
541
  }
549
542
 
550
-
551
- /*--------------
543
+ /* --------------
552
544
  Sizes
553
- ---------------*/
545
+ --------------- */
554
546
 
555
547
  .ui.search {
556
- font-size: @relativeMedium;
548
+ font-size: @relativeMedium;
557
549
  }
558
550
  & when not (@variationFeedSizes = false) {
559
- each(@variationFeedSizes, {
560
- @s: @{value}SearchSize;
561
- .ui.@{value}.search {
562
- font-size: @@s;
563
- }
564
- })
551
+ each(@variationFeedSizes, {
552
+ @s: @{value}SearchSize;
553
+ .ui.@{value}.search {
554
+ font-size: @@s;
555
+ }
556
+ })
565
557
  }
566
558
 
567
- /*--------------
559
+ /* --------------
568
560
  Mobile
569
- ---------------*/
561
+ --------------- */
570
562
 
571
563
  @media only screen and (max-width: @largestMobileScreen) {
572
- .ui.search .results {
573
- max-width: @mobileMaxWidth;
574
- }
564
+ .ui.search .results {
565
+ max-width: @mobileMaxWidth;
566
+ }
575
567
  }
576
568
 
577
569
  .loadUIOverrides();