[www] Article & Cloud Page style updated
This commit is contained in:
1 parent
cbd0fa0688
commit
dfef6d1e0f
7 files changed
+40
-90
No files matched your search
@@ -3,8 +3,10 @@ const Share = require('./Share')
|
||||
const getHtml = require('../lib/component').getHtml
|
||||
|
||||
const Page = ({children, shareable}) => (
|
||||
<div className="cloud-page__body">
|
||||
{getHtml(children)}
|
||||
<div className="Article Article--cloud">
|
||||
<div className="Article-Body">
|
||||
{getHtml(children)}
|
||||
</div>
|
||||
|
||||
{!shareable ? null : (
|
||||
<Share/>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
background-color: white;
|
||||
|
||||
font-family: $text-font;
|
||||
font-size: $default-font-size;
|
||||
font-size: var(--font-size-default);
|
||||
}
|
||||
|
||||
.body-wrapper__content {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
--article-line-height: 1.75em;
|
||||
--article-quote-padding: 1em;
|
||||
--article-quote-font-size: 1.25em;
|
||||
--article-head-margin-bottom: var(--small-margin);
|
||||
|
||||
hyphens: auto;
|
||||
|
||||
@@ -13,12 +14,7 @@
|
||||
margin-bottom: 1.25em;
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin-bottom: $small-margin;
|
||||
}
|
||||
|
||||
h2 {
|
||||
text-align: center;
|
||||
margin-bottom: var(--article-head-margin-bottom);
|
||||
}
|
||||
|
||||
.date {
|
||||
@@ -38,6 +34,10 @@
|
||||
ul, ol{
|
||||
margin-left: $half-margin;
|
||||
margin-bottom: $single-margin;
|
||||
|
||||
li {
|
||||
margin-bottom: var(--half-margin);
|
||||
}
|
||||
}
|
||||
|
||||
ul{
|
||||
@@ -83,6 +83,13 @@
|
||||
background: var(--dark-color);
|
||||
}
|
||||
}
|
||||
|
||||
&--cloud {
|
||||
h1 {
|
||||
--article-head-margin-bottom: var(--single-margin);
|
||||
margin-bottom: var(--article-head-margin-bottom);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $mobile-width) {
|
||||
@@ -97,6 +104,10 @@
|
||||
img {
|
||||
max-height: 20em;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
margin-left: var(--single-margin);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
@import "../variables";
|
||||
|
||||
.cloud-page {
|
||||
margin-bottom: $post-margin;
|
||||
|
||||
&__body{
|
||||
h1{
|
||||
text-align: center;
|
||||
margin-bottom: $single-margin;
|
||||
}
|
||||
|
||||
h2 {
|
||||
text-align: left;
|
||||
margin-top: $double-margin;
|
||||
font-family: $text-font;
|
||||
}
|
||||
|
||||
ul, ol{
|
||||
margin-left: $half-margin;
|
||||
margin-bottom: $single-margin;
|
||||
padding-left: $single-margin;
|
||||
}
|
||||
|
||||
ul{
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
p{
|
||||
margin-bottom: 1.25em;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
background-color: hsl(215, 10%, 96%);
|
||||
padding: 1em 1em .5em;
|
||||
margin: $single-margin 0;
|
||||
font-family: $title-font;
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
font-size: 1.25em;
|
||||
|
||||
cite {
|
||||
margin-top: $single-margin;
|
||||
display: block;
|
||||
color: #aaa;
|
||||
font-size: initial;
|
||||
font-family: $text-font;
|
||||
text-align: right;
|
||||
margin-right: $single-margin;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $mobile-width) {
|
||||
.cloud-page {
|
||||
&__body {
|
||||
img {
|
||||
max-height: 20em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
-6
@@ -1,5 +1,3 @@
|
||||
@import "variables";
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -16,20 +14,25 @@ body {
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-size: var(--font-size-h1);
|
||||
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
h2{
|
||||
text-align: center;
|
||||
margin-bottom: $single-margin;
|
||||
|
||||
margin: var(--single-margin) 0;
|
||||
font-size: var(--font-size-h2);
|
||||
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
h3{
|
||||
margin-bottom: $single-margin / 2;
|
||||
margin: var(--single-margin) 0;
|
||||
|
||||
font-size: var(--font-size-h3);
|
||||
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
.actor {
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
@import "components/timeline-record-instagram";
|
||||
@import "components/schedule-table";
|
||||
@import "components/footer-links";
|
||||
@import "components/cloud-page";
|
||||
@import "components/Article";
|
||||
@import "components/Paginator";
|
||||
@import "components/album";
|
||||
|
||||
@@ -46,7 +46,6 @@ $white-shadow: 0 .1em 0.3em rgba(0, 0, 0, 0.2);
|
||||
$title-font: "PT Serif", Georgia, serif;
|
||||
$text-font: "PT Sans", Arial, sans-serif;
|
||||
|
||||
$default-font-size: 14pt;
|
||||
$smaller-font-size: 0.9rem;
|
||||
$normal-font-size: 1.0rem;
|
||||
$bigger-font-size: 1.2rem;
|
||||
@@ -64,7 +63,6 @@ $short-duration: 0.3s;
|
||||
|
||||
@media (max-width: $mobile-width) {
|
||||
//FONTS
|
||||
$default-font-size: 14pt;
|
||||
$smaller-font-size: 0.9rem;
|
||||
$normal-font-size: 1.0rem;
|
||||
$bigger-font-size: 1.1rem;
|
||||
@@ -76,11 +74,14 @@ $short-duration: 0.3s;
|
||||
--text-color: #303030;
|
||||
--text-color-second: #ccc;
|
||||
|
||||
--font-size-h1: 2.0rem;
|
||||
--font-size-h2: 1.3rem;
|
||||
--font-size-h3: 1.1rem;
|
||||
//FONTS
|
||||
--font-size-default: 14pt;
|
||||
--font-size-second: 0.9rem;
|
||||
|
||||
--font-size-h1: 3.0rem;
|
||||
--font-size-h2: 2.0rem;
|
||||
--font-size-h3: 1.5rem;
|
||||
|
||||
//COLOR
|
||||
--dark-color: $dark-color;
|
||||
--darker-color: $darker-color;
|
||||
@@ -100,8 +101,8 @@ $short-duration: 0.3s;
|
||||
|
||||
@media (max-width: $mobile-width) {
|
||||
:root {
|
||||
--font-size-h1: 1.5rem;
|
||||
--font-size-h2: 1.25rem;
|
||||
--font-size-h3: 1rem;
|
||||
--font-size-h1: 1.75rem;
|
||||
--font-size-h2: 1.50rem;
|
||||
--font-size-h3: 1.25rem;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user