summaryrefslogtreecommitdiffstats
path: root/src/components/PostHeader/PostHeader.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-07 18:51:02 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-07 19:37:26 +0100
commit9a85c175bf59b7a360f09da23a3ac83293838570 (patch)
treec4e5385a3b2fd618cabd5356573aff14602c7d20 /src/components/PostHeader/PostHeader.module.scss
parent06d0b7bb010f5ac1b3a0c8117b274a700f7266fe (diff)
chore: add article header styles
Diffstat (limited to 'src/components/PostHeader/PostHeader.module.scss')
-rw-r--r--src/components/PostHeader/PostHeader.module.scss62
1 files changed, 58 insertions, 4 deletions
diff --git a/src/components/PostHeader/PostHeader.module.scss b/src/components/PostHeader/PostHeader.module.scss
index f013651..9997ec3 100644
--- a/src/components/PostHeader/PostHeader.module.scss
+++ b/src/components/PostHeader/PostHeader.module.scss
@@ -1,7 +1,61 @@
-.meta {
- font-size: var(--font-size-sm);
+@use "@styles/abstracts/functions" as fun;
+@use "@styles/abstracts/mixins" as mix;
+
+.wrapper {
+ display: grid;
+ grid-template-columns:
+ minmax(0, 1fr) min(calc(100vw - calc(var(--spacing-md) * 2)), 80ch)
+ minmax(0, 1fr);
+ align-items: center;
+ max-width: 100%;
+ margin-bottom: var(--spacing-md);
+ background: var(--color-bg-secondary);
+ border-top: fun.convert-px(3) solid var(--color-border-lighter);
+ border-bottom: fun.convert-px(3) solid var(--color-border-lighter);
+}
+
+.body {
+ grid-column: 2;
+ display: flex;
+ flex-flow: row wrap;
+ margin: fun.convert-px(-3) calc(var(--spacing-md) * -1);
+ background: var(--color-bg);
+ border-left: fun.convert-px(3) solid var(--color-border-lighter);
+ border-right: fun.convert-px(3) solid var(--color-border-lighter);
}
-.label {
- font-weight: inherit;
+.title {
+ flex: 0 0 100%;
+ display: flex;
+ flex-flow: row wrap;
+ align-items: center;
+ margin: 0;
+ padding: 0 var(--spacing-md) 0;
+ position: relative;
+ text-shadow: fun.convert-px(1) fun.convert-px(1) 0 var(--color-shadow-lighter);
+
+ &::before,
+ &::after {
+ content: "";
+ width: 100%;
+ height: fun.convert-px(3);
+ background: var(--color-primary-dark);
+ }
+}
+
+.cover {
+ display: block;
+ width: fun.convert-px(50);
+ height: fun.convert-px(50);
+ position: relative;
+ margin-right: var(--spacing-sm);
+}
+
+.intro {
+ margin: var(--spacing-sm) 0 0;
+ padding: 0 var(--spacing-md);
+
+ > *:last-child {
+ margin-bottom: 0;
+ }
}