Sha256: 4a52e731a95a1bc6a383fa98ed24509526773eb7df952f713e07cccd8cb51d0c
Contents?: true
Size: 1.15 KB
Versions: 6
Compression:
Stored size: 1.15 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; @include 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