Commit deab7af0d2b4d48b3f0c15dd8b0f7391ac4be08c
Change the page details' container from a <main> to a <section>
<main> is intended for the *page's* main content, which this isn't.Greg K Nicholson committed on 2/4/2018, 5:24:10 PM
Parent: f766257479c8bcbf07664668c8b1dc94b4c1004d
Files changed
themes/ran/static/style/ran.css | changed |
themes/ran/templates/base.html | changed |
themes/ran/static/style/ran.css | ||
---|---|---|
@@ -282,22 +282,22 @@ | ||
282 | 282 … | padding-right: 1rem; |
283 | 283 … | float: left; |
284 | 284 … | } |
285 | 285 … | |
286 | -details main { | |
286 … | +details > section { | |
287 | 287 … | border-bottom: 1px solid; |
288 | 288 … | margin-top: 1rem; |
289 | 289 … | padding-bottom: calc(1rem - 1px); |
290 | 290 … | } |
291 | 291 … | |
292 | - details main > * { | |
292 … | + details > section > * { | |
293 | 293 … | display: inline-block; |
294 | 294 … | margin-right: 1rem; |
295 | 295 … | opacity: 0; |
296 | 296 … | transition: opacity var(--slow); |
297 | 297 … | } |
298 | 298 … | |
299 | - details[open] main > * { | |
299 … | + details[open] > section > * { | |
300 | 300 … | opacity: 1; |
301 | 301 … | } |
302 | 302 … | |
303 | 303 … | article > header .image { |
themes/ran/templates/base.html | ||
---|---|---|
@@ -54,9 +54,9 @@ | ||
54 | 54 … | <h1 class="pagetitle"> |
55 | 55 … | {{- self.title() -}} |
56 | 56 … | </h1> |
57 | 57 … | </summary> |
58 | - <main> | |
58 … | + <section> | |
59 | 59 … | {%- block pagedetails -%} |
60 | 60 … | <address> |
61 | 61 … | <span>by </span> |
62 | 62 … | <a href="/{{- AUTHOR_URL -}}" |
@@ -64,9 +64,9 @@ | ||
64 | 64 … | {{- AUTHOR -}} |
65 | 65 … | </a> |
66 | 66 … | </address> |
67 | 67 … | {%- endblock -%} |
68 | - </main> | |
68 … | + </section> | |
69 | 69 … | </details> |
70 | 70 … | {%- block maincontentintro -%} |
71 | 71 … | {%- endblock -%} |
72 | 72 … | {%- endblock -%} |
Built with git-ssb-web