<div class="rh-buttongroup">
<div class="rh-buttongroup__button rh-buttongroup__button--left">
<a class="rh-buttongroup__button-text" href="#">Left</a> <span class="rh-label rh-label--small">100</span>
</div>
<div class="rh-buttongroup__button">
<a class="rh-buttongroup__button-text" href="#">Default</a> <span class="rh-label rh-label--small">100</span>
</div>
<div class="rh-buttongroup__button rh-buttongroup__button--right">
<a class="rh-buttongroup__button-text" href="#">Right</a> <span class="rh-label rh-label--small">100</span>
</div>
</div>
<div class="rh-buttongroup">
{{render '@buttongroup-elements--left'}}
{{render '@buttongroup-elements'}}
{{render '@buttongroup-elements--right'}}
</div>
/* No context defined for this component. */
.rh-buttongroup {
/* Box-modell/beteende */
display: $BUTTONGROUP--DISPLAY;
justify-content: $BUTTONGROUP--JUSTIFY-CONTENT;
/* Typografi */
text-align: $BUTTONGROUP--TEXT-ALIGN;
@include medium {
justify-content: $BUTTONGROUP--MEDIUM--JUSTIFY-CONTENT;
}
}
.rh-buttongroup__button .rh-labels {
/* Box-modell/beteende */
display: $BUTTONGROUP__BUTTON--LABELS--DISPLAY;
@include medium {
/* Box-modell/beteende */
display: $BUTTONGROUP__BUTTON--LABELS--MEDIUM--DISPLAY;
}
}
/* ------------------------ */
/* Organismen "Buttongroup" */
/* ------------------------ */
// Buttongroup
$BUTTONGROUP--DISPLAY: flex;
$BUTTONGROUP--JUSTIFY-CONTENT: center;
$BUTTONGROUP--TEXT-ALIGN: center;
$BUTTONGROUP--MEDIUM--JUSTIFY-CONTENT: left;
// Labels inkluderade i "buttongroup button"
$BUTTONGROUP__BUTTON--LABELS--DISPLAY: none;
$BUTTONGROUP__BUTTON--LABELS--MEDIUM--DISPLAY: inline; // Visa from medium eller inte
{
"name": "regionhalland/buttongroup",
"description": "Buttongroup-organismen",
"type": "styleguide-organism",
"license": "GPL-3.0",
"authors": [
{
"name": "Roland Hydén",
"email": "Roland.Hyden@Regionhalland.se"
}
],
"require": {}
}