[www] Article style refactoring: article -> Article
This commit is contained in:
1 parent
4c85a3115d
commit
e57e638dec
3 files changed
+9
-9
No files matched your search
@@ -18,15 +18,15 @@ const Share = () => (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const Article = ({children, data, url, title, date, shareable}) => (
|
const Article = ({children, data, url, title, date, shareable}) => (
|
||||||
<article className="article">
|
<article className="Article">
|
||||||
<header className="article__head">
|
<header className="Article-Head">
|
||||||
<Head url={url}>{title}</Head>
|
<Head url={url}>{title}</Head>
|
||||||
{!date ? null : (
|
{!date ? null : (
|
||||||
<p className="date">{dateFormat(date)}</p>
|
<p className="date">{dateFormat(date)}</p>
|
||||||
)}
|
)}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div className="article__body">
|
<div className="Article-Body">
|
||||||
{children || getHtml(data)}
|
{children || getHtml(data)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@import "../variables";
|
@import "../variables";
|
||||||
|
|
||||||
.article {
|
.Article {
|
||||||
--article-line-height: 1.75em;
|
--article-line-height: 1.75em;
|
||||||
--article-quote-padding: 1em;
|
--article-quote-padding: 1em;
|
||||||
--article-quote-font-size: 1.25em;
|
--article-quote-font-size: 1.25em;
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
margin-bottom: $post-margin;
|
margin-bottom: $post-margin;
|
||||||
|
|
||||||
&__head {
|
&-Head {
|
||||||
margin-bottom: 1.25em;
|
margin-bottom: 1.25em;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__body{
|
&-Body{
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 35em;
|
max-height: 35em;
|
||||||
@@ -82,12 +82,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: $mobile-width) {
|
@media (max-width: $mobile-width) {
|
||||||
.article {
|
.Article {
|
||||||
--article-line-height: 1.5em;
|
--article-line-height: 1.5em;
|
||||||
--article-quote-padding: .5em;
|
--article-quote-padding: .5em;
|
||||||
--article-quote-font-size: 1em;
|
--article-quote-font-size: 1em;
|
||||||
|
|
||||||
&__body {
|
&-Body {
|
||||||
img {
|
img {
|
||||||
max-height: 20em;
|
max-height: 20em;
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
@import "components/schedule-table";
|
@import "components/schedule-table";
|
||||||
@import "components/footer-links";
|
@import "components/footer-links";
|
||||||
@import "components/cloud-page";
|
@import "components/cloud-page";
|
||||||
@import "components/article";
|
@import "components/Article";
|
||||||
@import "components/Paginator";
|
@import "components/Paginator";
|
||||||
@import "components/album";
|
@import "components/album";
|
||||||
@import "components/parallax";
|
@import "components/parallax";
|
||||||
|
|||||||
Reference in new issue
Block a user