comparison _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
comparison
equal deleted inserted replaced
123:495517d4487f 124:ce02bf9659ef
10 body { 10 body {
11 background-repeat: {% if page.bgrepeat %} {{ page.bgrepeat }} {% else %} repeat {% endif %}; 11 background-repeat: {% if page.bgrepeat %} {{ page.bgrepeat }} {% else %} repeat {% endif %};
12 background-image: {% if page.bgimage %} {% unless page.bgimage == "none" %} url("{{ page.bgimage }}") {% endunless %} {% else %} url("/media/KnitLight.png") {% endif %}; 12 background-image: {% if page.bgimage %} {% unless page.bgimage == "none" %} url("{{ page.bgimage }}") {% endunless %} {% else %} url("/media/KnitLight.png") {% endif %};
13 background-position: center top; 13 background-position: center top;
14 background-color: {% if page.bgcolor %} {% unless page.bgcolor == "none" %} {{ page.bgcolor }} {% endunless %} {% else %} #737373 {% endif %}; 14 background-color: {% if page.bgcolor %} {% unless page.bgcolor == "none" %} {{ page.bgcolor }} {% endunless %} {% else %} #737373 {% endif %};
15 background-size: {% if page.bgsize %} {{ page.bgsize }} {% endif %}; 15 background-size: {% if page.bgsize %} {{ page.bgsize }} {% else %} auto {% endif %};
16 min-height: 100vh; 16 min-height: 100vh;
17 } 17 }
18 </style> 18 </style>
19 </head> 19 </head>
20 <body> 20 <body>