Debian Codegraph @

extensions/Math/modules/ext.math.css

raw symbols SCIP
1 /*
2 * Document : ext.math
3 * Created on : 23.09.2013, 13:55:00
4 * Author : Physikerwelt (Moritz Schubotz)
5 * Description: Shows browser-dependent math output.
6 */
7 @namespace m url( http://www.w3.org/1998/Math/MathML );
8
9 /* Default style for MathML. */
10 .mwe-math-mathml-inline {
11 display: inline !important; /* stylelint-disable-line declaration-no-important */
12 }
13
14 .mwe-math-mathml-display {
15 display: block !important; /* stylelint-disable-line declaration-no-important */
16 margin-left: auto;
17 margin-right: auto;
18 }
19
20 .mwe-math-mathml-a11y {
21 /* We try to hide the MathML formula in a way that still makes it accessible to accessibility tools. */
22 clip: rect( 1px, 1px, 1px, 1px );
23 overflow: hidden;
24 position: absolute;
25 width: 1px;
26 height: 1px;
27 opacity: 0;
28 }
29
30 /* Default style for the image fallback. */
31 /* Note: We had to use !important rules because of conflicts with the style
32 generated by Mathoid. See https://gerrit.wikimedia.org/r/#/c/166213/ */
33 .mwe-math-fallback-image-inline {
34 display: inline-block;
35 vertical-align: middle;
36 }
37
38 .mwe-math-fallback-image-display {
39 display: block;
40 margin-left: auto !important; /* stylelint-disable-line declaration-no-important */
41 margin-right: auto !important; /* stylelint-disable-line declaration-no-important */
42 }
43
44 /* Default style for the source fallback. */
45 .mwe-math-fallback-source-inline {
46 display: inline;
47 vertical-align: middle;
48 }
49
50 .mwe-math-fallback-source-display {
51 display: block;
52 margin-left: auto;
53 margin-right: auto;
54 }
55
56 /* the source rendering mode generates the class tex for backwards compatibility T348938 */
57 img.tex {
58 vertical-align: middle;
59 }
60
61 div.mwe-math-element {
62 overflow-x: auto;
63 max-width: 100%;
64 }
65
66 /* Polyfill for MathML matrix elements with menclose https://github.com/w3c/mathml-core/issues/245 */
67 mtd.mwe-math-matrix-top {
68 border-top: 0.06em solid;
69 }
70
71 mtd.mwe-math-matrix-bottom {
72 border-bottom: 0.06em solid;
73 }
74
75 mtd.mwe-math-matrix-left {
76 border-left: 0.06em solid;
77 }
78
79 mtd.mwe-math-matrix-right {
80 border-right: 0.06em solid;
81 }
82
83 /* see https://github.com/w3c/mathml-core/issues/245#issuecomment-2410676518 */
84 menclose.menclose {
85 position: relative;
86 padding: 0.5ex 0;
87 }
88
89 mrow.menclose-updiagonalstrike {
90 display: inline-block;
91 position: absolute;
92 left: 0.5px;
93 bottom: 0;
94 width: 100%;
95 height: 100%;
96 background-color: currentcolor;
97 clip-path: polygon( 0.05em 100%, 0 calc( 100% - 0.05em ), calc( 100% - 0.05em ) 0, 100% 0.05em );
98 }
99
100 mrow.menclose-downdiagonalstrike {
101 display: inline-block;
102 position: absolute;
103 left: 0.5px;
104 bottom: 0;
105 width: 100%;
106 height: 100%;
107 background-color: currentcolor;
108 clip-path: polygon( 0 0, 0.05em 0, 100% 100%, calc( 100% - 0.05em ) 100% );
109 }