Skip to content

Commit

Permalink
Use container, fix tags, & fix flexbox overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ButterscotchV committed Dec 5, 2024
1 parent 2ddbcd2 commit c800193
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/_includes/layouts/page.njk
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,20 @@

<div class="section p-0-touch p-4-mid break-word">
<div class="columns is-gapless is-desktop">
<div id="sidebar-menu" class="column is-2-fullhd is-3-widescreen is-3-desktop is-hidden-touch">
<aside id="sidebar-menu" class="column is-2-fullhd is-3-widescreen is-3-desktop is-hidden-touch">
{% include "src/_includes/layouts/sidebar.njk" %}
</div>
</aside>
<div class="column is-8-fullhd is-9-widescreen is-9-desktop mt-4-touch">
<div class="section py-0{% if center_section !== false %} is-flex is-justify-content-center{% endif %}">
<div class="content">
{{ content | safe }}
<div class="section py-0">
<div class="container{% if center_section !== false %} is-flex is-justify-content-center{% endif %}">
<main class="content min-width-0">
{{ content | safe }}
</main>
</div>
</div>
</div>
</div>
</main>
</div>

<script>{% getBundle "js" %}</script>
<script type="module">{% getBundle "js", "module" %}</script>
Expand Down
5 changes: 5 additions & 0 deletions src/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ $beige-lighter: #eff0eb;
@forward "bulma/sass/components/menu";
@forward "bulma/sass/layout/section";
@forward "bulma/sass/grid/columns";
@forward "bulma/sass/layout/container";
@forward "bulma/sass/elements/content";

$mid-padding: map.get(spacing.$spacing-values, "4");
Expand Down Expand Up @@ -55,3 +56,7 @@ $mid-padding: map.get(spacing.$spacing-values, "4");
.break-word {
word-break: break-word;
}

.min-width-0 {
min-width: 0;
}

0 comments on commit c800193

Please sign in to comment.