git ssb

0+

Grey the earthling / gkn.me.uk



Commit f6e504fb1fce5c2dfaf6b16c14691ca236d1e526

Use <strong> not <h1> for big links' titles

This has the same clear meaning;
but produces a better outline.
Greg K Nicholson committed on 2/4/2018, 6:01:04 PM
Parent: f20c57f6161c71790d2a002ae9fcaa5cbf30d94b

Files changed

themes/ran/static/style/ran.csschanged
themes/ran/templates/article.htmlchanged
themes/ran/templates/base.htmlchanged
themes/ran/templates/index.htmlchanged
themes/ran/static/style/ran.cssView
@@ -352,21 +352,21 @@
352352 display: inline-block;
353353 margin-right: 1rem;
354354 }
355355
356- .biglinks li h1 {
356 + .biglinks li strong {
357357 display: inline-block;
358358 margin-top: 0;
359359 margin-bottom: 0;
360360 font-weight: 700;
361361 }
362362
363-.biglinks li a h1 ~ * {
363 +.biglinks li a strong ~ * {
364364 color: var(--dim-color);
365365 }
366366
367- .biglinks li a:focus h1 ~ *,
368- .biglinks li a:hover h1 ~ * {
367 + .biglinks li a:focus strong ~ *,
368 + .biglinks li a:hover strong ~ * {
369369 color: var(--link-color);
370370 }
371371
372372
themes/ran/templates/article.htmlView
@@ -79,9 +79,9 @@
7979 <ul class="biglinks">
8080 {%- for link in article.links -%}
8181 <li>
8282 <a href="{{- link.url -}}">
83- <h1>{{- link.title | trim -}}</h1>
83 + <strong>{{- link.title | trim -}}</strong>
8484 {%- if link.description -%}
8585 <i>{{- link.description | trim -}}</i>
8686 {%- endif -%}
8787 </a>
@@ -127,9 +127,9 @@
127127 <ul class="biglinks">
128128 {%- for article in article.related_posts -%}
129129 <li>
130130 <a href="/{{- article.url -}}">
131- <h1>{{- article.title | trim -}}</h1>
131 + <strong>{{- article.title | trim -}}</strong>
132132 {#- #} {# -#}
133133 <time datetime="{{- article.date |
134134 strftime('%Y-%m-%d %H:%M') -}}">
135135 {{- article.date | strftime(DATE_FORMAT_DAY) -}}
themes/ran/templates/base.htmlView
@@ -1,10 +1,10 @@
11 {%- macro entry_link(article) -%}
22 <li>
33 <a href="/{{- article.url -}}">
4- <h1>
4 + <strong>
55 {{- article.title |trim -}}
6- </h1>
6 + </strong>
77 {#- #} {# -#}
88 <time datetime="{{- article.date | strftime('%Y-%m-%d %H:%M') -}}">
99 {{- article.date | strftime(DATE_FORMAT_DAY) -}}
1010 </time>
themes/ran/templates/index.htmlView
@@ -15,9 +15,9 @@
1515 {%- endif -%}
1616 {%- endfor -%}
1717 <li>
1818 <a href="/{{- ARCHIVES_URL -}}">
19- <h1>{{- ARCHIVES_TITLE -}}</h1>
19 + <strong>{{- ARCHIVES_TITLE -}}</strong>
2020 </a>
2121 </li>
2222 </ul>
2323 {%- endblock -%}

Built with git-ssb-web