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,891 +8,890 @@
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 : 'popup';
18
17
 
19
18
  @import (multiple) '../../theme.config';
20
19
 
21
-
22
20
  /*******************************
23
21
  Popup
24
22
  *******************************/
25
23
 
26
24
  .ui.popup {
27
- display: none;
28
- position: absolute;
29
- top: 0;
30
- right: 0;
31
-
32
- /* Fixes content being squished when inline (moz only) */
33
- min-width: min-content;
34
- z-index: @zIndex;
35
-
36
- border: @border;
37
- line-height: @lineHeight;
38
- max-width: @maxWidth;
39
- background: @background;
40
-
41
- padding: @verticalPadding @horizontalPadding;
42
- font-weight: @fontWeight;
43
- font-style: @fontStyle;
44
- color: @color;
45
-
46
- border-radius: @borderRadius;
47
- box-shadow: @boxShadow;
25
+ display: none;
26
+ position: absolute;
27
+ top: 0;
28
+ right: 0;
29
+
30
+ /* Fixes content being squished when inline (moz only) */
31
+ min-width: min-content;
32
+ z-index: @zIndex;
33
+
34
+ border: @border;
35
+ line-height: @lineHeight;
36
+ max-width: @maxWidth;
37
+ background: @background;
38
+
39
+ padding: @verticalPadding @horizontalPadding;
40
+ font-weight: @fontWeight;
41
+ font-style: @fontStyle;
42
+ color: @color;
43
+
44
+ border-radius: @borderRadius;
45
+ box-shadow: @boxShadow;
48
46
  }
49
47
  .ui.popup > .header {
50
- padding: 0;
48
+ padding: 0;
51
49
 
52
- font-family: @headerFont;
53
- font-size: @headerFontSize;
54
- line-height: @headerLineHeight;
55
- font-weight: @headerFontWeight;
50
+ font-family: @headerFont;
51
+ font-size: @headerFontSize;
52
+ line-height: @headerLineHeight;
53
+ font-weight: @headerFontWeight;
56
54
  }
57
55
  .ui.popup > .header + .content {
58
- padding-top: @headerDistance;
56
+ padding-top: @headerDistance;
59
57
  }
60
58
 
61
59
  .ui.popup::before {
62
- position: absolute;
63
- content: '';
64
- width: @arrowSize;
65
- height: @arrowSize;
66
-
67
- background: @arrowBackground;
68
- transform: rotate(45deg);
69
-
70
- z-index: @arrowZIndex;
71
- box-shadow: @arrowBoxShadow;
72
- }
73
-
74
- /*******************************
75
- Types
76
- *******************************/
77
-
78
- & when (@variationPopupTooltip) {
79
- /*--------------
80
- Tooltip
81
- ---------------*/
82
-
83
- /* Content */
84
- [data-tooltip] {
85
- position: relative;
86
- }
87
-
88
- /* Arrow */
89
- [data-tooltip]::before {
90
- pointer-events: none;
91
60
  position: absolute;
92
61
  content: '';
93
- font-size: @medium;
94
62
  width: @arrowSize;
95
63
  height: @arrowSize;
96
64
 
97
- background: @tooltipArrowBackground;
65
+ background: @arrowBackground;
98
66
  transform: rotate(45deg);
99
67
 
100
68
  z-index: @arrowZIndex;
101
- box-shadow: @tooltipArrowBoxShadow;
102
- }
69
+ box-shadow: @arrowBoxShadow;
70
+ }
103
71
 
104
- /* Popup */
105
- [data-tooltip]::after {
106
- pointer-events: none;
107
- content: attr(data-tooltip);
108
- position: absolute;
109
- text-transform: none;
110
- text-align: left;
111
- text-shadow: none;
112
- white-space: nowrap;
113
-
114
- font-size: @tooltipFontSize;
115
-
116
- border: @tooltipBorder;
117
- line-height: @tooltipLineHeight;
118
- max-width: @tooltipMaxWidth;
119
- background: @tooltipBackground;
120
-
121
- padding: @tooltipPadding;
122
- font-weight: @tooltipFontWeight;
123
- font-style: @tooltipFontStyle;
124
- color: @tooltipColor;
125
-
126
- border-radius: @tooltipBorderRadius;
127
- box-shadow: @tooltipBoxShadow;
128
- z-index: @tooltipZIndex;
129
- }
130
-
131
- /* Default Position (Top Center) */
132
- [data-tooltip]:not([data-position])::before {
133
- top: auto;
134
- right: auto;
135
- bottom: 100%;
136
- left: 50%;
137
- background: @tooltipArrowBottomBackground;
138
- margin-left: @tooltipArrowHorizontalOffset;
139
- margin-bottom: -@tooltipArrowVerticalOffset;
140
- }
141
- [data-tooltip]:not([data-position])::after {
142
- left: 50%;
143
- transform: translateX(-50%);
144
- bottom: 100%;
145
- margin-bottom: @tooltipDistanceAway;
146
- }
147
-
148
- /* Animation */
149
- [data-tooltip]::before,
150
- [data-tooltip]::after {
151
- pointer-events: none;
152
- visibility: hidden;
153
- opacity: 0;
154
- transition:
155
- transform @tooltipDuration @tooltipEasing,
156
- opacity @tooltipDuration @tooltipEasing
157
- ;
158
- }
159
- [data-tooltip]::before {
160
- transform: rotate(45deg) scale(0) !important;
161
- transform-origin: center top;
162
- }
163
- [data-tooltip]::after {
164
- transform-origin: center bottom;
165
- }
166
- [data-tooltip]:hover::before,
167
- [data-tooltip]:hover::after {
168
- visibility: visible;
169
- pointer-events: auto;
170
- opacity: 1;
171
- }
172
- [data-tooltip]:hover::before {
173
- transform: rotate(45deg) scale(1) !important;
174
- }
175
-
176
- /* Animation Position */
177
- [data-tooltip]::after,
178
- [data-tooltip][data-position="top center"]::after,
179
- [data-tooltip][data-position="bottom center"]::after {
180
- transform: translateX(-50%) scale(0) !important;
181
- }
182
- [data-tooltip]:hover::after,
183
- [data-tooltip][data-position="bottom center"]:hover::after {
184
- transform: translateX(-50%) scale(1) !important;
185
- }
186
- [data-tooltip][data-position="left center"]::after,
187
- [data-tooltip][data-position="right center"]::after {
188
- transform: translateY(-50%) scale(0) !important;
189
- }
190
- [data-tooltip][data-position="left center"]:hover::after,
191
- [data-tooltip][data-position="right center"]:hover::after {
192
- transform: translateY(-50%) scale(1) !important;
193
- -moz-transform: translateY(-50%) scale(1.0001) !important;
194
- }
195
- [data-tooltip][data-position="top left"]::after,
196
- [data-tooltip][data-position="top right"]::after,
197
- [data-tooltip][data-position="bottom left"]::after,
198
- [data-tooltip][data-position="bottom right"]::after {
199
- transform: scale(0) !important;
200
- }
201
- [data-tooltip][data-position="top left"]:hover::after,
202
- [data-tooltip][data-position="top right"]:hover::after,
203
- [data-tooltip][data-position="bottom left"]:hover::after,
204
- [data-tooltip][data-position="bottom right"]:hover::after {
205
- transform: scale(1) !important;
206
- }
207
- & when (@variationPopupFixed) {
208
- [data-tooltip][data-variation~="fixed"]::after {
209
- white-space: normal;
210
- width: @maxWidth;
211
- }
212
- [data-tooltip][data-variation*="wide fixed"]::after {
213
- width: @wideWidth;
214
- }
215
- [data-tooltip][data-variation*="very wide fixed"]::after {
216
- width: @veryWideWidth;
217
- }
218
- @media only screen and (max-width: @largestMobileScreen) {
219
- [data-tooltip][data-variation~="fixed"]::after {
220
- width: @maxWidth;
221
- }
222
- }
223
- }
224
- & when (@variationPopupInverted) {
225
- /*--------------
226
- Inverted
227
- ---------------*/
72
+ /*******************************
73
+ Types
74
+ *******************************/
228
75
 
229
- /* Arrow */
230
- [data-tooltip][data-inverted]::before {
231
- box-shadow: none !important;
232
- }
76
+ & when (@variationPopupTooltip) {
77
+ /* --------------
78
+ Tooltip
79
+ --------------- */
233
80
 
234
- /* Arrow Position */
235
- [data-tooltip][data-inverted]::before {
236
- background: @invertedArrowBottomBackground;
81
+ /* Content */
82
+ [data-tooltip] {
83
+ position: relative;
237
84
  }
238
85
 
239
- /* Popup */
240
- [data-tooltip][data-inverted]::after {
241
- background: @tooltipInvertedBackground;
242
- color: @tooltipInvertedColor;
243
- border: @tooltipInvertedBorder;
244
- box-shadow: @tooltipInvertedBoxShadow;
86
+ /* Arrow */
87
+ [data-tooltip]::before {
88
+ pointer-events: none;
89
+ position: absolute;
90
+ content: '';
91
+ font-size: @medium;
92
+ width: @arrowSize;
93
+ height: @arrowSize;
94
+
95
+ background: @tooltipArrowBackground;
96
+ transform: rotate(45deg);
97
+
98
+ z-index: @arrowZIndex;
99
+ box-shadow: @tooltipArrowBoxShadow;
100
+ }
101
+
102
+ /* Popup */
103
+ [data-tooltip]::after {
104
+ pointer-events: none;
105
+ content: attr(data-tooltip);
106
+ position: absolute;
107
+ text-transform: none;
108
+ text-align: left;
109
+ text-shadow: none;
110
+ white-space: nowrap;
111
+
112
+ font-size: @tooltipFontSize;
113
+
114
+ border: @tooltipBorder;
115
+ line-height: @tooltipLineHeight;
116
+ max-width: @tooltipMaxWidth;
117
+ background: @tooltipBackground;
118
+
119
+ padding: @tooltipPadding;
120
+ font-weight: @tooltipFontWeight;
121
+ font-style: @tooltipFontStyle;
122
+ color: @tooltipColor;
123
+
124
+ border-radius: @tooltipBorderRadius;
125
+ box-shadow: @tooltipBoxShadow;
126
+ z-index: @tooltipZIndex;
127
+ }
128
+
129
+ /* Default Position (Top Center) */
130
+ [data-tooltip]:not([data-position])::before {
131
+ top: auto;
132
+ right: auto;
133
+ bottom: 100%;
134
+ left: 50%;
135
+ background: @tooltipArrowBottomBackground;
136
+ margin-left: @tooltipArrowHorizontalOffset;
137
+ margin-bottom: -@tooltipArrowVerticalOffset;
138
+ }
139
+ [data-tooltip]:not([data-position])::after {
140
+ left: 50%;
141
+ transform: translateX(-50%);
142
+ bottom: 100%;
143
+ margin-bottom: @tooltipDistanceAway;
144
+ }
145
+
146
+ /* Animation */
147
+ [data-tooltip]::before,
148
+ [data-tooltip]::after {
149
+ pointer-events: none;
150
+ visibility: hidden;
151
+ opacity: 0;
152
+ transition:
153
+ transform @tooltipDuration @tooltipEasing,
154
+ opacity @tooltipDuration @tooltipEasing;
245
155
  }
246
- }
247
-
248
- & when (@variationPopupPosition) {
249
- /*--------------
250
- Position
251
- ---------------*/
252
- & when (@variationPopupTop) {
253
- [data-position~="top"][data-tooltip]::before {
254
- background: @arrowBottomBackground;
255
- }
256
- & when (@variationPopupCenter) {
257
- /* Top Center */
258
- [data-position="top center"][data-tooltip]::after {
259
- top: auto;
260
- right: auto;
261
- left: 50%;
262
- bottom: 100%;
263
- transform: translateX(-50%);
264
- margin-bottom: @tooltipDistanceAway;
265
- }
266
- [data-position="top center"][data-tooltip]::before {
267
- top: auto;
268
- right: auto;
269
- bottom: 100%;
270
- left: 50%;
271
- background: @tooltipArrowTopBackground;
272
- margin-left: @tooltipArrowHorizontalOffset;
273
- margin-bottom: -@tooltipArrowVerticalOffset;
274
- }
275
- }
276
- & when (@variationPopupLeft) {
277
- /* Top Left */
278
- [data-position="top left"][data-tooltip]::after {
279
- top: auto;
280
- right: auto;
281
- left: 0;
282
- bottom: 100%;
283
- margin-bottom: @tooltipDistanceAway;
284
- }
285
- [data-position="top left"][data-tooltip]::before {
286
- top: auto;
287
- right: auto;
288
- bottom: 100%;
289
- left: @arrowDistanceFromEdge;
290
- margin-left: @tooltipArrowHorizontalOffset;
291
- margin-bottom: -@tooltipArrowVerticalOffset;
292
- }
293
- }
294
- & when (@variationPopupRight) {
295
- /* Top Right */
296
- [data-position="top right"][data-tooltip]::after {
297
- top: auto;
298
- left: auto;
299
- right: 0;
300
- bottom: 100%;
301
- margin-bottom: @tooltipDistanceAway;
302
- }
303
- [data-position="top right"][data-tooltip]::before {
304
- top: auto;
305
- left: auto;
306
- bottom: 100%;
307
- right: @arrowDistanceFromEdge;
308
- margin-left: @tooltipArrowHorizontalOffset;
309
- margin-bottom: -@tooltipArrowVerticalOffset;
310
- }
311
- }
156
+ [data-tooltip]::before {
157
+ transform: rotate(45deg) scale(0) !important;
158
+ transform-origin: center top;
312
159
  }
313
-
314
- & when (@variationPopupBottom) {
315
- [data-position~="bottom"][data-tooltip]::before {
316
- background: @arrowTopBackground;
317
- box-shadow: @bottomArrowBoxShadow;
318
- }
319
- & when (@variationPopupCenter) {
320
- /* Bottom Center */
321
- [data-position="bottom center"][data-tooltip]::after {
322
- bottom: auto;
323
- right: auto;
324
- left: 50%;
325
- top: 100%;
326
- transform: translateX(-50%);
327
- margin-top: @tooltipDistanceAway;
328
- }
329
- [data-position="bottom center"][data-tooltip]::before {
330
- bottom: auto;
331
- right: auto;
332
- top: 100%;
333
- left: 50%;
334
- margin-left: @tooltipArrowHorizontalOffset;
335
- margin-top: -@arrowOffset;
336
- }
337
- }
338
- & when (@variationPopupLeft) {
339
- /* Bottom Left */
340
- [data-position="bottom left"][data-tooltip]::after {
341
- left: 0;
342
- top: 100%;
343
- margin-top: @tooltipDistanceAway;
344
- }
345
- [data-position="bottom left"][data-tooltip]::before {
346
- bottom: auto;
347
- right: auto;
348
- top: 100%;
349
- left: @arrowDistanceFromEdge;
350
- margin-left: @tooltipArrowHorizontalOffset;
351
- margin-top: -@tooltipArrowVerticalOffset;
352
- }
353
- }
354
- & when (@variationPopupRight) {
355
- /* Bottom Right */
356
- [data-position="bottom right"][data-tooltip]::after {
357
- right: 0;
358
- top: 100%;
359
- margin-top: @tooltipDistanceAway;
360
- }
361
- [data-position="bottom right"][data-tooltip]::before {
362
- bottom: auto;
363
- left: auto;
364
- top: 100%;
365
- right: @arrowDistanceFromEdge;
366
- margin-left: @tooltipArrowVerticalOffset;
367
- margin-top: -@tooltipArrowHorizontalOffset;
368
- }
369
- }
160
+ [data-tooltip]::after {
161
+ transform-origin: center bottom;
370
162
  }
371
- & when (@variationPopupCenter) {
372
- & when (@variationPopupLeft) {
373
- /* Left Center */
374
- [data-position="left center"][data-tooltip]::after {
375
- right: 100%;
376
- top: 50%;
377
- margin-right: @tooltipDistanceAway;
378
- transform: translateY(-50%);
379
- }
380
- [data-position="left center"][data-tooltip]::before {
381
- right: 100%;
382
- top: 50%;
383
- margin-top: @tooltipArrowVerticalOffset;
384
- margin-right: @tooltipArrowHorizontalOffset;
385
- background: @arrowCenterBackground;
386
- box-shadow: @leftArrowBoxShadow;
387
- }
388
- }
389
- & when (@variationPopupRight) {
390
- /* Right Center */
391
- [data-position="right center"][data-tooltip]::after {
392
- left: 100%;
393
- top: 50%;
394
- margin-left: @tooltipDistanceAway;
395
- transform: translateY(-50%);
396
- }
397
- [data-position="right center"][data-tooltip]::before {
398
- left: 100%;
399
- top: 50%;
400
- margin-top: @tooltipArrowHorizontalOffset;
401
- margin-left: -@tooltipArrowVerticalOffset;
402
- background: @arrowCenterBackground;
403
- box-shadow: @rightArrowBoxShadow;
404
- }
405
- }
163
+ [data-tooltip]:hover::before,
164
+ [data-tooltip]:hover::after {
165
+ visibility: visible;
166
+ pointer-events: auto;
167
+ opacity: 1;
168
+ }
169
+ [data-tooltip]:hover::before {
170
+ transform: rotate(45deg) scale(1) !important;
171
+ }
172
+
173
+ /* Animation Position */
174
+ [data-tooltip]::after,
175
+ [data-tooltip][data-position="top center"]::after,
176
+ [data-tooltip][data-position="bottom center"]::after {
177
+ transform: translateX(-50%) scale(0) !important;
178
+ }
179
+ [data-tooltip]:hover::after,
180
+ [data-tooltip][data-position="bottom center"]:hover::after {
181
+ transform: translateX(-50%) scale(1) !important;
182
+ }
183
+ [data-tooltip][data-position="left center"]::after,
184
+ [data-tooltip][data-position="right center"]::after {
185
+ transform: translateY(-50%) scale(0) !important;
186
+ }
187
+ [data-tooltip][data-position="left center"]:hover::after,
188
+ [data-tooltip][data-position="right center"]:hover::after {
189
+ transform: translateY(-50%) scale(1) !important;
190
+ -moz-transform: translateY(-50%) scale(1.0001) !important;
191
+ }
192
+ [data-tooltip][data-position="top left"]::after,
193
+ [data-tooltip][data-position="top right"]::after,
194
+ [data-tooltip][data-position="bottom left"]::after,
195
+ [data-tooltip][data-position="bottom right"]::after {
196
+ transform: scale(0) !important;
197
+ }
198
+ [data-tooltip][data-position="top left"]:hover::after,
199
+ [data-tooltip][data-position="top right"]:hover::after,
200
+ [data-tooltip][data-position="bottom left"]:hover::after,
201
+ [data-tooltip][data-position="bottom right"]:hover::after {
202
+ transform: scale(1) !important;
203
+ }
204
+ & when (@variationPopupFixed) {
205
+ [data-tooltip][data-variation~="fixed"]::after {
206
+ white-space: normal;
207
+ width: @maxWidth;
208
+ }
209
+ [data-tooltip][data-variation*="wide fixed"]::after {
210
+ width: @wideWidth;
211
+ }
212
+ [data-tooltip][data-variation*="very wide fixed"]::after {
213
+ width: @veryWideWidth;
214
+ }
215
+ @media only screen and (max-width: @largestMobileScreen) {
216
+ [data-tooltip][data-variation~="fixed"]::after {
217
+ width: @maxWidth;
218
+ }
219
+ }
406
220
  }
407
-
408
221
  & when (@variationPopupInverted) {
409
- /* Inverted Arrow Color */
410
- & when (@variationPopupBottom) {
411
- [data-inverted][data-position~="bottom"][data-tooltip]::before {
412
- background: @invertedArrowTopBackground;
413
- box-shadow: @bottomArrowBoxShadow;
414
- }
415
- }
416
- & when (@variationPopupCenter) {
417
- & when (@variationPopupLeft) {
418
- [data-inverted][data-position="left center"][data-tooltip]::before {
419
- background: @invertedArrowCenterBackground;
420
- box-shadow: @leftArrowBoxShadow;
421
- }
222
+ /* --------------
223
+ Inverted
224
+ --------------- */
225
+
226
+ /* Arrow */
227
+ [data-tooltip][data-inverted]::before {
228
+ box-shadow: none !important;
422
229
  }
423
- & when (@variationPopupRight) {
424
- [data-inverted][data-position="right center"][data-tooltip]::before {
425
- background: @invertedArrowCenterBackground;
426
- box-shadow: @rightArrowBoxShadow;
427
- }
230
+
231
+ /* Arrow Position */
232
+ [data-tooltip][data-inverted]::before {
233
+ background: @invertedArrowBottomBackground;
428
234
  }
429
- }
430
- & when (@variationPopupTop) {
431
- [data-inverted][data-position~="top"][data-tooltip]::before {
432
- background: @invertedArrowBottomBackground;
235
+
236
+ /* Popup */
237
+ [data-tooltip][data-inverted]::after {
238
+ background: @tooltipInvertedBackground;
239
+ color: @tooltipInvertedColor;
240
+ border: @tooltipInvertedBorder;
241
+ box-shadow: @tooltipInvertedBoxShadow;
433
242
  }
434
- }
435
243
  }
436
244
 
437
- & when (@variationPopupBottom) {
438
- [data-position~="bottom"][data-tooltip]::before {
439
- transform-origin: center bottom;
440
- }
441
- [data-position~="bottom"][data-tooltip]::after {
442
- transform-origin: center top;
443
- }
444
- }
445
- & when (@variationPopupCenter) {
446
- & when (@variationPopupBottom) {
447
- [data-position="bottom center"][data-tooltip]::before {
448
- transform-origin: center top;
245
+ & when (@variationPopupPosition) {
246
+ /* --------------
247
+ Position
248
+ --------------- */
249
+ & when (@variationPopupTop) {
250
+ [data-position~="top"][data-tooltip]::before {
251
+ background: @arrowBottomBackground;
252
+ }
253
+ & when (@variationPopupCenter) {
254
+ /* Top Center */
255
+ [data-position="top center"][data-tooltip]::after {
256
+ top: auto;
257
+ right: auto;
258
+ left: 50%;
259
+ bottom: 100%;
260
+ transform: translateX(-50%);
261
+ margin-bottom: @tooltipDistanceAway;
262
+ }
263
+ [data-position="top center"][data-tooltip]::before {
264
+ top: auto;
265
+ right: auto;
266
+ bottom: 100%;
267
+ left: 50%;
268
+ background: @tooltipArrowTopBackground;
269
+ margin-left: @tooltipArrowHorizontalOffset;
270
+ margin-bottom: -@tooltipArrowVerticalOffset;
271
+ }
272
+ }
273
+ & when (@variationPopupLeft) {
274
+ /* Top Left */
275
+ [data-position="top left"][data-tooltip]::after {
276
+ top: auto;
277
+ right: auto;
278
+ left: 0;
279
+ bottom: 100%;
280
+ margin-bottom: @tooltipDistanceAway;
281
+ }
282
+ [data-position="top left"][data-tooltip]::before {
283
+ top: auto;
284
+ right: auto;
285
+ bottom: 100%;
286
+ left: @arrowDistanceFromEdge;
287
+ margin-left: @tooltipArrowHorizontalOffset;
288
+ margin-bottom: -@tooltipArrowVerticalOffset;
289
+ }
290
+ }
291
+ & when (@variationPopupRight) {
292
+ /* Top Right */
293
+ [data-position="top right"][data-tooltip]::after {
294
+ top: auto;
295
+ left: auto;
296
+ right: 0;
297
+ bottom: 100%;
298
+ margin-bottom: @tooltipDistanceAway;
299
+ }
300
+ [data-position="top right"][data-tooltip]::before {
301
+ top: auto;
302
+ left: auto;
303
+ bottom: 100%;
304
+ right: @arrowDistanceFromEdge;
305
+ margin-left: @tooltipArrowHorizontalOffset;
306
+ margin-bottom: -@tooltipArrowVerticalOffset;
307
+ }
308
+ }
309
+ }
310
+
311
+ & when (@variationPopupBottom) {
312
+ [data-position~="bottom"][data-tooltip]::before {
313
+ background: @arrowTopBackground;
314
+ box-shadow: @bottomArrowBoxShadow;
315
+ }
316
+ & when (@variationPopupCenter) {
317
+ /* Bottom Center */
318
+ [data-position="bottom center"][data-tooltip]::after {
319
+ bottom: auto;
320
+ right: auto;
321
+ left: 50%;
322
+ top: 100%;
323
+ transform: translateX(-50%);
324
+ margin-top: @tooltipDistanceAway;
325
+ }
326
+ [data-position="bottom center"][data-tooltip]::before {
327
+ bottom: auto;
328
+ right: auto;
329
+ top: 100%;
330
+ left: 50%;
331
+ margin-left: @tooltipArrowHorizontalOffset;
332
+ margin-top: -@arrowOffset;
333
+ }
334
+ }
335
+ & when (@variationPopupLeft) {
336
+ /* Bottom Left */
337
+ [data-position="bottom left"][data-tooltip]::after {
338
+ left: 0;
339
+ top: 100%;
340
+ margin-top: @tooltipDistanceAway;
341
+ }
342
+ [data-position="bottom left"][data-tooltip]::before {
343
+ bottom: auto;
344
+ right: auto;
345
+ top: 100%;
346
+ left: @arrowDistanceFromEdge;
347
+ margin-left: @tooltipArrowHorizontalOffset;
348
+ margin-top: -@tooltipArrowVerticalOffset;
349
+ }
350
+ }
351
+ & when (@variationPopupRight) {
352
+ /* Bottom Right */
353
+ [data-position="bottom right"][data-tooltip]::after {
354
+ right: 0;
355
+ top: 100%;
356
+ margin-top: @tooltipDistanceAway;
357
+ }
358
+ [data-position="bottom right"][data-tooltip]::before {
359
+ bottom: auto;
360
+ left: auto;
361
+ top: 100%;
362
+ right: @arrowDistanceFromEdge;
363
+ margin-left: @tooltipArrowVerticalOffset;
364
+ margin-top: -@tooltipArrowHorizontalOffset;
365
+ }
366
+ }
449
367
  }
450
- }
451
- & when (@variationPopupLeft) {
452
- [data-position="left center"][data-tooltip]::before {
453
- transform-origin: top center;
368
+ & when (@variationPopupCenter) {
369
+ & when (@variationPopupLeft) {
370
+ /* Left Center */
371
+ [data-position="left center"][data-tooltip]::after {
372
+ right: 100%;
373
+ top: 50%;
374
+ margin-right: @tooltipDistanceAway;
375
+ transform: translateY(-50%);
376
+ }
377
+ [data-position="left center"][data-tooltip]::before {
378
+ right: 100%;
379
+ top: 50%;
380
+ margin-top: @tooltipArrowVerticalOffset;
381
+ margin-right: @tooltipArrowHorizontalOffset;
382
+ background: @arrowCenterBackground;
383
+ box-shadow: @leftArrowBoxShadow;
384
+ }
385
+ }
386
+ & when (@variationPopupRight) {
387
+ /* Right Center */
388
+ [data-position="right center"][data-tooltip]::after {
389
+ left: 100%;
390
+ top: 50%;
391
+ margin-left: @tooltipDistanceAway;
392
+ transform: translateY(-50%);
393
+ }
394
+ [data-position="right center"][data-tooltip]::before {
395
+ left: 100%;
396
+ top: 50%;
397
+ margin-top: @tooltipArrowHorizontalOffset;
398
+ margin-left: -@tooltipArrowVerticalOffset;
399
+ background: @arrowCenterBackground;
400
+ box-shadow: @rightArrowBoxShadow;
401
+ }
402
+ }
454
403
  }
455
- [data-position="left center"][data-tooltip]::after {
456
- transform-origin: right center;
404
+
405
+ & when (@variationPopupInverted) {
406
+ /* Inverted Arrow Color */
407
+ & when (@variationPopupBottom) {
408
+ [data-inverted][data-position~="bottom"][data-tooltip]::before {
409
+ background: @invertedArrowTopBackground;
410
+ box-shadow: @bottomArrowBoxShadow;
411
+ }
412
+ }
413
+ & when (@variationPopupCenter) {
414
+ & when (@variationPopupLeft) {
415
+ [data-inverted][data-position="left center"][data-tooltip]::before {
416
+ background: @invertedArrowCenterBackground;
417
+ box-shadow: @leftArrowBoxShadow;
418
+ }
419
+ }
420
+ & when (@variationPopupRight) {
421
+ [data-inverted][data-position="right center"][data-tooltip]::before {
422
+ background: @invertedArrowCenterBackground;
423
+ box-shadow: @rightArrowBoxShadow;
424
+ }
425
+ }
426
+ }
427
+ & when (@variationPopupTop) {
428
+ [data-inverted][data-position~="top"][data-tooltip]::before {
429
+ background: @invertedArrowBottomBackground;
430
+ }
431
+ }
457
432
  }
458
- }
459
- & when (@variationPopupRight) {
460
- [data-position="right center"][data-tooltip]::before {
461
- transform-origin: right center;
433
+
434
+ & when (@variationPopupBottom) {
435
+ [data-position~="bottom"][data-tooltip]::before {
436
+ transform-origin: center bottom;
437
+ }
438
+ [data-position~="bottom"][data-tooltip]::after {
439
+ transform-origin: center top;
440
+ }
462
441
  }
463
- [data-position="right center"][data-tooltip]::after {
464
- transform-origin: left center;
442
+ & when (@variationPopupCenter) {
443
+ & when (@variationPopupBottom) {
444
+ [data-position="bottom center"][data-tooltip]::before {
445
+ transform-origin: center top;
446
+ }
447
+ }
448
+ & when (@variationPopupLeft) {
449
+ [data-position="left center"][data-tooltip]::before {
450
+ transform-origin: top center;
451
+ }
452
+ [data-position="left center"][data-tooltip]::after {
453
+ transform-origin: right center;
454
+ }
455
+ }
456
+ & when (@variationPopupRight) {
457
+ [data-position="right center"][data-tooltip]::before {
458
+ transform-origin: right center;
459
+ }
460
+ [data-position="right center"][data-tooltip]::after {
461
+ transform-origin: left center;
462
+ }
463
+ }
465
464
  }
466
- }
467
465
  }
468
- }
469
466
 
470
- & when (@variationPopupBasic) {
471
- /*--------------
472
- Basic
473
- ---------------*/
474
- [data-tooltip][data-variation~="basic"]::before {
475
- display: none;
467
+ & when (@variationPopupBasic) {
468
+ /* --------------
469
+ Basic
470
+ --------------- */
471
+ [data-tooltip][data-variation~="basic"]::before {
472
+ display: none;
473
+ }
476
474
  }
477
- }
478
475
 
479
- & when (@variationPopupMultiline) {
480
- [data-tooltip][data-variation~="multiline"]::after {
481
- white-space: @multilineWhiteSpace;
476
+ & when (@variationPopupMultiline) {
477
+ [data-tooltip][data-variation~="multiline"]::after {
478
+ white-space: @multilineWhiteSpace;
479
+ }
482
480
  }
483
- }
484
481
  }
485
482
 
486
- /*--------------
483
+ /* --------------
487
484
  Spacing
488
- ---------------*/
485
+ --------------- */
489
486
 
490
487
  .ui.popup {
491
- margin: 0;
488
+ margin: 0;
492
489
  }
493
490
 
494
491
  & when (@variationPopupTop) {
495
- /* Extending from Top */
496
- .ui.top.popup {
497
- margin: 0 0 @popupDistanceAway;
498
- }
499
- & when (@variationPopupLeft) {
500
- .ui.top.left.popup {
501
- transform-origin: left bottom;
502
- }
503
- }
504
- & when (@variationPopupCenter) {
505
- .ui.top.center.popup {
506
- transform-origin: center bottom;
507
- }
508
- }
509
- & when (@variationPopupRight) {
510
- .ui.top.right.popup {
511
- transform-origin: right bottom;
512
- }
513
- }
492
+ /* Extending from Top */
493
+ .ui.top.popup {
494
+ margin: 0 0 @popupDistanceAway;
495
+ }
496
+ & when (@variationPopupLeft) {
497
+ .ui.top.left.popup {
498
+ transform-origin: left bottom;
499
+ }
500
+ }
501
+ & when (@variationPopupCenter) {
502
+ .ui.top.center.popup {
503
+ transform-origin: center bottom;
504
+ }
505
+ }
506
+ & when (@variationPopupRight) {
507
+ .ui.top.right.popup {
508
+ transform-origin: right bottom;
509
+ }
510
+ }
514
511
  }
515
512
 
516
513
  & when (@variationPopupCenter) {
517
- /* Extending from Vertical Center */
518
- & when (@variationPopupLeft) {
519
- .ui.left.center.popup {
520
- margin: 0 @popupDistanceAway 0 0;
521
- transform-origin: right 50%;
522
- }
523
- }
524
- & when (@variationPopupRight) {
525
- .ui.right.center.popup {
526
- margin: 0 0 0 @popupDistanceAway;
527
- transform-origin: left 50%;
528
- }
529
- }
514
+ /* Extending from Vertical Center */
515
+ & when (@variationPopupLeft) {
516
+ .ui.left.center.popup {
517
+ margin: 0 @popupDistanceAway 0 0;
518
+ transform-origin: right 50%;
519
+ }
520
+ }
521
+ & when (@variationPopupRight) {
522
+ .ui.right.center.popup {
523
+ margin: 0 0 0 @popupDistanceAway;
524
+ transform-origin: left 50%;
525
+ }
526
+ }
530
527
  }
531
528
 
532
529
  & when (@variationPopupBottom) {
533
- /* Extending from Bottom */
534
- .ui.bottom.popup {
535
- margin: @popupDistanceAway 0 0;
536
- }
537
- & when (@variationPopupLeft) {
530
+ /* Extending from Bottom */
531
+ .ui.bottom.popup {
532
+ margin: @popupDistanceAway 0 0;
533
+ }
534
+ & when (@variationPopupLeft) {
535
+ .ui.bottom.left.popup {
536
+ transform-origin: left top;
537
+ }
538
+ }
539
+ & when (@variationPopupCenter) {
540
+ .ui.bottom.center.popup {
541
+ transform-origin: center top;
542
+ }
543
+ }
544
+ & when (@variationPopupRight) {
545
+ .ui.bottom.right.popup {
546
+ transform-origin: right top;
547
+ }
548
+ }
549
+
550
+ /* --------------
551
+ Pointer
552
+ --------------- */
553
+
554
+ /* --- Below --- */
555
+ .ui.bottom.center.popup::before {
556
+ margin-left: @arrowOffset;
557
+ top: @arrowOffset;
558
+ left: 50%;
559
+ right: auto;
560
+ bottom: auto;
561
+ box-shadow: @bottomArrowBoxShadow;
562
+ }
563
+
538
564
  .ui.bottom.left.popup {
539
- transform-origin: left top;
565
+ margin-left: @boxArrowOffset;
540
566
  }
541
- }
542
- & when (@variationPopupCenter) {
543
- .ui.bottom.center.popup {
544
- transform-origin: center top;
567
+
568
+ /* rtl:rename */
569
+ .ui.bottom.left.popup::before {
570
+ top: @arrowOffset;
571
+ left: @arrowDistanceFromEdge;
572
+ right: auto;
573
+ bottom: auto;
574
+ margin-left: 0;
575
+ box-shadow: @bottomArrowBoxShadow;
545
576
  }
546
- }
547
- & when (@variationPopupRight) {
577
+
548
578
  .ui.bottom.right.popup {
549
- transform-origin: right top;
550
- }
551
- }
552
-
553
- /*--------------
554
- Pointer
555
- ---------------*/
556
-
557
- /*--- Below ---*/
558
- .ui.bottom.center.popup::before {
559
- margin-left: @arrowOffset;
560
- top: @arrowOffset;
561
- left: 50%;
562
- right: auto;
563
- bottom: auto;
564
- box-shadow: @bottomArrowBoxShadow;
565
- }
566
-
567
- .ui.bottom.left.popup {
568
- margin-left: @boxArrowOffset;
569
- }
570
- /*rtl:rename*/
571
- .ui.bottom.left.popup::before {
572
- top: @arrowOffset;
573
- left: @arrowDistanceFromEdge;
574
- right: auto;
575
- bottom: auto;
576
- margin-left: 0;
577
- box-shadow: @bottomArrowBoxShadow;
578
- }
579
-
580
- .ui.bottom.right.popup {
581
- margin-right: @boxArrowOffset;
582
- }
583
- /*rtl:rename*/
584
- .ui.bottom.right.popup::before {
585
- top: @arrowOffset;
586
- right: @arrowDistanceFromEdge;
587
- bottom: auto;
588
- left: auto;
589
- margin-left: 0;
590
- box-shadow: @bottomArrowBoxShadow;
591
- }
579
+ margin-right: @boxArrowOffset;
580
+ }
581
+
582
+ /* rtl:rename */
583
+ .ui.bottom.right.popup::before {
584
+ top: @arrowOffset;
585
+ right: @arrowDistanceFromEdge;
586
+ bottom: auto;
587
+ left: auto;
588
+ margin-left: 0;
589
+ box-shadow: @bottomArrowBoxShadow;
590
+ }
592
591
  }
593
592
 
594
593
  & when (@variationPopupTop) {
595
- /*--- Above ---*/
596
- & when (@variationPopupCenter) {
597
- .ui.top.center.popup::before {
598
- top: auto;
599
- right: auto;
600
- bottom: @arrowOffset;
601
- left: 50%;
602
- margin-left: @arrowOffset;
603
- }
604
- }
605
- & when (@variationPopupLeft) {
606
- .ui.top.left.popup {
607
- margin-left: @boxArrowOffset;
608
- }
609
- /*rtl:rename*/
610
- .ui.top.left.popup::before {
611
- bottom: @arrowOffset;
612
- left: @arrowDistanceFromEdge;
613
- top: auto;
614
- right: auto;
615
- margin-left: 0;
616
- }
617
- }
618
- & when (@variationPopupRight) {
619
- .ui.top.right.popup {
620
- margin-right: @boxArrowOffset;
621
- }
622
- /*rtl:rename*/
623
- .ui.top.right.popup::before {
624
- bottom: @arrowOffset;
625
- right: @arrowDistanceFromEdge;
626
- top: auto;
627
- left: auto;
628
- margin-left: 0;
629
- }
630
- }
594
+ /* --- Above --- */
595
+ & when (@variationPopupCenter) {
596
+ .ui.top.center.popup::before {
597
+ top: auto;
598
+ right: auto;
599
+ bottom: @arrowOffset;
600
+ left: 50%;
601
+ margin-left: @arrowOffset;
602
+ }
603
+ }
604
+ & when (@variationPopupLeft) {
605
+ .ui.top.left.popup {
606
+ margin-left: @boxArrowOffset;
607
+ }
608
+
609
+ /* rtl:rename */
610
+ .ui.top.left.popup::before {
611
+ bottom: @arrowOffset;
612
+ left: @arrowDistanceFromEdge;
613
+ top: auto;
614
+ right: auto;
615
+ margin-left: 0;
616
+ }
617
+ }
618
+ & when (@variationPopupRight) {
619
+ .ui.top.right.popup {
620
+ margin-right: @boxArrowOffset;
621
+ }
622
+
623
+ /* rtl:rename */
624
+ .ui.top.right.popup::before {
625
+ bottom: @arrowOffset;
626
+ right: @arrowDistanceFromEdge;
627
+ top: auto;
628
+ left: auto;
629
+ margin-left: 0;
630
+ }
631
+ }
631
632
  }
632
633
 
633
634
  & when (@variationPopupCenter) {
634
- /*--- Left Center ---*/
635
- /*rtl:rename*/
636
- & when (@variationPopupLeft) {
637
- .ui.left.center.popup::before {
638
- top: 50%;
639
- right: @arrowOffset;
640
- bottom: auto;
641
- left: auto;
642
- margin-top: @arrowOffset;
643
- box-shadow: @leftArrowBoxShadow;
644
- }
645
- }
646
- & when (@variationPopupRight) {
647
- /*--- Right Center ---*/
648
- /*rtl:rename*/
649
- .ui.right.center.popup::before {
650
- top: 50%;
651
- left: @arrowOffset;
652
- bottom: auto;
653
- right: auto;
654
- margin-top: @arrowOffset;
655
- box-shadow: @rightArrowBoxShadow;
656
- }
657
- }
658
- & when (@variationPopupLeft) or (@variationPopupRight) {
659
- .ui.right.center.popup::before,
660
- .ui.left.center.popup::before {
661
- background: @arrowCenterBackground;
662
- }
663
- }
635
+ /* --- Left Center --- */
636
+
637
+ /* rtl:rename */
638
+ & when (@variationPopupLeft) {
639
+ .ui.left.center.popup::before {
640
+ top: 50%;
641
+ right: @arrowOffset;
642
+ bottom: auto;
643
+ left: auto;
644
+ margin-top: @arrowOffset;
645
+ box-shadow: @leftArrowBoxShadow;
646
+ }
647
+ }
648
+ & when (@variationPopupRight) {
649
+ /* --- Right Center --- */
650
+
651
+ /* rtl:rename */
652
+ .ui.right.center.popup::before {
653
+ top: 50%;
654
+ left: @arrowOffset;
655
+ bottom: auto;
656
+ right: auto;
657
+ margin-top: @arrowOffset;
658
+ box-shadow: @rightArrowBoxShadow;
659
+ }
660
+ }
661
+ & when (@variationPopupLeft) or (@variationPopupRight) {
662
+ .ui.right.center.popup::before,
663
+ .ui.left.center.popup::before {
664
+ background: @arrowCenterBackground;
665
+ }
666
+ }
664
667
  }
665
668
 
666
669
  & when (@variationPopupBottom) {
667
- /* Arrow Color By Location */
668
- .ui.bottom.popup::before {
669
- background: @arrowTopBackground;
670
- }
670
+ /* Arrow Color By Location */
671
+ .ui.bottom.popup::before {
672
+ background: @arrowTopBackground;
673
+ }
671
674
  }
672
675
 
673
676
  & when (@variationPopupTop) {
674
- .ui.top.popup::before {
675
- background: @arrowBottomBackground;
676
- }
677
+ .ui.top.popup::before {
678
+ background: @arrowBottomBackground;
679
+ }
677
680
  }
678
681
 
679
682
  & when (@variationPopupInverted) {
680
- & when (@variationPopupBottom) {
681
- /* Inverted Arrow Color */
682
- .ui.inverted.bottom.popup::before {
683
- background: @invertedArrowTopBackground;
684
- }
685
- }
686
- & when (@variationPopupCenter) {
687
- .ui.inverted.right.center.popup::before,
688
- .ui.inverted.left.center.popup::before {
689
- background: @invertedArrowCenterBackground;
690
- }
691
- }
692
- & when (@variationPopupTop) {
693
- .ui.inverted.top.popup::before {
694
- background: @invertedArrowBottomBackground;
695
- }
696
- }
683
+ & when (@variationPopupBottom) {
684
+ /* Inverted Arrow Color */
685
+ .ui.inverted.bottom.popup::before {
686
+ background: @invertedArrowTopBackground;
687
+ }
688
+ }
689
+ & when (@variationPopupCenter) {
690
+ .ui.inverted.right.center.popup::before,
691
+ .ui.inverted.left.center.popup::before {
692
+ background: @invertedArrowCenterBackground;
693
+ }
694
+ }
695
+ & when (@variationPopupTop) {
696
+ .ui.inverted.top.popup::before {
697
+ background: @invertedArrowBottomBackground;
698
+ }
699
+ }
697
700
  }
698
701
 
699
-
700
702
  /*******************************
701
703
  Coupling
702
704
  *******************************/
703
705
 
704
706
  /* Immediate Nested Grid */
705
707
  .ui.popup > .ui.grid:not(.padded) {
706
- width: @nestedGridWidth;
707
- margin: @nestedGridMargin;
708
+ width: @nestedGridWidth;
709
+ margin: @nestedGridMargin;
708
710
  }
709
711
 
710
712
  /*******************************
711
713
  States
712
714
  *******************************/
713
715
  & when (@variationPopupLoading) {
714
- .ui.loading.popup {
715
- display: block;
716
- visibility: hidden;
717
- z-index: @loadingZIndex;
718
- }
716
+ .ui.loading.popup {
717
+ display: block;
718
+ visibility: hidden;
719
+ z-index: @loadingZIndex;
720
+ }
719
721
  }
720
722
 
721
723
  .ui.animating.popup,
722
724
  .ui.visible.popup {
723
- display: block;
725
+ display: block;
724
726
  }
725
727
 
726
728
  .ui.visible.popup {
727
- transform: translateZ(0);
728
- backface-visibility: hidden;
729
+ transform: translateZ(0);
730
+ backface-visibility: hidden;
729
731
  }
730
732
 
731
-
732
733
  /*******************************
733
734
  Variations
734
735
  *******************************/
735
736
 
736
737
  & when (@variationPopupBasic) {
737
- /*--------------
738
- Basic
739
- ---------------*/
738
+ /* --------------
739
+ Basic
740
+ --------------- */
740
741
 
741
- .ui.basic.popup::before {
742
- display: none;
743
- }
742
+ .ui.basic.popup::before {
743
+ display: none;
744
+ }
744
745
  }
745
746
 
746
747
  & when (@variationPopupFixed) {
747
- .ui.fixed.popup {
748
- width: @maxWidth;
749
- }
748
+ .ui.fixed.popup {
749
+ width: @maxWidth;
750
+ }
750
751
  }
751
752
 
752
753
  & when (@variationPopupWide) {
753
- /*--------------
754
- Wide
755
- ---------------*/
756
-
757
- .ui.wide.popup {
758
- max-width: @wideWidth;
759
- &.fixed when (@variationPopupFixed) {
760
- width: @wideWidth;
754
+ /* --------------
755
+ Wide
756
+ --------------- */
757
+
758
+ .ui.wide.popup {
759
+ max-width: @wideWidth;
760
+ &.fixed when (@variationPopupFixed) {
761
+ width: @wideWidth;
762
+ }
761
763
  }
762
- }
763
- .ui[class*="very wide"].popup {
764
- max-width: @veryWideWidth;
765
- &.fixed when (@variationPopupFixed) {
766
- width: @veryWideWidth;
764
+ .ui[class*="very wide"].popup {
765
+ max-width: @veryWideWidth;
766
+ &.fixed when (@variationPopupFixed) {
767
+ width: @veryWideWidth;
768
+ }
767
769
  }
768
- }
769
770
 
770
- @media only screen and (max-width: @largestMobileScreen) {
771
- .ui.wide.popup,
772
- .ui[class*="very wide"].popup {
773
- max-width: @maxWidth;
774
- &.fixed when (@variationPopupFixed) {
775
- width:@maxWidth;
776
- }
771
+ @media only screen and (max-width: @largestMobileScreen) {
772
+ .ui.wide.popup,
773
+ .ui[class*="very wide"].popup {
774
+ max-width: @maxWidth;
775
+ &.fixed when (@variationPopupFixed) {
776
+ width: @maxWidth;
777
+ }
778
+ }
777
779
  }
778
- }
779
780
  }
780
781
 
781
782
  & when (@variationPopupFluid) {
782
- /*--------------
783
- Fluid
784
- ---------------*/
785
-
786
- .ui.fluid.popup {
787
- width: 100%;
788
- max-width: none;
789
- }
783
+ /* --------------
784
+ Fluid
785
+ --------------- */
786
+
787
+ .ui.fluid.popup {
788
+ width: 100%;
789
+ max-width: none;
790
+ }
790
791
  }
791
792
 
792
793
  & when (@variationPopupInverted) {
793
- /*--------------
794
- Colors
795
- ---------------*/
796
-
797
- /* Inverted colors */
798
- .ui.inverted.popup {
799
- background: @invertedBackground;
800
- color: @invertedColor;
801
- border: @invertedBorder;
802
- box-shadow: @invertedBoxShadow;
803
- }
804
- .ui.inverted.popup .header {
805
- background-color: @invertedHeaderBackground;
806
- color: @invertedHeaderColor;
807
- }
808
- .ui.inverted.popup::before {
809
- background-color: @invertedArrowColor;
810
- box-shadow: none !important;
811
- }
794
+ /* --------------
795
+ Colors
796
+ --------------- */
797
+
798
+ /* Inverted colors */
799
+ .ui.inverted.popup {
800
+ background: @invertedBackground;
801
+ color: @invertedColor;
802
+ border: @invertedBorder;
803
+ box-shadow: @invertedBoxShadow;
804
+ }
805
+ .ui.inverted.popup .header {
806
+ background-color: @invertedHeaderBackground;
807
+ color: @invertedHeaderColor;
808
+ }
809
+ .ui.inverted.popup::before {
810
+ background-color: @invertedArrowColor;
811
+ box-shadow: none !important;
812
+ }
812
813
  }
813
814
 
814
815
  & when not (@variationPopupColors = false) {
815
- each(@variationPopupColors, {
816
- @color: @value;
817
- @c: @colors[@@color][color];
818
- @l: @colors[@@color][light];
819
-
820
- & when not (@variationPopupTooltip) {
821
- .ui.ui.ui.@{color}.popup::before,
822
- .ui.@{color}.popup {
823
- background: @c;
824
- color: @white;
825
- border: none;
826
- }
827
- .ui.ui.ui.@{color}.popup::before {
828
- box-shadow: none;
829
- }
830
- & when (@variationPopupInverted) {
831
- .ui.inverted.@{color}.popup::before,
832
- .ui.inverted.@{color}.popup {
833
- background: @l;
834
- color: @black;
835
- }
836
- }
837
- }
838
- & when (@variationPopupTooltip) {
839
- .ui.ui.ui.@{color}.popup::before,
840
- .ui.@{color}.popup,
841
- [data-tooltip][data-variation~="@{color}"]::after,
842
- [data-tooltip][data-variation~="@{color}"]::before {
843
- background: @c;
844
- color: @white;
845
- border: none;
846
- }
847
- .ui.ui.ui.@{color}.popup::before,
848
- [data-tooltip][data-variation~="@{color}"]::before {
849
- box-shadow: none;
850
- }
851
- & when (@variationPopupInverted) {
852
- .ui.ui.ui.inverted.@{color}.popup::before,
853
- .ui.inverted.@{color}.popup,
854
- [data-tooltip][data-inverted][data-variation~="@{color}"]::after,
855
- [data-tooltip][data-inverted][data-variation~="@{color}"]::before {
856
- background: @l;
857
- color: @black;
858
- }
859
- }
860
- }
861
- })
816
+ each(@variationPopupColors, {
817
+ @color: @value;
818
+ @c: @colors[@@color][color];
819
+ @l: @colors[@@color][light];
820
+
821
+ & when not (@variationPopupTooltip) {
822
+ .ui.ui.ui.@{color}.popup::before,
823
+ .ui.@{color}.popup {
824
+ background: @c;
825
+ color: @white;
826
+ border: none;
827
+ }
828
+ .ui.ui.ui.@{color}.popup::before {
829
+ box-shadow: none;
830
+ }
831
+ & when (@variationPopupInverted) {
832
+ .ui.inverted.@{color}.popup::before,
833
+ .ui.inverted.@{color}.popup {
834
+ background: @l;
835
+ color: @black;
836
+ }
837
+ }
838
+ }
839
+ & when (@variationPopupTooltip) {
840
+ .ui.ui.ui.@{color}.popup::before,
841
+ .ui.@{color}.popup,
842
+ [data-tooltip][data-variation~="@{color}"]::after,
843
+ [data-tooltip][data-variation~="@{color}"]::before {
844
+ background: @c;
845
+ color: @white;
846
+ border: none;
847
+ }
848
+ .ui.ui.ui.@{color}.popup::before,
849
+ [data-tooltip][data-variation~="@{color}"]::before {
850
+ box-shadow: none;
851
+ }
852
+ & when (@variationPopupInverted) {
853
+ .ui.ui.ui.inverted.@{color}.popup::before,
854
+ .ui.inverted.@{color}.popup,
855
+ [data-tooltip][data-inverted][data-variation~="@{color}"]::after,
856
+ [data-tooltip][data-inverted][data-variation~="@{color}"]::before {
857
+ background: @l;
858
+ color: @black;
859
+ }
860
+ }
861
+ }
862
+ })
862
863
  }
863
864
 
864
865
  & when (@variationPopupFlowing) {
865
- /*--------------
866
- Flowing
867
- ---------------*/
866
+ /* --------------
867
+ Flowing
868
+ --------------- */
868
869
 
869
- .ui.flowing.popup {
870
- max-width: none;
871
- }
870
+ .ui.flowing.popup {
871
+ max-width: none;
872
+ }
872
873
  }
873
874
 
874
-
875
- /*--------------
875
+ /* --------------
876
876
  Sizes
877
- ---------------*/
877
+ --------------- */
878
878
 
879
879
  .ui.popup {
880
- font-size: @medium;
880
+ font-size: @medium;
881
881
  }
882
882
  & when not (@variationPopupSizes = false) {
883
- each(@variationPopupSizes, {
884
- @s: @@value;
885
- .ui.@{value}.popup {
886
- font-size: @s;
887
- }
888
- & when (@variationPopupTooltip) {
889
- [data-tooltip][data-variation~="@{value}"]::before,
890
- [data-tooltip][data-variation~="@{value}"]::after {
891
- font-size: @s;
892
- }
893
- }
894
- })
883
+ each(@variationPopupSizes, {
884
+ @s: @@value;
885
+ .ui.@{value}.popup {
886
+ font-size: @s;
887
+ }
888
+ & when (@variationPopupTooltip) {
889
+ [data-tooltip][data-variation~="@{value}"]::before,
890
+ [data-tooltip][data-variation~="@{value}"]::after {
891
+ font-size: @s;
892
+ }
893
+ }
894
+ })
895
895
  }
896
896
 
897
-
898
897
  .loadUIOverrides();