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