<span class="rh-label rh-label--small">100</span>
<span class="{{className}}{{#if modifier}} {{className}}--{{modifier}}{{/if}}">{{ labelContent }}</span>
{
"name": "default",
"modifier": "small",
"className": "rh-label",
"labelContent": "100",
"extendClass": ""
}
.rh-label {
/* Box-modell/beteende */
border-radius: $LABEL--BORDER-RADIUS;
display: inline-block;
min-width: $LABEL--MIN-WIDTH;
vertical-align: baseline;
/* Visuellt */
background-color: $LABEL--BACKGROUND-COLOR;
/* Typografi */
@if $LABEL--TEXT-COLOR {
color: $LABEL--TEXT-COLOR;
}
@if $LABEL--FONT-SIZE {
font-size: $LABEL--FONT-SIZE;
}
line-height: $LABEL--LINE-HEIGHT;
text-align: $LABEL--TEXT-ALIGN;
white-space: $LABEL--WHITE-SPACE;
@include large {
/* Box-modell/beteende */
min-width: $LABEL--LARGE--MIN-WIDTH;
}
&--small {
padding: $LABEL--PADDING;
}
&--medium {
padding: $LABEL--MEDIUM-PADDING;
}
}
{
"name": "regionhalland/label",
"description": "Label",
"type": "styleguide-atom",
"license": "GPL-3.0",
"authors": [
{
"name": "Roland Hydén",
"email": "Roland.Hyden@Regionhalland.se"
}
],
"require": {}
}
/* --------------- */
/* Atomen "Label" */
/* --------------- */
// ------ Base settings ------
$LABEL--BORDER-RADIUS: 0.9375em; // 15px
$LABEL--BACKGROUND-COLOR: $base3-light;
// ------ End of base settings ------
// ------ Common ------
// Box-modell/beteende
$LABEL--MIN-WIDTH: 0.6875em; // 11 px
// Typografi
$LABEL--FONT-SIZE: false; // false
$LABEL--LINE-HEIGHT: 1;
$LABEL--TEXT-COLOR: false; // false
$LABEL--TEXT-ALIGN: center;
$LABEL--WHITE-SPACE: nowrap;
// large-modifiern
$LABEL--LARGE--MIN-WIDTH: 0.75em; // 12px
// ------ End of common ------
// ------ Variants ------
// Small
$LABEL--PADDING: 0.3125em 0.5625em; // 5px 9px
// Medium
$LABEL--MEDIUM-PADDING: 0.5em 0.75em; // 8px 12px
// ------ End of variants ------
Labels
till Label
.base
common
variants
--small
--medium