git ssb

0+

Grey the earthling / gkn.me.uk



Commit 263dcac6d85effcc6f97824bc6bc03a86122b31f

Add a visually-hidden <hr> at the end of each <section>

This improves the layout's clarity in text-mode browsers
that don't render sections clearly,
e.g. links.
Greg K Nicholson committed on 2/16/2018, 11:38:42 AM
Parent: df0e7a9773f81ffdb5ca791b59efe420377ce1bf

Files changed

themes/ran/static/style/ran.csschanged
themes/ran/templates/archives.htmlchanged
themes/ran/templates/article.htmlchanged
themes/ran/templates/base.htmlchanged
themes/ran/templates/period_archives.htmlchanged
themes/ran/static/style/ran.cssView
@@ -62,9 +62,15 @@
6262 body > * {
6363 grid-column: 3/4;
6464 }
6565
66 +.visuallyhidden {
67 + position: absolute !important;
68 + top: -9999em !important;
69 + left: -9999em !important;
70 +}
6671
72 +
6773 /* Top and bottom navigation, article footer */
6874
6975 .topnav {
7076 margin-top: 10vh;
@@ -144,8 +150,9 @@
144150 width: auto;
145151 opacity: 1;
146152 }
147153
154 +
148155 /* Nearby pages */
149156
150157 nav.nearby {
151158 display: block;
themes/ran/templates/archives.htmlView
@@ -13,8 +13,9 @@
1313 </a>
1414 </li>
1515 {%- endfor -%}
1616 </ul>
17 + <hr class="visuallyhidden">
1718 </section>
1819 <section class="smalllinks">
1920 <h2>Labels:</h2>
2021 <ul>
@@ -27,7 +28,8 @@
2728 </li>
2829 {%- endif -%}
2930 {%- endfor -%}
3031 </ul>
32 + <hr class="visuallyhidden">
3133 </section>
3234 {%- endblock -%}
3335
themes/ran/templates/article.htmlView
@@ -118,8 +118,9 @@
118118 </li>
119119 {%- endfor -%}
120120 {%- endfor -%}
121121 </ul>
122 + <hr class="visuallyhidden">
122123 </section>
123124 {%- endif -%}
124125 </footer>
125126 {%- endif -%}
themes/ran/templates/base.htmlView
@@ -43,8 +43,9 @@
4343 </a>
4444 {%- endblock -%}
4545 </nav>
4646 {%- endblock -%}
47 + <hr class="visuallyhidden">
4748 </section>
4849 {%- block main -%}
4950 <header>
5051 {%- block pagetitle -%}
@@ -63,8 +64,9 @@
6364 {{- AUTHOR -}}
6465 </a>
6566 </address>
6667 {%- endblock -%}
68 + <hr class="visuallyhidden">
6769 </section>
6870 </details>
6971 {%- block maincontentintro -%}
7072 {%- endblock -%}
@@ -85,8 +87,9 @@
8587 <nav>
8688 {{- self.logo() -}}
8789 </nav>
8890 {%- endblock -%}
91 + <hr class="visuallyhidden">
8992 </section>
9093 </body>
9194 </html>
9295
themes/ran/templates/period_archives.htmlView
@@ -30,8 +30,9 @@
3030 </a>
3131 </li>
3232 {%- endfor -%}
3333 </ul>
34 + <hr class="visuallyhidden">
3435 </section>
3536 {%- elif period | length == 2 and
3637 dates | unique(attribute="date.day") | list | length > 1 -%}
3738 <section class="smalllinks">
@@ -51,8 +52,9 @@
5152 </a>
5253 </li>
5354 {%- endfor -%}
5455 </ul>
56 + <hr class="visuallyhidden">
5557 </section>
5658 {%- endif -%}
5759 {%- endblock -%}
5860 {%- block maincontent -%}

Built with git-ssb-web