Skip to content

Commit

Permalink
improve header layout in articles
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusIO committed Jun 25, 2024
1 parent 228d1d8 commit 9307445
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="ratio mb-4" style="--bs-aspect-ratio: 30%;">
<img src="{{page.header_image}}" class="rounded w-100" style="object-fit: cover;" />
</div>
<div class="row mb-5 gx-5">
<div class="row mb-5 gx-6">
<div class="col-md-12 col-lg-8 mb-2">
<h1 class="header-post-title">{{ page.title }}</h1>

Expand Down Expand Up @@ -55,7 +55,7 @@ <h1 class="header-post-title">{{ page.title }}</h1>
{{ content }}
</div>
</div>
<div class="col-lg-3 d-none d-lg-block">
<div class="col-lg-4 d-none d-lg-block">
<div class="position-sticky c-top-4 ms-2">
<p class="text-muted text-uppercase"><small>Inhaltsverzeichnis</small></p>
<nav id="toc" data-toggle="toc"></nav>
Expand Down
10 changes: 10 additions & 0 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ $spacers: map-merge((
5: ($spacer * 3),
6: ($spacer * 6)
), $spacers);
$gutters: (
0: 0,
1: $spacer * .25,
2: $spacer * .5,
3: $spacer,
4: $spacer * 1.5,
5: $spacer * 3,
6: $spacer * 4.5,
7: $spacer * 6
);

// Links
$link-decoration: none;
Expand Down

0 comments on commit 9307445

Please sign in to comment.