[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
@@ -0,0 +1,100 @@
|
||||
@import "../variables";
|
||||
|
||||
.Article {
|
||||
--article-line-height: 1.75em;
|
||||
--article-quote-padding: 1em;
|
||||
--article-quote-font-size: 1.25em;
|
||||
|
||||
hyphens: auto;
|
||||
|
||||
margin-bottom: $post-margin;
|
||||
|
||||
&-Head {
|
||||
margin-bottom: 1.25em;
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin-bottom: $small-margin;
|
||||
}
|
||||
|
||||
h2 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.date {
|
||||
text-align: center;
|
||||
color: #aaa;
|
||||
}
|
||||
}
|
||||
|
||||
&-Body{
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: 35em;
|
||||
}
|
||||
|
||||
ul, ol{
|
||||
margin-left: $half-margin;
|
||||
margin-bottom: $single-margin;
|
||||
padding-left: $single-margin;
|
||||
}
|
||||
|
||||
ul{
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
p {
|
||||
--margin: 10px;
|
||||
|
||||
margin-left: var(--margin);
|
||||
margin-right: var(--margin);
|
||||
margin-bottom: var(--article-line-height);
|
||||
line-height: var(--article-line-height);
|
||||
}
|
||||
|
||||
blockquote {
|
||||
background-color: hsl(215, 10%, 96%);
|
||||
padding: var(--article-quote-padding);
|
||||
margin: $single-margin 0;
|
||||
font-family: $title-font;
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
font-size: var(--article-quote-font-size);
|
||||
|
||||
cite {
|
||||
margin-top: $single-margin;
|
||||
display: block;
|
||||
color: #aaa;
|
||||
font-size: initial;
|
||||
font-family: $text-font;
|
||||
text-align: right;
|
||||
margin-right: $single-margin;
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-bottom: var(--double-margin);
|
||||
border: none;
|
||||
height: 1px;
|
||||
background: var(--dark-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $mobile-width) {
|
||||
.Article {
|
||||
--article-line-height: 1.5em;
|
||||
--article-quote-padding: .5em;
|
||||
--article-quote-font-size: 1em;
|
||||
|
||||
&-Body {
|
||||
img {
|
||||
max-height: 20em;
|
||||
}
|
||||
|
||||
p {
|
||||
--margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user