From: Vladimír Vondruš Date: Fri, 29 Mar 2019 09:57:36 +0000 (+0100) Subject: css: semi-transparent code background also in colored table rows/cells. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=97d7eb40d7c1f36ff06cdff1ade749b867bbe669;p=blog.git css: semi-transparent code background also in colored table rows/cells. --- diff --git a/css/m-components.css b/css/m-components.css index 4dbc7b52..6c66b091 100644 --- a/css/m-components.css +++ b/css/m-components.css @@ -288,9 +288,6 @@ dl.m-footnote dd span.m-footnote a { border-radius: var(--border-radius); padding: 1rem; } -.m-note pre, .m-note code { - background-color: var(--code-note-background-color); -} .m-frame { background-color: var(--background-color); border-style: solid; @@ -461,6 +458,32 @@ table.m-table tr.m-dim th, table.m-table th.m-dim { border-color: var(--background-color); } +/* Code on a colored background has a semi-transparent background */ +.m-note pre, .m-note code, +table.m-table tr.m-default pre, table.m-table tr.m-default code, +table.m-table td.m-default pre, table.m-table td.m-default code, +table.m-table th.m-default pre, table.m-table th.m-default code, +table.m-table tr.m-primary pre, table.m-table tr.m-primary code, +table.m-table td.m-primary pre, table.m-table td.m-primary code, +table.m-table th.m-primary pre, table.m-table th.m-primary code, +table.m-table tr.m-success pre, table.m-table tr.m-success code, +table.m-table td.m-success pre, table.m-table td.m-success code, +table.m-table th.m-success pre, table.m-table th.m-success code, +table.m-table tr.m-warning pre, table.m-table tr.m-warning code, +table.m-table td.m-warning pre, table.m-table td.m-warning code, +table.m-table th.m-warning pre, table.m-table th.m-warning code, +table.m-table tr.m-danger pre, table.m-table tr.m-danger code, +table.m-table td.m-danger pre, table.m-table td.m-danger code, +table.m-table th.m-danger pre, table.m-table th.m-danger code, +table.m-table tr.m-info pre, table.m-table tr.m-info code, +table.m-table td.m-info pre, table.m-table td.m-info code, +table.m-table th.m-info pre, table.m-table th.m-info code, +table.m-table tr.m-dim pre, table.m-table tr.m-dim code, +table.m-table td.m-dim pre, table.m-table td.m-dim code, +table.m-table th.m-dim pre, table.m-table th.m-dim code { + background-color: var(--code-note-background-color); +} + /* Image. Ensure everything is done for both and . */ img.m-image, svg.m-image { display: block; diff --git a/css/m-dark+doxygen.compiled.css b/css/m-dark+doxygen.compiled.css index 28770188..7d9f85a4 100644 --- a/css/m-dark+doxygen.compiled.css +++ b/css/m-dark+doxygen.compiled.css @@ -581,9 +581,6 @@ dl.m-footnote dd span.m-footnote a { border-radius: 0.2rem; padding: 1rem; } -.m-note pre, .m-note code { - background-color: rgba(34, 39, 46, 0.5); -} .m-frame { background-color: #2f363f; border-style: solid; @@ -742,6 +739,30 @@ table.m-table tr.m-dim td, table.m-table td.m-dim, table.m-table tr.m-dim th, table.m-table th.m-dim { border-color: #2f363f; } +.m-note pre, .m-note code, +table.m-table tr.m-default pre, table.m-table tr.m-default code, +table.m-table td.m-default pre, table.m-table td.m-default code, +table.m-table th.m-default pre, table.m-table th.m-default code, +table.m-table tr.m-primary pre, table.m-table tr.m-primary code, +table.m-table td.m-primary pre, table.m-table td.m-primary code, +table.m-table th.m-primary pre, table.m-table th.m-primary code, +table.m-table tr.m-success pre, table.m-table tr.m-success code, +table.m-table td.m-success pre, table.m-table td.m-success code, +table.m-table th.m-success pre, table.m-table th.m-success code, +table.m-table tr.m-warning pre, table.m-table tr.m-warning code, +table.m-table td.m-warning pre, table.m-table td.m-warning code, +table.m-table th.m-warning pre, table.m-table th.m-warning code, +table.m-table tr.m-danger pre, table.m-table tr.m-danger code, +table.m-table td.m-danger pre, table.m-table td.m-danger code, +table.m-table th.m-danger pre, table.m-table th.m-danger code, +table.m-table tr.m-info pre, table.m-table tr.m-info code, +table.m-table td.m-info pre, table.m-table td.m-info code, +table.m-table th.m-info pre, table.m-table th.m-info code, +table.m-table tr.m-dim pre, table.m-table tr.m-dim code, +table.m-table td.m-dim pre, table.m-table td.m-dim code, +table.m-table th.m-dim pre, table.m-table th.m-dim code { + background-color: rgba(34, 39, 46, 0.5); +} img.m-image, svg.m-image { display: block; margin-left: auto; diff --git a/css/m-dark.compiled.css b/css/m-dark.compiled.css index dab000c1..cc830980 100644 --- a/css/m-dark.compiled.css +++ b/css/m-dark.compiled.css @@ -581,9 +581,6 @@ dl.m-footnote dd span.m-footnote a { border-radius: 0.2rem; padding: 1rem; } -.m-note pre, .m-note code { - background-color: rgba(34, 39, 46, 0.5); -} .m-frame { background-color: #2f363f; border-style: solid; @@ -742,6 +739,30 @@ table.m-table tr.m-dim td, table.m-table td.m-dim, table.m-table tr.m-dim th, table.m-table th.m-dim { border-color: #2f363f; } +.m-note pre, .m-note code, +table.m-table tr.m-default pre, table.m-table tr.m-default code, +table.m-table td.m-default pre, table.m-table td.m-default code, +table.m-table th.m-default pre, table.m-table th.m-default code, +table.m-table tr.m-primary pre, table.m-table tr.m-primary code, +table.m-table td.m-primary pre, table.m-table td.m-primary code, +table.m-table th.m-primary pre, table.m-table th.m-primary code, +table.m-table tr.m-success pre, table.m-table tr.m-success code, +table.m-table td.m-success pre, table.m-table td.m-success code, +table.m-table th.m-success pre, table.m-table th.m-success code, +table.m-table tr.m-warning pre, table.m-table tr.m-warning code, +table.m-table td.m-warning pre, table.m-table td.m-warning code, +table.m-table th.m-warning pre, table.m-table th.m-warning code, +table.m-table tr.m-danger pre, table.m-table tr.m-danger code, +table.m-table td.m-danger pre, table.m-table td.m-danger code, +table.m-table th.m-danger pre, table.m-table th.m-danger code, +table.m-table tr.m-info pre, table.m-table tr.m-info code, +table.m-table td.m-info pre, table.m-table td.m-info code, +table.m-table th.m-info pre, table.m-table th.m-info code, +table.m-table tr.m-dim pre, table.m-table tr.m-dim code, +table.m-table td.m-dim pre, table.m-table td.m-dim code, +table.m-table th.m-dim pre, table.m-table th.m-dim code { + background-color: rgba(34, 39, 46, 0.5); +} img.m-image, svg.m-image { display: block; margin-left: auto; diff --git a/css/m-light+doxygen.compiled.css b/css/m-light+doxygen.compiled.css index 5627e061..7d99fa72 100644 --- a/css/m-light+doxygen.compiled.css +++ b/css/m-light+doxygen.compiled.css @@ -581,9 +581,6 @@ dl.m-footnote dd span.m-footnote a { border-radius: 0.2rem; padding: 1rem; } -.m-note pre, .m-note code { - background-color: rgba(251, 240, 236, 0.5); -} .m-frame { background-color: #ffffff; border-style: solid; @@ -742,6 +739,30 @@ table.m-table tr.m-dim td, table.m-table td.m-dim, table.m-table tr.m-dim th, table.m-table th.m-dim { border-color: #ffffff; } +.m-note pre, .m-note code, +table.m-table tr.m-default pre, table.m-table tr.m-default code, +table.m-table td.m-default pre, table.m-table td.m-default code, +table.m-table th.m-default pre, table.m-table th.m-default code, +table.m-table tr.m-primary pre, table.m-table tr.m-primary code, +table.m-table td.m-primary pre, table.m-table td.m-primary code, +table.m-table th.m-primary pre, table.m-table th.m-primary code, +table.m-table tr.m-success pre, table.m-table tr.m-success code, +table.m-table td.m-success pre, table.m-table td.m-success code, +table.m-table th.m-success pre, table.m-table th.m-success code, +table.m-table tr.m-warning pre, table.m-table tr.m-warning code, +table.m-table td.m-warning pre, table.m-table td.m-warning code, +table.m-table th.m-warning pre, table.m-table th.m-warning code, +table.m-table tr.m-danger pre, table.m-table tr.m-danger code, +table.m-table td.m-danger pre, table.m-table td.m-danger code, +table.m-table th.m-danger pre, table.m-table th.m-danger code, +table.m-table tr.m-info pre, table.m-table tr.m-info code, +table.m-table td.m-info pre, table.m-table td.m-info code, +table.m-table th.m-info pre, table.m-table th.m-info code, +table.m-table tr.m-dim pre, table.m-table tr.m-dim code, +table.m-table td.m-dim pre, table.m-table td.m-dim code, +table.m-table th.m-dim pre, table.m-table th.m-dim code { + background-color: rgba(251, 240, 236, 0.5); +} img.m-image, svg.m-image { display: block; margin-left: auto; diff --git a/css/m-light.compiled.css b/css/m-light.compiled.css index 74a57421..feee926f 100644 --- a/css/m-light.compiled.css +++ b/css/m-light.compiled.css @@ -581,9 +581,6 @@ dl.m-footnote dd span.m-footnote a { border-radius: 0.2rem; padding: 1rem; } -.m-note pre, .m-note code { - background-color: rgba(251, 240, 236, 0.5); -} .m-frame { background-color: #ffffff; border-style: solid; @@ -742,6 +739,30 @@ table.m-table tr.m-dim td, table.m-table td.m-dim, table.m-table tr.m-dim th, table.m-table th.m-dim { border-color: #ffffff; } +.m-note pre, .m-note code, +table.m-table tr.m-default pre, table.m-table tr.m-default code, +table.m-table td.m-default pre, table.m-table td.m-default code, +table.m-table th.m-default pre, table.m-table th.m-default code, +table.m-table tr.m-primary pre, table.m-table tr.m-primary code, +table.m-table td.m-primary pre, table.m-table td.m-primary code, +table.m-table th.m-primary pre, table.m-table th.m-primary code, +table.m-table tr.m-success pre, table.m-table tr.m-success code, +table.m-table td.m-success pre, table.m-table td.m-success code, +table.m-table th.m-success pre, table.m-table th.m-success code, +table.m-table tr.m-warning pre, table.m-table tr.m-warning code, +table.m-table td.m-warning pre, table.m-table td.m-warning code, +table.m-table th.m-warning pre, table.m-table th.m-warning code, +table.m-table tr.m-danger pre, table.m-table tr.m-danger code, +table.m-table td.m-danger pre, table.m-table td.m-danger code, +table.m-table th.m-danger pre, table.m-table th.m-danger code, +table.m-table tr.m-info pre, table.m-table tr.m-info code, +table.m-table td.m-info pre, table.m-table td.m-info code, +table.m-table th.m-info pre, table.m-table th.m-info code, +table.m-table tr.m-dim pre, table.m-table tr.m-dim code, +table.m-table td.m-dim pre, table.m-table td.m-dim code, +table.m-table th.m-dim pre, table.m-table th.m-dim code { + background-color: rgba(251, 240, 236, 0.5); +} img.m-image, svg.m-image { display: block; margin-left: auto;