Browse Source

Actually fixes #1680, issue with ribbon sizing

pull/1698/merge
jlukic 9 years ago
parent
commit
386fe9c5ad
2 changed files with 4 additions and 3 deletions
  1. 2
      src/definitions/elements/label.less
  2. 5
      src/themes/default/elements/label.variables

2
src/definitions/elements/label.less

@ -319,7 +319,7 @@ a.ui.label {
position: relative;
margin: 0em;
left: -@ribbonDistance;
left: @ribbonOffset;
padding-left: @ribbonDistance;
border-radius: 0em @borderRadius @borderRadius 0em;
border-color: @ribbonShadowColor;

5
src/themes/default/elements/label.variables

@ -90,9 +90,10 @@
@tagTransition: background @labelTransitionDuration @labelTransitionEasing;
/* Ribbon */
@ribbonDistance: 2em;
@ribbonMargin: 1em;
@ribbonTriangleSize: 1.2em;
@ribbonOffset: ~"calc(-1rem - "@ribbonTriangleSize~")";
@ribbonDistance: ~"calc(1rem + "@ribbonTriangleSize~")";
@ribbonMargin: 1em;
@ribbonShadowColor: rgba(0, 0, 0, 0.15);
@blackRibbonShadow: darken(@black, 10);

Loading…
Cancel
Save