-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from nr2f1/blog-post-header
feat: blog post
- Loading branch information
Showing
7 changed files
with
135 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,90 @@ | ||
@use '@styles/text-styles'; | ||
@use '@styles/breakpoints'; | ||
@use '@styles/layout'; | ||
|
||
.post { | ||
h1 { | ||
@include text-styles.header-1; | ||
/* Text styles */ | ||
&, | ||
p { | ||
@include text-styles.text-base; | ||
} | ||
|
||
p:not(form p) { | ||
margin: 0; | ||
margin-block-end: var(--spacing-4); | ||
} | ||
|
||
a:not([target='_blank']) { | ||
@include text-styles.text-link; | ||
} | ||
|
||
li:not(:last-of-type) { | ||
& p { | ||
margin: 0; | ||
} | ||
margin-block-end: var(--spacing-2); | ||
} | ||
|
||
h2 { | ||
@include text-styles.header-2; | ||
margin: 0; | ||
margin-block-end: var(--spacing-4); | ||
|
||
@include breakpoints.small-screen { | ||
@include text-styles.header-2__mobile; | ||
} | ||
|
||
@include breakpoints.medium-screen { | ||
@include text-styles.header-2__mobile; | ||
} | ||
} | ||
|
||
p { | ||
@include text-styles.text-base; | ||
h3 { | ||
@include text-styles.header-3; | ||
margin: 0; | ||
margin-block-end: var(--spacing-3); | ||
} | ||
|
||
a { | ||
@include text-styles.text-link; | ||
} | ||
|
||
&__layout { | ||
padding: var(--spacing-6) var(--spacing-16) var(--spacing-24); | ||
|
||
@include breakpoints.medium-screen { | ||
padding: var(--spacing-6) var(--spacing-12) var(--spacing-12); | ||
} | ||
|
||
@include breakpoints.small-screen { | ||
padding: var(--spacing-6) var(--spacing-6) var(--spacing-8) | ||
var(--spacing-6); | ||
} | ||
} | ||
|
||
&__row { | ||
display: flex; | ||
justify-content: space-between; | ||
@include layout.content-max-width; | ||
column-gap: var(--spacing-12); | ||
} | ||
|
||
&__content { | ||
width: 100%; | ||
@include layout.max-width-xl; | ||
} | ||
|
||
&__aside { | ||
flex-basis: 100%; | ||
max-width: var(--spacing-56); | ||
@include breakpoints.large-screen { | ||
order: -1; | ||
} | ||
@include breakpoints.medium-screen { | ||
display: none; | ||
} | ||
@include breakpoints.small-screen { | ||
display: none; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters