Mercurial > web
diff _layouts/default.html @ 124:ce02bf9659ef default tip
layouts/default: fix CSS styling when bgsize isn't defined
| author | Paper <paper@tflc.us> |
|---|---|
| date | Sun, 12 Jul 2026 19:15:26 -0400 |
| parents | 92f1ea793bf2 |
| children |
line wrap: on
line diff
--- a/_layouts/default.html Sun Jul 12 19:05:31 2026 -0400 +++ b/_layouts/default.html Sun Jul 12 19:15:26 2026 -0400 @@ -12,7 +12,7 @@ background-image: {% if page.bgimage %} {% unless page.bgimage == "none" %} url("{{ page.bgimage }}") {% endunless %} {% else %} url("/media/KnitLight.png") {% endif %}; background-position: center top; background-color: {% if page.bgcolor %} {% unless page.bgcolor == "none" %} {{ page.bgcolor }} {% endunless %} {% else %} #737373 {% endif %}; - background-size: {% if page.bgsize %} {{ page.bgsize }} {% endif %}; + background-size: {% if page.bgsize %} {{ page.bgsize }} {% else %} auto {% endif %}; min-height: 100vh; } </style>
