Sha256: 945ac8ee33326313e40327092d17dbcf4d581444be9313600c93ddaf422fc8db
Contents?: true
Size: 1.46 KB
Versions: 6
Compression:
Stored size: 1.46 KB
Contents
/* ==================================================================================================================== Badge & Pills Lables are used to highlight a text; `badge` have small rounded corners and `pill` have full rounded corners. Markup: <span class="badge">Badge Label</span> <span class="pill">Pill label</span> Styleguide 10. ==================================================================================================================== */ @if $labels { .badge, .pill { @extend %pill !optional; display: inline-block; padding: $pills-padding; vertical-align: baseline; white-space: nowrap; } .badge { @include border-radius($base-border-radius); } .pill { @include border-radius(500em); } .badge, .pill { &:empty { display: none; } } a { &.label:hover, &.label:focus, &.badge:hover, &.badge:focus { color: $white; text-decoration: none; cursor: pointer; } } /* -------------------------------------------------------------------------------------------------------------------- Labels used in buttons. Markup: <button class="btn btn--default">Action <span class="badge">2</span></button> <button class="btn btn--default btn--pill">Action <span class="pill">2</span></button> Styleguide 10.1 -------------------------------------------------------------------------------------------------------------------- */ .btn { .badge, .pill { margin: -(nth($pills-padding, 1)) -(nth($pills-padding, 2)) 0 0 ; } } }
Version data entries
6 entries across 6 versions & 1 rubygems