Commit 09853b2cb333cee284b5dd42cb21a933dbdc1b66
Add and remove visually-hidden <hr>
Improve layout in text-mode browsers (i.e. links). In the graphical layout, adjacent sets of links are styled differently. In text-mode, use an <hr> instead.Greg K Nicholson committed on 2/16/2018, 5:58:34 PM
Parent: 173a8cf5c44e8a852fa2ab25bb86b1d88de44ae6
Files changed
themes/ran/templates/archives.html | ||
---|---|---|
@@ -28,8 +28,7 @@ | ||
28 | 28 … | </li> |
29 | 29 … | {%- endif -%} |
30 | 30 … | {%- endfor -%} |
31 | 31 … | </ul> |
32 | - <hr class="visuallyhidden"> | |
33 | 32 … | </section> |
34 | 33 … | {%- endblock -%} |
35 | 34 … |
themes/ran/templates/article.html | ||
---|---|---|
@@ -149,8 +149,9 @@ | ||
149 | 149 … | </a> |
150 | 150 … | </li> |
151 | 151 … | {%- endfor -%} |
152 | 152 … | </ul> |
153 … | + <hr class="visuallyhidden"> | |
153 | 154 … | {%- endif -%} |
154 | 155 … | <nav class="nearby"> |
155 | 156 … | <ul> |
156 | 157 … | {%- if article.prev_article -%} |
themes/ran/templates/base.html | ||
---|---|---|
@@ -82,8 +82,9 @@ | ||
82 | 82 … | </main> |
83 | 83 … | {%- endblock -%} |
84 | 84 … | <section class="bottomnav"> |
85 | 85 … | {%- block bottomnav -%} |
86 … | + <hr class="visuallyhidden"> | |
86 | 87 … | <nav> |
87 | 88 … | {{- self.logo() -}} |
88 | 89 … | </nav> |
89 | 90 … | {%- endblock -%} |
themes/ran/templates/period_archives.html | |||
---|---|---|---|
@@ -30,9 +30,8 @@ | |||
30 | 30 … | </a> | |
31 | 31 … | </li> | |
32 | 32 … | {%- endfor -%} | |
33 | 33 … | </ul> | |
34 | - <hr class="visuallyhidden"> | ||
35 | 34 … | </section> | |
36 | 35 … | {%- elif period | length == 2 and | |
37 | 36 … | dates | unique(attribute="date.day") | list | length > 1 -%} | |
38 | 37 … | <section class="smalllinks"> | |
@@ -52,9 +51,8 @@ | |||
52 | 51 … | </a> | |
53 | 52 … | </li> | |
54 | 53 … | {%- endfor -%} | |
55 | 54 … | </ul> | |
56 | - <hr class="visuallyhidden"> | ||
57 | 55 … | </section> | |
58 | 56 … | {%- endif -%} | |
59 | 57 … | {%- endblock -%} | |
60 | 58 … | {%- block maincontent -%} | |
@@ -177,7 +175,8 @@ | |||
177 | 175 … | {%- endif -%} | |
178 | 176 … | {%- endfor -%} | |
179 | 177 … | </ul> | |
180 | 178 … | </nav> | |
179 … | + <hr class="visuallyhidden"> | ||
181 | 180 … | {{- super() -}} | |
182 | 181 … | {%- endblock -%} | |
183 | 182 … |
Built with git-ssb-web