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 -%}