-
- {{ content }}
+
+
+ {{ content }}
+
{% include author.html %}
-
-
+
diff --git a/src/scss/_featurepost.scss b/src/scss/_featurepost.scss
index ec9d6d3..de4c1d6 100644
--- a/src/scss/_featurepost.scss
+++ b/src/scss/_featurepost.scss
@@ -11,7 +11,7 @@ $m: 'featurepost';
overflow-wrap: break-word;
&__title {
- @include font-title-medium();
+ @include font-title-large();
margin-bottom: pxToRem(10px);
a {
color: $color-blue;
@@ -40,6 +40,20 @@ $m: 'featurepost';
&__image {
@include overflow-image();
}
+
+ &--sidebar,
+ &--text-only {
+ .#{$m}__preview {
+ display: none;
+ }
+ }
+ &--sidebar {
+ .#{$m} {
+ &__title {
+ @include font-title-medium;
+ }
+ }
+ }
}
// TODO: Move into separate module
diff --git a/src/scss/_hero.scss b/src/scss/_hero.scss
index 5eb9098..9a5da62 100644
--- a/src/scss/_hero.scss
+++ b/src/scss/_hero.scss
@@ -61,6 +61,7 @@
&__title {
@include font-title-xxlarge();
+ margin-top: 5px; /*optical*/
margin-bottom: 15px; /*optical*/
margin-left: -3px; /*optical*/
}
diff --git a/src/scss/_postcontent.scss b/src/scss/_postcontent.scss
new file mode 100644
index 0000000..e90372e
--- /dev/null
+++ b/src/scss/_postcontent.scss
@@ -0,0 +1,34 @@
+$m: 'postcontent';
+
+$postcontent-max-width: 600px;
+
+.#{$m} {
+ img {
+ max-width: $postcontent-max-width;
+ height: auto;
+ margin-bottom: pxToRem(20px);
+ }
+
+ p {
+ max-width: $postcontent-max-width;
+ margin-bottom: pxToRem(20px);
+ }
+
+ h2 {
+ @include font-title-medium();
+ max-width: $postcontent-max-width;
+
+ &:not(:first-child) {
+ margin: pxToRem(60px) 0 pxToRem(20px);
+ }
+ }
+ h3 {
+ @include font-title-small();
+ max-width: $postcontent-max-width;
+
+ &:not(:first-child) {
+ margin: pxToRem(60px) 0 pxToRem(20px);
+ }
+ }
+
+};
diff --git a/src/scss/_section.scss b/src/scss/_section.scss
index 2ae7568..42d1439 100644
--- a/src/scss/_section.scss
+++ b/src/scss/_section.scss
@@ -62,4 +62,26 @@ $m: 'section';
}
}
}
+
+ &--post {
+ .#{$m} {
+
+ &__sidebar {
+ display: inline-block;
+ width: 30%;
+ vertical-align: top;
+ padding-left: pxToRem(40px);
+
+ .featurepost {
+ max-width: 100%;
+ }
+ }
+
+ &__main {
+ display: inline-block;
+ width: 69%;
+ vertical-align: top;
+ }
+ }
+ }
}
diff --git a/src/scss/main.scss b/src/scss/main.scss
index 4115f90..444425d 100644
--- a/src/scss/main.scss
+++ b/src/scss/main.scss
@@ -23,6 +23,7 @@
@import "pagination";
@import "section";
@import "featurepost";
+@import "postcontent";
//stuff most pages need