Sha256: 669c0c85365b4ff1213f19fff98d4e3ffcee3a767423176638a366abc0ddaae8
Contents?: true
Size: 1.15 KB
Versions: 5
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; 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
5 entries across 5 versions & 1 rubygems