<div class="rh-news-info">
<div class="rh-news-info__title">
<p class="rh-news-info__text">Publicerad:</p>
<p class="rh-news-info__text">Ämne:</p>
</div>
<div class="rh-news-info__description">
<p class="rh-news-info__text">
<time datetime="2018-12-13">13 december 2018, kl 16.26</time>
</p>
<p>
<a href="#">Organisation</a>,
<a href="#">styrning</a>,
<a href="#">kommunfakta</a>,
</p>
</div>
</div>
<div class="rh-news-info">
<div class="rh-news-info__title">
<p class="rh-news-info__text">{{publishInfo.text}}:</p>
<p class="rh-news-info__text">{{subjectInfo.text}}:</p>
</div>
<div class="rh-news-info__description">
<p class="rh-news-info__text">
<time datetime="{{publishInfo.datetime.attrValue}}">{{publishInfo.datetime.text}}</time>
</p>
<p>
{{#each subjectInfo.subjects}}
<a href="#">{{text}}</a>,
{{/each}}
</p>
</div>
</div>
{
"publishInfo": {
"text": "Publicerad",
"datetime": {
"text": "13 december 2018, kl 16.26",
"attrValue": "2018-12-13"
}
},
"subjectInfo": {
"text": "Ämne",
"subjects": [
{
"title": "",
"toPage": "",
"text": "Organisation"
},
{
"title": "",
"toPage": "",
"text": "styrning"
},
{
"title": "",
"toPage": "",
"text": "kommunfakta"
}
]
}
}
.rh-news-info {
/* Box-modell/beteende */
display: $NEWS-INFO--DISPLAY;
/* Typografi */
font-size: $NEWS-INFO--FONT-SIZE;
/* Typografi */
@include medium { font-size: $NEWS-INFO--MEDIUM--FONT-SIZE; }
@include large { font-size: $NEWS-INFO--LARGE--FONT-SIZE; }
&__title {
/* Box-modell/beteende */
margin-right: $NEWS-INFO__TITLE--MARGIN-RIGHT;
}
&__text {
/* Typografi */
color: $NEWS-INFO__TEXT--COLOR;
}
}
{
"name": "regionhalland/news-info",
"description": "News info",
"type": "styleguide-molecule",
"license": "GPL-3.0",
"authors": [
{
"name": "Region Halland",
"email": "webbplatser@regionhalland.se"
}
],
"require": {}
}
/* ************************* */
/* Molekylen "News info" */
/* ************************* */
$NEWS-INFO--DISPLAY: flex;
$NEWS-INFO--FONT-SIZE: $font-size--medium;
$NEWS-INFO--MEDIUM--FONT-SIZE: $font-size--medium;
$NEWS-INFO--LARGE--FONT-SIZE: $font-size--standard;
// news-info__title
$NEWS-INFO__TITLE--MARGIN-RIGHT: 30px;
// news-info__text
$NEWS-INFO__TEXT--COLOR: $grey-darkest;