From: Vladimír Vondruš Date: Thu, 8 Oct 2020 09:52:27 +0000 (+0200) Subject: css: make figcaption follow the heading decoration rules. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=6ee4e0b52a83e45bb5d262fbe94d1fc7fc1976a0;p=blog.git css: make figcaption follow the heading decoration rules. So if I have all heading links not underlined, this one is neither. --- diff --git a/css/m-components.css b/css/m-components.css index 868c0634..4ac7bf26 100644 --- a/css/m-components.css +++ b/css/m-components.css @@ -641,6 +641,9 @@ figure.m-figure figcaption, .m-code-figure figcaption, .m-console-figure figcapt font-weight: var(--heading-font-weight); font-size: 1.17rem; /* taken from webkit defaults for h3 */ } +figure.m-figure figcaption a, .m-code-figure figcaption a, .m-console-figure figcaption a { + text-decoration: var(--link-decoration-heading); +} /* Image grid */ .m-imagegrid > div { diff --git a/css/m-dark+documentation.compiled.css b/css/m-dark+documentation.compiled.css index 56fa1990..41dc9c74 100644 --- a/css/m-dark+documentation.compiled.css +++ b/css/m-dark+documentation.compiled.css @@ -898,6 +898,9 @@ figure.m-figure figcaption, .m-code-figure figcaption, .m-console-figure figcapt font-weight: 600; font-size: 1.17rem; } +figure.m-figure figcaption a, .m-code-figure figcaption a, .m-console-figure figcaption a { + text-decoration: none; +} .m-imagegrid > div { background-color: #2f363f; } diff --git a/css/m-dark.compiled.css b/css/m-dark.compiled.css index f0c2dc73..a5bd5365 100644 --- a/css/m-dark.compiled.css +++ b/css/m-dark.compiled.css @@ -898,6 +898,9 @@ figure.m-figure figcaption, .m-code-figure figcaption, .m-console-figure figcapt font-weight: 600; font-size: 1.17rem; } +figure.m-figure figcaption a, .m-code-figure figcaption a, .m-console-figure figcaption a { + text-decoration: none; +} .m-imagegrid > div { background-color: #2f363f; } diff --git a/css/m-light+documentation.compiled.css b/css/m-light+documentation.compiled.css index 379eb02e..2dca9520 100644 --- a/css/m-light+documentation.compiled.css +++ b/css/m-light+documentation.compiled.css @@ -898,6 +898,9 @@ figure.m-figure figcaption, .m-code-figure figcaption, .m-console-figure figcapt font-weight: normal; font-size: 1.17rem; } +figure.m-figure figcaption a, .m-code-figure figcaption a, .m-console-figure figcaption a { + text-decoration: none; +} .m-imagegrid > div { background-color: #ffffff; } diff --git a/css/m-light.compiled.css b/css/m-light.compiled.css index 0079fbcb..1200d27e 100644 --- a/css/m-light.compiled.css +++ b/css/m-light.compiled.css @@ -898,6 +898,9 @@ figure.m-figure figcaption, .m-code-figure figcaption, .m-console-figure figcapt font-weight: normal; font-size: 1.17rem; } +figure.m-figure figcaption a, .m-code-figure figcaption a, .m-console-figure figcaption a { + text-decoration: none; +} .m-imagegrid > div { background-color: #ffffff; }