From: Vladimír Vondruš Date: Sat, 13 Oct 2018 23:57:48 +0000 (+0200) Subject: css: make it possible to have math and graph figures. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=9a6b8304ede448cc2be8c69959566bab40746ece;p=blog.git css: make it possible to have math and graph figures. Also added a test file verifying math coloring priorities. --- diff --git a/css/m-components.css b/css/m-components.css index 720a8ade..1af4e97b 100644 --- a/css/m-components.css +++ b/css/m-components.css @@ -743,12 +743,6 @@ figure.m-figure.m-flat img, figure.m-figure.m-flat svg { border-bottom-left-radius: var(--border-radius); border-bottom-right-radius: var(--border-radius); } -figure.m-figure figcaption { - margin-top: 0.5rem; - margin-bottom: 0.5rem; - font-weight: var(--heading-font-weight); - font-size: 1.17rem; /* taken from webkit defaults for h3 */ -} figure.m-figure a img, figure.m-figure a svg { margin-left: -1rem; margin-right: -1rem; @@ -772,7 +766,8 @@ figure.m-figure.m-fullwidth:after { height: 1px; } -/* Code figure */ +/* Code figure. Not using
because some generators (Doxygen) have it + impossible to output custom tags. */ .m-code-figure, .m-console-figure { margin-top: 0; margin-left: 0; @@ -808,6 +803,14 @@ figure.m-figure.m-fullwidth:after { border-bottom-right-radius: 0; } +/* Figure caption */ +figure.m-figure figcaption, .m-code-figure figcaption, .m-console-figure figcaption { + margin-top: 0.5rem; + margin-bottom: 0.5rem; + font-weight: var(--heading-font-weight); + font-size: 1.17rem; /* taken from webkit defaults for h3 */ +} + /* Colored figure */ figure.m-figure.m-default:before { border-color: var(--default-filled-background-color); } figure.m-figure.m-default figcaption { color: var(--default-color); } @@ -972,7 +975,8 @@ pre.m-code.m-inverted > span.hll { border-color: transparent; } -/* Math block, inline math, math inside buttons because I am crazy */ +/* Math block, math figure, inline math, math inside buttons because I am + crazy */ div.m-math { overflow-x: auto; overflow-y: hidden; /* Chrome 62 displays a vertical scrollbar otherwise */ @@ -989,8 +993,9 @@ div.m-button.m-default a:active svg.m-math { fill: var(--link-active-color); } -/* Plots, graphs */ -div.m-graph { font-size: var(--font-size); } +/* Plots, graphs. Graphs can be either div.m-graph svg or svg.m-graph, so using + just .m-graph when referencing both a
graph and a
graph. */ +.m-graph { font-size: var(--font-size); } div.m-plot svg, div.m-graph svg { max-width: 100%; margin-left: auto; @@ -1011,257 +1016,264 @@ div.m-plot svg .m-error { stroke-width: 1.5; } div.m-plot svg .m-label.m-dim { fill: var(--dim-color); } -div.m-graph svg g.m-edge path, div.m-graph svg g.m-node.m-flat ellipse, -div.m-graph svg g.m-node.m-flat polygon { +.m-graph g.m-edge path, .m-graph g.m-node.m-flat ellipse, +.m-graph g.m-node.m-flat polygon { fill: none; } -div.m-graph svg g.m-node:not(.m-flat) text { +.m-graph g.m-node:not(.m-flat) text { fill: var(--button-background-color); } +/* Rendered math and graphs have no padding around, add it if in a figure, + ensure it's applied only on the immediately first svg inside. Because we + want a background under the padding as well, switch the box sizing to + content box. */ +figure.m-figure > svg.m-math:first-child, +figure.m-figure > svg.m-graph:first-child { + padding: 1rem; + box-sizing: content-box; +} +figure.m-figure:not(.m-flat) > svg.m-math:first-child, +figure.m-figure:not(.m-flat) > svg.m-graph:first-child { + background-color: var(--line-color); +} + /* Colored math block, inline math, colored math parts, plots and global-colored graphs. Should be before local graph coloring, so the latter - can override this. */ -div.m-math svg, svg.m-math { fill: var(--color); } -div.m-math.m-default svg, svg.m-math.m-default, -div.m-math svg g.m-default, svg.m-math g.m-default, -div.m-math svg rect.m-default, svg.m-math rect.m-default, + can override this. Applies to either div.m-math svg or svg.m.math + (div.m-graph svg or svg.m-graph), so using just .m-math (.m-graph). Besides + that, using svg anywhere would make it a higher priority, breaking the + colors. See the math/graph plugin test pages for a visual verification. */ +.m-math { fill: var(--color); } +.m-math.m-default, .m-math g.m-default, .m-math rect.m-default, div.m-plot svg .m-bar.m-default, -div.m-graph svg g.m-edge polygon, -div.m-graph svg g.m-node:not(.m-flat) ellipse, -div.m-graph svg g.m-node:not(.m-flat) polygon, -div.m-graph svg g.m-edge text, -div.m-graph svg g.m-node.m-flat text, -div.m-graph.m-default svg g.m-edge polygon, -div.m-graph.m-default svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-default svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-default svg g.m-edge text, -div.m-graph.m-default svg g.m-node.m-flat text { +.m-graph g.m-edge polygon, +.m-graph g.m-node:not(.m-flat) ellipse, +.m-graph g.m-node:not(.m-flat) polygon, +.m-graph g.m-edge text, +.m-graph g.m-node.m-flat text, +.m-graph.m-default g.m-edge polygon, +.m-graph.m-default g.m-node:not(.m-flat) ellipse, +.m-graph.m-default g.m-node:not(.m-flat) polygon, +.m-graph.m-default g.m-edge text, +.m-graph.m-default g.m-node.m-flat text { fill: var(--default-color); } -div.m-graph svg g.m-edge polygon, -div.m-graph svg g.m-edge path, -div.m-graph svg g.m-node ellipse, -div.m-graph svg g.m-node polygon, -div.m-graph svg g.m-node polyline, -div.m-graph.m-default svg g.m-edge polygon, -div.m-graph.m-default svg g.m-edge path, -div.m-graph.m-default svg g.m-node ellipse, -div.m-graph.m-default svg g.m-node polygon, -div.m-graph.m-default svg g.m-node polyline { +.m-graph g.m-edge polygon, +.m-graph g.m-edge path, +.m-graph g.m-node ellipse, +.m-graph g.m-node polygon, +.m-graph g.m-node polyline, +.m-graph.m-default g.m-edge polygon, +.m-graph.m-default g.m-edge path, +.m-graph.m-default g.m-node ellipse, +.m-graph.m-default g.m-node polygon, +.m-graph.m-default g.m-node polyline { stroke: var(--default-color); } -div.m-math.m-primary svg, svg.m-math.m-primary, -div.m-math svg g.m-primary, svg.m-math g.m-primary, -div.m-math svg rect.m-primary, svg.m-math rect.m-primary, +.m-math.m-primary, .m-math g.m-primary, .m-math rect.m-primary, div.m-plot svg .m-bar.m-primary, -div.m-graph.m-primary svg g.m-edge polygon, -div.m-graph.m-primary svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-primary svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-primary svg g.m-edge text, -div.m-graph.m-primary svg g.m-node.m-flat text { +.m-graph.m-primary g.m-edge polygon, +.m-graph.m-primary g.m-node:not(.m-flat) ellipse, +.m-graph.m-primary g.m-node:not(.m-flat) polygon, +.m-graph.m-primary g.m-edge text, +.m-graph.m-primary g.m-node.m-flat text { fill: var(--primary-color); } -div.m-graph.m-primary svg g.m-edge polygon, -div.m-graph.m-primary svg g.m-edge path, -div.m-graph.m-primary svg g.m-node ellipse, -div.m-graph.m-primary svg g.m-node polygon, -div.m-graph.m-primary svg g.m-node polyline { +.m-graph.m-primary g.m-edge polygon, +.m-graph.m-primary g.m-edge path, +.m-graph.m-primary g.m-node ellipse, +.m-graph.m-primary g.m-node polygon, +.m-graph.m-primary g.m-node polyline { stroke: var(--primary-color); } -div.m-math.m-success svg, svg.m-math.m-success, -div.m-math svg g.m-success, svg.m-math g.m-success, -div.m-math svg rect.m-success, svg.m-math rect.m-success, +.m-math.m-success, .m-math g.m-success, .m-math rect.m-success, div.m-plot svg .m-bar.m-success, -div.m-graph.m-success svg g.m-edge polygon, -div.m-graph.m-success svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-success svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-success svg g.m-edge text, -div.m-graph.m-success svg g.m-node.m-flat text { +.m-graph.m-success g.m-edge polygon, +.m-graph.m-success g.m-node:not(.m-flat) ellipse, +.m-graph.m-success g.m-node:not(.m-flat) polygon, +.m-graph.m-success g.m-edge text, +.m-graph.m-success g.m-node.m-flat text { fill: var(--success-color); } -div.m-graph.m-success svg g.m-edge polygon, -div.m-graph.m-success svg g.m-edge path, -div.m-graph.m-success svg g.m-node ellipse, -div.m-graph.m-success svg g.m-node polygon, -div.m-graph.m-success svg g.m-node polyline { +.m-graph.m-success g.m-edge polygon, +.m-graph.m-success g.m-edge path, +.m-graph.m-success g.m-node ellipse, +.m-graph.m-success g.m-node polygon, +.m-graph.m-success g.m-node polyline { stroke: var(--success-color); } -div.m-math.m-warning svg, svg.m-math.m-warning, -div.m-math svg g.m-warning, svg.m-math g.m-warning, -div.m-math svg rect.m-warning, svg.m-math rect.m-warning, +.m-math.m-warning, .m-math g.m-warning, .m-math rect.m-warning, div.m-plot svg .m-bar.m-warning, -div.m-graph.m-warning svg g.m-edge polygon, -div.m-graph.m-warning svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-warning svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-warning svg g.m-edge text, -div.m-graph.m-warning svg g.m-node.m-flat text { +.m-graph.m-warning g.m-edge polygon, +.m-graph.m-warning g.m-node:not(.m-flat) ellipse, +.m-graph.m-warning g.m-node:not(.m-flat) polygon, +.m-graph.m-warning g.m-edge text, +.m-graph.m-warning g.m-node.m-flat text { fill: var(--warning-color); } -div.m-graph.m-warning svg g.m-edge polygon, -div.m-graph.m-warning svg g.m-edge path, -div.m-graph.m-warning svg g.m-node ellipse, -div.m-graph.m-warning svg g.m-node polygon, -div.m-graph.m-warning svg g.m-node polyline { +.m-graph.m-warning g.m-edge polygon, +.m-graph.m-warning g.m-edge path, +.m-graph.m-warning g.m-node ellipse, +.m-graph.m-warning g.m-node polygon, +.m-graph.m-warning g.m-node polyline { stroke: var(--warning-color); } -div.m-math.m-danger svg, svg.m-math.m-danger, -div.m-math svg g.m-danger, svg.m-math g.m-danger, -div.m-math svg rect.m-danger, svg.m-math rect.m-danger, +.m-math.m-danger, .m-math g.m-danger, .m-math rect.m-danger, div.m-plot svg .m-bar.m-danger, -div.m-graph.m-danger svg g.m-edge polygon, -div.m-graph.m-danger svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-danger svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-danger svg g.m-edge text, -div.m-graph.m-danger svg g.m-node.m-flat text { +.m-graph.m-danger g.m-edge polygon, +.m-graph.m-danger g.m-node:not(.m-flat) ellipse, +.m-graph.m-danger g.m-node:not(.m-flat) polygon, +.m-graph.m-danger g.m-edge text, +.m-graph.m-danger g.m-node.m-flat text { fill: var(--danger-color); } -div.m-graph.m-danger svg g.m-edge polygon, -div.m-graph.m-danger svg g.m-edge path, -div.m-graph.m-danger svg g.m-node ellipse, -div.m-graph.m-danger svg g.m-node polygon, -div.m-graph.m-danger svg g.m-node polyline { +.m-graph.m-danger g.m-edge polygon, +.m-graph.m-danger g.m-edge path, +.m-graph.m-danger g.m-node ellipse, +.m-graph.m-danger g.m-node polygon, +.m-graph.m-danger g.m-node polyline { stroke: var(--danger-color); } -div.m-math.m-info svg, svg.m-math.m-info, -div.m-math svg g.m-info, svg.m-math g.m-info, -div.m-math svg rect.m-info, svg.m-math rect.m-info, +.m-math.m-info, .m-math g.m-info, .m-math rect.m-info, div.m-plot svg .m-bar.m-info, -div.m-graph.m-info svg g.m-edge polygon, -div.m-graph.m-info svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-info svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-info svg g.m-edge text, -div.m-graph.m-info svg g.m-node.m-flat text { +.m-graph.m-info g.m-edge polygon, +.m-graph.m-info g.m-node:not(.m-flat) ellipse, +.m-graph.m-info g.m-node:not(.m-flat) polygon, +.m-graph.m-info g.m-edge text, +.m-graph.m-info g.m-node.m-flat text { fill: var(--info-color); } -div.m-graph.m-info svg g.m-edge polygon, -div.m-graph.m-info svg g.m-edge path, -div.m-graph.m-info svg g.m-node ellipse, -div.m-graph.m-info svg g.m-node polygon, -div.m-graph.m-info svg g.m-node polyline { +.m-graph.m-info g.m-edge polygon, +.m-graph.m-info g.m-edge path, +.m-graph.m-info g.m-node ellipse, +.m-graph.m-info g.m-node polygon, +.m-graph.m-info g.m-node polyline { stroke: var(--info-color); } -div.m-math.m-dim svg, svg.m-math.m-dim, -div.m-math svg g.m-dim, svg.m-math g.m-dim, -div.m-math svg rect.m-dim, svg.m-math rect.m-dim, +.m-math.m-dim, .m-math g.m-dim, .m-math rect.m-dim, div.m-plot svg .m-bar.m-dim, -div.m-graph.m-dim svg g.m-edge polygon, -div.m-graph.m-dim svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-dim svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-dim svg g.m-edge text, -div.m-graph.m-dim svg g.m-node.m-flat text { +.m-graph.m-dim g.m-edge polygon, +.m-graph.m-dim g.m-node:not(.m-flat) ellipse, +.m-graph.m-dim g.m-node:not(.m-flat) polygon, +.m-graph.m-dim g.m-edge text, +.m-graph.m-dim g.m-node.m-flat text { fill: var(--dim-color); } -div.m-graph.m-dim svg g.m-edge polygon, -div.m-graph.m-dim svg g.m-edge path, -div.m-graph.m-dim svg g.m-node ellipse, -div.m-graph.m-dim svg g.m-node polygon, -div.m-graph.m-dim svg g.m-node polyline { +.m-graph.m-dim g.m-edge polygon, +.m-graph.m-dim g.m-edge path, +.m-graph.m-dim g.m-node ellipse, +.m-graph.m-dim g.m-node polygon, +.m-graph.m-dim g.m-node polyline { stroke: var(--dim-color); } -/* Local-colored graphs. Later so it overrides global coloring. */ -div.m-graph svg g.m-edge.m-default polygon, -div.m-graph svg g.m-node.m-default:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-default:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-default text, -div.m-graph svg g.m-node.m-default.m-flat text { +/* Local-colored graphs. Later so it overrides global coloring. Applies to + either div.m-graph svg or svg.m-graph, so using just .m-graph. This is not + needed for math, for some reason the overrides work correctly. */ +.m-graph g.m-edge.m-default polygon, +.m-graph g.m-node.m-default:not(.m-flat) ellipse, +.m-graph g.m-node.m-default:not(.m-flat) polygon, +.m-graph g.m-edge.m-default text, +.m-graph g.m-node.m-default.m-flat text { fill: var(--default-color); } -div.m-graph svg g.m-edge.m-default polygon, -div.m-graph svg g.m-edge.m-default path, -div.m-graph svg g.m-node.m-default ellipse, -div.m-graph svg g.m-node.m-default polygon, -div.m-graph svg g.m-node.m-default polyline { +.m-graph g.m-edge.m-default polygon, +.m-graph g.m-edge.m-default path, +.m-graph g.m-node.m-default ellipse, +.m-graph g.m-node.m-default polygon, +.m-graph g.m-node.m-default polyline { stroke: var(--default-color); } -div.m-graph svg g.m-edge.m-primary polygon, -div.m-graph svg g.m-node.m-primary:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-primary:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-primary text, -div.m-graph svg g.m-node.m-primary.m-flat text { +.m-graph g.m-edge.m-primary polygon, +.m-graph g.m-node.m-primary:not(.m-flat) ellipse, +.m-graph g.m-node.m-primary:not(.m-flat) polygon, +.m-graph g.m-edge.m-primary text, +.m-graph g.m-node.m-primary.m-flat text { fill: var(--primary-color); } -div.m-graph svg g.m-edge.m-primary polygon, -div.m-graph svg g.m-edge.m-primary path, -div.m-graph svg g.m-node.m-primary ellipse, -div.m-graph svg g.m-node.m-primary polygon, -div.m-graph svg g.m-node.m-primary polyline { +.m-graph g.m-edge.m-primary polygon, +.m-graph g.m-edge.m-primary path, +.m-graph g.m-node.m-primary ellipse, +.m-graph g.m-node.m-primary polygon, +.m-graph g.m-node.m-primary polyline { stroke: var(--primary-color); } -div.m-graph svg g.m-edge.m-success polygon, -div.m-graph svg g.m-node.m-success:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-success:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-success text, -div.m-graph svg g.m-node.m-success.m-flat text { +.m-graph g.m-edge.m-success polygon, +.m-graph g.m-node.m-success:not(.m-flat) ellipse, +.m-graph g.m-node.m-success:not(.m-flat) polygon, +.m-graph g.m-edge.m-success text, +.m-graph g.m-node.m-success.m-flat text { fill: var(--success-color); } -div.m-graph svg g.m-edge.m-success polygon, -div.m-graph svg g.m-edge.m-success path, -div.m-graph svg g.m-node.m-success ellipse, -div.m-graph svg g.m-node.m-success polygon, -div.m-graph svg g.m-node.m-success polyline { +.m-graph g.m-edge.m-success polygon, +.m-graph g.m-edge.m-success path, +.m-graph g.m-node.m-success ellipse, +.m-graph g.m-node.m-success polygon, +.m-graph g.m-node.m-success polyline { stroke: var(--success-color); } -div.m-graph svg g.m-edge.m-warning polygon, -div.m-graph svg g.m-node.m-warning:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-warning:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-warning text, -div.m-graph svg g.m-node.m-warning.m-flat text { +.m-graph g.m-edge.m-warning polygon, +.m-graph g.m-node.m-warning:not(.m-flat) ellipse, +.m-graph g.m-node.m-warning:not(.m-flat) polygon, +.m-graph g.m-edge.m-warning text, +.m-graph g.m-node.m-warning.m-flat text { fill: var(--warning-color); } -div.m-graph svg g.m-edge.m-warning polygon, -div.m-graph svg g.m-edge.m-warning path, -div.m-graph svg g.m-node.m-warning ellipse, -div.m-graph svg g.m-node.m-warning polygon, -div.m-graph svg g.m-node.m-warning polyline { +.m-graph g.m-edge.m-warning polygon, +.m-graph g.m-edge.m-warning path, +.m-graph g.m-node.m-warning ellipse, +.m-graph g.m-node.m-warning polygon, +.m-graph g.m-node.m-warning polyline { stroke: var(--warning-color); } -div.m-graph svg g.m-edge.m-danger polygon, -div.m-graph svg g.m-node.m-danger:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-danger:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-danger text, -div.m-graph svg g.m-node.m-danger.m-flat text { +.m-graph g.m-edge.m-danger polygon, +.m-graph g.m-node.m-danger:not(.m-flat) ellipse, +.m-graph g.m-node.m-danger:not(.m-flat) polygon, +.m-graph g.m-edge.m-danger text, +.m-graph g.m-node.m-danger.m-flat text { fill: var(--danger-color); } -div.m-graph svg g.m-edge.m-danger polygon, -div.m-graph svg g.m-edge.m-danger path, -div.m-graph svg g.m-node.m-danger ellipse, -div.m-graph svg g.m-node.m-danger polygon, -div.m-graph svg g.m-node.m-danger polyline { +.m-graph g.m-edge.m-danger polygon, +.m-graph g.m-edge.m-danger path, +.m-graph g.m-node.m-danger ellipse, +.m-graph g.m-node.m-danger polygon, +.m-graph g.m-node.m-danger polyline { stroke: var(--danger-color); } -div.m-graph svg g.m-edge.m-info polygon, -div.m-graph svg g.m-node.m-info:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-info:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-info text, -div.m-graph svg g.m-node.m-info.m-flat text { +.m-graph g.m-edge.m-info polygon, +.m-graph g.m-node.m-info:not(.m-flat) ellipse, +.m-graph g.m-node.m-info:not(.m-flat) polygon, +.m-graph g.m-edge.m-info text, +.m-graph g.m-node.m-info.m-flat text { fill: var(--info-color); } -div.m-graph svg g.m-edge.m-info polygon, -div.m-graph svg g.m-edge.m-info path, -div.m-graph svg g.m-node.m-info ellipse, -div.m-graph svg g.m-node.m-info polygon, -div.m-graph svg g.m-node.m-info polyline { +.m-graph g.m-edge.m-info polygon, +.m-graph g.m-edge.m-info path, +.m-graph g.m-node.m-info ellipse, +.m-graph g.m-node.m-info polygon, +.m-graph g.m-node.m-info polyline { stroke: var(--info-color); } -div.m-graph svg g.m-edge.m-dim polygon, -div.m-graph svg g.m-node.m-dim:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-dim:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-dim text, -div.m-graph svg g.m-node.m-dim.m-flat text { +.m-graph g.m-edge.m-dim polygon, +.m-graph g.m-node.m-dim:not(.m-flat) ellipse, +.m-graph g.m-node.m-dim:not(.m-flat) polygon, +.m-graph g.m-edge.m-dim text, +.m-graph g.m-node.m-dim.m-flat text { fill: var(--dim-color); } -div.m-graph svg g.m-edge.m-dim polygon, -div.m-graph svg g.m-edge.m-dim path, -div.m-graph svg g.m-node.m-dim ellipse, -div.m-graph svg g.m-node.m-dim polygon, -div.m-graph svg g.m-node.m-dim polyline { +.m-graph g.m-edge.m-dim polygon, +.m-graph g.m-edge.m-dim path, +.m-graph g.m-node.m-dim ellipse, +.m-graph g.m-node.m-dim polygon, +.m-graph g.m-node.m-dim polyline { stroke: var(--dim-color); } /* Spacing after every block element, but not after the last and not when - m-nopadb is specified */ + m-nopadb is specified. It's div.m-math and div.m-graph instead of .m-math and + .m-graph because math / graph figures are handled already with + figure.m-figure. */ p, ul, ol, dl, blockquote, pre, .m-code-figure, .m-console-figure, hr, .m-note, .m-frame, .m-block, div.m-button, div.m-scroll, table.m-table, div.m-image, img.m-image, svg.m-image, figure.m-figure, .m-imagegrid, div.m-math, diff --git a/css/m-dark+doxygen.compiled.css b/css/m-dark+doxygen.compiled.css index 0d525a67..6cf310b6 100644 --- a/css/m-dark+doxygen.compiled.css +++ b/css/m-dark+doxygen.compiled.css @@ -1063,12 +1063,6 @@ figure.m-figure.m-flat img, figure.m-figure.m-flat svg { border-bottom-left-radius: 0.2rem; border-bottom-right-radius: 0.2rem; } -figure.m-figure figcaption { - margin-top: 0.5rem; - margin-bottom: 0.5rem; - font-weight: 600; - font-size: 1.17rem; -} figure.m-figure a img, figure.m-figure a svg { margin-left: -1rem; margin-right: -1rem; @@ -1122,6 +1116,12 @@ figure.m-figure.m-fullwidth:after { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } +figure.m-figure figcaption, .m-code-figure figcaption, .m-console-figure figcaption { + margin-top: 0.5rem; + margin-bottom: 0.5rem; + font-weight: 600; + font-size: 1.17rem; +} figure.m-figure.m-default:before { border-color: #34424d; } figure.m-figure.m-default figcaption { color: #dcdcdc; } figure.m-figure.m-primary:before { border-color: #a5c2db; } @@ -1291,7 +1291,7 @@ div.m-button.m-flat a:hover svg.m-math, div.m-button.m-default a:focus svg.m-mat div.m-button.m-default a:active svg.m-math { fill: #a5c9ea; } -div.m-graph { font-size: 16px; } +.m-graph { font-size: 16px; } div.m-plot svg, div.m-graph svg { max-width: 100%; margin-left: auto; @@ -1311,246 +1311,241 @@ div.m-plot svg .m-error { stroke-width: 1.5; } div.m-plot svg .m-label.m-dim { fill: #747474; } -div.m-graph svg g.m-edge path, div.m-graph svg g.m-node.m-flat ellipse, -div.m-graph svg g.m-node.m-flat polygon { +.m-graph g.m-edge path, .m-graph g.m-node.m-flat ellipse, +.m-graph g.m-node.m-flat polygon { fill: none; } -div.m-graph svg g.m-node:not(.m-flat) text { +.m-graph g.m-node:not(.m-flat) text { fill: #22272e; } -div.m-math svg, svg.m-math { fill: #dcdcdc; } -div.m-math.m-default svg, svg.m-math.m-default, -div.m-math svg g.m-default, svg.m-math g.m-default, -div.m-math svg rect.m-default, svg.m-math rect.m-default, +figure.m-figure > svg.m-math:first-child, +figure.m-figure > svg.m-graph:first-child { + padding: 1rem; + box-sizing: content-box; +} +figure.m-figure:not(.m-flat) > svg.m-math:first-child, +figure.m-figure:not(.m-flat) > svg.m-graph:first-child { + background-color: #405363; +} +.m-math { fill: #dcdcdc; } +.m-math.m-default, .m-math g.m-default, .m-math rect.m-default, div.m-plot svg .m-bar.m-default, -div.m-graph svg g.m-edge polygon, -div.m-graph svg g.m-node:not(.m-flat) ellipse, -div.m-graph svg g.m-node:not(.m-flat) polygon, -div.m-graph svg g.m-edge text, -div.m-graph svg g.m-node.m-flat text, -div.m-graph.m-default svg g.m-edge polygon, -div.m-graph.m-default svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-default svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-default svg g.m-edge text, -div.m-graph.m-default svg g.m-node.m-flat text { +.m-graph g.m-edge polygon, +.m-graph g.m-node:not(.m-flat) ellipse, +.m-graph g.m-node:not(.m-flat) polygon, +.m-graph g.m-edge text, +.m-graph g.m-node.m-flat text, +.m-graph.m-default g.m-edge polygon, +.m-graph.m-default g.m-node:not(.m-flat) ellipse, +.m-graph.m-default g.m-node:not(.m-flat) polygon, +.m-graph.m-default g.m-edge text, +.m-graph.m-default g.m-node.m-flat text { fill: #dcdcdc; } -div.m-graph svg g.m-edge polygon, -div.m-graph svg g.m-edge path, -div.m-graph svg g.m-node ellipse, -div.m-graph svg g.m-node polygon, -div.m-graph svg g.m-node polyline, -div.m-graph.m-default svg g.m-edge polygon, -div.m-graph.m-default svg g.m-edge path, -div.m-graph.m-default svg g.m-node ellipse, -div.m-graph.m-default svg g.m-node polygon, -div.m-graph.m-default svg g.m-node polyline { +.m-graph g.m-edge polygon, +.m-graph g.m-edge path, +.m-graph g.m-node ellipse, +.m-graph g.m-node polygon, +.m-graph g.m-node polyline, +.m-graph.m-default g.m-edge polygon, +.m-graph.m-default g.m-edge path, +.m-graph.m-default g.m-node ellipse, +.m-graph.m-default g.m-node polygon, +.m-graph.m-default g.m-node polyline { stroke: #dcdcdc; } -div.m-math.m-primary svg, svg.m-math.m-primary, -div.m-math svg g.m-primary, svg.m-math g.m-primary, -div.m-math svg rect.m-primary, svg.m-math rect.m-primary, +.m-math.m-primary, .m-math g.m-primary, .m-math rect.m-primary, div.m-plot svg .m-bar.m-primary, -div.m-graph.m-primary svg g.m-edge polygon, -div.m-graph.m-primary svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-primary svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-primary svg g.m-edge text, -div.m-graph.m-primary svg g.m-node.m-flat text { +.m-graph.m-primary g.m-edge polygon, +.m-graph.m-primary g.m-node:not(.m-flat) ellipse, +.m-graph.m-primary g.m-node:not(.m-flat) polygon, +.m-graph.m-primary g.m-edge text, +.m-graph.m-primary g.m-node.m-flat text { fill: #a5c9ea; } -div.m-graph.m-primary svg g.m-edge polygon, -div.m-graph.m-primary svg g.m-edge path, -div.m-graph.m-primary svg g.m-node ellipse, -div.m-graph.m-primary svg g.m-node polygon, -div.m-graph.m-primary svg g.m-node polyline { +.m-graph.m-primary g.m-edge polygon, +.m-graph.m-primary g.m-edge path, +.m-graph.m-primary g.m-node ellipse, +.m-graph.m-primary g.m-node polygon, +.m-graph.m-primary g.m-node polyline { stroke: #a5c9ea; } -div.m-math.m-success svg, svg.m-math.m-success, -div.m-math svg g.m-success, svg.m-math g.m-success, -div.m-math svg rect.m-success, svg.m-math rect.m-success, +.m-math.m-success, .m-math g.m-success, .m-math rect.m-success, div.m-plot svg .m-bar.m-success, -div.m-graph.m-success svg g.m-edge polygon, -div.m-graph.m-success svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-success svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-success svg g.m-edge text, -div.m-graph.m-success svg g.m-node.m-flat text { +.m-graph.m-success g.m-edge polygon, +.m-graph.m-success g.m-node:not(.m-flat) ellipse, +.m-graph.m-success g.m-node:not(.m-flat) polygon, +.m-graph.m-success g.m-edge text, +.m-graph.m-success g.m-node.m-flat text { fill: #3bd267; } -div.m-graph.m-success svg g.m-edge polygon, -div.m-graph.m-success svg g.m-edge path, -div.m-graph.m-success svg g.m-node ellipse, -div.m-graph.m-success svg g.m-node polygon, -div.m-graph.m-success svg g.m-node polyline { +.m-graph.m-success g.m-edge polygon, +.m-graph.m-success g.m-edge path, +.m-graph.m-success g.m-node ellipse, +.m-graph.m-success g.m-node polygon, +.m-graph.m-success g.m-node polyline { stroke: #3bd267; } -div.m-math.m-warning svg, svg.m-math.m-warning, -div.m-math svg g.m-warning, svg.m-math g.m-warning, -div.m-math svg rect.m-warning, svg.m-math rect.m-warning, +.m-math.m-warning, .m-math g.m-warning, .m-math rect.m-warning, div.m-plot svg .m-bar.m-warning, -div.m-graph.m-warning svg g.m-edge polygon, -div.m-graph.m-warning svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-warning svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-warning svg g.m-edge text, -div.m-graph.m-warning svg g.m-node.m-flat text { +.m-graph.m-warning g.m-edge polygon, +.m-graph.m-warning g.m-node:not(.m-flat) ellipse, +.m-graph.m-warning g.m-node:not(.m-flat) polygon, +.m-graph.m-warning g.m-edge text, +.m-graph.m-warning g.m-node.m-flat text { fill: #c7cf2f; } -div.m-graph.m-warning svg g.m-edge polygon, -div.m-graph.m-warning svg g.m-edge path, -div.m-graph.m-warning svg g.m-node ellipse, -div.m-graph.m-warning svg g.m-node polygon, -div.m-graph.m-warning svg g.m-node polyline { +.m-graph.m-warning g.m-edge polygon, +.m-graph.m-warning g.m-edge path, +.m-graph.m-warning g.m-node ellipse, +.m-graph.m-warning g.m-node polygon, +.m-graph.m-warning g.m-node polyline { stroke: #c7cf2f; } -div.m-math.m-danger svg, svg.m-math.m-danger, -div.m-math svg g.m-danger, svg.m-math g.m-danger, -div.m-math svg rect.m-danger, svg.m-math rect.m-danger, +.m-math.m-danger, .m-math g.m-danger, .m-math rect.m-danger, div.m-plot svg .m-bar.m-danger, -div.m-graph.m-danger svg g.m-edge polygon, -div.m-graph.m-danger svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-danger svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-danger svg g.m-edge text, -div.m-graph.m-danger svg g.m-node.m-flat text { +.m-graph.m-danger g.m-edge polygon, +.m-graph.m-danger g.m-node:not(.m-flat) ellipse, +.m-graph.m-danger g.m-node:not(.m-flat) polygon, +.m-graph.m-danger g.m-edge text, +.m-graph.m-danger g.m-node.m-flat text { fill: #cd3431; } -div.m-graph.m-danger svg g.m-edge polygon, -div.m-graph.m-danger svg g.m-edge path, -div.m-graph.m-danger svg g.m-node ellipse, -div.m-graph.m-danger svg g.m-node polygon, -div.m-graph.m-danger svg g.m-node polyline { +.m-graph.m-danger g.m-edge polygon, +.m-graph.m-danger g.m-edge path, +.m-graph.m-danger g.m-node ellipse, +.m-graph.m-danger g.m-node polygon, +.m-graph.m-danger g.m-node polyline { stroke: #cd3431; } -div.m-math.m-info svg, svg.m-math.m-info, -div.m-math svg g.m-info, svg.m-math g.m-info, -div.m-math svg rect.m-info, svg.m-math rect.m-info, +.m-math.m-info, .m-math g.m-info, .m-math rect.m-info, div.m-plot svg .m-bar.m-info, -div.m-graph.m-info svg g.m-edge polygon, -div.m-graph.m-info svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-info svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-info svg g.m-edge text, -div.m-graph.m-info svg g.m-node.m-flat text { +.m-graph.m-info g.m-edge polygon, +.m-graph.m-info g.m-node:not(.m-flat) ellipse, +.m-graph.m-info g.m-node:not(.m-flat) polygon, +.m-graph.m-info g.m-edge text, +.m-graph.m-info g.m-node.m-flat text { fill: #2f83cc; } -div.m-graph.m-info svg g.m-edge polygon, -div.m-graph.m-info svg g.m-edge path, -div.m-graph.m-info svg g.m-node ellipse, -div.m-graph.m-info svg g.m-node polygon, -div.m-graph.m-info svg g.m-node polyline { +.m-graph.m-info g.m-edge polygon, +.m-graph.m-info g.m-edge path, +.m-graph.m-info g.m-node ellipse, +.m-graph.m-info g.m-node polygon, +.m-graph.m-info g.m-node polyline { stroke: #2f83cc; } -div.m-math.m-dim svg, svg.m-math.m-dim, -div.m-math svg g.m-dim, svg.m-math g.m-dim, -div.m-math svg rect.m-dim, svg.m-math rect.m-dim, +.m-math.m-dim, .m-math g.m-dim, .m-math rect.m-dim, div.m-plot svg .m-bar.m-dim, -div.m-graph.m-dim svg g.m-edge polygon, -div.m-graph.m-dim svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-dim svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-dim svg g.m-edge text, -div.m-graph.m-dim svg g.m-node.m-flat text { +.m-graph.m-dim g.m-edge polygon, +.m-graph.m-dim g.m-node:not(.m-flat) ellipse, +.m-graph.m-dim g.m-node:not(.m-flat) polygon, +.m-graph.m-dim g.m-edge text, +.m-graph.m-dim g.m-node.m-flat text { fill: #747474; } -div.m-graph.m-dim svg g.m-edge polygon, -div.m-graph.m-dim svg g.m-edge path, -div.m-graph.m-dim svg g.m-node ellipse, -div.m-graph.m-dim svg g.m-node polygon, -div.m-graph.m-dim svg g.m-node polyline { +.m-graph.m-dim g.m-edge polygon, +.m-graph.m-dim g.m-edge path, +.m-graph.m-dim g.m-node ellipse, +.m-graph.m-dim g.m-node polygon, +.m-graph.m-dim g.m-node polyline { stroke: #747474; } -div.m-graph svg g.m-edge.m-default polygon, -div.m-graph svg g.m-node.m-default:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-default:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-default text, -div.m-graph svg g.m-node.m-default.m-flat text { +.m-graph g.m-edge.m-default polygon, +.m-graph g.m-node.m-default:not(.m-flat) ellipse, +.m-graph g.m-node.m-default:not(.m-flat) polygon, +.m-graph g.m-edge.m-default text, +.m-graph g.m-node.m-default.m-flat text { fill: #dcdcdc; } -div.m-graph svg g.m-edge.m-default polygon, -div.m-graph svg g.m-edge.m-default path, -div.m-graph svg g.m-node.m-default ellipse, -div.m-graph svg g.m-node.m-default polygon, -div.m-graph svg g.m-node.m-default polyline { +.m-graph g.m-edge.m-default polygon, +.m-graph g.m-edge.m-default path, +.m-graph g.m-node.m-default ellipse, +.m-graph g.m-node.m-default polygon, +.m-graph g.m-node.m-default polyline { stroke: #dcdcdc; } -div.m-graph svg g.m-edge.m-primary polygon, -div.m-graph svg g.m-node.m-primary:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-primary:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-primary text, -div.m-graph svg g.m-node.m-primary.m-flat text { +.m-graph g.m-edge.m-primary polygon, +.m-graph g.m-node.m-primary:not(.m-flat) ellipse, +.m-graph g.m-node.m-primary:not(.m-flat) polygon, +.m-graph g.m-edge.m-primary text, +.m-graph g.m-node.m-primary.m-flat text { fill: #a5c9ea; } -div.m-graph svg g.m-edge.m-primary polygon, -div.m-graph svg g.m-edge.m-primary path, -div.m-graph svg g.m-node.m-primary ellipse, -div.m-graph svg g.m-node.m-primary polygon, -div.m-graph svg g.m-node.m-primary polyline { +.m-graph g.m-edge.m-primary polygon, +.m-graph g.m-edge.m-primary path, +.m-graph g.m-node.m-primary ellipse, +.m-graph g.m-node.m-primary polygon, +.m-graph g.m-node.m-primary polyline { stroke: #a5c9ea; } -div.m-graph svg g.m-edge.m-success polygon, -div.m-graph svg g.m-node.m-success:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-success:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-success text, -div.m-graph svg g.m-node.m-success.m-flat text { +.m-graph g.m-edge.m-success polygon, +.m-graph g.m-node.m-success:not(.m-flat) ellipse, +.m-graph g.m-node.m-success:not(.m-flat) polygon, +.m-graph g.m-edge.m-success text, +.m-graph g.m-node.m-success.m-flat text { fill: #3bd267; } -div.m-graph svg g.m-edge.m-success polygon, -div.m-graph svg g.m-edge.m-success path, -div.m-graph svg g.m-node.m-success ellipse, -div.m-graph svg g.m-node.m-success polygon, -div.m-graph svg g.m-node.m-success polyline { +.m-graph g.m-edge.m-success polygon, +.m-graph g.m-edge.m-success path, +.m-graph g.m-node.m-success ellipse, +.m-graph g.m-node.m-success polygon, +.m-graph g.m-node.m-success polyline { stroke: #3bd267; } -div.m-graph svg g.m-edge.m-warning polygon, -div.m-graph svg g.m-node.m-warning:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-warning:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-warning text, -div.m-graph svg g.m-node.m-warning.m-flat text { +.m-graph g.m-edge.m-warning polygon, +.m-graph g.m-node.m-warning:not(.m-flat) ellipse, +.m-graph g.m-node.m-warning:not(.m-flat) polygon, +.m-graph g.m-edge.m-warning text, +.m-graph g.m-node.m-warning.m-flat text { fill: #c7cf2f; } -div.m-graph svg g.m-edge.m-warning polygon, -div.m-graph svg g.m-edge.m-warning path, -div.m-graph svg g.m-node.m-warning ellipse, -div.m-graph svg g.m-node.m-warning polygon, -div.m-graph svg g.m-node.m-warning polyline { +.m-graph g.m-edge.m-warning polygon, +.m-graph g.m-edge.m-warning path, +.m-graph g.m-node.m-warning ellipse, +.m-graph g.m-node.m-warning polygon, +.m-graph g.m-node.m-warning polyline { stroke: #c7cf2f; } -div.m-graph svg g.m-edge.m-danger polygon, -div.m-graph svg g.m-node.m-danger:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-danger:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-danger text, -div.m-graph svg g.m-node.m-danger.m-flat text { +.m-graph g.m-edge.m-danger polygon, +.m-graph g.m-node.m-danger:not(.m-flat) ellipse, +.m-graph g.m-node.m-danger:not(.m-flat) polygon, +.m-graph g.m-edge.m-danger text, +.m-graph g.m-node.m-danger.m-flat text { fill: #cd3431; } -div.m-graph svg g.m-edge.m-danger polygon, -div.m-graph svg g.m-edge.m-danger path, -div.m-graph svg g.m-node.m-danger ellipse, -div.m-graph svg g.m-node.m-danger polygon, -div.m-graph svg g.m-node.m-danger polyline { +.m-graph g.m-edge.m-danger polygon, +.m-graph g.m-edge.m-danger path, +.m-graph g.m-node.m-danger ellipse, +.m-graph g.m-node.m-danger polygon, +.m-graph g.m-node.m-danger polyline { stroke: #cd3431; } -div.m-graph svg g.m-edge.m-info polygon, -div.m-graph svg g.m-node.m-info:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-info:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-info text, -div.m-graph svg g.m-node.m-info.m-flat text { +.m-graph g.m-edge.m-info polygon, +.m-graph g.m-node.m-info:not(.m-flat) ellipse, +.m-graph g.m-node.m-info:not(.m-flat) polygon, +.m-graph g.m-edge.m-info text, +.m-graph g.m-node.m-info.m-flat text { fill: #2f83cc; } -div.m-graph svg g.m-edge.m-info polygon, -div.m-graph svg g.m-edge.m-info path, -div.m-graph svg g.m-node.m-info ellipse, -div.m-graph svg g.m-node.m-info polygon, -div.m-graph svg g.m-node.m-info polyline { +.m-graph g.m-edge.m-info polygon, +.m-graph g.m-edge.m-info path, +.m-graph g.m-node.m-info ellipse, +.m-graph g.m-node.m-info polygon, +.m-graph g.m-node.m-info polyline { stroke: #2f83cc; } -div.m-graph svg g.m-edge.m-dim polygon, -div.m-graph svg g.m-node.m-dim:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-dim:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-dim text, -div.m-graph svg g.m-node.m-dim.m-flat text { +.m-graph g.m-edge.m-dim polygon, +.m-graph g.m-node.m-dim:not(.m-flat) ellipse, +.m-graph g.m-node.m-dim:not(.m-flat) polygon, +.m-graph g.m-edge.m-dim text, +.m-graph g.m-node.m-dim.m-flat text { fill: #747474; } -div.m-graph svg g.m-edge.m-dim polygon, -div.m-graph svg g.m-edge.m-dim path, -div.m-graph svg g.m-node.m-dim ellipse, -div.m-graph svg g.m-node.m-dim polygon, -div.m-graph svg g.m-node.m-dim polyline { +.m-graph g.m-edge.m-dim polygon, +.m-graph g.m-edge.m-dim path, +.m-graph g.m-node.m-dim ellipse, +.m-graph g.m-node.m-dim polygon, +.m-graph g.m-node.m-dim polyline { stroke: #747474; } p, ul, ol, dl, blockquote, pre, .m-code-figure, .m-console-figure, hr, .m-note, diff --git a/css/m-dark.compiled.css b/css/m-dark.compiled.css index 56e3680e..47a98d46 100644 --- a/css/m-dark.compiled.css +++ b/css/m-dark.compiled.css @@ -1063,12 +1063,6 @@ figure.m-figure.m-flat img, figure.m-figure.m-flat svg { border-bottom-left-radius: 0.2rem; border-bottom-right-radius: 0.2rem; } -figure.m-figure figcaption { - margin-top: 0.5rem; - margin-bottom: 0.5rem; - font-weight: 600; - font-size: 1.17rem; -} figure.m-figure a img, figure.m-figure a svg { margin-left: -1rem; margin-right: -1rem; @@ -1122,6 +1116,12 @@ figure.m-figure.m-fullwidth:after { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } +figure.m-figure figcaption, .m-code-figure figcaption, .m-console-figure figcaption { + margin-top: 0.5rem; + margin-bottom: 0.5rem; + font-weight: 600; + font-size: 1.17rem; +} figure.m-figure.m-default:before { border-color: #34424d; } figure.m-figure.m-default figcaption { color: #dcdcdc; } figure.m-figure.m-primary:before { border-color: #a5c2db; } @@ -1291,7 +1291,7 @@ div.m-button.m-flat a:hover svg.m-math, div.m-button.m-default a:focus svg.m-mat div.m-button.m-default a:active svg.m-math { fill: #a5c9ea; } -div.m-graph { font-size: 16px; } +.m-graph { font-size: 16px; } div.m-plot svg, div.m-graph svg { max-width: 100%; margin-left: auto; @@ -1311,246 +1311,241 @@ div.m-plot svg .m-error { stroke-width: 1.5; } div.m-plot svg .m-label.m-dim { fill: #747474; } -div.m-graph svg g.m-edge path, div.m-graph svg g.m-node.m-flat ellipse, -div.m-graph svg g.m-node.m-flat polygon { +.m-graph g.m-edge path, .m-graph g.m-node.m-flat ellipse, +.m-graph g.m-node.m-flat polygon { fill: none; } -div.m-graph svg g.m-node:not(.m-flat) text { +.m-graph g.m-node:not(.m-flat) text { fill: #22272e; } -div.m-math svg, svg.m-math { fill: #dcdcdc; } -div.m-math.m-default svg, svg.m-math.m-default, -div.m-math svg g.m-default, svg.m-math g.m-default, -div.m-math svg rect.m-default, svg.m-math rect.m-default, +figure.m-figure > svg.m-math:first-child, +figure.m-figure > svg.m-graph:first-child { + padding: 1rem; + box-sizing: content-box; +} +figure.m-figure:not(.m-flat) > svg.m-math:first-child, +figure.m-figure:not(.m-flat) > svg.m-graph:first-child { + background-color: #405363; +} +.m-math { fill: #dcdcdc; } +.m-math.m-default, .m-math g.m-default, .m-math rect.m-default, div.m-plot svg .m-bar.m-default, -div.m-graph svg g.m-edge polygon, -div.m-graph svg g.m-node:not(.m-flat) ellipse, -div.m-graph svg g.m-node:not(.m-flat) polygon, -div.m-graph svg g.m-edge text, -div.m-graph svg g.m-node.m-flat text, -div.m-graph.m-default svg g.m-edge polygon, -div.m-graph.m-default svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-default svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-default svg g.m-edge text, -div.m-graph.m-default svg g.m-node.m-flat text { +.m-graph g.m-edge polygon, +.m-graph g.m-node:not(.m-flat) ellipse, +.m-graph g.m-node:not(.m-flat) polygon, +.m-graph g.m-edge text, +.m-graph g.m-node.m-flat text, +.m-graph.m-default g.m-edge polygon, +.m-graph.m-default g.m-node:not(.m-flat) ellipse, +.m-graph.m-default g.m-node:not(.m-flat) polygon, +.m-graph.m-default g.m-edge text, +.m-graph.m-default g.m-node.m-flat text { fill: #dcdcdc; } -div.m-graph svg g.m-edge polygon, -div.m-graph svg g.m-edge path, -div.m-graph svg g.m-node ellipse, -div.m-graph svg g.m-node polygon, -div.m-graph svg g.m-node polyline, -div.m-graph.m-default svg g.m-edge polygon, -div.m-graph.m-default svg g.m-edge path, -div.m-graph.m-default svg g.m-node ellipse, -div.m-graph.m-default svg g.m-node polygon, -div.m-graph.m-default svg g.m-node polyline { +.m-graph g.m-edge polygon, +.m-graph g.m-edge path, +.m-graph g.m-node ellipse, +.m-graph g.m-node polygon, +.m-graph g.m-node polyline, +.m-graph.m-default g.m-edge polygon, +.m-graph.m-default g.m-edge path, +.m-graph.m-default g.m-node ellipse, +.m-graph.m-default g.m-node polygon, +.m-graph.m-default g.m-node polyline { stroke: #dcdcdc; } -div.m-math.m-primary svg, svg.m-math.m-primary, -div.m-math svg g.m-primary, svg.m-math g.m-primary, -div.m-math svg rect.m-primary, svg.m-math rect.m-primary, +.m-math.m-primary, .m-math g.m-primary, .m-math rect.m-primary, div.m-plot svg .m-bar.m-primary, -div.m-graph.m-primary svg g.m-edge polygon, -div.m-graph.m-primary svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-primary svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-primary svg g.m-edge text, -div.m-graph.m-primary svg g.m-node.m-flat text { +.m-graph.m-primary g.m-edge polygon, +.m-graph.m-primary g.m-node:not(.m-flat) ellipse, +.m-graph.m-primary g.m-node:not(.m-flat) polygon, +.m-graph.m-primary g.m-edge text, +.m-graph.m-primary g.m-node.m-flat text { fill: #a5c9ea; } -div.m-graph.m-primary svg g.m-edge polygon, -div.m-graph.m-primary svg g.m-edge path, -div.m-graph.m-primary svg g.m-node ellipse, -div.m-graph.m-primary svg g.m-node polygon, -div.m-graph.m-primary svg g.m-node polyline { +.m-graph.m-primary g.m-edge polygon, +.m-graph.m-primary g.m-edge path, +.m-graph.m-primary g.m-node ellipse, +.m-graph.m-primary g.m-node polygon, +.m-graph.m-primary g.m-node polyline { stroke: #a5c9ea; } -div.m-math.m-success svg, svg.m-math.m-success, -div.m-math svg g.m-success, svg.m-math g.m-success, -div.m-math svg rect.m-success, svg.m-math rect.m-success, +.m-math.m-success, .m-math g.m-success, .m-math rect.m-success, div.m-plot svg .m-bar.m-success, -div.m-graph.m-success svg g.m-edge polygon, -div.m-graph.m-success svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-success svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-success svg g.m-edge text, -div.m-graph.m-success svg g.m-node.m-flat text { +.m-graph.m-success g.m-edge polygon, +.m-graph.m-success g.m-node:not(.m-flat) ellipse, +.m-graph.m-success g.m-node:not(.m-flat) polygon, +.m-graph.m-success g.m-edge text, +.m-graph.m-success g.m-node.m-flat text { fill: #3bd267; } -div.m-graph.m-success svg g.m-edge polygon, -div.m-graph.m-success svg g.m-edge path, -div.m-graph.m-success svg g.m-node ellipse, -div.m-graph.m-success svg g.m-node polygon, -div.m-graph.m-success svg g.m-node polyline { +.m-graph.m-success g.m-edge polygon, +.m-graph.m-success g.m-edge path, +.m-graph.m-success g.m-node ellipse, +.m-graph.m-success g.m-node polygon, +.m-graph.m-success g.m-node polyline { stroke: #3bd267; } -div.m-math.m-warning svg, svg.m-math.m-warning, -div.m-math svg g.m-warning, svg.m-math g.m-warning, -div.m-math svg rect.m-warning, svg.m-math rect.m-warning, +.m-math.m-warning, .m-math g.m-warning, .m-math rect.m-warning, div.m-plot svg .m-bar.m-warning, -div.m-graph.m-warning svg g.m-edge polygon, -div.m-graph.m-warning svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-warning svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-warning svg g.m-edge text, -div.m-graph.m-warning svg g.m-node.m-flat text { +.m-graph.m-warning g.m-edge polygon, +.m-graph.m-warning g.m-node:not(.m-flat) ellipse, +.m-graph.m-warning g.m-node:not(.m-flat) polygon, +.m-graph.m-warning g.m-edge text, +.m-graph.m-warning g.m-node.m-flat text { fill: #c7cf2f; } -div.m-graph.m-warning svg g.m-edge polygon, -div.m-graph.m-warning svg g.m-edge path, -div.m-graph.m-warning svg g.m-node ellipse, -div.m-graph.m-warning svg g.m-node polygon, -div.m-graph.m-warning svg g.m-node polyline { +.m-graph.m-warning g.m-edge polygon, +.m-graph.m-warning g.m-edge path, +.m-graph.m-warning g.m-node ellipse, +.m-graph.m-warning g.m-node polygon, +.m-graph.m-warning g.m-node polyline { stroke: #c7cf2f; } -div.m-math.m-danger svg, svg.m-math.m-danger, -div.m-math svg g.m-danger, svg.m-math g.m-danger, -div.m-math svg rect.m-danger, svg.m-math rect.m-danger, +.m-math.m-danger, .m-math g.m-danger, .m-math rect.m-danger, div.m-plot svg .m-bar.m-danger, -div.m-graph.m-danger svg g.m-edge polygon, -div.m-graph.m-danger svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-danger svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-danger svg g.m-edge text, -div.m-graph.m-danger svg g.m-node.m-flat text { +.m-graph.m-danger g.m-edge polygon, +.m-graph.m-danger g.m-node:not(.m-flat) ellipse, +.m-graph.m-danger g.m-node:not(.m-flat) polygon, +.m-graph.m-danger g.m-edge text, +.m-graph.m-danger g.m-node.m-flat text { fill: #cd3431; } -div.m-graph.m-danger svg g.m-edge polygon, -div.m-graph.m-danger svg g.m-edge path, -div.m-graph.m-danger svg g.m-node ellipse, -div.m-graph.m-danger svg g.m-node polygon, -div.m-graph.m-danger svg g.m-node polyline { +.m-graph.m-danger g.m-edge polygon, +.m-graph.m-danger g.m-edge path, +.m-graph.m-danger g.m-node ellipse, +.m-graph.m-danger g.m-node polygon, +.m-graph.m-danger g.m-node polyline { stroke: #cd3431; } -div.m-math.m-info svg, svg.m-math.m-info, -div.m-math svg g.m-info, svg.m-math g.m-info, -div.m-math svg rect.m-info, svg.m-math rect.m-info, +.m-math.m-info, .m-math g.m-info, .m-math rect.m-info, div.m-plot svg .m-bar.m-info, -div.m-graph.m-info svg g.m-edge polygon, -div.m-graph.m-info svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-info svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-info svg g.m-edge text, -div.m-graph.m-info svg g.m-node.m-flat text { +.m-graph.m-info g.m-edge polygon, +.m-graph.m-info g.m-node:not(.m-flat) ellipse, +.m-graph.m-info g.m-node:not(.m-flat) polygon, +.m-graph.m-info g.m-edge text, +.m-graph.m-info g.m-node.m-flat text { fill: #2f83cc; } -div.m-graph.m-info svg g.m-edge polygon, -div.m-graph.m-info svg g.m-edge path, -div.m-graph.m-info svg g.m-node ellipse, -div.m-graph.m-info svg g.m-node polygon, -div.m-graph.m-info svg g.m-node polyline { +.m-graph.m-info g.m-edge polygon, +.m-graph.m-info g.m-edge path, +.m-graph.m-info g.m-node ellipse, +.m-graph.m-info g.m-node polygon, +.m-graph.m-info g.m-node polyline { stroke: #2f83cc; } -div.m-math.m-dim svg, svg.m-math.m-dim, -div.m-math svg g.m-dim, svg.m-math g.m-dim, -div.m-math svg rect.m-dim, svg.m-math rect.m-dim, +.m-math.m-dim, .m-math g.m-dim, .m-math rect.m-dim, div.m-plot svg .m-bar.m-dim, -div.m-graph.m-dim svg g.m-edge polygon, -div.m-graph.m-dim svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-dim svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-dim svg g.m-edge text, -div.m-graph.m-dim svg g.m-node.m-flat text { +.m-graph.m-dim g.m-edge polygon, +.m-graph.m-dim g.m-node:not(.m-flat) ellipse, +.m-graph.m-dim g.m-node:not(.m-flat) polygon, +.m-graph.m-dim g.m-edge text, +.m-graph.m-dim g.m-node.m-flat text { fill: #747474; } -div.m-graph.m-dim svg g.m-edge polygon, -div.m-graph.m-dim svg g.m-edge path, -div.m-graph.m-dim svg g.m-node ellipse, -div.m-graph.m-dim svg g.m-node polygon, -div.m-graph.m-dim svg g.m-node polyline { +.m-graph.m-dim g.m-edge polygon, +.m-graph.m-dim g.m-edge path, +.m-graph.m-dim g.m-node ellipse, +.m-graph.m-dim g.m-node polygon, +.m-graph.m-dim g.m-node polyline { stroke: #747474; } -div.m-graph svg g.m-edge.m-default polygon, -div.m-graph svg g.m-node.m-default:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-default:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-default text, -div.m-graph svg g.m-node.m-default.m-flat text { +.m-graph g.m-edge.m-default polygon, +.m-graph g.m-node.m-default:not(.m-flat) ellipse, +.m-graph g.m-node.m-default:not(.m-flat) polygon, +.m-graph g.m-edge.m-default text, +.m-graph g.m-node.m-default.m-flat text { fill: #dcdcdc; } -div.m-graph svg g.m-edge.m-default polygon, -div.m-graph svg g.m-edge.m-default path, -div.m-graph svg g.m-node.m-default ellipse, -div.m-graph svg g.m-node.m-default polygon, -div.m-graph svg g.m-node.m-default polyline { +.m-graph g.m-edge.m-default polygon, +.m-graph g.m-edge.m-default path, +.m-graph g.m-node.m-default ellipse, +.m-graph g.m-node.m-default polygon, +.m-graph g.m-node.m-default polyline { stroke: #dcdcdc; } -div.m-graph svg g.m-edge.m-primary polygon, -div.m-graph svg g.m-node.m-primary:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-primary:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-primary text, -div.m-graph svg g.m-node.m-primary.m-flat text { +.m-graph g.m-edge.m-primary polygon, +.m-graph g.m-node.m-primary:not(.m-flat) ellipse, +.m-graph g.m-node.m-primary:not(.m-flat) polygon, +.m-graph g.m-edge.m-primary text, +.m-graph g.m-node.m-primary.m-flat text { fill: #a5c9ea; } -div.m-graph svg g.m-edge.m-primary polygon, -div.m-graph svg g.m-edge.m-primary path, -div.m-graph svg g.m-node.m-primary ellipse, -div.m-graph svg g.m-node.m-primary polygon, -div.m-graph svg g.m-node.m-primary polyline { +.m-graph g.m-edge.m-primary polygon, +.m-graph g.m-edge.m-primary path, +.m-graph g.m-node.m-primary ellipse, +.m-graph g.m-node.m-primary polygon, +.m-graph g.m-node.m-primary polyline { stroke: #a5c9ea; } -div.m-graph svg g.m-edge.m-success polygon, -div.m-graph svg g.m-node.m-success:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-success:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-success text, -div.m-graph svg g.m-node.m-success.m-flat text { +.m-graph g.m-edge.m-success polygon, +.m-graph g.m-node.m-success:not(.m-flat) ellipse, +.m-graph g.m-node.m-success:not(.m-flat) polygon, +.m-graph g.m-edge.m-success text, +.m-graph g.m-node.m-success.m-flat text { fill: #3bd267; } -div.m-graph svg g.m-edge.m-success polygon, -div.m-graph svg g.m-edge.m-success path, -div.m-graph svg g.m-node.m-success ellipse, -div.m-graph svg g.m-node.m-success polygon, -div.m-graph svg g.m-node.m-success polyline { +.m-graph g.m-edge.m-success polygon, +.m-graph g.m-edge.m-success path, +.m-graph g.m-node.m-success ellipse, +.m-graph g.m-node.m-success polygon, +.m-graph g.m-node.m-success polyline { stroke: #3bd267; } -div.m-graph svg g.m-edge.m-warning polygon, -div.m-graph svg g.m-node.m-warning:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-warning:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-warning text, -div.m-graph svg g.m-node.m-warning.m-flat text { +.m-graph g.m-edge.m-warning polygon, +.m-graph g.m-node.m-warning:not(.m-flat) ellipse, +.m-graph g.m-node.m-warning:not(.m-flat) polygon, +.m-graph g.m-edge.m-warning text, +.m-graph g.m-node.m-warning.m-flat text { fill: #c7cf2f; } -div.m-graph svg g.m-edge.m-warning polygon, -div.m-graph svg g.m-edge.m-warning path, -div.m-graph svg g.m-node.m-warning ellipse, -div.m-graph svg g.m-node.m-warning polygon, -div.m-graph svg g.m-node.m-warning polyline { +.m-graph g.m-edge.m-warning polygon, +.m-graph g.m-edge.m-warning path, +.m-graph g.m-node.m-warning ellipse, +.m-graph g.m-node.m-warning polygon, +.m-graph g.m-node.m-warning polyline { stroke: #c7cf2f; } -div.m-graph svg g.m-edge.m-danger polygon, -div.m-graph svg g.m-node.m-danger:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-danger:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-danger text, -div.m-graph svg g.m-node.m-danger.m-flat text { +.m-graph g.m-edge.m-danger polygon, +.m-graph g.m-node.m-danger:not(.m-flat) ellipse, +.m-graph g.m-node.m-danger:not(.m-flat) polygon, +.m-graph g.m-edge.m-danger text, +.m-graph g.m-node.m-danger.m-flat text { fill: #cd3431; } -div.m-graph svg g.m-edge.m-danger polygon, -div.m-graph svg g.m-edge.m-danger path, -div.m-graph svg g.m-node.m-danger ellipse, -div.m-graph svg g.m-node.m-danger polygon, -div.m-graph svg g.m-node.m-danger polyline { +.m-graph g.m-edge.m-danger polygon, +.m-graph g.m-edge.m-danger path, +.m-graph g.m-node.m-danger ellipse, +.m-graph g.m-node.m-danger polygon, +.m-graph g.m-node.m-danger polyline { stroke: #cd3431; } -div.m-graph svg g.m-edge.m-info polygon, -div.m-graph svg g.m-node.m-info:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-info:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-info text, -div.m-graph svg g.m-node.m-info.m-flat text { +.m-graph g.m-edge.m-info polygon, +.m-graph g.m-node.m-info:not(.m-flat) ellipse, +.m-graph g.m-node.m-info:not(.m-flat) polygon, +.m-graph g.m-edge.m-info text, +.m-graph g.m-node.m-info.m-flat text { fill: #2f83cc; } -div.m-graph svg g.m-edge.m-info polygon, -div.m-graph svg g.m-edge.m-info path, -div.m-graph svg g.m-node.m-info ellipse, -div.m-graph svg g.m-node.m-info polygon, -div.m-graph svg g.m-node.m-info polyline { +.m-graph g.m-edge.m-info polygon, +.m-graph g.m-edge.m-info path, +.m-graph g.m-node.m-info ellipse, +.m-graph g.m-node.m-info polygon, +.m-graph g.m-node.m-info polyline { stroke: #2f83cc; } -div.m-graph svg g.m-edge.m-dim polygon, -div.m-graph svg g.m-node.m-dim:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-dim:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-dim text, -div.m-graph svg g.m-node.m-dim.m-flat text { +.m-graph g.m-edge.m-dim polygon, +.m-graph g.m-node.m-dim:not(.m-flat) ellipse, +.m-graph g.m-node.m-dim:not(.m-flat) polygon, +.m-graph g.m-edge.m-dim text, +.m-graph g.m-node.m-dim.m-flat text { fill: #747474; } -div.m-graph svg g.m-edge.m-dim polygon, -div.m-graph svg g.m-edge.m-dim path, -div.m-graph svg g.m-node.m-dim ellipse, -div.m-graph svg g.m-node.m-dim polygon, -div.m-graph svg g.m-node.m-dim polyline { +.m-graph g.m-edge.m-dim polygon, +.m-graph g.m-edge.m-dim path, +.m-graph g.m-node.m-dim ellipse, +.m-graph g.m-node.m-dim polygon, +.m-graph g.m-node.m-dim polyline { stroke: #747474; } p, ul, ol, dl, blockquote, pre, .m-code-figure, .m-console-figure, hr, .m-note, diff --git a/css/m-light+doxygen.compiled.css b/css/m-light+doxygen.compiled.css index ee65c20b..6229d5f7 100644 --- a/css/m-light+doxygen.compiled.css +++ b/css/m-light+doxygen.compiled.css @@ -1063,12 +1063,6 @@ figure.m-figure.m-flat img, figure.m-figure.m-flat svg { border-bottom-left-radius: 0.2rem; border-bottom-right-radius: 0.2rem; } -figure.m-figure figcaption { - margin-top: 0.5rem; - margin-bottom: 0.5rem; - font-weight: normal; - font-size: 1.17rem; -} figure.m-figure a img, figure.m-figure a svg { margin-left: -1rem; margin-right: -1rem; @@ -1122,6 +1116,12 @@ figure.m-figure.m-fullwidth:after { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } +figure.m-figure figcaption, .m-code-figure figcaption, .m-console-figure figcaption { + margin-top: 0.5rem; + margin-bottom: 0.5rem; + font-weight: normal; + font-size: 1.17rem; +} figure.m-figure.m-default:before { border-color: #fbf0ec; } figure.m-figure.m-default figcaption { color: #000000; } figure.m-figure.m-primary:before { border-color: #ef9069; } @@ -1291,7 +1291,7 @@ div.m-button.m-flat a:hover svg.m-math, div.m-button.m-default a:focus svg.m-mat div.m-button.m-default a:active svg.m-math { fill: #cb4b16; } -div.m-graph { font-size: 14px; } +.m-graph { font-size: 14px; } div.m-plot svg, div.m-graph svg { max-width: 100%; margin-left: auto; @@ -1311,246 +1311,241 @@ div.m-plot svg .m-error { stroke-width: 1.5; } div.m-plot svg .m-label.m-dim { fill: #bdbdbd; } -div.m-graph svg g.m-edge path, div.m-graph svg g.m-node.m-flat ellipse, -div.m-graph svg g.m-node.m-flat polygon { +.m-graph g.m-edge path, .m-graph g.m-node.m-flat ellipse, +.m-graph g.m-node.m-flat polygon { fill: none; } -div.m-graph svg g.m-node:not(.m-flat) text { +.m-graph g.m-node:not(.m-flat) text { fill: #ffffff; } -div.m-math svg, svg.m-math { fill: #000000; } -div.m-math.m-default svg, svg.m-math.m-default, -div.m-math svg g.m-default, svg.m-math g.m-default, -div.m-math svg rect.m-default, svg.m-math rect.m-default, +figure.m-figure > svg.m-math:first-child, +figure.m-figure > svg.m-graph:first-child { + padding: 1rem; + box-sizing: content-box; +} +figure.m-figure:not(.m-flat) > svg.m-math:first-child, +figure.m-figure:not(.m-flat) > svg.m-graph:first-child { + background-color: #f7e3db; +} +.m-math { fill: #000000; } +.m-math.m-default, .m-math g.m-default, .m-math rect.m-default, div.m-plot svg .m-bar.m-default, -div.m-graph svg g.m-edge polygon, -div.m-graph svg g.m-node:not(.m-flat) ellipse, -div.m-graph svg g.m-node:not(.m-flat) polygon, -div.m-graph svg g.m-edge text, -div.m-graph svg g.m-node.m-flat text, -div.m-graph.m-default svg g.m-edge polygon, -div.m-graph.m-default svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-default svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-default svg g.m-edge text, -div.m-graph.m-default svg g.m-node.m-flat text { +.m-graph g.m-edge polygon, +.m-graph g.m-node:not(.m-flat) ellipse, +.m-graph g.m-node:not(.m-flat) polygon, +.m-graph g.m-edge text, +.m-graph g.m-node.m-flat text, +.m-graph.m-default g.m-edge polygon, +.m-graph.m-default g.m-node:not(.m-flat) ellipse, +.m-graph.m-default g.m-node:not(.m-flat) polygon, +.m-graph.m-default g.m-edge text, +.m-graph.m-default g.m-node.m-flat text { fill: #000000; } -div.m-graph svg g.m-edge polygon, -div.m-graph svg g.m-edge path, -div.m-graph svg g.m-node ellipse, -div.m-graph svg g.m-node polygon, -div.m-graph svg g.m-node polyline, -div.m-graph.m-default svg g.m-edge polygon, -div.m-graph.m-default svg g.m-edge path, -div.m-graph.m-default svg g.m-node ellipse, -div.m-graph.m-default svg g.m-node polygon, -div.m-graph.m-default svg g.m-node polyline { +.m-graph g.m-edge polygon, +.m-graph g.m-edge path, +.m-graph g.m-node ellipse, +.m-graph g.m-node polygon, +.m-graph g.m-node polyline, +.m-graph.m-default g.m-edge polygon, +.m-graph.m-default g.m-edge path, +.m-graph.m-default g.m-node ellipse, +.m-graph.m-default g.m-node polygon, +.m-graph.m-default g.m-node polyline { stroke: #000000; } -div.m-math.m-primary svg, svg.m-math.m-primary, -div.m-math svg g.m-primary, svg.m-math g.m-primary, -div.m-math svg rect.m-primary, svg.m-math rect.m-primary, +.m-math.m-primary, .m-math g.m-primary, .m-math rect.m-primary, div.m-plot svg .m-bar.m-primary, -div.m-graph.m-primary svg g.m-edge polygon, -div.m-graph.m-primary svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-primary svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-primary svg g.m-edge text, -div.m-graph.m-primary svg g.m-node.m-flat text { +.m-graph.m-primary g.m-edge polygon, +.m-graph.m-primary g.m-node:not(.m-flat) ellipse, +.m-graph.m-primary g.m-node:not(.m-flat) polygon, +.m-graph.m-primary g.m-edge text, +.m-graph.m-primary g.m-node.m-flat text { fill: #cb4b16; } -div.m-graph.m-primary svg g.m-edge polygon, -div.m-graph.m-primary svg g.m-edge path, -div.m-graph.m-primary svg g.m-node ellipse, -div.m-graph.m-primary svg g.m-node polygon, -div.m-graph.m-primary svg g.m-node polyline { +.m-graph.m-primary g.m-edge polygon, +.m-graph.m-primary g.m-edge path, +.m-graph.m-primary g.m-node ellipse, +.m-graph.m-primary g.m-node polygon, +.m-graph.m-primary g.m-node polyline { stroke: #cb4b16; } -div.m-math.m-success svg, svg.m-math.m-success, -div.m-math svg g.m-success, svg.m-math g.m-success, -div.m-math svg rect.m-success, svg.m-math rect.m-success, +.m-math.m-success, .m-math g.m-success, .m-math rect.m-success, div.m-plot svg .m-bar.m-success, -div.m-graph.m-success svg g.m-edge polygon, -div.m-graph.m-success svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-success svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-success svg g.m-edge text, -div.m-graph.m-success svg g.m-node.m-flat text { +.m-graph.m-success g.m-edge polygon, +.m-graph.m-success g.m-node:not(.m-flat) ellipse, +.m-graph.m-success g.m-node:not(.m-flat) polygon, +.m-graph.m-success g.m-edge text, +.m-graph.m-success g.m-node.m-flat text { fill: #31c25d; } -div.m-graph.m-success svg g.m-edge polygon, -div.m-graph.m-success svg g.m-edge path, -div.m-graph.m-success svg g.m-node ellipse, -div.m-graph.m-success svg g.m-node polygon, -div.m-graph.m-success svg g.m-node polyline { +.m-graph.m-success g.m-edge polygon, +.m-graph.m-success g.m-edge path, +.m-graph.m-success g.m-node ellipse, +.m-graph.m-success g.m-node polygon, +.m-graph.m-success g.m-node polyline { stroke: #31c25d; } -div.m-math.m-warning svg, svg.m-math.m-warning, -div.m-math svg g.m-warning, svg.m-math g.m-warning, -div.m-math svg rect.m-warning, svg.m-math rect.m-warning, +.m-math.m-warning, .m-math g.m-warning, .m-math rect.m-warning, div.m-plot svg .m-bar.m-warning, -div.m-graph.m-warning svg g.m-edge polygon, -div.m-graph.m-warning svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-warning svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-warning svg g.m-edge text, -div.m-graph.m-warning svg g.m-node.m-flat text { +.m-graph.m-warning g.m-edge polygon, +.m-graph.m-warning g.m-node:not(.m-flat) ellipse, +.m-graph.m-warning g.m-node:not(.m-flat) polygon, +.m-graph.m-warning g.m-edge text, +.m-graph.m-warning g.m-node.m-flat text { fill: #c7cf2f; } -div.m-graph.m-warning svg g.m-edge polygon, -div.m-graph.m-warning svg g.m-edge path, -div.m-graph.m-warning svg g.m-node ellipse, -div.m-graph.m-warning svg g.m-node polygon, -div.m-graph.m-warning svg g.m-node polyline { +.m-graph.m-warning g.m-edge polygon, +.m-graph.m-warning g.m-edge path, +.m-graph.m-warning g.m-node ellipse, +.m-graph.m-warning g.m-node polygon, +.m-graph.m-warning g.m-node polyline { stroke: #c7cf2f; } -div.m-math.m-danger svg, svg.m-math.m-danger, -div.m-math svg g.m-danger, svg.m-math g.m-danger, -div.m-math svg rect.m-danger, svg.m-math rect.m-danger, +.m-math.m-danger, .m-math g.m-danger, .m-math rect.m-danger, div.m-plot svg .m-bar.m-danger, -div.m-graph.m-danger svg g.m-edge polygon, -div.m-graph.m-danger svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-danger svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-danger svg g.m-edge text, -div.m-graph.m-danger svg g.m-node.m-flat text { +.m-graph.m-danger g.m-edge polygon, +.m-graph.m-danger g.m-node:not(.m-flat) ellipse, +.m-graph.m-danger g.m-node:not(.m-flat) polygon, +.m-graph.m-danger g.m-edge text, +.m-graph.m-danger g.m-node.m-flat text { fill: #f60000; } -div.m-graph.m-danger svg g.m-edge polygon, -div.m-graph.m-danger svg g.m-edge path, -div.m-graph.m-danger svg g.m-node ellipse, -div.m-graph.m-danger svg g.m-node polygon, -div.m-graph.m-danger svg g.m-node polyline { +.m-graph.m-danger g.m-edge polygon, +.m-graph.m-danger g.m-edge path, +.m-graph.m-danger g.m-node ellipse, +.m-graph.m-danger g.m-node polygon, +.m-graph.m-danger g.m-node polyline { stroke: #f60000; } -div.m-math.m-info svg, svg.m-math.m-info, -div.m-math svg g.m-info, svg.m-math g.m-info, -div.m-math svg rect.m-info, svg.m-math rect.m-info, +.m-math.m-info, .m-math g.m-info, .m-math rect.m-info, div.m-plot svg .m-bar.m-info, -div.m-graph.m-info svg g.m-edge polygon, -div.m-graph.m-info svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-info svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-info svg g.m-edge text, -div.m-graph.m-info svg g.m-node.m-flat text { +.m-graph.m-info g.m-edge polygon, +.m-graph.m-info g.m-node:not(.m-flat) ellipse, +.m-graph.m-info g.m-node:not(.m-flat) polygon, +.m-graph.m-info g.m-edge text, +.m-graph.m-info g.m-node.m-flat text { fill: #2e7dc5; } -div.m-graph.m-info svg g.m-edge polygon, -div.m-graph.m-info svg g.m-edge path, -div.m-graph.m-info svg g.m-node ellipse, -div.m-graph.m-info svg g.m-node polygon, -div.m-graph.m-info svg g.m-node polyline { +.m-graph.m-info g.m-edge polygon, +.m-graph.m-info g.m-edge path, +.m-graph.m-info g.m-node ellipse, +.m-graph.m-info g.m-node polygon, +.m-graph.m-info g.m-node polyline { stroke: #2e7dc5; } -div.m-math.m-dim svg, svg.m-math.m-dim, -div.m-math svg g.m-dim, svg.m-math g.m-dim, -div.m-math svg rect.m-dim, svg.m-math rect.m-dim, +.m-math.m-dim, .m-math g.m-dim, .m-math rect.m-dim, div.m-plot svg .m-bar.m-dim, -div.m-graph.m-dim svg g.m-edge polygon, -div.m-graph.m-dim svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-dim svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-dim svg g.m-edge text, -div.m-graph.m-dim svg g.m-node.m-flat text { +.m-graph.m-dim g.m-edge polygon, +.m-graph.m-dim g.m-node:not(.m-flat) ellipse, +.m-graph.m-dim g.m-node:not(.m-flat) polygon, +.m-graph.m-dim g.m-edge text, +.m-graph.m-dim g.m-node.m-flat text { fill: #bdbdbd; } -div.m-graph.m-dim svg g.m-edge polygon, -div.m-graph.m-dim svg g.m-edge path, -div.m-graph.m-dim svg g.m-node ellipse, -div.m-graph.m-dim svg g.m-node polygon, -div.m-graph.m-dim svg g.m-node polyline { +.m-graph.m-dim g.m-edge polygon, +.m-graph.m-dim g.m-edge path, +.m-graph.m-dim g.m-node ellipse, +.m-graph.m-dim g.m-node polygon, +.m-graph.m-dim g.m-node polyline { stroke: #bdbdbd; } -div.m-graph svg g.m-edge.m-default polygon, -div.m-graph svg g.m-node.m-default:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-default:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-default text, -div.m-graph svg g.m-node.m-default.m-flat text { +.m-graph g.m-edge.m-default polygon, +.m-graph g.m-node.m-default:not(.m-flat) ellipse, +.m-graph g.m-node.m-default:not(.m-flat) polygon, +.m-graph g.m-edge.m-default text, +.m-graph g.m-node.m-default.m-flat text { fill: #000000; } -div.m-graph svg g.m-edge.m-default polygon, -div.m-graph svg g.m-edge.m-default path, -div.m-graph svg g.m-node.m-default ellipse, -div.m-graph svg g.m-node.m-default polygon, -div.m-graph svg g.m-node.m-default polyline { +.m-graph g.m-edge.m-default polygon, +.m-graph g.m-edge.m-default path, +.m-graph g.m-node.m-default ellipse, +.m-graph g.m-node.m-default polygon, +.m-graph g.m-node.m-default polyline { stroke: #000000; } -div.m-graph svg g.m-edge.m-primary polygon, -div.m-graph svg g.m-node.m-primary:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-primary:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-primary text, -div.m-graph svg g.m-node.m-primary.m-flat text { +.m-graph g.m-edge.m-primary polygon, +.m-graph g.m-node.m-primary:not(.m-flat) ellipse, +.m-graph g.m-node.m-primary:not(.m-flat) polygon, +.m-graph g.m-edge.m-primary text, +.m-graph g.m-node.m-primary.m-flat text { fill: #cb4b16; } -div.m-graph svg g.m-edge.m-primary polygon, -div.m-graph svg g.m-edge.m-primary path, -div.m-graph svg g.m-node.m-primary ellipse, -div.m-graph svg g.m-node.m-primary polygon, -div.m-graph svg g.m-node.m-primary polyline { +.m-graph g.m-edge.m-primary polygon, +.m-graph g.m-edge.m-primary path, +.m-graph g.m-node.m-primary ellipse, +.m-graph g.m-node.m-primary polygon, +.m-graph g.m-node.m-primary polyline { stroke: #cb4b16; } -div.m-graph svg g.m-edge.m-success polygon, -div.m-graph svg g.m-node.m-success:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-success:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-success text, -div.m-graph svg g.m-node.m-success.m-flat text { +.m-graph g.m-edge.m-success polygon, +.m-graph g.m-node.m-success:not(.m-flat) ellipse, +.m-graph g.m-node.m-success:not(.m-flat) polygon, +.m-graph g.m-edge.m-success text, +.m-graph g.m-node.m-success.m-flat text { fill: #31c25d; } -div.m-graph svg g.m-edge.m-success polygon, -div.m-graph svg g.m-edge.m-success path, -div.m-graph svg g.m-node.m-success ellipse, -div.m-graph svg g.m-node.m-success polygon, -div.m-graph svg g.m-node.m-success polyline { +.m-graph g.m-edge.m-success polygon, +.m-graph g.m-edge.m-success path, +.m-graph g.m-node.m-success ellipse, +.m-graph g.m-node.m-success polygon, +.m-graph g.m-node.m-success polyline { stroke: #31c25d; } -div.m-graph svg g.m-edge.m-warning polygon, -div.m-graph svg g.m-node.m-warning:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-warning:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-warning text, -div.m-graph svg g.m-node.m-warning.m-flat text { +.m-graph g.m-edge.m-warning polygon, +.m-graph g.m-node.m-warning:not(.m-flat) ellipse, +.m-graph g.m-node.m-warning:not(.m-flat) polygon, +.m-graph g.m-edge.m-warning text, +.m-graph g.m-node.m-warning.m-flat text { fill: #c7cf2f; } -div.m-graph svg g.m-edge.m-warning polygon, -div.m-graph svg g.m-edge.m-warning path, -div.m-graph svg g.m-node.m-warning ellipse, -div.m-graph svg g.m-node.m-warning polygon, -div.m-graph svg g.m-node.m-warning polyline { +.m-graph g.m-edge.m-warning polygon, +.m-graph g.m-edge.m-warning path, +.m-graph g.m-node.m-warning ellipse, +.m-graph g.m-node.m-warning polygon, +.m-graph g.m-node.m-warning polyline { stroke: #c7cf2f; } -div.m-graph svg g.m-edge.m-danger polygon, -div.m-graph svg g.m-node.m-danger:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-danger:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-danger text, -div.m-graph svg g.m-node.m-danger.m-flat text { +.m-graph g.m-edge.m-danger polygon, +.m-graph g.m-node.m-danger:not(.m-flat) ellipse, +.m-graph g.m-node.m-danger:not(.m-flat) polygon, +.m-graph g.m-edge.m-danger text, +.m-graph g.m-node.m-danger.m-flat text { fill: #f60000; } -div.m-graph svg g.m-edge.m-danger polygon, -div.m-graph svg g.m-edge.m-danger path, -div.m-graph svg g.m-node.m-danger ellipse, -div.m-graph svg g.m-node.m-danger polygon, -div.m-graph svg g.m-node.m-danger polyline { +.m-graph g.m-edge.m-danger polygon, +.m-graph g.m-edge.m-danger path, +.m-graph g.m-node.m-danger ellipse, +.m-graph g.m-node.m-danger polygon, +.m-graph g.m-node.m-danger polyline { stroke: #f60000; } -div.m-graph svg g.m-edge.m-info polygon, -div.m-graph svg g.m-node.m-info:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-info:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-info text, -div.m-graph svg g.m-node.m-info.m-flat text { +.m-graph g.m-edge.m-info polygon, +.m-graph g.m-node.m-info:not(.m-flat) ellipse, +.m-graph g.m-node.m-info:not(.m-flat) polygon, +.m-graph g.m-edge.m-info text, +.m-graph g.m-node.m-info.m-flat text { fill: #2e7dc5; } -div.m-graph svg g.m-edge.m-info polygon, -div.m-graph svg g.m-edge.m-info path, -div.m-graph svg g.m-node.m-info ellipse, -div.m-graph svg g.m-node.m-info polygon, -div.m-graph svg g.m-node.m-info polyline { +.m-graph g.m-edge.m-info polygon, +.m-graph g.m-edge.m-info path, +.m-graph g.m-node.m-info ellipse, +.m-graph g.m-node.m-info polygon, +.m-graph g.m-node.m-info polyline { stroke: #2e7dc5; } -div.m-graph svg g.m-edge.m-dim polygon, -div.m-graph svg g.m-node.m-dim:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-dim:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-dim text, -div.m-graph svg g.m-node.m-dim.m-flat text { +.m-graph g.m-edge.m-dim polygon, +.m-graph g.m-node.m-dim:not(.m-flat) ellipse, +.m-graph g.m-node.m-dim:not(.m-flat) polygon, +.m-graph g.m-edge.m-dim text, +.m-graph g.m-node.m-dim.m-flat text { fill: #bdbdbd; } -div.m-graph svg g.m-edge.m-dim polygon, -div.m-graph svg g.m-edge.m-dim path, -div.m-graph svg g.m-node.m-dim ellipse, -div.m-graph svg g.m-node.m-dim polygon, -div.m-graph svg g.m-node.m-dim polyline { +.m-graph g.m-edge.m-dim polygon, +.m-graph g.m-edge.m-dim path, +.m-graph g.m-node.m-dim ellipse, +.m-graph g.m-node.m-dim polygon, +.m-graph g.m-node.m-dim polyline { stroke: #bdbdbd; } p, ul, ol, dl, blockquote, pre, .m-code-figure, .m-console-figure, hr, .m-note, diff --git a/css/m-light.compiled.css b/css/m-light.compiled.css index ec58b592..cd2cd85b 100644 --- a/css/m-light.compiled.css +++ b/css/m-light.compiled.css @@ -1063,12 +1063,6 @@ figure.m-figure.m-flat img, figure.m-figure.m-flat svg { border-bottom-left-radius: 0.2rem; border-bottom-right-radius: 0.2rem; } -figure.m-figure figcaption { - margin-top: 0.5rem; - margin-bottom: 0.5rem; - font-weight: normal; - font-size: 1.17rem; -} figure.m-figure a img, figure.m-figure a svg { margin-left: -1rem; margin-right: -1rem; @@ -1122,6 +1116,12 @@ figure.m-figure.m-fullwidth:after { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } +figure.m-figure figcaption, .m-code-figure figcaption, .m-console-figure figcaption { + margin-top: 0.5rem; + margin-bottom: 0.5rem; + font-weight: normal; + font-size: 1.17rem; +} figure.m-figure.m-default:before { border-color: #fbf0ec; } figure.m-figure.m-default figcaption { color: #000000; } figure.m-figure.m-primary:before { border-color: #ef9069; } @@ -1291,7 +1291,7 @@ div.m-button.m-flat a:hover svg.m-math, div.m-button.m-default a:focus svg.m-mat div.m-button.m-default a:active svg.m-math { fill: #cb4b16; } -div.m-graph { font-size: 14px; } +.m-graph { font-size: 14px; } div.m-plot svg, div.m-graph svg { max-width: 100%; margin-left: auto; @@ -1311,246 +1311,241 @@ div.m-plot svg .m-error { stroke-width: 1.5; } div.m-plot svg .m-label.m-dim { fill: #bdbdbd; } -div.m-graph svg g.m-edge path, div.m-graph svg g.m-node.m-flat ellipse, -div.m-graph svg g.m-node.m-flat polygon { +.m-graph g.m-edge path, .m-graph g.m-node.m-flat ellipse, +.m-graph g.m-node.m-flat polygon { fill: none; } -div.m-graph svg g.m-node:not(.m-flat) text { +.m-graph g.m-node:not(.m-flat) text { fill: #ffffff; } -div.m-math svg, svg.m-math { fill: #000000; } -div.m-math.m-default svg, svg.m-math.m-default, -div.m-math svg g.m-default, svg.m-math g.m-default, -div.m-math svg rect.m-default, svg.m-math rect.m-default, +figure.m-figure > svg.m-math:first-child, +figure.m-figure > svg.m-graph:first-child { + padding: 1rem; + box-sizing: content-box; +} +figure.m-figure:not(.m-flat) > svg.m-math:first-child, +figure.m-figure:not(.m-flat) > svg.m-graph:first-child { + background-color: #f7e3db; +} +.m-math { fill: #000000; } +.m-math.m-default, .m-math g.m-default, .m-math rect.m-default, div.m-plot svg .m-bar.m-default, -div.m-graph svg g.m-edge polygon, -div.m-graph svg g.m-node:not(.m-flat) ellipse, -div.m-graph svg g.m-node:not(.m-flat) polygon, -div.m-graph svg g.m-edge text, -div.m-graph svg g.m-node.m-flat text, -div.m-graph.m-default svg g.m-edge polygon, -div.m-graph.m-default svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-default svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-default svg g.m-edge text, -div.m-graph.m-default svg g.m-node.m-flat text { +.m-graph g.m-edge polygon, +.m-graph g.m-node:not(.m-flat) ellipse, +.m-graph g.m-node:not(.m-flat) polygon, +.m-graph g.m-edge text, +.m-graph g.m-node.m-flat text, +.m-graph.m-default g.m-edge polygon, +.m-graph.m-default g.m-node:not(.m-flat) ellipse, +.m-graph.m-default g.m-node:not(.m-flat) polygon, +.m-graph.m-default g.m-edge text, +.m-graph.m-default g.m-node.m-flat text { fill: #000000; } -div.m-graph svg g.m-edge polygon, -div.m-graph svg g.m-edge path, -div.m-graph svg g.m-node ellipse, -div.m-graph svg g.m-node polygon, -div.m-graph svg g.m-node polyline, -div.m-graph.m-default svg g.m-edge polygon, -div.m-graph.m-default svg g.m-edge path, -div.m-graph.m-default svg g.m-node ellipse, -div.m-graph.m-default svg g.m-node polygon, -div.m-graph.m-default svg g.m-node polyline { +.m-graph g.m-edge polygon, +.m-graph g.m-edge path, +.m-graph g.m-node ellipse, +.m-graph g.m-node polygon, +.m-graph g.m-node polyline, +.m-graph.m-default g.m-edge polygon, +.m-graph.m-default g.m-edge path, +.m-graph.m-default g.m-node ellipse, +.m-graph.m-default g.m-node polygon, +.m-graph.m-default g.m-node polyline { stroke: #000000; } -div.m-math.m-primary svg, svg.m-math.m-primary, -div.m-math svg g.m-primary, svg.m-math g.m-primary, -div.m-math svg rect.m-primary, svg.m-math rect.m-primary, +.m-math.m-primary, .m-math g.m-primary, .m-math rect.m-primary, div.m-plot svg .m-bar.m-primary, -div.m-graph.m-primary svg g.m-edge polygon, -div.m-graph.m-primary svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-primary svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-primary svg g.m-edge text, -div.m-graph.m-primary svg g.m-node.m-flat text { +.m-graph.m-primary g.m-edge polygon, +.m-graph.m-primary g.m-node:not(.m-flat) ellipse, +.m-graph.m-primary g.m-node:not(.m-flat) polygon, +.m-graph.m-primary g.m-edge text, +.m-graph.m-primary g.m-node.m-flat text { fill: #cb4b16; } -div.m-graph.m-primary svg g.m-edge polygon, -div.m-graph.m-primary svg g.m-edge path, -div.m-graph.m-primary svg g.m-node ellipse, -div.m-graph.m-primary svg g.m-node polygon, -div.m-graph.m-primary svg g.m-node polyline { +.m-graph.m-primary g.m-edge polygon, +.m-graph.m-primary g.m-edge path, +.m-graph.m-primary g.m-node ellipse, +.m-graph.m-primary g.m-node polygon, +.m-graph.m-primary g.m-node polyline { stroke: #cb4b16; } -div.m-math.m-success svg, svg.m-math.m-success, -div.m-math svg g.m-success, svg.m-math g.m-success, -div.m-math svg rect.m-success, svg.m-math rect.m-success, +.m-math.m-success, .m-math g.m-success, .m-math rect.m-success, div.m-plot svg .m-bar.m-success, -div.m-graph.m-success svg g.m-edge polygon, -div.m-graph.m-success svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-success svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-success svg g.m-edge text, -div.m-graph.m-success svg g.m-node.m-flat text { +.m-graph.m-success g.m-edge polygon, +.m-graph.m-success g.m-node:not(.m-flat) ellipse, +.m-graph.m-success g.m-node:not(.m-flat) polygon, +.m-graph.m-success g.m-edge text, +.m-graph.m-success g.m-node.m-flat text { fill: #31c25d; } -div.m-graph.m-success svg g.m-edge polygon, -div.m-graph.m-success svg g.m-edge path, -div.m-graph.m-success svg g.m-node ellipse, -div.m-graph.m-success svg g.m-node polygon, -div.m-graph.m-success svg g.m-node polyline { +.m-graph.m-success g.m-edge polygon, +.m-graph.m-success g.m-edge path, +.m-graph.m-success g.m-node ellipse, +.m-graph.m-success g.m-node polygon, +.m-graph.m-success g.m-node polyline { stroke: #31c25d; } -div.m-math.m-warning svg, svg.m-math.m-warning, -div.m-math svg g.m-warning, svg.m-math g.m-warning, -div.m-math svg rect.m-warning, svg.m-math rect.m-warning, +.m-math.m-warning, .m-math g.m-warning, .m-math rect.m-warning, div.m-plot svg .m-bar.m-warning, -div.m-graph.m-warning svg g.m-edge polygon, -div.m-graph.m-warning svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-warning svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-warning svg g.m-edge text, -div.m-graph.m-warning svg g.m-node.m-flat text { +.m-graph.m-warning g.m-edge polygon, +.m-graph.m-warning g.m-node:not(.m-flat) ellipse, +.m-graph.m-warning g.m-node:not(.m-flat) polygon, +.m-graph.m-warning g.m-edge text, +.m-graph.m-warning g.m-node.m-flat text { fill: #c7cf2f; } -div.m-graph.m-warning svg g.m-edge polygon, -div.m-graph.m-warning svg g.m-edge path, -div.m-graph.m-warning svg g.m-node ellipse, -div.m-graph.m-warning svg g.m-node polygon, -div.m-graph.m-warning svg g.m-node polyline { +.m-graph.m-warning g.m-edge polygon, +.m-graph.m-warning g.m-edge path, +.m-graph.m-warning g.m-node ellipse, +.m-graph.m-warning g.m-node polygon, +.m-graph.m-warning g.m-node polyline { stroke: #c7cf2f; } -div.m-math.m-danger svg, svg.m-math.m-danger, -div.m-math svg g.m-danger, svg.m-math g.m-danger, -div.m-math svg rect.m-danger, svg.m-math rect.m-danger, +.m-math.m-danger, .m-math g.m-danger, .m-math rect.m-danger, div.m-plot svg .m-bar.m-danger, -div.m-graph.m-danger svg g.m-edge polygon, -div.m-graph.m-danger svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-danger svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-danger svg g.m-edge text, -div.m-graph.m-danger svg g.m-node.m-flat text { +.m-graph.m-danger g.m-edge polygon, +.m-graph.m-danger g.m-node:not(.m-flat) ellipse, +.m-graph.m-danger g.m-node:not(.m-flat) polygon, +.m-graph.m-danger g.m-edge text, +.m-graph.m-danger g.m-node.m-flat text { fill: #f60000; } -div.m-graph.m-danger svg g.m-edge polygon, -div.m-graph.m-danger svg g.m-edge path, -div.m-graph.m-danger svg g.m-node ellipse, -div.m-graph.m-danger svg g.m-node polygon, -div.m-graph.m-danger svg g.m-node polyline { +.m-graph.m-danger g.m-edge polygon, +.m-graph.m-danger g.m-edge path, +.m-graph.m-danger g.m-node ellipse, +.m-graph.m-danger g.m-node polygon, +.m-graph.m-danger g.m-node polyline { stroke: #f60000; } -div.m-math.m-info svg, svg.m-math.m-info, -div.m-math svg g.m-info, svg.m-math g.m-info, -div.m-math svg rect.m-info, svg.m-math rect.m-info, +.m-math.m-info, .m-math g.m-info, .m-math rect.m-info, div.m-plot svg .m-bar.m-info, -div.m-graph.m-info svg g.m-edge polygon, -div.m-graph.m-info svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-info svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-info svg g.m-edge text, -div.m-graph.m-info svg g.m-node.m-flat text { +.m-graph.m-info g.m-edge polygon, +.m-graph.m-info g.m-node:not(.m-flat) ellipse, +.m-graph.m-info g.m-node:not(.m-flat) polygon, +.m-graph.m-info g.m-edge text, +.m-graph.m-info g.m-node.m-flat text { fill: #2e7dc5; } -div.m-graph.m-info svg g.m-edge polygon, -div.m-graph.m-info svg g.m-edge path, -div.m-graph.m-info svg g.m-node ellipse, -div.m-graph.m-info svg g.m-node polygon, -div.m-graph.m-info svg g.m-node polyline { +.m-graph.m-info g.m-edge polygon, +.m-graph.m-info g.m-edge path, +.m-graph.m-info g.m-node ellipse, +.m-graph.m-info g.m-node polygon, +.m-graph.m-info g.m-node polyline { stroke: #2e7dc5; } -div.m-math.m-dim svg, svg.m-math.m-dim, -div.m-math svg g.m-dim, svg.m-math g.m-dim, -div.m-math svg rect.m-dim, svg.m-math rect.m-dim, +.m-math.m-dim, .m-math g.m-dim, .m-math rect.m-dim, div.m-plot svg .m-bar.m-dim, -div.m-graph.m-dim svg g.m-edge polygon, -div.m-graph.m-dim svg g.m-node:not(.m-flat) ellipse, -div.m-graph.m-dim svg g.m-node:not(.m-flat) polygon, -div.m-graph.m-dim svg g.m-edge text, -div.m-graph.m-dim svg g.m-node.m-flat text { +.m-graph.m-dim g.m-edge polygon, +.m-graph.m-dim g.m-node:not(.m-flat) ellipse, +.m-graph.m-dim g.m-node:not(.m-flat) polygon, +.m-graph.m-dim g.m-edge text, +.m-graph.m-dim g.m-node.m-flat text { fill: #bdbdbd; } -div.m-graph.m-dim svg g.m-edge polygon, -div.m-graph.m-dim svg g.m-edge path, -div.m-graph.m-dim svg g.m-node ellipse, -div.m-graph.m-dim svg g.m-node polygon, -div.m-graph.m-dim svg g.m-node polyline { +.m-graph.m-dim g.m-edge polygon, +.m-graph.m-dim g.m-edge path, +.m-graph.m-dim g.m-node ellipse, +.m-graph.m-dim g.m-node polygon, +.m-graph.m-dim g.m-node polyline { stroke: #bdbdbd; } -div.m-graph svg g.m-edge.m-default polygon, -div.m-graph svg g.m-node.m-default:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-default:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-default text, -div.m-graph svg g.m-node.m-default.m-flat text { +.m-graph g.m-edge.m-default polygon, +.m-graph g.m-node.m-default:not(.m-flat) ellipse, +.m-graph g.m-node.m-default:not(.m-flat) polygon, +.m-graph g.m-edge.m-default text, +.m-graph g.m-node.m-default.m-flat text { fill: #000000; } -div.m-graph svg g.m-edge.m-default polygon, -div.m-graph svg g.m-edge.m-default path, -div.m-graph svg g.m-node.m-default ellipse, -div.m-graph svg g.m-node.m-default polygon, -div.m-graph svg g.m-node.m-default polyline { +.m-graph g.m-edge.m-default polygon, +.m-graph g.m-edge.m-default path, +.m-graph g.m-node.m-default ellipse, +.m-graph g.m-node.m-default polygon, +.m-graph g.m-node.m-default polyline { stroke: #000000; } -div.m-graph svg g.m-edge.m-primary polygon, -div.m-graph svg g.m-node.m-primary:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-primary:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-primary text, -div.m-graph svg g.m-node.m-primary.m-flat text { +.m-graph g.m-edge.m-primary polygon, +.m-graph g.m-node.m-primary:not(.m-flat) ellipse, +.m-graph g.m-node.m-primary:not(.m-flat) polygon, +.m-graph g.m-edge.m-primary text, +.m-graph g.m-node.m-primary.m-flat text { fill: #cb4b16; } -div.m-graph svg g.m-edge.m-primary polygon, -div.m-graph svg g.m-edge.m-primary path, -div.m-graph svg g.m-node.m-primary ellipse, -div.m-graph svg g.m-node.m-primary polygon, -div.m-graph svg g.m-node.m-primary polyline { +.m-graph g.m-edge.m-primary polygon, +.m-graph g.m-edge.m-primary path, +.m-graph g.m-node.m-primary ellipse, +.m-graph g.m-node.m-primary polygon, +.m-graph g.m-node.m-primary polyline { stroke: #cb4b16; } -div.m-graph svg g.m-edge.m-success polygon, -div.m-graph svg g.m-node.m-success:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-success:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-success text, -div.m-graph svg g.m-node.m-success.m-flat text { +.m-graph g.m-edge.m-success polygon, +.m-graph g.m-node.m-success:not(.m-flat) ellipse, +.m-graph g.m-node.m-success:not(.m-flat) polygon, +.m-graph g.m-edge.m-success text, +.m-graph g.m-node.m-success.m-flat text { fill: #31c25d; } -div.m-graph svg g.m-edge.m-success polygon, -div.m-graph svg g.m-edge.m-success path, -div.m-graph svg g.m-node.m-success ellipse, -div.m-graph svg g.m-node.m-success polygon, -div.m-graph svg g.m-node.m-success polyline { +.m-graph g.m-edge.m-success polygon, +.m-graph g.m-edge.m-success path, +.m-graph g.m-node.m-success ellipse, +.m-graph g.m-node.m-success polygon, +.m-graph g.m-node.m-success polyline { stroke: #31c25d; } -div.m-graph svg g.m-edge.m-warning polygon, -div.m-graph svg g.m-node.m-warning:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-warning:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-warning text, -div.m-graph svg g.m-node.m-warning.m-flat text { +.m-graph g.m-edge.m-warning polygon, +.m-graph g.m-node.m-warning:not(.m-flat) ellipse, +.m-graph g.m-node.m-warning:not(.m-flat) polygon, +.m-graph g.m-edge.m-warning text, +.m-graph g.m-node.m-warning.m-flat text { fill: #c7cf2f; } -div.m-graph svg g.m-edge.m-warning polygon, -div.m-graph svg g.m-edge.m-warning path, -div.m-graph svg g.m-node.m-warning ellipse, -div.m-graph svg g.m-node.m-warning polygon, -div.m-graph svg g.m-node.m-warning polyline { +.m-graph g.m-edge.m-warning polygon, +.m-graph g.m-edge.m-warning path, +.m-graph g.m-node.m-warning ellipse, +.m-graph g.m-node.m-warning polygon, +.m-graph g.m-node.m-warning polyline { stroke: #c7cf2f; } -div.m-graph svg g.m-edge.m-danger polygon, -div.m-graph svg g.m-node.m-danger:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-danger:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-danger text, -div.m-graph svg g.m-node.m-danger.m-flat text { +.m-graph g.m-edge.m-danger polygon, +.m-graph g.m-node.m-danger:not(.m-flat) ellipse, +.m-graph g.m-node.m-danger:not(.m-flat) polygon, +.m-graph g.m-edge.m-danger text, +.m-graph g.m-node.m-danger.m-flat text { fill: #f60000; } -div.m-graph svg g.m-edge.m-danger polygon, -div.m-graph svg g.m-edge.m-danger path, -div.m-graph svg g.m-node.m-danger ellipse, -div.m-graph svg g.m-node.m-danger polygon, -div.m-graph svg g.m-node.m-danger polyline { +.m-graph g.m-edge.m-danger polygon, +.m-graph g.m-edge.m-danger path, +.m-graph g.m-node.m-danger ellipse, +.m-graph g.m-node.m-danger polygon, +.m-graph g.m-node.m-danger polyline { stroke: #f60000; } -div.m-graph svg g.m-edge.m-info polygon, -div.m-graph svg g.m-node.m-info:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-info:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-info text, -div.m-graph svg g.m-node.m-info.m-flat text { +.m-graph g.m-edge.m-info polygon, +.m-graph g.m-node.m-info:not(.m-flat) ellipse, +.m-graph g.m-node.m-info:not(.m-flat) polygon, +.m-graph g.m-edge.m-info text, +.m-graph g.m-node.m-info.m-flat text { fill: #2e7dc5; } -div.m-graph svg g.m-edge.m-info polygon, -div.m-graph svg g.m-edge.m-info path, -div.m-graph svg g.m-node.m-info ellipse, -div.m-graph svg g.m-node.m-info polygon, -div.m-graph svg g.m-node.m-info polyline { +.m-graph g.m-edge.m-info polygon, +.m-graph g.m-edge.m-info path, +.m-graph g.m-node.m-info ellipse, +.m-graph g.m-node.m-info polygon, +.m-graph g.m-node.m-info polyline { stroke: #2e7dc5; } -div.m-graph svg g.m-edge.m-dim polygon, -div.m-graph svg g.m-node.m-dim:not(.m-flat) ellipse, -div.m-graph svg g.m-node.m-dim:not(.m-flat) polygon, -div.m-graph svg g.m-edge.m-dim text, -div.m-graph svg g.m-node.m-dim.m-flat text { +.m-graph g.m-edge.m-dim polygon, +.m-graph g.m-node.m-dim:not(.m-flat) ellipse, +.m-graph g.m-node.m-dim:not(.m-flat) polygon, +.m-graph g.m-edge.m-dim text, +.m-graph g.m-node.m-dim.m-flat text { fill: #bdbdbd; } -div.m-graph svg g.m-edge.m-dim polygon, -div.m-graph svg g.m-edge.m-dim path, -div.m-graph svg g.m-node.m-dim ellipse, -div.m-graph svg g.m-node.m-dim polygon, -div.m-graph svg g.m-node.m-dim polyline { +.m-graph g.m-edge.m-dim polygon, +.m-graph g.m-edge.m-dim path, +.m-graph g.m-node.m-dim ellipse, +.m-graph g.m-node.m-dim polygon, +.m-graph g.m-node.m-dim polyline { stroke: #bdbdbd; } p, ul, ol, dl, blockquote, pre, .m-code-figure, .m-console-figure, hr, .m-note, diff --git a/doc/css/components.rst b/doc/css/components.rst index 6bf6b215..8fb8d6af 100644 --- a/doc/css/components.rst +++ b/doc/css/components.rst @@ -928,7 +928,7 @@ consists of a :html:`
` (or :html:`
`) element with the you want to put in as the result. The :html:`
` element has to be the very
 first child of the :html:`
` for the markup to work correctly. Similar to image figure, you can apply the :css:`.m-flat` CSS class to remove the -border. +border, the :html:`
` element is styled as well. Example (note that this page uses code figure for all code examples, so it's a bit of a figure inception shown here): @@ -1069,6 +1069,58 @@ inside :html:`` for highlighting parts of formulas. integrates LaTeX math directly into your :abbr:`reST ` markup for convenient content authoring. +`Math figure`_ +-------------- + +Similarly to `code figure`_, math can be also put in a :html:`
` with +assigned caption and description. It behaves the same as `image figures`_, the +figure width being defined by the math equation size. Create a +:html:`
` element and put :html:`` +as a first child. The remaining content of the figure can be :html:`
` +and/or arbitrary other markup. Add the :css:`.m-flat` class to the +:html:`
` to remove the outer border and equation background, +`CSS color classes`_ on the :html:`
` affect the figure, on the +:html:`` affect the equation. + +.. code-figure:: + + .. code:: html + +
+ + a^2 = b^2 + c^2 + ... + +
Pythagorean theorem
+
+ + .. raw:: html + +
+ + a^2 = b^2 + c^2 + + + + + + + + + + + + + + + + + + + +
Pythagorean theorem
+
+ `Plots`_ ======== @@ -1188,6 +1240,57 @@ on a :css:`.m-node` to make it just an outline instead of filled. allows you to produce plots using :rst:`.. graph::` directives directly in your :abbr:`reST ` markup. +`Graph figure`_ +--------------- + +Similarly to `math figure`_, graphs also can be :html:`
`\ s. The +behavior is almost identical, create a :html:`
` +element and put the :html:`` as a first child, all other content after. + +.. code-figure:: + + .. code:: html + +
+ + ... + +
Impenetrable logic
+
+ + .. raw:: html + +
+ + + FSM + + yes + + yes + + + no + + no + + + yes->no + + + no + + + no->no + + + no + + + +
Impenetrable logic
+
+ `Padding`_ ========== diff --git a/doc/plugins/math-and-code-test.rst b/doc/plugins/math-and-code-test.rst new file mode 100644 index 00000000..4cd7b884 --- /dev/null +++ b/doc/plugins/math-and-code-test.rst @@ -0,0 +1,182 @@ +.. + This file is part of m.css. + + Copyright © 2017, 2018 Vladimír Vondruš + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. +.. + +Test +#### + +:save_as: plugins/math-and-code/test/index.html +:breadcrumb: {filename}/plugins.rst Pelican plugins + {filename}/plugins/math-and-code.rst Math and code + +Math +==== + +First is colored except :math:`c^2`, second is colored globally, third is +colored globally with overrides except for :math:`c^2`. + +.. container:: m-row + + .. container:: m-col-m-4 + + .. math:: + + {\color{m-default} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-default + + a^2 + b^2 = c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-danger + + {\color{m-default} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + + {\color{m-primary} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-primary + + a^2 + b^2 = c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-danger + + {\color{m-primary} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + + {\color{m-success} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-success + + a^2 + b^2 = c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-danger + + {\color{m-success} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + + {\color{m-warning} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-warning + + a^2 + b^2 = c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-danger + + {\color{m-warning} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + + {\color{m-danger} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-danger + + a^2 + b^2 = c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-success + + {\color{m-danger} a^2 + b^2 =} ~ c^2 + +.. container:: m-row + + .. container:: m-col-m-4 + + .. math:: + + {\color{m-info} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-info + + a^2 + b^2 = c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-danger + + {\color{m-info} a^2 + b^2 =} ~ c^2 + +.. container:: m-row + + .. container:: m-col-m-4 + + .. math:: + + {\color{m-dim} a^2 + b^2 =} ~ c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-dim + + a^2 + b^2 = c^2 + + .. container:: m-col-m-4 + + .. math:: + :class: m-danger + + {\color{m-dim} a^2 + b^2 =} ~ c^2 diff --git a/doc/plugins/plots-and-graphs-test.rst b/doc/plugins/plots-and-graphs-test.rst index cc2f4488..33ccc53d 100644 --- a/doc/plugins/plots-and-graphs-test.rst +++ b/doc/plugins/plots-and-graphs-test.rst @@ -63,7 +63,7 @@ Graphs ====== First is colored except the self-pointing "no", second is colored globally, -third is colored globally with overrides except for for the self-pointing "no". +third is colored globally with overrides except for the self-pointing "no". .. container:: m-row