You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

956 lines
20 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Label
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'element';
  15. @element : 'label';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Label
  19. *******************************/
  20. .ui.label {
  21. display: inline-block;
  22. vertical-align: @verticalAlign;
  23. line-height: 1;
  24. margin: @verticalMargin @horizontalMargin;
  25. background-color: @backgroundColor;
  26. border-color: @backgroundColor;
  27. background-image: @backgroundImage;
  28. padding: @verticalPadding @horizontalPadding;
  29. color: @labelTextColor;
  30. text-transform: @textTransform;
  31. font-weight: @fontWeight;
  32. border-radius: @borderRadius;
  33. box-sizing: border-box;
  34. transition:
  35. background 0.1s linear
  36. ;
  37. }
  38. .ui.label:first-child {
  39. margin-left: 0em;
  40. }
  41. .ui.label:last-child {
  42. margin-right: 0em;
  43. }
  44. /* Link */
  45. a.ui.label {
  46. cursor: pointer;
  47. }
  48. /* Inside Link */
  49. .ui.label a {
  50. cursor: pointer;
  51. color: inherit;
  52. opacity: @linkOpacity;
  53. transition: @labelTransitionDuration opacity @labelTransitionEasing;
  54. }
  55. .ui.label a:hover {
  56. opacity: 1;
  57. }
  58. /* Icon */
  59. .ui.label .icon {
  60. width: auto;
  61. margin: 0em @iconDistance 0em 0em;
  62. }
  63. /* Detail */
  64. .ui.label .detail {
  65. display: inline-block;
  66. margin-left: @detailMargin;
  67. font-weight: bold;
  68. opacity: @detailOpacity;
  69. }
  70. .ui.label .detail .icon {
  71. margin: 0em @detailIconDistance 0em 0em;
  72. }
  73. /* Removable label */
  74. .ui.label .close.icon,
  75. .ui.label .delete.icon {
  76. cursor: pointer;
  77. margin-right: 0em;
  78. margin-left: @deleteMargin;
  79. opacity: @linkOpacity;
  80. transition:
  81. background 0.1s linear
  82. ;
  83. }
  84. .ui.label .delete.icon:hover {
  85. opacity: 1;
  86. }
  87. /*-------------------
  88. Group
  89. --------------------*/
  90. .ui.labels .label {
  91. margin: 0em @groupHorizontalMargin @groupVerticalMargin 0em;
  92. }
  93. /*-------------------
  94. Coupling
  95. --------------------*/
  96. /* Padding on next content after a label */
  97. .ui.top.attached.label:first-child + * {
  98. margin-top: @attachedSegmentPadding;
  99. }
  100. .ui.bottom.attached.label:first-child ~ :last-child {
  101. margin-top: 0em;
  102. margin-bottom: @attachedSegmentPadding;
  103. }
  104. /*******************************
  105. Types
  106. *******************************/
  107. .ui.image.label {
  108. width: auto !important;
  109. margin-top: 0em;
  110. margin-bottom: 0em;
  111. max-width: 9999px;
  112. vertical-align: baseline;
  113. text-transform: none;
  114. background: @imageLabelBackground;
  115. padding: @imageLabelPadding;
  116. border-radius: @imageLabelBorderRadius;
  117. box-shadow: @imageLabelBoxShadow;
  118. }
  119. .ui.image.label img {
  120. display: inline-block;
  121. vertical-align: top;
  122. height: @imageLabelImageHeight;
  123. margin: @imageLabelImageMargin;
  124. border-radius: @imageLabelBorderRadius;
  125. }
  126. .ui.image.label .detail {
  127. background: @imageLabelDetailBackground;
  128. margin: @imageLabelDetailMargin;
  129. padding: @imageLabelDetailPadding;
  130. border-radius: 0em @imageLabelBorderRadius @imageLabelBorderRadius 0em;
  131. }
  132. /*-------------------
  133. Tag
  134. --------------------*/
  135. .ui.tag.labels .label,
  136. .ui.tag.label {
  137. margin-left: 1em;
  138. position: relative;
  139. padding-left: @tagHorizontalPadding;
  140. padding-right: @tagHorizontalPadding;
  141. border-radius: 0em @borderRadius @borderRadius 0em;
  142. }
  143. .ui.tag.labels .label:before,
  144. .ui.tag.label:before {
  145. position: absolute;
  146. top: @tagTriangleTopOffset;
  147. right: @tagTriangleRightOffset;
  148. content: '';
  149. background-color: @backgroundColor;
  150. background-image: @backgroundImage;
  151. width: @tagTriangleSize;
  152. height: @tagTriangleSize;
  153. transform: translateY(-50%) translateX(50%) rotate(-45deg);
  154. transition:
  155. background 0.1s linear
  156. ;
  157. }
  158. .ui.tag.labels .label:after,
  159. .ui.tag.label:after {
  160. position: absolute;
  161. content: '';
  162. top: 50%;
  163. left: -(@tagCircleSize / 2);
  164. margin-top: -(@tagCircleSize / 2);
  165. background-color: @tagCircleColor !important;
  166. width: @tagCircleSize;
  167. height: @tagCircleSize;
  168. box-shadow: @tagCircleBoxShadow;
  169. border-radius: @circularRadius;
  170. }
  171. /*-------------------
  172. Corner Label
  173. --------------------*/
  174. .ui.corner.label {
  175. position: absolute;
  176. top: 0em;
  177. right: 0em;
  178. z-index: 10;
  179. margin: 0em;
  180. width: @cornerTriangleSize;
  181. height: @cornerTriangleSize;
  182. padding: 0em;
  183. text-align: center;
  184. transition: color @labelTransitionDuration @labelTransitionEasing;
  185. }
  186. /* Icon Label */
  187. .ui.corner.label{
  188. background-color: transparent !important;
  189. }
  190. .ui.corner.label:after {
  191. position: absolute;
  192. content: "";
  193. right: 0em;
  194. top: 0em;
  195. z-index: -1;
  196. width: 0em;
  197. height: 0em;
  198. background-color: transparent !important;
  199. border-top: 0em solid transparent;
  200. border-right: @cornerTriangleSize solid transparent;
  201. border-bottom: @cornerTriangleSize solid transparent;
  202. border-left: 0em solid transparent;
  203. border-right-color: inherit;
  204. transition: border-color @labelTransitionDuration @labelTransitionEasing;
  205. }
  206. .ui.corner.label .icon {
  207. position: relative;
  208. top: @cornerIconTopOffset;
  209. left: @cornerIconLeftOffset;
  210. font-size: @cornerIconSize;
  211. margin: 0em;
  212. }
  213. /* Text Label
  214. .ui.text.corner.label {
  215. font-weight: @cornerTextWeight;
  216. text-align: center;
  217. padding: 0.25em 0;
  218. top: 1.1em;
  219. transform: rotate(45deg);
  220. width: 4em;
  221. height: auto;
  222. }
  223. .ui.left.text.corner.label {
  224. transform: rotate(-45deg);
  225. }
  226. .ui.text.corner.label:before,
  227. .ui.text.corner.label:after {
  228. position: absolute;
  229. content: '';
  230. top: 0em;
  231. width: 0em;
  232. height: 0em;
  233. }
  234. .ui.text.corner.label:before {
  235. left: auto;
  236. right: 100%;
  237. border-top: 0em solid transparent;
  238. border-right-width: @ribbonTriangleSize;
  239. border-right-color: inherit;
  240. border-right-style: solid;
  241. border-bottom: @ribbonTriangleSize solid transparent;
  242. border-left: 0em solid transparent;
  243. }
  244. .ui.text.corner.label:after {
  245. left: 100%;
  246. right: auto;
  247. border-top: 0em solid transparent;
  248. border-right-width: @ribbonTriangleSize;
  249. border-right-color: inherit;
  250. border-right-style: solid;
  251. border-bottom: @ribbonTriangleSize solid transparent;
  252. border-left: 0em solid transparent;
  253. }
  254. */
  255. /* Left Corner */
  256. .ui.left.corner.label,
  257. .ui.left.corner.label:after {
  258. right: auto;
  259. left: 0em;
  260. }
  261. .ui.left.corner.label:after {
  262. border-top: @cornerTriangleSize solid transparent;
  263. border-right: @cornerTriangleSize solid transparent;
  264. border-bottom: 0em solid transparent;
  265. border-left: 0em solid transparent;
  266. border-top-color: inherit;
  267. }
  268. .ui.left.corner.label .icon {
  269. left: -@cornerIconLeftOffset;
  270. }
  271. /* Segment */
  272. .ui.segment > .ui.corner.label {
  273. top: -1px;
  274. right: -1px;
  275. }
  276. .ui.segment > .ui.left.corner.label {
  277. right: auto;
  278. left: -1px;
  279. }
  280. /* Input */
  281. .ui.input > .ui.corner.label {
  282. top: 1px;
  283. right: 1px;
  284. }
  285. .ui.input > .ui.right.corner.label {
  286. right: auto;
  287. left: 1px;
  288. }
  289. /*-------------------
  290. Ribbon
  291. --------------------*/
  292. .ui.ribbon.label {
  293. position: relative;
  294. margin: 0em;
  295. left: -@ribbonDistance;
  296. padding-left: @ribbonDistance;
  297. border-radius: 0em @borderRadius @borderRadius 0em;
  298. border-color: @ribbonShadowColor;
  299. }
  300. .ui.ribbon.label:after {
  301. position: absolute;
  302. content: "";
  303. top: 100%;
  304. left: 0%;
  305. background-color: transparent !important;
  306. border-top: 0em solid transparent;
  307. border-right-width: @ribbonTriangleSize;
  308. border-right-color: inherit;
  309. border-right-style: solid;
  310. border-bottom: @ribbonTriangleSize solid transparent;
  311. border-left: 0em solid transparent;
  312. width: 0em;
  313. height: 0em;
  314. }
  315. /*-------------------
  316. Attached
  317. --------------------*/
  318. .ui.top.attached.label,
  319. .ui.attached.label {
  320. width: 100%;
  321. position: absolute;
  322. margin: 0em;
  323. top: 0em;
  324. left: 0em;
  325. padding: @attachedVerticalPadding @attachedHorizontalPadding;
  326. border-radius: @borderRadius @borderRadius 0em 0em;
  327. }
  328. .ui.bottom.attached.label {
  329. top: auto;
  330. bottom: 0em;
  331. border-radius: 0em 0em @borderRadius @borderRadius;
  332. }
  333. .ui.top.left.attached.label {
  334. width: auto;
  335. margin-top: 0em !important;
  336. border-radius: @borderRadius 0em @borderRadius 0em;
  337. }
  338. .ui.top.right.attached.label {
  339. width: auto;
  340. left: auto;
  341. right: 0em;
  342. border-radius: 0em @borderRadius 0em @borderRadius;
  343. }
  344. .ui.bottom.left.attached.label {
  345. width: auto;
  346. top: auto;
  347. bottom: 0em;
  348. border-radius: 0em 0em @borderRadius @borderRadius ;
  349. }
  350. .ui.bottom.right.attached.label {
  351. top: auto;
  352. bottom: 0em;
  353. left: auto;
  354. right: 0em;
  355. width: auto;
  356. border-radius: @borderRadius 0em @borderRadius 0em;
  357. }
  358. /*******************************
  359. States
  360. *******************************/
  361. /*-------------------
  362. Disabled
  363. --------------------*/
  364. .ui.label.disabled {
  365. opacity: 0.5;
  366. }
  367. /*-------------------
  368. Hover
  369. --------------------*/
  370. a.ui.labels .label:hover,
  371. a.ui.label:hover {
  372. background-color: @labelHoverBackgroundColor;
  373. border-color: @labelHoverBackgroundColor;
  374. background-image: @labelHoverBackgroundImage;
  375. color: @labelHoverTextColor;
  376. }
  377. .ui.labels a.label:hover:before,
  378. a.ui.label:hover:before {
  379. background-color: @labelHoverBackgroundColor;
  380. background-image: @labelHoverBackgroundImage;
  381. color: @labelHoverTextColor;
  382. }
  383. /*-------------------
  384. Visible
  385. --------------------*/
  386. .ui.labels.visible .label,
  387. .ui.label.visible {
  388. display: inline-block !important;
  389. }
  390. /*-------------------
  391. Hidden
  392. --------------------*/
  393. .ui.labels.hidden .label,
  394. .ui.label.hidden {
  395. display: none !important;
  396. }
  397. /*******************************
  398. Variations
  399. *******************************/
  400. /*-------------------
  401. Colors
  402. --------------------*/
  403. /*--- Black ---*/
  404. .ui.black.labels .label,
  405. .ui.black.label {
  406. background-color: @black !important;
  407. border-color: @black !important;
  408. color: @invertedTextColor !important;
  409. }
  410. .ui.labels .black.label:before,
  411. .ui.black.labels .label:before,
  412. .ui.black.label:before {
  413. background-color: @black !important;
  414. }
  415. a.ui.black.labels .label:hover,
  416. a.ui.black.label:hover {
  417. background-color: @blackHover !important;
  418. border-color: @blackHover !important;
  419. }
  420. .ui.labels a.black.label:hover:before,
  421. .ui.black.labels a.label:hover:before,
  422. a.ui.black.label:hover:before {
  423. background-color: @blackHover !important;
  424. }
  425. .ui.black.corner.label,
  426. .ui.black.corner.label:hover {
  427. background-color: transparent !important;
  428. }
  429. .ui.black.ribbon.label {
  430. border-color: @blackRibbonShadow !important;
  431. }
  432. /*--- Blue ---*/
  433. .ui.blue.labels .label,
  434. .ui.blue.label {
  435. background-color: @blue !important;
  436. border-color: @blue !important;
  437. color: @invertedTextColor !important;
  438. }
  439. .ui.labels .blue.label:before,
  440. .ui.blue.labels .label:before,
  441. .ui.blue.label:before {
  442. background-color: @blue !important;
  443. }
  444. a.ui.blue.labels .label:hover,
  445. .ui.blue.labels a.label:hover,
  446. a.ui.blue.label:hover {
  447. background-color: @blueHover !important;
  448. border-color: @blueHover !important;
  449. color: @invertedTextColor !important;
  450. }
  451. .ui.labels a.blue.label:hover:before,
  452. .ui.blue.labels a.label:hover:before,
  453. a.ui.blue.label:hover:before {
  454. background-color: @blueHover !important;
  455. }
  456. .ui.blue.corner.label,
  457. .ui.blue.corner.label:hover {
  458. background-color: transparent !important;
  459. }
  460. .ui.blue.ribbon.label {
  461. border-color: @blueRibbonShadow !important;
  462. }
  463. /*--- Green ---*/
  464. .ui.green.labels .label,
  465. .ui.green.label {
  466. background-color: @green !important;
  467. border-color: @green !important;
  468. color: @invertedTextColor !important;
  469. }
  470. .ui.labels .green.label:before,
  471. .ui.green.labels .label:before,
  472. .ui.green.label:before {
  473. background-color: @green !important;
  474. }
  475. a.ui.green.labels .label:hover,
  476. a.ui.green.label:hover {
  477. background-color: @greenHover !important;
  478. border-color: @greenHover !important;
  479. }
  480. .ui.labels a.green.label:hover:before,
  481. .ui.green.labels a.label:hover:before,
  482. a.ui.green.label:hover:before {
  483. background-color: @greenHover !important;
  484. }
  485. .ui.green.corner.label,
  486. .ui.green.corner.label:hover {
  487. background-color: transparent !important;
  488. }
  489. .ui.green.ribbon.label {
  490. border-color: @greenRibbonShadow !important;
  491. }
  492. /*--- Orange ---*/
  493. .ui.orange.labels .label,
  494. .ui.orange.label {
  495. background-color: @orange !important;
  496. border-color: @orange !important;
  497. color: @invertedTextColor !important;
  498. }
  499. .ui.labels .orange.label:before,
  500. .ui.orange.labels .label:before,
  501. .ui.orange.label:before {
  502. background-color: @orange !important;
  503. }
  504. a.ui.orange.labels .label:hover,
  505. .ui.orange.labels a.label:hover,
  506. a.ui.orange.label:hover {
  507. background-color: @orangeHover !important;
  508. border-color: @orangeHover !important;
  509. color: @invertedTextColor !important;
  510. }
  511. .ui.labels a.orange.label:hover:before,
  512. .ui.orange.labels a.label:hover:before,
  513. a.ui.orange.label:hover:before {
  514. background-color: @orangeHover !important;
  515. }
  516. .ui.orange.corner.label,
  517. .ui.orange.corner.label:hover {
  518. background-color: transparent !important;
  519. }
  520. .ui.orange.ribbon.label {
  521. border-color: @orangeRibbonShadow !important;
  522. }
  523. /*--- Pink ---*/
  524. .ui.pink.labels .label,
  525. .ui.pink.label {
  526. background-color: @pink !important;
  527. border-color: @pink !important;
  528. color: @invertedTextColor !important;
  529. }
  530. .ui.labels .pink.label:before,
  531. .ui.pink.labels .label:before,
  532. .ui.pink.label:before {
  533. background-color: @pink !important;
  534. }
  535. a.ui.pink.labels .label:hover,
  536. .ui.pink.labels a.label:hover,
  537. a.ui.pink.label:hover {
  538. background-color: @pinkHover !important;
  539. border-color: @pinkHover !important;
  540. color: @invertedTextColor !important;
  541. }
  542. .ui.labels a.pink.label:hover:before,
  543. .ui.pink.labels a.label:hover:before,
  544. a.ui.pink.label:hover:before {
  545. background-color: @pinkHover !important;
  546. }
  547. .ui.pink.corner.label,
  548. .ui.pink.corner.label:hover {
  549. background-color: transparent !important;
  550. }
  551. .ui.pink.ribbon.label {
  552. border-color: @pinkRibbonShadow !important;
  553. }
  554. /*--- Purple ---*/
  555. .ui.purple.labels .label,
  556. .ui.purple.label {
  557. background-color: @purple !important;
  558. border-color: @purple !important;
  559. color: @invertedTextColor !important;
  560. }
  561. .ui.labels .purple.label:before,
  562. .ui.purple.labels .label:before,
  563. .ui.purple.label:before {
  564. background-color: @purple !important;
  565. }
  566. a.ui.purple.labels .label:hover,
  567. .ui.purple.labels a.label:hover,
  568. a.ui.purple.label:hover {
  569. background-color: @purpleHover !important;
  570. border-color: @purpleHover !important;
  571. color: @invertedTextColor !important;
  572. }
  573. .ui.labels a.purple.label:hover:before,
  574. .ui.purple.labels a.label:hover:before,
  575. a.ui.purple.label:hover:before {
  576. background-color: @purpleHover !important;
  577. }
  578. .ui.purple.corner.label,
  579. .ui.purple.corner.label:hover {
  580. background-color: transparent !important;
  581. }
  582. .ui.purple.ribbon.label {
  583. border-color: @purpleRibbonShadow !important;
  584. }
  585. /*--- Red ---*/
  586. .ui.red.labels .label,
  587. .ui.red.label {
  588. background-color: @red !important;
  589. border-color: @red !important;
  590. color: @invertedTextColor !important;
  591. }
  592. .ui.labels .red.label:before,
  593. .ui.red.labels .label:before,
  594. .ui.red.label:before {
  595. background-color: @red !important;
  596. }
  597. .ui.red.corner.label,
  598. .ui.red.corner.label:hover {
  599. background-color: transparent !important;
  600. }
  601. a.ui.red.labels .label:hover,
  602. a.ui.red.label:hover{
  603. background-color: @redHover !important;
  604. border-color: @redHover !important;
  605. color: @invertedTextColor !important;
  606. }
  607. .ui.labels a.red.label:hover:before,
  608. .ui.red.labels a.label:hover:before,
  609. a.ui.red.label:hover:before {
  610. background-color: @redHover !important;
  611. }
  612. .ui.red.ribbon.label {
  613. border-color: @redRibbonShadow !important;
  614. }
  615. /*--- Teal ---*/
  616. .ui.teal.labels .label,
  617. .ui.teal.label {
  618. background-color: @teal !important;
  619. border-color: @teal !important;
  620. color: @invertedTextColor !important;
  621. }
  622. .ui.labels .teal.label:before,
  623. .ui.teal.labels .label:before,
  624. .ui.teal.label:before {
  625. background-color: @teal !important;
  626. }
  627. a.ui.teal.labels .label:hover,
  628. .ui.teal.labels a.label:hover,
  629. a.ui.teal.label:hover {
  630. background-color: @tealHover !important;
  631. border-color: @tealHover !important;
  632. color: @invertedTextColor !important;
  633. }
  634. .ui.labels a.teal.label:hover:before,
  635. .ui.teal.labels a.label:hover:before,
  636. a.ui.teal.label:hover:before {
  637. background-color: @tealHover !important;
  638. }
  639. .ui.teal.corner.label,
  640. .ui.teal.corner.label:hover {
  641. background-color: transparent !important;
  642. }
  643. .ui.teal.ribbon.label {
  644. border-color: @tealRibbonShadow !important;
  645. }
  646. /*--- Yellow ---*/
  647. .ui.yellow.labels .label,
  648. .ui.yellow.label {
  649. background-color: @yellow !important;
  650. border-color: @yellow !important;
  651. color: @invertedTextColor !important;
  652. }
  653. .ui.labels .yellow.label:before,
  654. .ui.yellow.labels .label:before,
  655. .ui.yellow.label:before {
  656. background-color: @yellow !important;
  657. }
  658. a.ui.yellow.labels .label:hover,
  659. .ui.yellow.labels a.label:hover,
  660. a.ui.yellow.label:hover {
  661. background-color: @yellowHover !important;
  662. border-color: @yellowHover !important;
  663. color: @invertedTextColor !important;
  664. }
  665. .ui.labels a.yellow.label:hover:before,
  666. .ui.yellow.labels a.label:hover:before,
  667. a.ui.yellow.label:hover:before {
  668. background-color: @yellowHover !important;
  669. }
  670. .ui.yellow.corner.label,
  671. .ui.yellow.corner.label:hover {
  672. background-color: transparent !important;
  673. }
  674. .ui.yellow.ribbon.label {
  675. border-color: @yellowRibbonShadow !important;
  676. }
  677. /*-------------------
  678. Fluid
  679. --------------------*/
  680. .ui.label.fluid,
  681. .ui.fluid.labels > .label {
  682. width: 100%;
  683. box-sizing: border-box;
  684. }
  685. /*-------------------
  686. Inverted
  687. --------------------*/
  688. .ui.inverted.labels .label,
  689. .ui.inverted.label {
  690. color: @invertedTextColor !important;
  691. }
  692. /*-------------------
  693. Horizontal
  694. --------------------*/
  695. .ui.horizontal.labels .label,
  696. .ui.horizontal.label {
  697. margin: 0em @horizontalLabelMargin 0em 0em;
  698. padding: @horizontalLabelVerticalPadding @horizontalPadding;
  699. min-width: @horizontalLabelMinWidth;
  700. text-align: center;
  701. }
  702. /*-------------------
  703. Circular
  704. --------------------*/
  705. .ui.circular.labels .label,
  706. .ui.circular.label {
  707. min-width: @circularMinSize;
  708. min-height: @circularMinSize;
  709. padding: @circularPadding !important;
  710. line-height: 1em;
  711. text-align: center;
  712. border-radius: @circularRadius;
  713. }
  714. .ui.empty.circular.labels .label,
  715. .ui.empty.circular.label {
  716. min-width: 0em;
  717. min-height: 0em;
  718. overflow: hidden;
  719. width: @emptyCircleSize;
  720. height: @emptyCircleSize;
  721. vertical-align: baseline;
  722. }
  723. /*-------------------
  724. Pointing
  725. --------------------*/
  726. .ui.pointing.label {
  727. position: relative;
  728. }
  729. .ui.attached.pointing.label {
  730. position: absolute;
  731. }
  732. .ui.pointing.label:before {
  733. position: absolute;
  734. content: '';
  735. width: @pointingTriangleSize;
  736. height: @pointingTriangleSize;
  737. background-image: none;
  738. transform: rotate(45deg);
  739. z-index: 2;
  740. transition:
  741. background 0.1s linear
  742. ;
  743. }
  744. /*--- Above ---*/
  745. .ui.pointing.label:before {
  746. background-color: @backgroundColor;
  747. background-image: @backgroundImage;
  748. }
  749. .ui.pointing.label,
  750. .ui.pointing.above.label {
  751. margin-top: 1em;
  752. }
  753. .ui.pointing.label:before,
  754. .ui.pointing.above.label:before {
  755. margin-left: -@pointingTriangleOffset;
  756. top: -@pointingTriangleOffset;
  757. left: 50%;
  758. }
  759. /*--- Below ---*/
  760. .ui.pointing.bottom.label,
  761. .ui.pointing.below.label {
  762. margin-top: 0em;
  763. margin-bottom: 1em;
  764. }
  765. .ui.pointing.bottom.label:before,
  766. .ui.pointing.below.label:before {
  767. margin-left: -@pointingTriangleOffset;
  768. top: auto;
  769. right: auto;
  770. bottom: -@pointingTriangleOffset;
  771. left: 50%;
  772. }
  773. /*--- Left ---*/
  774. .ui.pointing.left.label {
  775. margin-top: 0em;
  776. margin-left: 1em;
  777. }
  778. .ui.pointing.left.label:before {
  779. margin-top: -@pointingTriangleOffset;
  780. bottom: auto;
  781. right: auto;
  782. top: 50%;
  783. left: 0em;
  784. }
  785. /*--- Right ---*/
  786. .ui.pointing.right.label {
  787. margin-top: 0em;
  788. margin-right: 1em;
  789. }
  790. .ui.pointing.right.label:before {
  791. margin-top: -@pointingTriangleOffset;
  792. right: -@pointingTriangleOffset;
  793. top: 50%;
  794. bottom: auto;
  795. left: auto;
  796. }
  797. /*------------------
  798. Floating Label
  799. -------------------*/
  800. .ui.floating.label {
  801. position: absolute;
  802. z-index: 100;
  803. top: @floatingTopOffset;
  804. left: 100%;
  805. margin: 0em 0em 0em @floatingLeftOffset !important;
  806. }
  807. /*-------------------
  808. Sizes
  809. --------------------*/
  810. .ui.mini.labels .label,
  811. .ui.mini.label {
  812. font-size: @mini;
  813. }
  814. .ui.tiny.labels .label,
  815. .ui.tiny.label {
  816. font-size: @tiny;
  817. }
  818. .ui.small.labels .label,
  819. .ui.small.label {
  820. font-size: @small;
  821. }
  822. .ui.labels .label,
  823. .ui.label {
  824. font-size: @medium;
  825. }
  826. .ui.large.labels .label,
  827. .ui.large.label {
  828. font-size: @large;
  829. }
  830. .ui.huge.labels .label,
  831. .ui.huge.label {
  832. font-size: @huge;
  833. }
  834. .loadUIOverrides();