diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-21 18:12:29 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-21 18:12:29 +0200 |
| commit | 94a8e31f25ed3d92f9eb808e3264bd4ac8c039c7 (patch) | |
| tree | 15faac7c00be70b41127ad24318717c4719dfaba /src/components/organisms/layout/posts-list.module.scss | |
| parent | 3a68d155afd4559e141bcb6c1ca3d833d3bd4667 (diff) | |
chore: add a PostsList component
Diffstat (limited to 'src/components/organisms/layout/posts-list.module.scss')
| -rw-r--r-- | src/components/organisms/layout/posts-list.module.scss | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/components/organisms/layout/posts-list.module.scss b/src/components/organisms/layout/posts-list.module.scss new file mode 100644 index 0000000..4d80442 --- /dev/null +++ b/src/components/organisms/layout/posts-list.module.scss @@ -0,0 +1,32 @@ +@use "@styles/abstracts/mixins" as mix; +@use "@styles/abstracts/placeholders"; + +.section { + @include mix.media("screen") { + @include mix.dimensions("md") { + display: grid; + grid-template-columns: max-content minmax(0, 1fr); + align-items: first baseline; + } + } +} + +.list { + @extend %reset-ordered-list; + + .item { + margin-bottom: var(--spacing-md); + } +} + +.year { + @include mix.media("screen") { + @include mix.dimensions("md") { + grid-column: 1; + justify-self: end; + margin-right: var(--spacing-lg); + position: sticky; + top: var(--spacing-xs); + } + } +} |
