Made maximum content width for better window sizing

main
Kenneth Jao 2 years ago
parent e7d2ee9587
commit c172768f66
  1. 6
      _layouts/banner.html
  2. 13
      _sass/main.scss

@ -65,7 +65,9 @@
<svg height="100%" width="100%" viewBox="0 0 5 1" class="downAccent" preserveAspectRatio="none"> <svg height="100%" width="100%" viewBox="0 0 5 1" class="downAccent" preserveAspectRatio="none">
<path d="M 0 0 V 0.2 C 1 0.5 4 0.5 5 0.2 V 0"> <path d="M 0 0 V 0.2 C 1 0.5 4 0.5 5 0.2 V 0">
</svg> </svg>
{{ item }} <div>
{{ item }}
</div>
</div> </div>
{%- elsif forloop.last -%} {%- elsif forloop.last -%}
{%- assign strippedItem = item | strip -%} {%- assign strippedItem = item | strip -%}
@ -76,7 +78,9 @@
<path d="M 0 1 V 0.8 C 1 0.5 4 0.5 5 0.8 V 1"> <path d="M 0 1 V 0.8 C 1 0.5 4 0.5 5 0.8 V 1">
</svg> </svg>
{%- endif -%} {%- endif -%}
<div>
{{ item }} {{ item }}
</div>
</div> </div>
{%- endif -%} {%- endif -%}
{%- else -%} {%- else -%}

@ -468,9 +468,10 @@ nav {
z-index: 0; z-index: 0;
} }
div { > div {
position: relative; position: relative;
padding: 2em 4em 4em 4em; max-width: 90em;
margin: 4em auto 4em auto;
z-index: 1; z-index: 1;
} }
@ -487,7 +488,13 @@ nav {
.nonItems { .nonItems {
position: relative; position: relative;
padding: 2em 4em 2em 4em; width: 100%;
padding: 2em 0 2em 0;
> div {
margin: auto;
max-width: 90em;
}
img { img {
display: block; display: block;

Loading…
Cancel
Save