Simplify _zen.scss by using componets classes.
This commit is contained in:
parent
6f2f3cd067
commit
66debf54cf
7 changed files with 21 additions and 30 deletions
|
|
@ -35,8 +35,6 @@ figcaption {
|
||||||
}
|
}
|
||||||
|
|
||||||
.language-selector,
|
.language-selector,
|
||||||
article > header,
|
|
||||||
.content-dates,
|
|
||||||
.footer {
|
.footer {
|
||||||
font-size: var(--fs-xs);
|
font-size: var(--fs-xs);
|
||||||
}
|
}
|
||||||
|
|
@ -47,8 +45,6 @@ th,
|
||||||
nav,
|
nav,
|
||||||
label,
|
label,
|
||||||
legend,
|
legend,
|
||||||
article > header,
|
|
||||||
.content-dates,
|
|
||||||
.header,
|
.header,
|
||||||
.footer {
|
.footer {
|
||||||
color: var(--color-headings);
|
color: var(--color-headings);
|
||||||
|
|
@ -74,11 +70,6 @@ aside {
|
||||||
}
|
}
|
||||||
|
|
||||||
article {
|
article {
|
||||||
& > header {
|
|
||||||
@include margin-bottom(.75);
|
|
||||||
color: var(--color-text-meta);
|
|
||||||
}
|
|
||||||
|
|
||||||
.submitted,
|
.submitted,
|
||||||
.tags {
|
.tags {
|
||||||
@include respond-to(s) {
|
@include respond-to(s) {
|
||||||
|
|
@ -89,21 +80,8 @@ article {
|
||||||
|
|
||||||
.tags {
|
.tags {
|
||||||
ul {
|
ul {
|
||||||
display: inline-flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
|
||||||
list-style: none;
|
|
||||||
padding-right: .4rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.content-dates {
|
|
||||||
color: var(--color-text-meta);
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
|
|
@ -136,11 +114,11 @@ article {
|
||||||
margin-bottom: .2rem;
|
margin-bottom: .2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta {
|
.content-dates {
|
||||||
color: var(--color-text-meta);
|
text-align: right;
|
||||||
font-size: var(--fs-s);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Figure and image.
|
// Figure and image.
|
||||||
|
|
||||||
figure,
|
figure,
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,8 @@
|
||||||
li {
|
li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--inline {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
8
assets/sass/components/meta/_meta.scss
Normal file
8
assets/sass/components/meta/_meta.scss
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
// Style for meta content.
|
||||||
|
|
||||||
|
.meta,
|
||||||
|
%meta {
|
||||||
|
font-family: var(--ff-headings);
|
||||||
|
font-size: var(--fs-xs);
|
||||||
|
color: var(--color-text-meta);
|
||||||
|
}
|
||||||
|
|
@ -46,6 +46,7 @@
|
||||||
@import 'components/language-selector/language-selector';
|
@import 'components/language-selector/language-selector';
|
||||||
@import 'components/list-straight-left/list-straight-left';
|
@import 'components/list-straight-left/list-straight-left';
|
||||||
@import 'components/messages/messages';
|
@import 'components/messages/messages';
|
||||||
|
@import 'components/meta/meta';
|
||||||
@import 'components/responsive-video/responsive-video';
|
@import 'components/responsive-video/responsive-video';
|
||||||
@import 'components/stretch/stretch';
|
@import 'components/stretch/stretch';
|
||||||
@import 'components/visually-hidden/visually-hidden';
|
@import 'components/visually-hidden/visually-hidden';
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<p class="content-dates">
|
<div class="content-dates meta">
|
||||||
{{ i18n "last_mod" }} {{ .Lastmod.Format ($.Param "dateformat" | default "2 January, 2006") }}<br>
|
{{ i18n "last_mod" }} {{ .Lastmod.Format ($.Param "dateformat" | default "2 January, 2006") }}<br>
|
||||||
{{ i18n "created" }} {{ .Date.Format ($.Param "dateformat" | default "2 January, 2006") }}
|
{{ i18n "created" }} {{ .Date.Format ($.Param "dateformat" | default "2 January, 2006") }}
|
||||||
</p>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
<div class="submitted">
|
<div class="submitted meta">
|
||||||
{{ partial "author-date" . }}
|
{{ partial "author-date" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="tags">
|
<div class="tags meta">
|
||||||
{{ i18n "taxo_tags" }}:
|
{{ i18n "taxo_tags" }}:
|
||||||
<ul>
|
<ul class="flex-inline flex-inline--inline">
|
||||||
{{ range (.GetTerms "tags") -}}
|
{{ range (.GetTerms "tags") -}}
|
||||||
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue