Browse Source

Add significant word order to label

pull/2979/head
Jack Lukic 9 years ago
parent
commit
f6b1659282
1 changed files with 23 additions and 23 deletions
  1. 46
      src/definitions/elements/label.less

46
src/definitions/elements/label.less

@ -400,7 +400,7 @@ a.ui.label {
Attached Attached
--------------------*/ --------------------*/
.ui.top.attached.label,
.ui[class*="top attached"].label,
.ui.attached.label { .ui.attached.label {
width: 100%; width: 100%;
position: absolute; position: absolute;
@ -412,31 +412,31 @@ a.ui.label {
border-radius: @attachedCornerBorderRadius @attachedCornerBorderRadius 0em 0em; border-radius: @attachedCornerBorderRadius @attachedCornerBorderRadius 0em 0em;
} }
.ui.bottom.attached.label {
.ui[class*="bottom attached"].label {
top: auto; top: auto;
bottom: 0em; bottom: 0em;
border-radius: 0em 0em @attachedCornerBorderRadius @attachedCornerBorderRadius; border-radius: 0em 0em @attachedCornerBorderRadius @attachedCornerBorderRadius;
} }
.ui.top.left.attached.label {
.ui[class*="top left attached"].label {
width: auto; width: auto;
margin-top: 0em !important; margin-top: 0em !important;
border-radius: @attachedCornerBorderRadius 0em @attachedBorderRadius 0em; border-radius: @attachedCornerBorderRadius 0em @attachedBorderRadius 0em;
} }
.ui.top.right.attached.label {
.ui[class*="top right attached"].label {
width: auto; width: auto;
left: auto; left: auto;
right: 0em; right: 0em;
border-radius: 0em @attachedCornerBorderRadius 0em @attachedBorderRadius; border-radius: 0em @attachedCornerBorderRadius 0em @attachedBorderRadius;
} }
.ui.bottom.left.attached.label {
.ui[class*="bottom left attached"].label {
width: auto; width: auto;
top: auto; top: auto;
bottom: 0em; bottom: 0em;
border-radius: 0em @attachedBorderRadius 0em @attachedCornerBorderRadius; border-radius: 0em @attachedBorderRadius 0em @attachedCornerBorderRadius;
} }
.ui.bottom.right.attached.label {
.ui[class*="bottom right attached"].label {
top: auto; top: auto;
bottom: 0em; bottom: 0em;
left: auto; left: auto;
@ -1112,7 +1112,7 @@ a.ui.basic.label:hover {
border-style: solid; border-style: solid;
border-color: @pointingBorderColor; border-color: @pointingBorderColor;
} }
/* Arrow */
.ui.pointing.label:before { .ui.pointing.label:before {
position: absolute; position: absolute;
content: ''; content: '';
@ -1124,26 +1124,27 @@ a.ui.basic.label:hover {
height: @pointingTriangleSize; height: @pointingTriangleSize;
transition: @pointingTriangleTransition; transition: @pointingTriangleTransition;
} }
/*--- Above ---*/ /*--- Above ---*/
.ui.pointing.label, .ui.pointing.label,
.ui.pointing.above.label {
.ui[class*="pointing above"].label {
margin-top: @pointingVerticalDistance; margin-top: @pointingVerticalDistance;
} }
.ui.pointing.label:before, .ui.pointing.label:before,
.ui.pointing.above.label:before {
.ui[class*="pointing above"].label:before {
border-width: @borderWidth 0px 0px @borderWidth; border-width: @borderWidth 0px 0px @borderWidth;
transform: translateX(-50%) translateY(-50%) rotate(45deg); transform: translateX(-50%) translateY(-50%) rotate(45deg);
top: 0%; top: 0%;
left: 50%; left: 50%;
} }
/*--- Below ---*/ /*--- Below ---*/
.ui.pointing.bottom.label,
.ui.pointing.below.label {
.ui[class*="bottom pointing"].label,
.ui[class*="pointing below"].label {
margin-top: 0em; margin-top: 0em;
margin-bottom: @pointingVerticalDistance; margin-bottom: @pointingVerticalDistance;
} }
.ui.pointing.bottom.label:before,
.ui.pointing.below.label:before {
.ui[class*="bottom pointing"].label:before,
.ui[class*="pointing below"].label:before {
border-width: 0px @borderWidth @borderWidth 0px; border-width: 0px @borderWidth @borderWidth 0px;
top: auto; top: auto;
right: auto; right: auto;
@ -1152,11 +1153,11 @@ a.ui.basic.label:hover {
left: 50%; left: 50%;
} }
/*--- Left ---*/ /*--- Left ---*/
.ui.pointing.left.label {
.ui[class*="left pointing"].label {
margin-top: 0em; margin-top: 0em;
margin-left: @pointingHorizontalDistance; margin-left: @pointingHorizontalDistance;
} }
.ui.pointing.left.label:before {
.ui[class*="left pointing"].label:before {
border-width: 0px 0px @borderWidth @borderWidth; border-width: 0px 0px @borderWidth @borderWidth;
transform: translateX(-50%) translateY(-50%) rotate(45deg); transform: translateX(-50%) translateY(-50%) rotate(45deg);
bottom: auto; bottom: auto;
@ -1165,11 +1166,11 @@ a.ui.basic.label:hover {
left: 0em; left: 0em;
} }
/*--- Right ---*/ /*--- Right ---*/
.ui.pointing.right.label {
.ui[class*="right pointing"].label {
margin-top: 0em; margin-top: 0em;
margin-right: @pointingHorizontalDistance; margin-right: @pointingHorizontalDistance;
} }
.ui.pointing.right.label:before {
.ui[class*="right pointing"].label:before {
border-width: @borderWidth @borderWidth 0px 0px; border-width: @borderWidth @borderWidth 0px 0px;
transform: translateX(50%) translateY(-50%) rotate(45deg); transform: translateX(50%) translateY(-50%) rotate(45deg);
top: 50%; top: 50%;
@ -1181,25 +1182,24 @@ a.ui.basic.label:hover {
/* Basic Pointing */ /* Basic Pointing */
/*--- Above ---*/ /*--- Above ---*/
.ui.basic.pointing.label:before, .ui.basic.pointing.label:before,
.ui.basic.pointing.above.label:before {
.ui.basic[class*="pointing above"].label:before {
margin-top: @basicPointingTriangleOffset; margin-top: @basicPointingTriangleOffset;
} }
/*--- Below ---*/ /*--- Below ---*/
.ui.basic.pointing.bottom.label:before,
.ui.basic.pointing.below.label:before {
.ui.basic[class*="bottom pointing"].label:before,
.ui.basic[class*="pointing below"].label:before {
bottom: auto; bottom: auto;
top: 100%; top: 100%;
margin-top: -@basicPointingTriangleOffset; margin-top: -@basicPointingTriangleOffset;
} }
/*--- Left ---*/ /*--- Left ---*/
.ui.basic.pointing.left.label:before {
.ui.basic[class*="left pointing"].label:before {
top: 50%; top: 50%;
left: @basicPointingTriangleOffset; left: @basicPointingTriangleOffset;
} }
/*--- Right ---*/ /*--- Right ---*/
.ui.basic.pointing.right.label:before {
.ui.basic[class*="right pointing"].label:before {
top: 50%; top: 50%;
right: @basicPointingTriangleOffset; right: @basicPointingTriangleOffset;
} }

Loading…
Cancel
Save