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,12 +8,11 @@
8
8
  *
9
9
  */
10
10
 
11
-
12
11
  /*******************************
13
12
  Theme
14
13
  *******************************/
15
14
 
16
- @type : 'element';
15
+ @type : 'element';
17
16
  @element : 'label';
18
17
 
19
18
  @import (multiple) '../../theme.config';
@@ -23,1014 +22,1025 @@
23
22
  *******************************/
24
23
 
25
24
  .ui.label {
26
- display: inline-block;
27
- line-height: 1;
28
- vertical-align: @verticalAlign;
25
+ display: inline-block;
26
+ line-height: 1;
27
+ vertical-align: @verticalAlign;
29
28
 
30
- margin: @verticalMargin @horizontalMargin;
29
+ margin: @verticalMargin @horizontalMargin;
31
30
 
32
- background-color: @backgroundColor;
33
- background-image: @backgroundImage;
34
- padding: @verticalPadding @horizontalPadding;
35
- color: @color;
31
+ background-color: @backgroundColor;
32
+ background-image: @backgroundImage;
33
+ padding: @verticalPadding @horizontalPadding;
34
+ color: @color;
36
35
 
37
- text-transform: @textTransform;
38
- font-weight: @fontWeight;
36
+ text-transform: @textTransform;
37
+ font-weight: @fontWeight;
39
38
 
40
- border: @border;
41
- border-radius: @borderRadius;
42
- transition: @transition;
39
+ border: @border;
40
+ border-radius: @borderRadius;
41
+ transition: @transition;
43
42
  }
44
43
 
45
44
  .ui.label:first-child {
46
- margin-left: 0;
45
+ margin-left: 0;
47
46
  }
48
47
  .ui.label:last-child {
49
- margin-right: 0;
48
+ margin-right: 0;
50
49
  }
51
50
 
52
51
  /* Link */
53
52
  a.ui.label {
54
- cursor: pointer;
53
+ cursor: pointer;
55
54
  }
56
55
 
57
56
  /* Inside Link */
58
57
  .ui.label > a {
59
- cursor: pointer;
60
- color: inherit;
61
- opacity: @linkOpacity;
62
- transition: @linkTransition;
58
+ cursor: pointer;
59
+ color: inherit;
60
+ opacity: @linkOpacity;
61
+ transition: @linkTransition;
63
62
  }
64
63
  .ui.label > a:hover {
65
- opacity: 1;
64
+ opacity: 1;
66
65
  }
67
66
 
68
67
  /* Image */
69
68
  .ui.label > img {
70
- width: auto !important;
71
- vertical-align: middle;
72
- height: @imageHeight;
69
+ width: auto !important;
70
+ vertical-align: middle;
71
+ height: @imageHeight;
73
72
  }
74
73
 
75
74
  /* Icon */
76
75
  .ui.ui[class*="left icon"].label > .icon,
77
76
  .ui.label > .icon {
78
- width: auto;
79
- margin: 0 @iconDistance 0 0;
77
+ width: auto;
78
+ margin: 0 @iconDistance 0 0;
80
79
  }
81
80
 
82
81
  /* Detail */
83
82
  .ui.label > .detail {
84
- display: inline-block;
85
- vertical-align: top;
86
- font-weight: @detailFontWeight;
87
- margin-left: @detailMargin;
88
- opacity: @detailOpacity;
83
+ display: inline-block;
84
+ vertical-align: top;
85
+ font-weight: @detailFontWeight;
86
+ margin-left: @detailMargin;
87
+ opacity: @detailOpacity;
89
88
  }
90
89
  .ui.label > .detail .icon {
91
- margin: 0 @detailIconDistance 0 0;
90
+ margin: 0 @detailIconDistance 0 0;
92
91
  }
93
92
 
94
93
  /* Removable label */
95
94
  .ui.label > .close.icon,
96
95
  .ui.label > .delete.icon {
97
- cursor: pointer;
98
- font-size: @deleteSize;
99
- opacity: @deleteOpacity;
100
- transition: @deleteTransition;
96
+ cursor: pointer;
97
+ font-size: @deleteSize;
98
+ opacity: @deleteOpacity;
99
+ transition: @deleteTransition;
101
100
  }
102
101
  .ui.label > .close.icon:hover,
103
102
  .ui.label > .delete.icon:hover {
104
- opacity: 1;
103
+ opacity: 1;
105
104
  }
106
105
 
107
106
  /* Backward compatible positioning */
108
107
  .ui.label[class*="left icon"] > .close.icon,
109
108
  .ui.label[class*="left icon"] > .delete.icon {
110
- margin: 0 @deleteMargin 0 0;
111
- &.right {
112
- margin: 0 0 0 @deleteMargin;
113
- }
109
+ margin: 0 @deleteMargin 0 0;
110
+ &.right {
111
+ margin: 0 0 0 @deleteMargin;
112
+ }
114
113
  }
115
114
  .ui.label:not(.icon) > .close.icon,
116
115
  .ui.label:not(.icon) > .delete.icon {
117
- margin: 0 0 0 @deleteMargin;
116
+ margin: 0 0 0 @deleteMargin;
118
117
  }
119
118
 
120
119
  /* Label for only an icon */
121
120
  .ui.icon.label > .icon {
122
- margin: 0 auto;
121
+ margin: 0 auto;
123
122
  }
124
123
 
125
124
  /* Right Side Icon */
126
125
  .ui[class*="right icon"].label > .icon {
127
- margin: 0 0 0 @iconDistance;
126
+ margin: 0 0 0 @iconDistance;
128
127
  }
129
128
 
130
- /*-------------------
129
+ /* -------------------
131
130
  Group
132
- --------------------*/
131
+ -------------------- */
133
132
 
134
133
  .ui.labels > .label {
135
- margin: 0 @groupHorizontalMargin @groupVerticalMargin 0;
134
+ margin: 0 @groupHorizontalMargin @groupVerticalMargin 0;
136
135
  }
137
136
 
138
-
139
- /*-------------------
137
+ /* -------------------
140
138
  Coupling
141
- --------------------*/
139
+ -------------------- */
142
140
 
143
141
  .ui.header > .ui.label {
144
- margin-top: @lineHeightOffset;
142
+ margin-top: @lineHeightOffset;
145
143
  }
146
144
 
147
-
148
145
  /* Remove border radius on attached segment */
149
146
  .ui.attached.segment > .ui.top.left.attached.label,
150
- .ui.bottom.attached.segment > .ui.top.left.attached.label {
151
- border-top-left-radius: 0;
147
+ .ui.bottom.attached.segment > .ui.top.left.attached.label {
148
+ border-top-left-radius: 0;
152
149
  }
153
150
  .ui.attached.segment > .ui.top.right.attached.label,
154
- .ui.bottom.attached.segment > .ui.top.right.attached.label {
155
- border-top-right-radius: 0;
151
+ .ui.bottom.attached.segment > .ui.top.right.attached.label {
152
+ border-top-right-radius: 0;
156
153
  }
157
- .ui.top.attached.segment > .ui.bottom.left.attached.label {
158
- border-bottom-left-radius: 0;
154
+ .ui.top.attached.segment > .ui.bottom.left.attached.label {
155
+ border-bottom-left-radius: 0;
159
156
  }
160
- .ui.top.attached.segment > .ui.bottom.right.attached.label {
161
- border-bottom-right-radius: 0;
157
+ .ui.top.attached.segment > .ui.bottom.right.attached.label {
158
+ border-bottom-right-radius: 0;
162
159
  }
163
160
 
164
161
  /* Padding on next content after a label */
165
162
  .ui.top.attached.label ~ .ui.bottom.attached.label + :not(.attached),
166
163
  .ui.top.attached.label + :not(.attached) {
167
- margin-top: @attachedSegmentPadding !important;
164
+ margin-top: @attachedSegmentPadding !important;
168
165
  }
169
166
  .ui.bottom.attached.label ~ :last-child:not(.attached) {
170
- margin-top:0;
171
- margin-bottom: @attachedSegmentPadding !important;
167
+ margin-top: 0;
168
+ margin-bottom: @attachedSegmentPadding !important;
172
169
  }
173
170
 
174
171
  .ui.segment:not(.basic) > .ui.top.attached.label {
175
- margin-top: @attachedOffset;
172
+ margin-top: @attachedOffset;
176
173
  }
177
174
  .ui.segment:not(.basic) > .ui.bottom.attached.label {
178
- margin-bottom: @attachedOffset;
175
+ margin-bottom: @attachedOffset;
179
176
  }
180
177
  .ui.segment:not(.basic) > .ui.attached.label:not(.right) {
181
- margin-left: @attachedOffset;
178
+ margin-left: @attachedOffset;
182
179
  }
183
180
  .ui.segment:not(.basic) > .ui.right.attached.label {
184
- margin-right: @attachedOffset;
181
+ margin-right: @attachedOffset;
185
182
  }
186
183
  .ui.segment:not(.basic) > .ui.attached.label:not(.left):not(.right) {
187
- width: @attachedWidthOffset;
184
+ width: @attachedWidthOffset;
188
185
  }
189
186
 
190
-
191
-
192
187
  /*******************************
193
188
  Types
194
189
  *******************************/
195
190
  & when (@variationLabelImage) {
196
- .ui.image.label {
197
- width: auto;
198
- margin-top: 0;
199
- margin-bottom: 0;
200
- max-width: 9999px;
201
- vertical-align: baseline;
202
- text-transform: none;
203
-
204
- background: @imageLabelBackground;
205
- padding: @imageLabelPadding;
206
- border-radius: @imageLabelBorderRadius;
207
- box-shadow: @imageLabelBoxShadow;
208
- &.attached:not(.basic) when (@variationLabelAttached) {
209
- padding: @imageLabelPadding;
191
+ .ui.image.label {
192
+ width: auto;
193
+ margin-top: 0;
194
+ margin-bottom: 0;
195
+ max-width: 9999px;
196
+ vertical-align: baseline;
197
+ text-transform: none;
198
+
199
+ background: @imageLabelBackground;
200
+ padding: @imageLabelPadding;
201
+ border-radius: @imageLabelBorderRadius;
202
+ box-shadow: @imageLabelBoxShadow;
203
+ &.attached:not(.basic) when (@variationLabelAttached) {
204
+ padding: @imageLabelPadding;
205
+ }
210
206
  }
211
- }
212
207
 
213
- .ui.image.label img {
214
- display: inline-block;
215
- vertical-align: top;
208
+ .ui.image.label img {
209
+ display: inline-block;
210
+ vertical-align: top;
216
211
 
217
- height: @imageLabelImageHeight;
218
- margin: @imageLabelImageMargin;
219
- border-radius: @imageLabelImageBorderRadius;
220
- }
212
+ height: @imageLabelImageHeight;
213
+ margin: @imageLabelImageMargin;
214
+ border-radius: @imageLabelImageBorderRadius;
215
+ }
221
216
 
222
- .ui.image.label .detail {
223
- background: @imageLabelDetailBackground;
224
- margin: @imageLabelDetailMargin;
225
- padding: @imageLabelDetailPadding;
226
- border-radius: 0 @imageLabelBorderRadius @imageLabelBorderRadius 0;
227
- }
228
- & when (@variationLabelAttached) {
229
- .ui.bottom.attached.image.label:not(.right) > img,
230
- .ui.top.right.attached.image.label > img {
231
- border-top-left-radius: 0;
217
+ .ui.image.label .detail {
218
+ background: @imageLabelDetailBackground;
219
+ margin: @imageLabelDetailMargin;
220
+ padding: @imageLabelDetailPadding;
221
+ border-radius: 0 @imageLabelBorderRadius @imageLabelBorderRadius 0;
232
222
  }
223
+ & when (@variationLabelAttached) {
224
+ .ui.bottom.attached.image.label:not(.right) > img,
225
+ .ui.top.right.attached.image.label > img {
226
+ border-top-left-radius: 0;
227
+ }
233
228
 
234
- .ui.top.attached.image.label:not(.right) > img,
235
- .ui.bottom.right.attached.image.label > img {
236
- border-bottom-left-radius: 0;
229
+ .ui.top.attached.image.label:not(.right) > img,
230
+ .ui.bottom.right.attached.image.label > img {
231
+ border-bottom-left-radius: 0;
232
+ }
237
233
  }
238
- }
239
234
  }
240
235
 
241
236
  & when (@variationLabelTag) {
242
- /*-------------------
243
- Tag
244
- --------------------*/
245
-
246
- .ui.tag.labels .label,
247
- .ui.tag.label {
248
- margin-left: 1em;
249
- position: relative;
250
- padding-left: @tagHorizontalPadding;
251
- padding-right: @tagHorizontalPadding;
252
-
253
- border-radius: 0 @borderRadius @borderRadius 0;
254
- transition: @tagTransition;
255
- }
256
- .ui.tag.labels .label::before,
257
- .ui.tag.label::before {
258
- position: absolute;
259
- transform: translateY(-50%) translateX(50%) rotate(-45deg);
260
-
261
- top: @tagTriangleTopOffset;
262
- right: @tagTriangleRightOffset;
263
- content: '';
264
-
265
- background-color: inherit;
266
- background-image: @tagTriangleBackgroundImage;
267
-
268
- width: @tagTriangleSize;
269
- height: @tagTriangleSize;
270
- transition: @tagTransition;
271
- }
272
-
273
-
274
- .ui.tag.labels .label::after,
275
- .ui.tag.label::after {
276
- position: absolute;
277
- content: '';
278
- top: 50%;
279
- left: -(@tagCircleSize / 2);
280
-
281
- margin-top: -(@tagCircleSize / 2);
282
- background-color: @tagCircleColor;
283
- width: @tagCircleSize;
284
- height: @tagCircleSize;
285
-
286
- box-shadow: @tagCircleBoxShadow;
287
- border-radius: @circularRadius;
288
- }
289
- & when (@variationLabelBasic) {
290
- .ui.basic.tag.labels .label::before,
291
- .ui.basic.tag.label::before {
292
- border-color: inherit;
293
- border-width: @basicBorderWidth 0 0 @basicBorderWidth;
294
- border-style: inherit;
295
- right: @basicBorderFullWidthOffset;
296
- }
297
- .ui.basic.tag.labels .label::after,
298
- .ui.basic.tag.label::after {
299
- box-shadow: @basicTagCircleBoxShadow;
300
- }
301
- }
237
+ /* -------------------
238
+ Tag
239
+ -------------------- */
240
+
241
+ .ui.tag.labels .label,
242
+ .ui.tag.label {
243
+ margin-left: 1em;
244
+ position: relative;
245
+ padding-left: @tagHorizontalPadding;
246
+ padding-right: @tagHorizontalPadding;
247
+
248
+ border-radius: 0 @borderRadius @borderRadius 0;
249
+ transition: @tagTransition;
250
+ }
251
+ .ui.tag.labels .label::before,
252
+ .ui.tag.label::before {
253
+ position: absolute;
254
+ transform: translateY(-50%) translateX(50%) rotate(-45deg);
255
+
256
+ top: @tagTriangleTopOffset;
257
+ right: @tagTriangleRightOffset;
258
+ content: '';
259
+
260
+ background-color: inherit;
261
+ background-image: @tagTriangleBackgroundImage;
262
+
263
+ width: @tagTriangleSize;
264
+ height: @tagTriangleSize;
265
+ transition: @tagTransition;
266
+ }
267
+
268
+ .ui.tag.labels .label::after,
269
+ .ui.tag.label::after {
270
+ position: absolute;
271
+ content: '';
272
+ top: 50%;
273
+ left: -(@tagCircleSize / 2);
274
+
275
+ margin-top: -(@tagCircleSize / 2);
276
+ background-color: @tagCircleColor;
277
+ width: @tagCircleSize;
278
+ height: @tagCircleSize;
279
+
280
+ box-shadow: @tagCircleBoxShadow;
281
+ border-radius: @circularRadius;
282
+ }
283
+ & when (@variationLabelBasic) {
284
+ .ui.basic.tag.labels .label::before,
285
+ .ui.basic.tag.label::before {
286
+ border-color: inherit;
287
+ border-width: @basicBorderWidth 0 0 @basicBorderWidth;
288
+ border-style: inherit;
289
+ right: @basicBorderFullWidthOffset;
290
+ }
291
+ .ui.basic.tag.labels .label::after,
292
+ .ui.basic.tag.label::after {
293
+ box-shadow: @basicTagCircleBoxShadow;
294
+ }
295
+ }
302
296
  }
303
297
 
304
298
  & when (@variationLabelCorner) {
305
- /*-------------------
306
- Corner Label
307
- --------------------*/
308
-
309
- .ui.corner.label {
310
- position: absolute;
311
- top: 0;
312
- right: 0;
313
- margin: 0;
314
- padding: 0;
315
- text-align: center;
299
+ /* -------------------
300
+ Corner Label
301
+ -------------------- */
302
+
303
+ .ui.corner.label {
304
+ position: absolute;
305
+ top: 0;
306
+ right: 0;
307
+ margin: 0;
308
+ padding: 0;
309
+ text-align: center;
310
+
311
+ border-color: @backgroundColor;
312
+
313
+ width: @cornerTriangleSize;
314
+ height: @cornerTriangleSize;
315
+ z-index: @cornerTriangleZIndex;
316
+ transition: @cornerTriangleTransition;
317
+ }
318
+
319
+ /* Icon Label */
320
+ .ui.corner.label {
321
+ background-color: transparent !important;
322
+ }
323
+ .ui.corner.label::after {
324
+ position: absolute;
325
+ content: "";
326
+ right: 0;
327
+ top: 0;
328
+ z-index: -1;
329
+
330
+ width: 0;
331
+ height: 0;
332
+ background-color: transparent;
333
+
334
+ border-top: 0 solid transparent;
335
+ border-right: @cornerTriangleSize solid transparent;
336
+ border-bottom: @cornerTriangleSize solid transparent;
337
+ border-left: 0 solid transparent;
338
+
339
+ border-right-color: inherit;
340
+ transition: @cornerTriangleTransition;
341
+ }
342
+
343
+ .ui.corner.label .icon {
344
+ cursor: inherit;
345
+ position: absolute;
346
+ top: @cornerIconTopOffset;
347
+ left: auto;
348
+ right: @cornerIconRightOffset;
349
+ font-size: @cornerIconSize;
350
+ margin: 0;
351
+ }
316
352
 
317
- border-color: @backgroundColor;
318
-
319
- width: @cornerTriangleSize;
320
- height: @cornerTriangleSize;
321
- z-index: @cornerTriangleZIndex;
322
- transition: @cornerTriangleTransition;
323
- }
324
-
325
- /* Icon Label */
326
- .ui.corner.label{
327
- background-color: transparent !important;
328
- }
329
- .ui.corner.label::after {
330
- position: absolute;
331
- content: "";
332
- right: 0;
333
- top: 0;
334
- z-index: -1;
335
-
336
- width: 0;
337
- height: 0;
338
- background-color: transparent;
339
-
340
- border-top: 0 solid transparent;
341
- border-right: @cornerTriangleSize solid transparent;
342
- border-bottom: @cornerTriangleSize solid transparent;
343
- border-left: 0 solid transparent;
344
-
345
- border-right-color: inherit;
346
- transition: @cornerTriangleTransition;
347
- }
348
-
349
- .ui.corner.label .icon {
350
- cursor: inherit;
351
- position: absolute;
352
- top: @cornerIconTopOffset;
353
- left: auto;
354
- right: @cornerIconRightOffset;
355
- font-size: @cornerIconSize;
356
- margin: 0;
357
- }
358
-
359
- /* Left Corner */
360
- .ui.left.corner.label,
361
- .ui.left.corner.label::after {
362
- right: auto;
363
- left: 0;
364
- }
365
- .ui.left.corner.label::after {
366
- border-top: @cornerTriangleSize solid transparent;
367
- border-right: @cornerTriangleSize solid transparent;
368
- border-bottom: 0 solid transparent;
369
- border-left: 0 solid transparent;
370
-
371
- border-top-color: inherit;
372
- }
373
- .ui.left.corner.label .icon {
374
- left: @cornerIconLeftOffset;
375
- right: auto;
376
- }
377
-
378
- /* Segment */
379
- .ui.segment > .ui.corner.label {
380
- top: -1px;
381
- right: -1px;
382
- }
383
- .ui.segment > .ui.left.corner.label {
384
- right: auto;
385
- left: -1px;
386
- }
353
+ /* Left Corner */
354
+ .ui.left.corner.label,
355
+ .ui.left.corner.label::after {
356
+ right: auto;
357
+ left: 0;
358
+ }
359
+ .ui.left.corner.label::after {
360
+ border-top: @cornerTriangleSize solid transparent;
361
+ border-right: @cornerTriangleSize solid transparent;
362
+ border-bottom: 0 solid transparent;
363
+ border-left: 0 solid transparent;
364
+
365
+ border-top-color: inherit;
366
+ }
367
+ .ui.left.corner.label .icon {
368
+ left: @cornerIconLeftOffset;
369
+ right: auto;
370
+ }
371
+
372
+ /* Segment */
373
+ .ui.segment > .ui.corner.label {
374
+ top: -1px;
375
+ right: -1px;
376
+ }
377
+ .ui.segment > .ui.left.corner.label {
378
+ right: auto;
379
+ left: -1px;
380
+ }
387
381
  }
388
382
 
389
383
  & when (@variationLabelRibbon) {
390
- /*-------------------
391
- Ribbon
392
- --------------------*/
393
-
394
- .ui.ribbon.label {
395
- position: relative;
396
- margin: 0;
397
- min-width: max-content;
398
- border-radius: 0 @borderRadius @borderRadius 0;
399
- border-color: @ribbonShadowColor;
400
- }
401
-
402
- .ui.ribbon.label::after {
403
- position: absolute;
404
- content: '';
405
-
406
- top: 100%;
407
- left: 0;
408
- background-color: transparent;
409
-
410
- border-style: solid;
411
- border-width: 0 @ribbonTriangleSize @ribbonTriangleSize 0;
412
- border-color: transparent;
413
- border-right-color: inherit;
414
-
415
- width: 0;
416
- height: 0;
417
- }
418
- /* Positioning */
419
- .ui.ribbon.label {
420
- left: @ribbonOffset;
421
- margin-right: -@ribbonTriangleSize;
422
- padding-left: @ribbonDistance;
423
- padding-right: @ribbonTriangleSize;
424
- }
425
- .ui[class*="right ribbon"].label {
426
- left: @rightRibbonOffset;
427
- padding-left: @ribbonTriangleSize;
428
- padding-right: @ribbonDistance;
429
- }
430
- & when (@variationLabelBasic) {
431
- .ui.basic.ribbon.label {
432
- padding-top: @basicRibbonOffset;
433
- padding-bottom: @basicRibbonOffset;
434
- }
435
- .ui.basic.ribbon.label:not([class*="right ribbon"]) {
436
- padding-left: @basicRibbonTriangleSizeOffset;
437
- padding-right: @basicRibbonTriangleSize;
438
- }
439
- .ui.basic[class*="right ribbon"].label {
440
- padding-left: @basicRibbonTriangleSize;
441
- padding-right: @basicRibbonTriangleSizeOffset;
442
- }
443
- .ui.basic.ribbon.label::after {
444
- top: @basicBorderFullWidthOffset;
445
- }
446
- .ui.basic.ribbon.label:not([class*="right ribbon"])::after {
447
- left: @basicBorderWidthOffset;
448
- }
449
- .ui.basic[class*="right ribbon"].label::after {
450
- right: @basicBorderWidthOffset;
451
- }
452
- }
453
- /* Right Ribbon */
454
- .ui[class*="right ribbon"].label {
455
- text-align: left;
456
- transform: translateX(-100%);
457
- border-radius: @borderRadius 0 0 @borderRadius;
458
- }
459
- .ui[class*="right ribbon"].label::after {
460
- left: auto;
461
- right: 0;
462
-
463
- border-style: solid;
464
- border-width: @ribbonTriangleSize @ribbonTriangleSize 0 0;
465
- border-color: transparent;
466
- border-top-color: inherit;
467
- }
468
-
469
- /* Inside Table */
470
- .ui.image > .ribbon.label,
471
- .ui.card .image > .ribbon.label {
472
- position: absolute;
473
- top: @ribbonImageTopDistance;
474
- }
475
- .ui.card .image > .ui.ribbon.label,
476
- .ui.image > .ui.ribbon.label {
477
- left: @ribbonImageOffset;
478
- }
479
- .ui.card .image > .ui[class*="right ribbon"].label,
480
- .ui.image > .ui[class*="right ribbon"].label {
481
- left: @rightRibbonImageOffset;
482
- padding-left: @horizontalPadding;
483
- }
484
-
485
- /* Inside Table */
486
- .ui.table td > .ui.ribbon.label {
487
- left: @ribbonTableOffset;
488
- }
489
- .ui.table td > .ui[class*="right ribbon"].label {
490
- left: @rightRibbonTableOffset;
491
- padding-left: @horizontalPadding;
492
- }
384
+ /* -------------------
385
+ Ribbon
386
+ -------------------- */
387
+
388
+ .ui.ribbon.label {
389
+ position: relative;
390
+ margin: 0;
391
+ min-width: max-content;
392
+ border-radius: 0 @borderRadius @borderRadius 0;
393
+ border-color: @ribbonShadowColor;
394
+ }
395
+
396
+ .ui.ribbon.label::after {
397
+ position: absolute;
398
+ content: '';
399
+
400
+ top: 100%;
401
+ left: 0;
402
+ background-color: transparent;
403
+
404
+ border-style: solid;
405
+ border-width: 0 @ribbonTriangleSize @ribbonTriangleSize 0;
406
+ border-color: transparent;
407
+ border-right-color: inherit;
408
+
409
+ width: 0;
410
+ height: 0;
411
+ }
412
+
413
+ /* Positioning */
414
+ .ui.ribbon.label {
415
+ left: @ribbonOffset;
416
+ margin-right: -@ribbonTriangleSize;
417
+ padding-left: @ribbonDistance;
418
+ padding-right: @ribbonTriangleSize;
419
+ }
420
+ .ui[class*="right ribbon"].label {
421
+ left: @rightRibbonOffset;
422
+ padding-left: @ribbonTriangleSize;
423
+ padding-right: @ribbonDistance;
424
+ }
425
+ & when (@variationLabelBasic) {
426
+ .ui.basic.ribbon.label {
427
+ padding-top: @basicRibbonOffset;
428
+ padding-bottom: @basicRibbonOffset;
429
+ }
430
+ .ui.basic.ribbon.label:not([class*="right ribbon"]) {
431
+ padding-left: @basicRibbonTriangleSizeOffset;
432
+ padding-right: @basicRibbonTriangleSize;
433
+ }
434
+ .ui.basic[class*="right ribbon"].label {
435
+ padding-left: @basicRibbonTriangleSize;
436
+ padding-right: @basicRibbonTriangleSizeOffset;
437
+ }
438
+ .ui.basic.ribbon.label::after {
439
+ top: @basicBorderFullWidthOffset;
440
+ }
441
+ .ui.basic.ribbon.label:not([class*="right ribbon"])::after {
442
+ left: @basicBorderWidthOffset;
443
+ }
444
+ .ui.basic[class*="right ribbon"].label::after {
445
+ right: @basicBorderWidthOffset;
446
+ }
447
+ }
448
+
449
+ /* Right Ribbon */
450
+ .ui[class*="right ribbon"].label {
451
+ text-align: left;
452
+ transform: translateX(-100%);
453
+ border-radius: @borderRadius 0 0 @borderRadius;
454
+ }
455
+ .ui[class*="right ribbon"].label::after {
456
+ left: auto;
457
+ right: 0;
458
+
459
+ border-style: solid;
460
+ border-width: @ribbonTriangleSize @ribbonTriangleSize 0 0;
461
+ border-color: transparent;
462
+ border-top-color: inherit;
463
+ }
464
+
465
+ /* Inside Table */
466
+ .ui.image > .ribbon.label,
467
+ .ui.card .image > .ribbon.label {
468
+ position: absolute;
469
+ top: @ribbonImageTopDistance;
470
+ }
471
+ .ui.card .image > .ui.ribbon.label,
472
+ .ui.image > .ui.ribbon.label {
473
+ left: @ribbonImageOffset;
474
+ }
475
+ .ui.card .image > .ui[class*="right ribbon"].label,
476
+ .ui.image > .ui[class*="right ribbon"].label {
477
+ left: @rightRibbonImageOffset;
478
+ padding-left: @horizontalPadding;
479
+ }
480
+
481
+ /* Inside Table */
482
+ .ui.table td > .ui.ribbon.label {
483
+ left: @ribbonTableOffset;
484
+ }
485
+ .ui.table td > .ui[class*="right ribbon"].label {
486
+ left: @rightRibbonTableOffset;
487
+ padding-left: @horizontalPadding;
488
+ }
493
489
  }
494
490
 
495
491
  & when (@variationLabelAttached) {
496
- /*-------------------
497
- Attached
498
- --------------------*/
499
-
500
- .ui[class*="top attached"].label,
501
- .ui.attached.label {
502
- width: 100%;
503
- position: absolute;
504
- margin: 0;
505
- top: 0;
506
- left: 0;
507
-
508
- padding: @attachedVerticalPadding @attachedHorizontalPadding;
509
-
510
- border-radius: @attachedCornerBorderRadius @attachedCornerBorderRadius 0 0;
511
- }
512
- .ui[class*="bottom attached"].label {
513
- top: auto;
514
- bottom: 0;
515
- border-radius: 0 0 @attachedCornerBorderRadius @attachedCornerBorderRadius;
516
- }
517
-
518
- .ui[class*="top left attached"].label {
519
- width: auto;
520
- margin-top: 0;
521
- border-radius: @attachedCornerBorderRadius 0 @attachedBorderRadius 0;
522
- }
492
+ /* -------------------
493
+ Attached
494
+ -------------------- */
523
495
 
524
- .ui[class*="top right attached"].label {
525
- width: auto;
526
- left: auto;
527
- right: 0;
528
- border-radius: 0 @attachedCornerBorderRadius 0 @attachedBorderRadius;
529
- }
530
- .ui[class*="bottom left attached"].label {
531
- width: auto;
532
- top: auto;
533
- bottom: 0;
534
- border-radius: 0 @attachedBorderRadius 0 @attachedCornerBorderRadius;
535
- }
536
- .ui[class*="bottom right attached"].label {
537
- top: auto;
538
- bottom: 0;
539
- left: auto;
540
- right: 0;
541
- width: auto;
542
- border-radius: @attachedBorderRadius 0 @attachedCornerBorderRadius 0;
543
- }
496
+ .ui[class*="top attached"].label,
497
+ .ui.attached.label {
498
+ width: 100%;
499
+ position: absolute;
500
+ margin: 0;
501
+ top: 0;
502
+ left: 0;
503
+
504
+ padding: @attachedVerticalPadding @attachedHorizontalPadding;
505
+
506
+ border-radius: @attachedCornerBorderRadius @attachedCornerBorderRadius 0 0;
507
+ }
508
+ .ui[class*="bottom attached"].label {
509
+ top: auto;
510
+ bottom: 0;
511
+ border-radius: 0 0 @attachedCornerBorderRadius @attachedCornerBorderRadius;
512
+ }
513
+
514
+ .ui[class*="top left attached"].label {
515
+ width: auto;
516
+ margin-top: 0;
517
+ border-radius: @attachedCornerBorderRadius 0 @attachedBorderRadius 0;
518
+ }
519
+
520
+ .ui[class*="top right attached"].label {
521
+ width: auto;
522
+ left: auto;
523
+ right: 0;
524
+ border-radius: 0 @attachedCornerBorderRadius 0 @attachedBorderRadius;
525
+ }
526
+ .ui[class*="bottom left attached"].label {
527
+ width: auto;
528
+ top: auto;
529
+ bottom: 0;
530
+ border-radius: 0 @attachedBorderRadius 0 @attachedCornerBorderRadius;
531
+ }
532
+ .ui[class*="bottom right attached"].label {
533
+ top: auto;
534
+ bottom: 0;
535
+ left: auto;
536
+ right: 0;
537
+ width: auto;
538
+ border-radius: @attachedBorderRadius 0 @attachedCornerBorderRadius 0;
539
+ }
544
540
  }
545
541
 
546
542
  /*******************************
547
543
  States
548
544
  *******************************/
549
545
 
550
- /*-------------------
546
+ /* -------------------
551
547
  Disabled
552
- --------------------*/
548
+ -------------------- */
553
549
  & when (@variationLabelDisabled) {
554
- .ui.label.disabled {
555
- opacity: 0.5;
556
- }
550
+ .ui.disabled.labels .label,
551
+ .ui.label.disabled {
552
+ opacity: @disabledOpacity;
553
+ pointer-events: @disabledPointerEvents;
554
+ }
557
555
  }
558
- /*-------------------
556
+
557
+ /* -------------------
559
558
  Hover
560
- --------------------*/
559
+ -------------------- */
561
560
 
562
561
  .ui.labels a.label:hover,
563
562
  a.ui.label:hover {
564
- background-color: @labelHoverBackgroundColor;
565
- border-color: @labelHoverBackgroundColor;
563
+ background-color: @labelHoverBackgroundColor;
564
+ border-color: @labelHoverBackgroundColor;
566
565
 
567
- background-image: @labelHoverBackgroundImage;
568
- color: @labelHoverTextColor;
566
+ background-image: @labelHoverBackgroundImage;
567
+ color: @labelHoverTextColor;
569
568
  }
570
569
  .ui.labels a.label:hover::before,
571
570
  a.ui.label:hover::before {
572
- color: @labelHoverTextColor;
571
+ color: @labelHoverTextColor;
573
572
  }
574
573
 
575
- /*-------------------
574
+ /* -------------------
576
575
  Active
577
- --------------------*/
576
+ -------------------- */
578
577
 
579
578
  .ui.active.label {
580
- background-color: @labelActiveBackgroundColor;
581
- border-color: @labelActiveBackgroundColor;
579
+ background-color: @labelActiveBackgroundColor;
580
+ border-color: @labelActiveBackgroundColor;
582
581
 
583
- background-image: @labelActiveBackgroundImage;
584
- color: @labelActiveTextColor;
582
+ background-image: @labelActiveBackgroundImage;
583
+ color: @labelActiveTextColor;
585
584
  }
586
585
  .ui.active.label::before {
587
- background-color: @labelActiveBackgroundColor;
588
- background-image: @labelActiveBackgroundImage;
589
- color: @labelActiveTextColor;
586
+ background-color: @labelActiveBackgroundColor;
587
+ background-image: @labelActiveBackgroundImage;
588
+ color: @labelActiveTextColor;
590
589
  }
591
590
 
592
- /*-------------------
591
+ /* -------------------
593
592
  Active Hover
594
- --------------------*/
593
+ -------------------- */
595
594
 
596
595
  .ui.labels a.active.label:hover,
597
596
  a.ui.active.label:hover {
598
- background-color: @labelActiveHoverBackgroundColor;
599
- border-color: @labelActiveHoverBackgroundColor;
597
+ background-color: @labelActiveHoverBackgroundColor;
598
+ border-color: @labelActiveHoverBackgroundColor;
600
599
 
601
- background-image: @labelActiveHoverBackgroundImage;
602
- color: @labelActiveHoverTextColor;
600
+ background-image: @labelActiveHoverBackgroundImage;
601
+ color: @labelActiveHoverTextColor;
603
602
  }
604
603
  .ui.labels a.active.label:hover::before,
605
604
  a.ui.active.label:hover::before {
606
- background-color: @labelActiveHoverBackgroundColor;
607
- background-image: @labelActiveHoverBackgroundImage;
608
- color: @labelActiveHoverTextColor;
605
+ background-color: @labelActiveHoverBackgroundColor;
606
+ background-image: @labelActiveHoverBackgroundImage;
607
+ color: @labelActiveHoverTextColor;
609
608
  }
610
609
 
611
-
612
- /*-------------------
610
+ /* -------------------
613
611
  Visible
614
- --------------------*/
612
+ -------------------- */
615
613
 
616
614
  .ui.labels.visible .label,
617
615
  .ui.label.visible:not(.dropdown) {
618
- display: inline-block !important;
616
+ display: inline-block !important;
619
617
  }
620
618
 
621
- /*-------------------
619
+ /* -------------------
622
620
  Hidden
623
- --------------------*/
621
+ -------------------- */
624
622
 
625
623
  .ui.labels.hidden .label,
626
624
  .ui.label.hidden {
627
- display: none !important;
625
+ display: none !important;
628
626
  }
629
627
 
630
-
631
628
  /*******************************
632
629
  Variations
633
630
  *******************************/
634
631
 
635
-
636
632
  & when (@variationLabelBasic) {
637
- /*-------------------
638
- Basic
639
- --------------------*/
640
-
641
- .ui.basic.labels .label,
642
- .ui.basic.label {
643
- background: @basicBackground;
644
- border: @basicBorder;
645
- color: @basicColor;
646
- box-shadow: @basicBoxShadow;
647
- padding-top: @basicVerticalPadding;
648
- padding-bottom: @basicVerticalPadding;
649
- padding-right: @basicHorizontalPadding;
650
- }
651
- .ui.basic.labels:not(.tag):not(.image):not(.ribbon) .label,
652
- .ui.basic.label:not(.tag):not(.image):not(.ribbon) {
653
- padding-left: @basicHorizontalPadding;
654
- }
655
- & when (@variationLabelImage) {
656
- .ui.basic.image.label {
657
- padding-left: @basicImageLabelPadding;
658
- }
659
- }
660
-
661
- /* Link */
662
- .ui.basic.labels a.label:hover,
663
- a.ui.basic.label:hover {
664
- text-decoration: none;
665
- background: @basicHoverBackground;
666
- color: @basicHoverColor;
667
- box-shadow: @basicHoverBoxShadow;
668
- }
669
- & when (@variationLabelPointing) {
670
- /* Pointing */
671
- .ui.basic.pointing.label::before {
672
- border-color: inherit;
673
- }
674
- }
633
+ /* -------------------
634
+ Basic
635
+ -------------------- */
636
+
637
+ .ui.basic.labels .label,
638
+ .ui.basic.label {
639
+ background: @basicBackground;
640
+ border: @basicBorder;
641
+ color: @basicColor;
642
+ box-shadow: @basicBoxShadow;
643
+ padding-top: @basicVerticalPadding;
644
+ padding-bottom: @basicVerticalPadding;
645
+ padding-right: @basicHorizontalPadding;
646
+ }
647
+ .ui.basic.labels:not(.tag):not(.image):not(.ribbon) .label,
648
+ .ui.basic.label:not(.tag):not(.image):not(.ribbon) {
649
+ padding-left: @basicHorizontalPadding;
650
+ }
651
+ & when (@variationLabelImage) {
652
+ .ui.basic.image.label {
653
+ padding-left: @basicImageLabelPadding;
654
+ }
655
+ }
656
+
657
+ /* Link */
658
+ .ui.basic.labels a.label:hover,
659
+ a.ui.basic.label:hover {
660
+ text-decoration: none;
661
+ background: @basicHoverBackground;
662
+ color: @basicHoverColor;
663
+ box-shadow: @basicHoverBoxShadow;
664
+ }
665
+ & when (@variationLabelPointing) {
666
+ /* Pointing */
667
+ .ui.basic.pointing.label::before {
668
+ border-color: inherit;
669
+ }
670
+ }
675
671
  }
676
672
 
677
673
  & when (@variationLabelFluid) {
678
- /*-------------------
679
- Fluid
680
- --------------------*/
681
-
682
- .ui.label.fluid,
683
- .ui.fluid.labels > .label {
684
- width: 100%;
685
- box-sizing: border-box;
686
- }
674
+ /* -------------------
675
+ Fluid
676
+ -------------------- */
677
+
678
+ .ui.label.fluid,
679
+ .ui.fluid.labels > .label {
680
+ width: 100%;
681
+ box-sizing: border-box;
682
+ }
683
+ }
684
+
685
+ & when (@variationLabelCentered) {
686
+ .ui.centered.labels .label,
687
+ .ui.centered.label {
688
+ text-align: center;
689
+ }
687
690
  }
688
691
 
689
692
  & when (@variationLabelInverted) {
690
- /*-------------------
691
- Inverted
692
- --------------------*/
693
-
694
- .ui.inverted.labels .label,
695
- .ui.inverted.label {
696
- color: @invertedTextColor;
697
- background-color: @invertedBackgroundColor;
698
- }
699
- .ui.inverted.corner.label {
700
- border-color: @invertedBackgroundColor;
701
- }
702
- .ui.inverted.corner.label:hover {
703
- border-color: @backgroundColor;
704
- transition: none;
705
- }
706
- .ui.inverted.basic.labels .label,
707
- .ui.inverted.basic.label,
708
- .ui.inverted.basic.label:hover {
709
- border-color: @basicInvertedBorderColor;
710
- background: @black;
711
- }
712
- .ui.inverted.basic.label:hover {
713
- color: @linkColor;
714
- }
693
+ /* -------------------
694
+ Inverted
695
+ -------------------- */
696
+
697
+ .ui.inverted.labels .label,
698
+ .ui.inverted.label {
699
+ color: @invertedTextColor;
700
+ background-color: @invertedBackgroundColor;
701
+ }
702
+ .ui.inverted.corner.label {
703
+ border-color: @invertedBackgroundColor;
704
+ }
705
+ .ui.inverted.corner.label:hover {
706
+ border-color: @backgroundColor;
707
+ transition: none;
708
+ }
709
+ .ui.inverted.basic.labels .label,
710
+ .ui.inverted.basic.label,
711
+ .ui.inverted.basic.label:hover {
712
+ border-color: @basicInvertedBorderColor;
713
+ background: @black;
714
+ }
715
+ .ui.inverted.basic.label:hover {
716
+ color: @linkColor;
717
+ }
715
718
  }
716
719
 
717
- /*-------------------
720
+ /* -------------------
718
721
  Colors
719
- --------------------*/
722
+ -------------------- */
720
723
  & when not (@variationLabelColors = false) {
721
- each(@variationLabelColors, {
722
- @color: @value;
723
- @isDark: @colors[@@color][isDark];
724
- @_labelColor: @colors[@@color][color];
725
- @_labelInvertedColor: @colors[@@color][light];
726
- @_labelTextColor: @colors[@@color][text];
727
- @_labelHover: @colors[@@color][hover];
728
- @_labelInvertedHover: @colors[@@color][lightHover];
729
- @_labelHoverTextColor: @colors[@@color][hoverText];
730
- @_labelRibbonShadow: @colors[@@color][ribbon];
731
- @_labelInvertedRibbonShadow: @colors[@@color][invertedRibbon];
732
-
733
- .ui.@{color}.labels .label,
734
- .ui.ui.ui.@{color}.label {
735
- background-color: @_labelColor;
736
- border-color: @_labelColor;
737
- color: @_labelTextColor;
738
- }
739
- /* Link */
740
- .ui.@{color}.labels a.label:hover,
741
- a.ui.ui.ui.@{color}.label:hover {
742
- background-color: @_labelHover;
743
- border-color: @_labelHover;
744
- color: @_labelHoverTextColor;
745
- }
746
- & when (@variationLabelRibbon) {
747
- /* Ribbon */
748
- .ui.ui.ui.@{color}.ribbon.label {
749
- border-color: @_labelRibbonShadow;
750
- }
751
- }
752
- & when (@variationLabelBasic) {
753
- /* Basic */
754
- .ui.basic.labels .@{color}.label,
755
- .ui.ui.ui.basic.@{color}.label {
756
- background: @basicBackground;
757
- border-color: @_labelColor;
758
- color: @_labelColor;
759
- }
760
- .ui.basic.labels a.@{color}.label:hover,
761
- a.ui.ui.ui.basic.@{color}.label:hover {
762
- background: @basicBackground;
763
- border-color: @_labelHover;
764
- color: @_labelHover;
765
- }
766
- }
767
- & when (@variationLabelInverted) {
768
- /* Inverted */
769
- .ui.inverted.labels .@{color}.label,
770
- .ui.ui.ui.inverted.@{color}.label {
771
- background-color: @_labelInvertedColor;
772
- border-color: @_labelInvertedColor;
773
- color: @black;
774
- }
775
- /* Inverted Link */
776
- .ui.inverted.labels a.@{color}.label:hover,
777
- a.ui.ui.ui.inverted.@{color}.label:hover {
778
- background-color: @_labelInvertedHover;
779
- border-color: @_labelInvertedHover;
780
- & when not (@isDark) {
781
- color: @black;
724
+ each(@variationLabelColors, {
725
+ @color: @value;
726
+ @isDark: @colors[@@color][isDark];
727
+ @_labelColor: @colors[@@color][color];
728
+ @_labelInvertedColor: @colors[@@color][light];
729
+ @_labelTextColor: @colors[@@color][text];
730
+ @_labelHover: @colors[@@color][hover];
731
+ @_labelInvertedHover: @colors[@@color][lightHover];
732
+ @_labelHoverTextColor: @colors[@@color][hoverText];
733
+ @_labelRibbonShadow: @colors[@@color][ribbon];
734
+ @_labelInvertedRibbonShadow: @colors[@@color][invertedRibbon];
735
+
736
+ .ui.@{color}.labels .label,
737
+ .ui.ui.ui.@{color}.label {
738
+ background-color: @_labelColor;
739
+ border-color: @_labelColor;
740
+ color: @_labelTextColor;
782
741
  }
783
- & when (@isDark) {
784
- color: @_labelTextColor;
742
+ /* Link */
743
+ .ui.@{color}.labels a.label:hover,
744
+ a.ui.ui.ui.@{color}.label:hover {
745
+ background-color: @_labelHover;
746
+ border-color: @_labelHover;
747
+ color: @_labelHoverTextColor;
785
748
  }
786
- }
787
- & when (@variationLabelRibbon) {
788
- /* Inverted Ribbon */
789
- .ui.ui.ui.inverted.@{color}.ribbon.label {
790
- border-color: @_labelInvertedRibbonShadow;
749
+ & when (@variationLabelRibbon) {
750
+ /* Ribbon */
751
+ .ui.ui.ui.@{color}.ribbon.label {
752
+ border-color: @_labelRibbonShadow;
753
+ }
791
754
  }
792
- }
793
- & when (@variationLabelBasic) {
794
- /* Inverted Basic */
795
- .ui.inverted.basic.labels .@{color}.label,
796
- .ui.ui.ui.inverted.basic.@{color}.label {
797
- background-color: @invertedBackground;
798
- border-color: @_labelInvertedColor;
799
- & when not (@isDark) {
800
- color: @_labelInvertedColor;
801
- }
802
- & when (@isDark) {
803
- color: @invertedTextColor;
804
- }
755
+ & when (@variationLabelBasic) {
756
+ /* Basic */
757
+ .ui.basic.labels .@{color}.label,
758
+ .ui.ui.ui.basic.@{color}.label {
759
+ background: @basicBackground;
760
+ border-color: @_labelColor;
761
+ color: @_labelColor;
762
+ }
763
+ .ui.basic.labels a.@{color}.label:hover,
764
+ a.ui.ui.ui.basic.@{color}.label:hover {
765
+ background: @basicBackground;
766
+ border-color: @_labelHover;
767
+ color: @_labelHover;
768
+ }
805
769
  }
806
- .ui.inverted.basic.labels a.@{color}.label:hover,
807
- a.ui.ui.ui.inverted.basic.@{color}.label:hover {
808
- border-color: @_labelInvertedHover;
809
- background-color: @invertedBackground;
810
- & when not (@isDark) {
811
- color: @_labelInvertedHover;
812
- }
770
+ & when (@variationLabelInverted) {
771
+ /* Inverted */
772
+ .ui.inverted.labels .@{color}.label,
773
+ .ui.ui.ui.inverted.@{color}.label {
774
+ background-color: @_labelInvertedColor;
775
+ border-color: @_labelInvertedColor;
776
+ color: @black;
777
+ }
778
+ /* Inverted Link */
779
+ .ui.inverted.labels a.@{color}.label:hover,
780
+ a.ui.ui.ui.inverted.@{color}.label:hover {
781
+ background-color: @_labelInvertedHover;
782
+ border-color: @_labelInvertedHover;
783
+ & when not (@isDark) {
784
+ color: @black;
785
+ }
786
+ & when (@isDark) {
787
+ color: @_labelTextColor;
788
+ }
789
+ }
790
+ & when (@variationLabelRibbon) {
791
+ /* Inverted Ribbon */
792
+ .ui.ui.ui.inverted.@{color}.ribbon.label {
793
+ border-color: @_labelInvertedRibbonShadow;
794
+ }
795
+ }
796
+ & when (@variationLabelBasic) {
797
+ /* Inverted Basic */
798
+ .ui.inverted.basic.labels .@{color}.label,
799
+ .ui.ui.ui.inverted.basic.@{color}.label {
800
+ background-color: @invertedBackground;
801
+ border-color: @_labelInvertedColor;
802
+ & when not (@isDark) {
803
+ color: @_labelInvertedColor;
804
+ }
805
+ & when (@isDark) {
806
+ color: @invertedTextColor;
807
+ }
808
+ }
809
+ .ui.inverted.basic.labels a.@{color}.label:hover,
810
+ a.ui.ui.ui.inverted.basic.@{color}.label:hover {
811
+ border-color: @_labelInvertedHover;
812
+ background-color: @invertedBackground;
813
+ & when not (@isDark) {
814
+ color: @_labelInvertedHover;
815
+ }
816
+ }
817
+ & when (@variationLabelTag) {
818
+ /* Inverted Basic Tags */
819
+ .ui.inverted.basic.tag.labels .@{color}.label,
820
+ .ui.ui.ui.inverted.@{color}.basic.tag.label {
821
+ border: @invertedBorderSize solid @_labelInvertedColor;
822
+ }
823
+ .ui.inverted.basic.tag.labels .@{color}.label::before,
824
+ .ui.ui.ui.inverted.@{color}.basic.tag.label::before {
825
+ border-color: inherit;
826
+ border-width: @invertedBorderSize 0 0 @invertedBorderSize;
827
+ border-style: inherit;
828
+ background-color: @invertedBackground;
829
+ right: e(%("calc(100%% + %d)", @invertedBorderSize));
830
+ }
831
+ }
832
+ }
813
833
  }
814
- & when (@variationLabelTag) {
815
- /* Inverted Basic Tags */
816
- .ui.inverted.basic.tag.labels .@{color}.label,
817
- .ui.ui.ui.inverted.@{color}.basic.tag.label {
818
- border: @invertedBorderSize solid @_labelInvertedColor;
819
- }
820
- .ui.inverted.basic.tag.labels .@{color}.label::before,
821
- .ui.ui.ui.inverted.@{color}.basic.tag.label::before {
822
- border-color: inherit;
823
- border-width: @invertedBorderSize 0 0 @invertedBorderSize;
824
- border-style: inherit;
825
- background-color: @invertedBackground;
826
- right: e(%("calc(100%% + %d)", @invertedBorderSize));
827
- }
828
- }
829
- }
830
- }
831
- })
834
+ })
832
835
  }
833
836
 
834
- /*-------------------
837
+ /* -------------------
835
838
  Horizontal
836
- --------------------*/
839
+ -------------------- */
837
840
 
838
841
  .ui.horizontal.labels .label,
839
842
  .ui.horizontal.label {
840
- margin: 0 @horizontalLabelMargin 0 0;
843
+ margin: 0 @horizontalLabelMargin 0 0;
841
844
 
842
- padding: @horizontalLabelVerticalPadding @horizontalPadding;
843
- min-width: @horizontalLabelMinWidth;
844
- text-align: center;
845
+ padding: @horizontalLabelVerticalPadding @horizontalPadding;
846
+ min-width: @horizontalLabelMinWidth;
847
+ text-align: center;
845
848
  }
846
849
 
847
850
  & when (@variationLabelCircular) {
848
- /*-------------------
849
- Circular
850
- --------------------*/
851
+ /* -------------------
852
+ Circular
853
+ -------------------- */
851
854
 
852
- .ui.circular.labels .label,
853
- .ui.circular.label {
854
- min-width: @circularMinSize;
855
- min-height: @circularMinSize;
855
+ .ui.circular.labels .label,
856
+ .ui.circular.label {
857
+ min-width: @circularMinSize;
858
+ min-height: @circularMinSize;
856
859
 
857
- padding: @circularPadding !important;
860
+ padding: @circularPadding !important;
858
861
 
859
- line-height: 1em;
860
- text-align: center;
861
- border-radius: @circularRadius;
862
- }
863
- .ui.empty.circular.labels .label,
864
- .ui.empty.circular.label {
865
- min-width: 0;
866
- min-height: 0;
867
- overflow: hidden;
868
- width: @emptyCircleSize;
869
- height: @emptyCircleSize;
870
- vertical-align: baseline;
871
- }
862
+ line-height: 1em;
863
+ text-align: center;
864
+ border-radius: @circularRadius;
865
+ }
866
+ .ui.empty.circular.labels .label,
867
+ .ui.empty.circular.label {
868
+ min-width: 0;
869
+ min-height: 0;
870
+ overflow: hidden;
871
+ width: @emptyCircleSize;
872
+ height: @emptyCircleSize;
873
+ vertical-align: baseline;
874
+ }
872
875
  }
873
876
 
874
877
  & when (@variationLabelPointing) {
875
- /*-------------------
876
- Pointing
877
- --------------------*/
878
-
879
- .ui.pointing.label {
880
- position: relative;
881
- }
882
-
883
- .ui.attached.pointing.label {
884
- position: absolute;
885
- }
886
-
887
- .ui.pointing.label::before {
888
- background-color: inherit;
889
- background-image: inherit;
890
- border-width: 0;
891
- border-style: solid;
892
- border-color: @pointingBorderColor;
893
- }
894
- /* Arrow */
895
- .ui.pointing.label::before {
896
- position: absolute;
897
- content: '';
898
- transform: rotate(45deg);
899
- background-image: none;
900
-
901
- z-index: @pointingTriangleZIndex;
902
- width: @pointingTriangleSize;
903
- height: @pointingTriangleSize;
904
- transition: @pointingTriangleTransition;
905
- }
906
-
907
- /*--- Above ---*/
908
- .ui.pointing.label,
909
- .ui[class*="pointing above"].label {
910
- margin-top: @pointingVerticalDistance;
911
- }
912
- .ui.pointing.label::before,
913
- .ui[class*="pointing above"].label::before {
914
- border-width: @borderWidth 0 0 @borderWidth;
915
- transform: translateX(-50%) translateY(-50%) rotate(45deg);
916
- top: 0;
917
- left: 50%;
918
- }
919
- /*--- Below ---*/
920
- .ui[class*="bottom pointing"].label,
921
- .ui[class*="pointing below"].label {
922
- margin-top: 0;
923
- margin-bottom: @pointingVerticalDistance;
924
- }
925
- .ui[class*="bottom pointing"].label::before,
926
- .ui[class*="pointing below"].label::before {
927
- border-width: 0 @borderWidth @borderWidth 0;
928
- top: auto;
929
- right: auto;
930
- transform: translateX(-50%) translateY(-50%) rotate(45deg);
931
- top: 100%;
932
- left: 50%;
933
- }
934
- /*--- Left ---*/
935
- .ui[class*="left pointing"].label {
936
- margin-top: 0;
937
- margin-left: @pointingHorizontalDistance;
938
- }
939
- .ui[class*="left pointing"].label::before {
940
- border-width: 0 0 @borderWidth @borderWidth;
941
- transform: translateX(-50%) translateY(-50%) rotate(45deg);
942
- bottom: auto;
943
- right: auto;
944
- top: 50%;
945
- left: 0;
946
- }
947
- /*--- Right ---*/
948
- .ui[class*="right pointing"].label {
949
- margin-top: 0;
950
- margin-right: @pointingHorizontalDistance;
951
- }
952
- .ui[class*="right pointing"].label::before {
953
- border-width: @borderWidth @borderWidth 0 0;
954
- transform: translateX(50%) translateY(-50%) rotate(45deg);
955
- top: 50%;
956
- right: 0;
957
- bottom: auto;
958
- left: auto;
959
- }
960
- & when (@variationLabelBasic) {
961
- /* Basic Pointing */
962
-
963
- /*--- Above ---*/
964
- .ui.basic.pointing.label::before,
965
- .ui.basic[class*="pointing above"].label::before {
966
- margin-top: @basicPointingTriangleOffset;
967
- }
968
- /*--- Below ---*/
969
- .ui.basic[class*="bottom pointing"].label::before,
970
- .ui.basic[class*="pointing below"].label::before {
971
- bottom: auto;
972
- top: 100%;
973
- margin-top: -@basicPointingTriangleOffset;
974
- }
975
- /*--- Left ---*/
976
- .ui.basic[class*="left pointing"].label::before {
977
- top: 50%;
978
- left: @basicPointingTriangleOffset;
979
- }
980
- /*--- Right ---*/
981
- .ui.basic[class*="right pointing"].label::before {
982
- top: 50%;
983
- right: @basicPointingTriangleOffset;
984
- }
985
- }
878
+ /* -------------------
879
+ Pointing
880
+ -------------------- */
881
+
882
+ .ui.pointing.label {
883
+ position: relative;
884
+ }
885
+
886
+ .ui.attached.pointing.label {
887
+ position: absolute;
888
+ }
889
+
890
+ .ui.pointing.label::before {
891
+ background-color: inherit;
892
+ background-image: inherit;
893
+ border-width: 0;
894
+ border-style: solid;
895
+ border-color: @pointingBorderColor;
896
+ }
897
+
898
+ /* Arrow */
899
+ .ui.pointing.label::before {
900
+ position: absolute;
901
+ content: '';
902
+ transform: rotate(45deg);
903
+ background-image: none;
904
+
905
+ z-index: @pointingTriangleZIndex;
906
+ width: @pointingTriangleSize;
907
+ height: @pointingTriangleSize;
908
+ transition: @pointingTriangleTransition;
909
+ }
910
+
911
+ /* --- Above --- */
912
+ .ui.pointing.label,
913
+ .ui[class*="pointing above"].label {
914
+ margin-top: @pointingVerticalDistance;
915
+ }
916
+ .ui.pointing.label::before,
917
+ .ui[class*="pointing above"].label::before {
918
+ border-width: @borderWidth 0 0 @borderWidth;
919
+ transform: translateX(-50%) translateY(-50%) rotate(45deg);
920
+ top: 0;
921
+ left: 50%;
922
+ }
923
+
924
+ /* --- Below --- */
925
+ .ui[class*="bottom pointing"].label,
926
+ .ui[class*="pointing below"].label {
927
+ margin-top: 0;
928
+ margin-bottom: @pointingVerticalDistance;
929
+ }
930
+ .ui[class*="bottom pointing"].label::before,
931
+ .ui[class*="pointing below"].label::before {
932
+ border-width: 0 @borderWidth @borderWidth 0;
933
+ top: auto;
934
+ right: auto;
935
+ transform: translateX(-50%) translateY(-50%) rotate(45deg);
936
+ top: 100%;
937
+ left: 50%;
938
+ }
939
+
940
+ /* --- Left --- */
941
+ .ui[class*="left pointing"].label {
942
+ margin-top: 0;
943
+ margin-left: @pointingHorizontalDistance;
944
+ }
945
+ .ui[class*="left pointing"].label::before {
946
+ border-width: 0 0 @borderWidth @borderWidth;
947
+ transform: translateX(-50%) translateY(-50%) rotate(45deg);
948
+ bottom: auto;
949
+ right: auto;
950
+ top: 50%;
951
+ left: 0;
952
+ }
953
+
954
+ /* --- Right --- */
955
+ .ui[class*="right pointing"].label {
956
+ margin-top: 0;
957
+ margin-right: @pointingHorizontalDistance;
958
+ }
959
+ .ui[class*="right pointing"].label::before {
960
+ border-width: @borderWidth @borderWidth 0 0;
961
+ transform: translateX(50%) translateY(-50%) rotate(45deg);
962
+ top: 50%;
963
+ right: 0;
964
+ bottom: auto;
965
+ left: auto;
966
+ }
967
+ & when (@variationLabelBasic) {
968
+ /* Basic Pointing */
969
+
970
+ /* --- Above --- */
971
+ .ui.basic.pointing.label::before,
972
+ .ui.basic[class*="pointing above"].label::before {
973
+ margin-top: @basicPointingTriangleOffset;
974
+ }
975
+
976
+ /* --- Below --- */
977
+ .ui.basic[class*="bottom pointing"].label::before,
978
+ .ui.basic[class*="pointing below"].label::before {
979
+ bottom: auto;
980
+ top: 100%;
981
+ margin-top: -@basicPointingTriangleOffset;
982
+ }
983
+
984
+ /* --- Left --- */
985
+ .ui.basic[class*="left pointing"].label::before {
986
+ top: 50%;
987
+ left: @basicPointingTriangleOffset;
988
+ }
989
+
990
+ /* --- Right --- */
991
+ .ui.basic[class*="right pointing"].label::before {
992
+ top: 50%;
993
+ right: @basicPointingTriangleOffset;
994
+ }
995
+ }
986
996
  }
987
997
 
988
998
  & when (@variationLabelFloating) {
989
- /*------------------
990
- Floating Label
991
- -------------------*/
992
-
993
- .ui.floating.label {
994
- position: absolute;
995
- z-index: @floatingZIndex;
996
- top: @floatingTopOffset;
997
- right: 0;
998
- white-space: nowrap;
999
- transform: translateX(50%);
1000
- }
1001
- .ui.right.aligned.floating.label {
1002
- transform: translateX(@floatingAlignOffset);
1003
- }
1004
- .ui.left.floating.label {
1005
- left:0;
1006
- right:auto;
1007
- transform: translateX(-50%);
1008
- }
1009
- .ui.left.aligned.floating.label {
1010
- transform: translateX(-@floatingAlignOffset);
1011
- }
1012
- .ui.bottom.floating.label {
1013
- top: auto;
1014
- bottom: @floatingBottomOffset;
1015
- }
999
+ /* ------------------
1000
+ Floating Label
1001
+ ------------------- */
1002
+
1003
+ .ui.floating.label {
1004
+ position: absolute;
1005
+ z-index: @floatingZIndex;
1006
+ top: @floatingTopOffset;
1007
+ right: 0;
1008
+ white-space: nowrap;
1009
+ transform: translateX(50%);
1010
+ }
1011
+ .ui.right.aligned.floating.label {
1012
+ transform: translateX(@floatingAlignOffset);
1013
+ }
1014
+ .ui.left.floating.label {
1015
+ left: 0;
1016
+ right: auto;
1017
+ transform: translateX(-50%);
1018
+ }
1019
+ .ui.left.aligned.floating.label {
1020
+ transform: translateX(-@floatingAlignOffset);
1021
+ }
1022
+ .ui.bottom.floating.label {
1023
+ top: auto;
1024
+ bottom: @floatingBottomOffset;
1025
+ }
1016
1026
  }
1017
1027
 
1018
- /*-------------------
1028
+ /* -------------------
1019
1029
  Sizes
1020
- --------------------*/
1030
+ -------------------- */
1021
1031
 
1022
1032
  .ui.labels .label,
1023
1033
  .ui.label {
1024
- font-size: @medium;
1034
+ font-size: @medium;
1025
1035
  }
1026
1036
  & when not (@variationLabelSizes = false) {
1027
- each(@variationLabelSizes, {
1028
- @s: @@value;
1029
- .ui.@{value}.labels .label,
1030
- .ui.@{value}.label {
1031
- font-size: @s;
1032
- }
1033
- })
1037
+ each(@variationLabelSizes, {
1038
+ @s: @@value;
1039
+ .ui.@{value}.labels .label,
1040
+ .ui.@{value}.label {
1041
+ font-size: @s;
1042
+ }
1043
+ })
1034
1044
  }
1035
1045
 
1036
1046
  .loadUIOverrides();