git ssb

0+

Grey the earthling / gkn.me.uk



Commit 7d3903bd2b46896a43efd393948a8116e2edcca7

Better target link underlines in details, add <small>

Temper these elements' default styling in this context.

Target link underlines only at <address>, <p>,
not at all of the details.
Greg K Nicholson committed on 2/14/2018, 4:43:05 PM
Parent: 941ec5382505b9eb739fd78f7f61bd4779866134

Files changed

themes/ran/static/style/ran.csschanged
themes/ran/templates/article.htmlchanged
themes/ran/static/style/ran.cssView
@@ -272,8 +272,10 @@
272272 }
273273
274274 details > section > * {
275275 display: inline-block;
276 + margin-top: 0;
277 + margin-bottom: 0;
276278 margin-right: 1rem;
277279 opacity: 0;
278280 transition: opacity var(--slow);
279281 }
@@ -407,12 +409,12 @@
407409 filter: none;
408410 box-shadow: var(--box-shadow-style) currentColor;
409411 outline: 0;
410412 }
413 + address :link,
414 + address :visited,
411415 p :link,
412- p :visited,
413- details section :link,
414- details section :visited {
416 + p :visited {
415417 box-shadow: var(--box-shadow-style) var(--link-dim-color);
416418 }
417419
418420 address {
@@ -480,8 +482,12 @@
480482 pre {
481483 line-height: 1rem;
482484 }
483485
486 +small {
487 + font-size: 1rem;
488 +}
489 +
484490 strong {
485491 /* Without this, the weight increases from 300 to 400,
486492 which isn't distinct enough. */
487493 font-weight: 700;
themes/ran/templates/article.htmlView
@@ -21,9 +21,9 @@
2121 {{- article.author | trim -}}
2222 </a>
2323 </address>
2424 {%- endfor -%}
25- <span>
25 + <p>
2626 <time datetime="{{- article.date | strftime('%Y-%m-%d %H:%M') -}}">
2727 {{- article.date | strftime(DATE_FORMAT_MINUTE) -}}
2828 </time>
2929 {%- if article.modified and
@@ -34,15 +34,18 @@
3434 strftime('%Y-%m-%d %H:%M') -}}">
3535 {{- article.modified | strftime(DATE_FORMAT_MINUTE) -}}
3636 </time>
3737 {%- endif -%}
38- </span>
38 + </p>
3939 {%- if article.description -%}
40- {#- #} {# -#}
41- <i>{{- article.description | trim -}}</i>
40 + <p>
41 + <i>{{- article.description | trim -}}</i>
42 + </p>
4243 {%- endif -%}
4344 {%- if article.small -%}
44- <i>{{- article.small | trim -}}</i>
45 + <p>
46 + <small>{{- article.small | trim -}}</small>
47 + </p>
4548 {%- endif -%}
4649 {# <!--XXX skip links --> #}
4750 {%- endblock -%}
4851 {%- block maincontentintro -%}

Built with git-ssb-web