fomantic-ui 2.9.1-beta.2 → 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 (339) hide show
  1. package/.eslintrc.js +110 -0
  2. package/.github/workflows/ci.yml +14 -4
  3. package/.stylelintrc.js +46 -0
  4. package/dist/components/accordion.css +19 -26
  5. package/dist/components/accordion.js +568 -595
  6. package/dist/components/accordion.min.css +1 -1
  7. package/dist/components/accordion.min.js +2 -2
  8. package/dist/components/ad.css +31 -41
  9. package/dist/components/ad.min.css +1 -1
  10. package/dist/components/api.js +1161 -1179
  11. package/dist/components/api.min.js +2 -2
  12. package/dist/components/breadcrumb.css +1 -1
  13. package/dist/components/breadcrumb.min.css +1 -1
  14. package/dist/components/button.css +71 -106
  15. package/dist/components/button.min.css +1 -1
  16. package/dist/components/calendar.css +18 -16
  17. package/dist/components/calendar.js +1895 -1809
  18. package/dist/components/calendar.min.css +2 -2
  19. package/dist/components/calendar.min.js +2 -2
  20. package/dist/components/card.css +83 -115
  21. package/dist/components/card.min.css +1 -1
  22. package/dist/components/checkbox.css +47 -64
  23. package/dist/components/checkbox.js +842 -841
  24. package/dist/components/checkbox.min.css +1 -1
  25. package/dist/components/checkbox.min.js +2 -2
  26. package/dist/components/comment.css +37 -51
  27. package/dist/components/comment.min.css +1 -1
  28. package/dist/components/container.css +6 -5
  29. package/dist/components/container.min.css +2 -2
  30. package/dist/components/dimmer.css +31 -41
  31. package/dist/components/dimmer.js +708 -737
  32. package/dist/components/dimmer.min.css +1 -1
  33. package/dist/components/dimmer.min.js +2 -2
  34. package/dist/components/divider.css +32 -44
  35. package/dist/components/divider.min.css +1 -1
  36. package/dist/components/dropdown.css +129 -166
  37. package/dist/components/dropdown.js +4161 -4234
  38. package/dist/components/dropdown.min.css +2 -2
  39. package/dist/components/dropdown.min.js +2 -2
  40. package/dist/components/embed.css +13 -19
  41. package/dist/components/embed.js +651 -675
  42. package/dist/components/embed.min.css +1 -1
  43. package/dist/components/embed.min.js +2 -2
  44. package/dist/components/emoji.css +7 -6
  45. package/dist/components/feed.css +24 -32
  46. package/dist/components/feed.min.css +1 -1
  47. package/dist/components/flag.css +5 -3
  48. package/dist/components/flag.min.css +1 -1
  49. package/dist/components/flyout.css +44 -58
  50. package/dist/components/flyout.js +1464 -1465
  51. package/dist/components/flyout.min.css +2 -2
  52. package/dist/components/flyout.min.js +2 -2
  53. package/dist/components/form.css +85 -111
  54. package/dist/components/form.js +1979 -2004
  55. package/dist/components/form.min.css +1 -1
  56. package/dist/components/form.min.js +2 -2
  57. package/dist/components/grid.css +70 -96
  58. package/dist/components/grid.min.css +1 -1
  59. package/dist/components/header.css +47 -65
  60. package/dist/components/header.min.css +1 -1
  61. package/dist/components/icon.css +45 -66
  62. package/dist/components/icon.min.css +2 -2
  63. package/dist/components/image.css +32 -42
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +182 -65
  66. package/dist/components/input.min.css +2 -2
  67. package/dist/components/item.css +55 -77
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +68 -91
  70. package/dist/components/label.min.css +2 -2
  71. package/dist/components/list.css +44 -59
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +16 -22
  74. package/dist/components/loader.min.css +1 -1
  75. package/dist/components/menu.css +126 -186
  76. package/dist/components/message.css +25 -35
  77. package/dist/components/message.min.css +1 -1
  78. package/dist/components/modal.css +39 -40
  79. package/dist/components/modal.js +1491 -1485
  80. package/dist/components/modal.min.css +2 -2
  81. package/dist/components/modal.min.js +2 -2
  82. package/dist/components/nag.css +21 -28
  83. package/dist/components/nag.js +518 -526
  84. package/dist/components/nag.min.css +2 -2
  85. package/dist/components/nag.min.js +2 -2
  86. package/dist/components/placeholder.css +10 -12
  87. package/dist/components/placeholder.min.css +1 -1
  88. package/dist/components/popup.css +352 -59
  89. package/dist/components/popup.js +1437 -1456
  90. package/dist/components/popup.min.css +2 -2
  91. package/dist/components/popup.min.js +2 -2
  92. package/dist/components/progress.css +29 -39
  93. package/dist/components/progress.js +969 -997
  94. package/dist/components/progress.min.css +1 -1
  95. package/dist/components/progress.min.js +2 -2
  96. package/dist/components/rail.css +15 -20
  97. package/dist/components/rail.min.css +1 -1
  98. package/dist/components/rating.css +9 -13
  99. package/dist/components/rating.js +505 -523
  100. package/dist/components/rating.min.css +1 -1
  101. package/dist/components/rating.min.js +2 -2
  102. package/dist/components/reset.css +1 -1
  103. package/dist/components/reset.min.css +1 -1
  104. package/dist/components/reveal.css +19 -26
  105. package/dist/components/reveal.min.css +1 -1
  106. package/dist/components/search.css +43 -58
  107. package/dist/components/search.js +1498 -1534
  108. package/dist/components/search.min.css +2 -2
  109. package/dist/components/search.min.js +2 -2
  110. package/dist/components/segment.css +64 -83
  111. package/dist/components/segment.min.css +2 -2
  112. package/dist/components/shape.css +10 -14
  113. package/dist/components/shape.js +792 -809
  114. package/dist/components/shape.min.css +1 -1
  115. package/dist/components/shape.min.js +2 -2
  116. package/dist/components/sidebar.css +43 -58
  117. package/dist/components/sidebar.js +1071 -1098
  118. package/dist/components/sidebar.min.css +2 -2
  119. package/dist/components/sidebar.min.js +2 -2
  120. package/dist/components/site.css +5 -5
  121. package/dist/components/site.js +462 -476
  122. package/dist/components/site.min.css +1 -1
  123. package/dist/components/site.min.js +2 -2
  124. package/dist/components/slider.css +27 -37
  125. package/dist/components/slider.js +1287 -1306
  126. package/dist/components/slider.min.js +2 -2
  127. package/dist/components/state.js +639 -657
  128. package/dist/components/state.min.js +2 -2
  129. package/dist/components/statistic.css +32 -41
  130. package/dist/components/statistic.min.css +2 -2
  131. package/dist/components/step.css +26 -35
  132. package/dist/components/step.min.css +1 -1
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +857 -902
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +2 -2
  137. package/dist/components/tab.css +6 -8
  138. package/dist/components/tab.js +922 -963
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +2 -2
  141. package/dist/components/table.css +93 -119
  142. package/dist/components/table.min.css +2 -2
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +4 -6
  146. package/dist/components/toast.js +886 -887
  147. package/dist/components/toast.min.css +1 -1
  148. package/dist/components/toast.min.js +2 -2
  149. package/dist/components/transition.css +150 -3
  150. package/dist/components/transition.js +1041 -1077
  151. package/dist/components/transition.min.css +2 -2
  152. package/dist/components/transition.min.js +2 -2
  153. package/dist/components/visibility.js +1220 -1244
  154. package/dist/components/visibility.min.js +2 -2
  155. package/dist/semantic.css +2529 -1778
  156. package/dist/semantic.js +28928 -29383
  157. package/dist/semantic.min.css +2 -2
  158. package/dist/semantic.min.js +2 -2
  159. package/dist/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  160. package/dist/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
  161. package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  162. package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  163. package/dist/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  164. package/dist/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
  165. package/dist/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  166. package/dist/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
  167. package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  168. package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  169. package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  170. package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
  171. package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  172. package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
  173. package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  174. package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  175. package/examples/assets/show-examples.js +13 -13
  176. package/gulpfile.js +9 -10
  177. package/package.json +13 -8
  178. package/scripts/nightly-version.js +81 -75
  179. package/src/definitions/behaviors/api.js +1162 -1180
  180. package/src/definitions/behaviors/form.js +1978 -2003
  181. package/src/definitions/behaviors/state.js +645 -663
  182. package/src/definitions/behaviors/visibility.js +1219 -1243
  183. package/src/definitions/collections/breadcrumb.less +41 -44
  184. package/src/definitions/collections/form.less +869 -879
  185. package/src/definitions/collections/grid.less +1690 -1695
  186. package/src/definitions/collections/menu.less +1493 -1503
  187. package/src/definitions/collections/message.less +292 -295
  188. package/src/definitions/collections/table.less +1616 -1620
  189. package/src/definitions/elements/button.less +1721 -1743
  190. package/src/definitions/elements/container.less +209 -209
  191. package/src/definitions/elements/divider.less +205 -206
  192. package/src/definitions/elements/emoji.less +38 -44
  193. package/src/definitions/elements/flag.less +44 -46
  194. package/src/definitions/elements/header.less +337 -345
  195. package/src/definitions/elements/icon.less +516 -443
  196. package/src/definitions/elements/image.less +221 -225
  197. package/src/definitions/elements/input.less +663 -659
  198. package/src/definitions/elements/label.less +803 -793
  199. package/src/definitions/elements/list.less +809 -809
  200. package/src/definitions/elements/loader.less +272 -266
  201. package/src/definitions/elements/placeholder.less +171 -168
  202. package/src/definitions/elements/rail.less +91 -91
  203. package/src/definitions/elements/reveal.less +192 -196
  204. package/src/definitions/elements/segment.less +743 -746
  205. package/src/definitions/elements/step.less +425 -433
  206. package/src/definitions/elements/text.less +32 -34
  207. package/src/definitions/globals/reset.less +9 -6
  208. package/src/definitions/globals/site.js +461 -475
  209. package/src/definitions/globals/site.less +106 -108
  210. package/src/definitions/modules/accordion.js +567 -594
  211. package/src/definitions/modules/accordion.less +242 -246
  212. package/src/definitions/modules/calendar.js +1894 -1808
  213. package/src/definitions/modules/calendar.less +98 -95
  214. package/src/definitions/modules/checkbox.js +841 -840
  215. package/src/definitions/modules/checkbox.less +536 -542
  216. package/src/definitions/modules/dimmer.js +707 -736
  217. package/src/definitions/modules/dimmer.less +300 -297
  218. package/src/definitions/modules/dropdown.js +4160 -4233
  219. package/src/definitions/modules/dropdown.less +1577 -1589
  220. package/src/definitions/modules/embed.js +650 -674
  221. package/src/definitions/modules/embed.less +81 -82
  222. package/src/definitions/modules/flyout.js +1463 -1464
  223. package/src/definitions/modules/flyout.less +445 -451
  224. package/src/definitions/modules/modal.js +1490 -1484
  225. package/src/definitions/modules/modal.less +459 -459
  226. package/src/definitions/modules/nag.js +517 -525
  227. package/src/definitions/modules/nag.less +134 -138
  228. package/src/definitions/modules/popup.js +1436 -1455
  229. package/src/definitions/modules/popup.less +742 -687
  230. package/src/definitions/modules/progress.js +968 -996
  231. package/src/definitions/modules/progress.less +521 -494
  232. package/src/definitions/modules/rating.js +504 -522
  233. package/src/definitions/modules/rating.less +94 -101
  234. package/src/definitions/modules/search.js +1497 -1533
  235. package/src/definitions/modules/search.less +375 -382
  236. package/src/definitions/modules/shape.js +791 -808
  237. package/src/definitions/modules/shape.less +71 -76
  238. package/src/definitions/modules/sidebar.js +1070 -1097
  239. package/src/definitions/modules/sidebar.less +463 -472
  240. package/src/definitions/modules/slider.js +1286 -1305
  241. package/src/definitions/modules/slider.less +307 -308
  242. package/src/definitions/modules/sticky.js +873 -918
  243. package/src/definitions/modules/sticky.less +21 -23
  244. package/src/definitions/modules/tab.js +921 -962
  245. package/src/definitions/modules/tab.less +51 -52
  246. package/src/definitions/modules/toast.js +885 -886
  247. package/src/definitions/modules/toast.less +584 -586
  248. package/src/definitions/modules/transition.js +1040 -1076
  249. package/src/definitions/modules/transition.less +62 -28
  250. package/src/definitions/views/ad.less +206 -206
  251. package/src/definitions/views/card.less +968 -970
  252. package/src/definitions/views/comment.less +190 -198
  253. package/src/definitions/views/feed.less +220 -224
  254. package/src/definitions/views/item.less +436 -446
  255. package/src/definitions/views/statistic.less +271 -277
  256. package/src/theme.less +29 -32
  257. package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  258. package/src/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
  259. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  260. package/src/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  261. package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  262. package/src/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
  263. package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  264. package/src/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
  265. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  266. package/src/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  267. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  268. package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
  269. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  270. package/src/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
  271. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  272. package/src/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  273. package/src/themes/default/elements/container.variables +0 -7
  274. package/src/themes/default/elements/icon.variables +18 -0
  275. package/src/themes/default/elements/segment.variables +0 -7
  276. package/src/themes/default/globals/colors.less +589 -589
  277. package/src/themes/default/globals/site.variables +8 -0
  278. package/src/themes/default/globals/variation.variables +13 -1
  279. package/src/themes/default/modules/calendar.variables +2 -0
  280. package/src/themes/default/modules/nag.variables +1 -1
  281. package/src/themes/default/modules/popup.variables +2 -0
  282. package/src/themes/default/modules/transition.variables +8 -1
  283. package/tasks/admin/components/create.js +274 -276
  284. package/tasks/admin/components/init.js +123 -130
  285. package/tasks/admin/components/update.js +149 -157
  286. package/tasks/admin/distributions/create.js +184 -187
  287. package/tasks/admin/distributions/init.js +123 -130
  288. package/tasks/admin/distributions/update.js +145 -152
  289. package/tasks/admin/publish.js +5 -7
  290. package/tasks/admin/register.js +36 -38
  291. package/tasks/admin/release.js +8 -10
  292. package/tasks/build/assets.js +42 -39
  293. package/tasks/build/css.js +225 -216
  294. package/tasks/build/javascript.js +118 -113
  295. package/tasks/build.js +10 -10
  296. package/tasks/check-install.js +14 -16
  297. package/tasks/clean.js +5 -5
  298. package/tasks/collections/admin.js +34 -36
  299. package/tasks/collections/build.js +18 -20
  300. package/tasks/collections/docs.js +9 -11
  301. package/tasks/collections/install.js +9 -11
  302. package/tasks/collections/rtl.js +9 -11
  303. package/tasks/collections/various.js +8 -10
  304. package/tasks/config/admin/github.js +17 -17
  305. package/tasks/config/admin/oauth.example.js +4 -4
  306. package/tasks/config/admin/release.js +98 -98
  307. package/tasks/config/admin/templates/component-package.js +9 -10
  308. package/tasks/config/admin/templates/css-package.js +18 -20
  309. package/tasks/config/admin/templates/less-package.js +11 -13
  310. package/tasks/config/defaults.js +116 -114
  311. package/tasks/config/docs.js +23 -23
  312. package/tasks/config/npm/gulpfile.js +8 -9
  313. package/tasks/config/project/config.js +127 -134
  314. package/tasks/config/project/install.js +715 -713
  315. package/tasks/config/project/release.js +32 -38
  316. package/tasks/config/tasks.js +165 -156
  317. package/tasks/config/user.js +23 -26
  318. package/tasks/docs/build.js +97 -95
  319. package/tasks/docs/metadata.js +90 -96
  320. package/tasks/docs/serve.js +80 -81
  321. package/tasks/install.js +370 -378
  322. package/tasks/rtl/build.js +2 -2
  323. package/tasks/rtl/watch.js +2 -2
  324. package/tasks/version.js +4 -4
  325. package/tasks/watch.js +28 -30
  326. package/test/meteor/assets.js +10 -13
  327. package/test/meteor/fonts.js +12 -13
  328. package/test/modules/accordion.spec.js +6 -8
  329. package/test/modules/checkbox.spec.js +5 -7
  330. package/test/modules/dropdown.spec.js +5 -7
  331. package/test/modules/modal.spec.js +6 -8
  332. package/test/modules/module.spec.js +158 -178
  333. package/test/modules/popup.spec.js +5 -7
  334. package/test/modules/search.spec.js +5 -7
  335. package/test/modules/shape.spec.js +5 -7
  336. package/test/modules/sidebar.spec.js +5 -7
  337. package/test/modules/tab.spec.js +6 -8
  338. package/test/modules/transition.spec.js +5 -7
  339. package/test/modules/video.spec.js +5 -7
@@ -8,67 +8,65 @@
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;
60
+ position: absolute;
61
+ content: '';
62
+ width: @arrowSize;
63
+ height: @arrowSize;
66
64
 
67
- background: @arrowBackground;
68
- transform: rotate(45deg);
65
+ background: @arrowBackground;
66
+ transform: rotate(45deg);
69
67
 
70
- z-index: @arrowZIndex;
71
- box-shadow: @arrowBoxShadow;
68
+ z-index: @arrowZIndex;
69
+ box-shadow: @arrowBoxShadow;
72
70
  }
73
71
 
74
72
  /*******************************
@@ -76,767 +74,824 @@
76
74
  *******************************/
77
75
 
78
76
  & 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
- position: absolute;
92
- content: '';
93
- font-size: @medium;
94
- width: @arrowSize;
95
- height: @arrowSize;
96
-
97
- background: @tooltipArrowBackground;
98
- transform: rotate(45deg);
77
+ /* --------------
78
+ Tooltip
79
+ --------------- */
99
80
 
100
- z-index: @arrowZIndex;
101
- box-shadow: @tooltipArrowBoxShadow;
102
- }
81
+ /* Content */
82
+ [data-tooltip] {
83
+ position: relative;
84
+ }
103
85
 
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:
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:
155
153
  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;
154
+ opacity @tooltipDuration @tooltipEasing;
217
155
  }
218
- @media only screen and (max-width: @largestMobileScreen) {
219
- [data-tooltip][data-variation~="fixed"]::after {
220
- width: @maxWidth;
221
- }
156
+ [data-tooltip]::before {
157
+ transform: rotate(45deg) scale(0) !important;
158
+ transform-origin: center top;
222
159
  }
223
- }
224
- & when (@variationPopupInverted) {
225
- /*--------------
226
- Inverted
227
- ---------------*/
228
-
229
- /* Arrow */
230
- [data-tooltip][data-inverted]::before {
231
- box-shadow: none !important;
160
+ [data-tooltip]::after {
161
+ transform-origin: center bottom;
232
162
  }
233
-
234
- /* Arrow Position */
235
- [data-tooltip][data-inverted]::before {
236
- background: @invertedArrowBottomBackground;
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
+ }
237
220
  }
221
+ & when (@variationPopupInverted) {
222
+ /* --------------
223
+ Inverted
224
+ --------------- */
238
225
 
239
- /* Popup */
240
- [data-tooltip][data-inverted]::after {
241
- background: @tooltipInvertedBackground;
242
- color: @tooltipInvertedColor;
243
- border: @tooltipInvertedBorder;
244
- box-shadow: @tooltipInvertedBoxShadow;
245
- }
246
- }
226
+ /* Arrow */
227
+ [data-tooltip][data-inverted]::before {
228
+ box-shadow: none !important;
229
+ }
247
230
 
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
- }
312
- }
231
+ /* Arrow Position */
232
+ [data-tooltip][data-inverted]::before {
233
+ background: @invertedArrowBottomBackground;
234
+ }
313
235
 
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
- }
370
- }
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
- }
236
+ /* Popup */
237
+ [data-tooltip][data-inverted]::after {
238
+ background: @tooltipInvertedBackground;
239
+ color: @tooltipInvertedColor;
240
+ border: @tooltipInvertedBorder;
241
+ box-shadow: @tooltipInvertedBoxShadow;
242
+ }
406
243
  }
407
244
 
408
- & 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
- }
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
+ }
422
309
  }
423
- & when (@variationPopupRight) {
424
- [data-inverted][data-position="right center"][data-tooltip]::before {
425
- background: @invertedArrowCenterBackground;
426
- box-shadow: @rightArrowBoxShadow;
427
- }
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
+ }
428
367
  }
429
- }
430
- & when (@variationPopupTop) {
431
- [data-inverted][data-position~="top"][data-tooltip]::before {
432
- background: @invertedArrowBottomBackground;
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
+ }
433
403
  }
434
- }
435
- }
436
404
 
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;
449
- }
450
- }
451
- & when (@variationPopupLeft) {
452
- [data-position="left center"][data-tooltip]::before {
453
- transform-origin: top center;
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
+ }
454
432
  }
455
- [data-position="left center"][data-tooltip]::after {
456
- 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
+ }
457
441
  }
458
- }
459
- & when (@variationPopupRight) {
460
- [data-position="right center"][data-tooltip]::before {
461
- transform-origin: right 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
+ }
462
464
  }
463
- [data-position="right center"][data-tooltip]::after {
464
- transform-origin: left center;
465
+ }
466
+
467
+ & when (@variationPopupBasic) {
468
+ /* --------------
469
+ Basic
470
+ --------------- */
471
+ [data-tooltip][data-variation~="basic"]::before {
472
+ display: none;
465
473
  }
466
- }
467
474
  }
468
- }
469
475
 
470
- & when (@variationPopupBasic) {
471
- /*--------------
472
- Basic
473
- ---------------*/
474
- [data-tooltip][data-variation~="basic"]::before {
475
- display: none;
476
+ & when (@variationPopupMultiline) {
477
+ [data-tooltip][data-variation~="multiline"]::after {
478
+ white-space: @multilineWhiteSpace;
479
+ }
476
480
  }
477
- }
478
481
  }
479
482
 
480
- /*--------------
483
+ /* --------------
481
484
  Spacing
482
- ---------------*/
485
+ --------------- */
483
486
 
484
487
  .ui.popup {
485
- margin: 0;
488
+ margin: 0;
486
489
  }
487
490
 
488
491
  & when (@variationPopupTop) {
489
- /* Extending from Top */
490
- .ui.top.popup {
491
- margin: 0 0 @popupDistanceAway;
492
- }
493
- & when (@variationPopupLeft) {
494
- .ui.top.left.popup {
495
- transform-origin: left bottom;
496
- }
497
- }
498
- & when (@variationPopupCenter) {
499
- .ui.top.center.popup {
500
- transform-origin: center bottom;
501
- }
502
- }
503
- & when (@variationPopupRight) {
504
- .ui.top.right.popup {
505
- transform-origin: right bottom;
506
- }
507
- }
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
+ }
508
511
  }
509
512
 
510
513
  & when (@variationPopupCenter) {
511
- /* Extending from Vertical Center */
512
- & when (@variationPopupLeft) {
513
- .ui.left.center.popup {
514
- margin: 0 @popupDistanceAway 0 0;
515
- transform-origin: right 50%;
516
- }
517
- }
518
- & when (@variationPopupRight) {
519
- .ui.right.center.popup {
520
- margin: 0 0 0 @popupDistanceAway;
521
- transform-origin: left 50%;
522
- }
523
- }
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
+ }
524
527
  }
525
528
 
526
529
  & when (@variationPopupBottom) {
527
- /* Extending from Bottom */
528
- .ui.bottom.popup {
529
- margin: @popupDistanceAway 0 0;
530
- }
531
- & 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
+
532
564
  .ui.bottom.left.popup {
533
- transform-origin: left top;
565
+ margin-left: @boxArrowOffset;
534
566
  }
535
- }
536
- & when (@variationPopupCenter) {
537
- .ui.bottom.center.popup {
538
- 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;
539
576
  }
540
- }
541
- & when (@variationPopupRight) {
577
+
542
578
  .ui.bottom.right.popup {
543
- transform-origin: right top;
544
- }
545
- }
546
-
547
- /*--------------
548
- Pointer
549
- ---------------*/
550
-
551
- /*--- Below ---*/
552
- .ui.bottom.center.popup::before {
553
- margin-left: @arrowOffset;
554
- top: @arrowOffset;
555
- left: 50%;
556
- right: auto;
557
- bottom: auto;
558
- box-shadow: @bottomArrowBoxShadow;
559
- }
560
-
561
- .ui.bottom.left.popup {
562
- margin-left: @boxArrowOffset;
563
- }
564
- /*rtl:rename*/
565
- .ui.bottom.left.popup::before {
566
- top: @arrowOffset;
567
- left: @arrowDistanceFromEdge;
568
- right: auto;
569
- bottom: auto;
570
- margin-left: 0;
571
- box-shadow: @bottomArrowBoxShadow;
572
- }
573
-
574
- .ui.bottom.right.popup {
575
- margin-right: @boxArrowOffset;
576
- }
577
- /*rtl:rename*/
578
- .ui.bottom.right.popup::before {
579
- top: @arrowOffset;
580
- right: @arrowDistanceFromEdge;
581
- bottom: auto;
582
- left: auto;
583
- margin-left: 0;
584
- box-shadow: @bottomArrowBoxShadow;
585
- }
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
+ }
586
591
  }
587
592
 
588
593
  & when (@variationPopupTop) {
589
- /*--- Above ---*/
590
- & when (@variationPopupCenter) {
591
- .ui.top.center.popup::before {
592
- top: auto;
593
- right: auto;
594
- bottom: @arrowOffset;
595
- left: 50%;
596
- margin-left: @arrowOffset;
597
- }
598
- }
599
- & when (@variationPopupLeft) {
600
- .ui.top.left.popup {
601
- margin-left: @boxArrowOffset;
602
- }
603
- /*rtl:rename*/
604
- .ui.top.left.popup::before {
605
- bottom: @arrowOffset;
606
- left: @arrowDistanceFromEdge;
607
- top: auto;
608
- right: auto;
609
- margin-left: 0;
610
- }
611
- }
612
- & when (@variationPopupRight) {
613
- .ui.top.right.popup {
614
- margin-right: @boxArrowOffset;
615
- }
616
- /*rtl:rename*/
617
- .ui.top.right.popup::before {
618
- bottom: @arrowOffset;
619
- right: @arrowDistanceFromEdge;
620
- top: auto;
621
- left: auto;
622
- margin-left: 0;
623
- }
624
- }
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
+ }
625
632
  }
626
633
 
627
634
  & when (@variationPopupCenter) {
628
- /*--- Left Center ---*/
629
- /*rtl:rename*/
630
- & when (@variationPopupLeft) {
631
- .ui.left.center.popup::before {
632
- top: 50%;
633
- right: @arrowOffset;
634
- bottom: auto;
635
- left: auto;
636
- margin-top: @arrowOffset;
637
- box-shadow: @leftArrowBoxShadow;
638
- }
639
- }
640
- & when (@variationPopupRight) {
641
- /*--- Right Center ---*/
642
- /*rtl:rename*/
643
- .ui.right.center.popup::before {
644
- top: 50%;
645
- left: @arrowOffset;
646
- bottom: auto;
647
- right: auto;
648
- margin-top: @arrowOffset;
649
- box-shadow: @rightArrowBoxShadow;
650
- }
651
- }
652
- & when (@variationPopupLeft) or (@variationPopupRight) {
653
- .ui.right.center.popup::before,
654
- .ui.left.center.popup::before {
655
- background: @arrowCenterBackground;
656
- }
657
- }
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
+ }
658
667
  }
659
668
 
660
669
  & when (@variationPopupBottom) {
661
- /* Arrow Color By Location */
662
- .ui.bottom.popup::before {
663
- background: @arrowTopBackground;
664
- }
670
+ /* Arrow Color By Location */
671
+ .ui.bottom.popup::before {
672
+ background: @arrowTopBackground;
673
+ }
665
674
  }
666
675
 
667
676
  & when (@variationPopupTop) {
668
- .ui.top.popup::before {
669
- background: @arrowBottomBackground;
670
- }
677
+ .ui.top.popup::before {
678
+ background: @arrowBottomBackground;
679
+ }
671
680
  }
672
681
 
673
682
  & when (@variationPopupInverted) {
674
- & when (@variationPopupBottom) {
675
- /* Inverted Arrow Color */
676
- .ui.inverted.bottom.popup::before {
677
- background: @invertedArrowTopBackground;
678
- }
679
- }
680
- & when (@variationPopupCenter) {
681
- .ui.inverted.right.center.popup::before,
682
- .ui.inverted.left.center.popup::before {
683
- background: @invertedArrowCenterBackground;
684
- }
685
- }
686
- & when (@variationPopupTop) {
687
- .ui.inverted.top.popup::before {
688
- background: @invertedArrowBottomBackground;
689
- }
690
- }
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
+ }
691
700
  }
692
701
 
693
-
694
702
  /*******************************
695
703
  Coupling
696
704
  *******************************/
697
705
 
698
706
  /* Immediate Nested Grid */
699
707
  .ui.popup > .ui.grid:not(.padded) {
700
- width: @nestedGridWidth;
701
- margin: @nestedGridMargin;
708
+ width: @nestedGridWidth;
709
+ margin: @nestedGridMargin;
702
710
  }
703
711
 
704
712
  /*******************************
705
713
  States
706
714
  *******************************/
707
715
  & when (@variationPopupLoading) {
708
- .ui.loading.popup {
709
- display: block;
710
- visibility: hidden;
711
- z-index: @loadingZIndex;
712
- }
716
+ .ui.loading.popup {
717
+ display: block;
718
+ visibility: hidden;
719
+ z-index: @loadingZIndex;
720
+ }
713
721
  }
714
722
 
715
723
  .ui.animating.popup,
716
724
  .ui.visible.popup {
717
- display: block;
725
+ display: block;
718
726
  }
719
727
 
720
728
  .ui.visible.popup {
721
- transform: translateZ(0);
722
- backface-visibility: hidden;
729
+ transform: translateZ(0);
730
+ backface-visibility: hidden;
723
731
  }
724
732
 
725
-
726
733
  /*******************************
727
734
  Variations
728
735
  *******************************/
729
736
 
730
737
  & when (@variationPopupBasic) {
731
- /*--------------
732
- Basic
733
- ---------------*/
738
+ /* --------------
739
+ Basic
740
+ --------------- */
734
741
 
735
- .ui.basic.popup::before {
736
- display: none;
737
- }
742
+ .ui.basic.popup::before {
743
+ display: none;
744
+ }
738
745
  }
739
746
 
740
747
  & when (@variationPopupFixed) {
741
- .ui.fixed.popup {
742
- width: @maxWidth;
743
- }
748
+ .ui.fixed.popup {
749
+ width: @maxWidth;
750
+ }
744
751
  }
745
752
 
746
753
  & when (@variationPopupWide) {
747
- /*--------------
748
- Wide
749
- ---------------*/
750
-
751
- .ui.wide.popup {
752
- max-width: @wideWidth;
753
- &.fixed when (@variationPopupFixed) {
754
- width: @wideWidth;
754
+ /* --------------
755
+ Wide
756
+ --------------- */
757
+
758
+ .ui.wide.popup {
759
+ max-width: @wideWidth;
760
+ &.fixed when (@variationPopupFixed) {
761
+ width: @wideWidth;
762
+ }
755
763
  }
756
- }
757
- .ui[class*="very wide"].popup {
758
- max-width: @veryWideWidth;
759
- &.fixed when (@variationPopupFixed) {
760
- width: @veryWideWidth;
764
+ .ui[class*="very wide"].popup {
765
+ max-width: @veryWideWidth;
766
+ &.fixed when (@variationPopupFixed) {
767
+ width: @veryWideWidth;
768
+ }
761
769
  }
762
- }
763
770
 
764
- @media only screen and (max-width: @largestMobileScreen) {
765
- .ui.wide.popup,
766
- .ui[class*="very wide"].popup {
767
- max-width: @maxWidth;
768
- &.fixed when (@variationPopupFixed) {
769
- width:@maxWidth;
770
- }
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
+ }
771
779
  }
772
- }
773
780
  }
774
781
 
775
782
  & when (@variationPopupFluid) {
776
- /*--------------
777
- Fluid
778
- ---------------*/
779
-
780
- .ui.fluid.popup {
781
- width: 100%;
782
- max-width: none;
783
- }
783
+ /* --------------
784
+ Fluid
785
+ --------------- */
786
+
787
+ .ui.fluid.popup {
788
+ width: 100%;
789
+ max-width: none;
790
+ }
784
791
  }
785
792
 
786
793
  & when (@variationPopupInverted) {
787
- /*--------------
788
- Colors
789
- ---------------*/
790
-
791
- /* Inverted colors */
792
- .ui.inverted.popup {
793
- background: @invertedBackground;
794
- color: @invertedColor;
795
- border: @invertedBorder;
796
- box-shadow: @invertedBoxShadow;
797
- }
798
- .ui.inverted.popup .header {
799
- background-color: @invertedHeaderBackground;
800
- color: @invertedHeaderColor;
801
- }
802
- .ui.inverted.popup::before {
803
- background-color: @invertedArrowColor;
804
- box-shadow: none !important;
805
- }
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
+ }
813
+ }
814
+
815
+ & when not (@variationPopupColors = false) {
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
+ })
806
863
  }
807
864
 
808
865
  & when (@variationPopupFlowing) {
809
- /*--------------
810
- Flowing
811
- ---------------*/
866
+ /* --------------
867
+ Flowing
868
+ --------------- */
812
869
 
813
- .ui.flowing.popup {
814
- max-width: none;
815
- }
870
+ .ui.flowing.popup {
871
+ max-width: none;
872
+ }
816
873
  }
817
874
 
818
-
819
- /*--------------
875
+ /* --------------
820
876
  Sizes
821
- ---------------*/
877
+ --------------- */
822
878
 
823
879
  .ui.popup {
824
- font-size: @medium;
880
+ font-size: @medium;
825
881
  }
826
882
  & when not (@variationPopupSizes = false) {
827
- each(@variationPopupSizes, {
828
- @s: @@value;
829
- .ui.@{value}.popup {
830
- font-size: @s;
831
- }
832
- & when (@variationPopupTooltip) {
833
- [data-tooltip][data-variation~="@{value}"]::before,
834
- [data-tooltip][data-variation~="@{value}"]::after {
835
- font-size: @s;
836
- }
837
- }
838
- })
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
+ })
839
895
  }
840
896
 
841
-
842
897
  .loadUIOverrides();