/** * @copyright 2010-2014, The Titon Project * @license http://opensource.org/licenses/BSD-3-Clause * @link http://titon.io */ @import "../common"; .#{$vendor-prefix}label { @include reset-inline-block; font-size: .7rem; line-height: 100%; background: $gray-dark; padding: .275rem .425rem; text-transform: uppercase; border-radius: 2px; white-space: nowrap; top: -1px; letter-spacing: 1px; @include is-small { font-size: .6rem; padding: .2rem .35rem; } @include is-large { font-size: .8rem; padding: .35rem .5rem; } &:empty { display: none; } &:after { content: ""; height: 0; width: 0; position: absolute; } } //-------------------- Modifiers --------------------// .#{$vendor-prefix}label--badge { @extend .#{$vendor-prefix}label; border-radius: 1rem; } .#{$vendor-prefix}label--arrow-left { @extend .#{$vendor-prefix}label; border-top-left-radius: 1px; border-bottom-left-radius: 1px; padding-left: 2px; margin-left: 10px; &:after { top: 0; right: 100%; border: .65rem solid transparent; border-right-color: $gray-dark; } &.#{$size-small-class}:after { border-width: .5rem; } &.#{$size-large-class}:after { border-width: .75rem; } } .#{$vendor-prefix}label--arrow-right { @extend .#{$vendor-prefix}label; border-top-right-radius: 1px; border-bottom-right-radius: 1px; padding-right: 2px; margin-right: 10px; &:after { top: 0; left: 100%; border: .65rem solid transparent; border-left-color: $gray-dark; } &.#{$size-small-class}:after { border-width: .5rem; } &.#{$size-large-class}:after { border-width: .75rem; } } .#{$vendor-prefix}label--ribbon-left { @extend .#{$vendor-prefix}label; border-top-left-radius: 0; border-bottom-left-radius: 0; &:after { top: 100%; left: 0; border: 1em solid transparent; border-top-width: 0 !important; border-left-width: 0 !important; border-right-color: $gray-darkest; } } .#{$vendor-prefix}label--ribbon-right { @extend .#{$vendor-prefix}label; border-top-right-radius: 0; border-bottom-right-radius: 0; &:after { top: 100%; right: 0; border: 1em solid transparent; border-top-width: 0 !important; border-right-width: 0 !important; border-left-color: $gray-darkest; } }