Simplify _zen.scss by using componets classes.
This commit is contained in:
parent
6f2f3cd067
commit
66debf54cf
4 changed files with 21 additions and 30 deletions
|
|
@ -35,8 +35,6 @@ figcaption {
|
|||
}
|
||||
|
||||
.language-selector,
|
||||
article > header,
|
||||
.content-dates,
|
||||
.footer {
|
||||
font-size: var(--fs-xs);
|
||||
}
|
||||
|
|
@ -47,8 +45,6 @@ th,
|
|||
nav,
|
||||
label,
|
||||
legend,
|
||||
article > header,
|
||||
.content-dates,
|
||||
.header,
|
||||
.footer {
|
||||
color: var(--color-headings);
|
||||
|
|
@ -74,11 +70,6 @@ aside {
|
|||
}
|
||||
|
||||
article {
|
||||
& > header {
|
||||
@include margin-bottom(.75);
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
|
||||
.submitted,
|
||||
.tags {
|
||||
@include respond-to(s) {
|
||||
|
|
@ -89,21 +80,8 @@ article {
|
|||
|
||||
.tags {
|
||||
ul {
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style: none;
|
||||
padding-right: .4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.content-dates {
|
||||
color: var(--color-text-meta);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
code {
|
||||
|
|
@ -136,11 +114,11 @@ article {
|
|||
margin-bottom: .2rem;
|
||||
}
|
||||
|
||||
.meta {
|
||||
color: var(--color-text-meta);
|
||||
font-size: var(--fs-s);
|
||||
.content-dates {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
// Figure and image.
|
||||
|
||||
figure,
|
||||
|
|
|
|||
|
|
@ -17,4 +17,8 @@
|
|||
li {
|
||||
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/list-straight-left/list-straight-left';
|
||||
@import 'components/messages/messages';
|
||||
@import 'components/meta/meta';
|
||||
@import 'components/responsive-video/responsive-video';
|
||||
@import 'components/stretch/stretch';
|
||||
@import 'components/visually-hidden/visually-hidden';
|
||||
|
|
|
|||
Loading…
Reference in a new issue