зеркало из https://github.com/mozilla/gecko-dev.git
Restructure the CSS file and add changes needed to support alignments in <mtable>
This commit is contained in:
Родитель
d9c12baad9
Коммит
39c7f1b59b
|
@ -19,30 +19,33 @@
|
|||
* Roger B. Sidje <rbs@maths.uq.edu.au>
|
||||
*/
|
||||
|
||||
p {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*******************************************************/
|
||||
/* namespace for MathML elements */
|
||||
/*******************************************************/
|
||||
|
||||
@namespace mathns url(http://www.w3.org/1998/Math/MathML);
|
||||
|
||||
|
||||
/*******************************************************/
|
||||
/* <math> - outermost math element */
|
||||
/*******************************************************/
|
||||
|
||||
math, math[mode="inline"] {
|
||||
display: inline;
|
||||
font-family: CMSY10, CMEX10, Symbol, Times /*,Math1,Math2,Math3,Math4,Math5, Times*/;
|
||||
font-style: normal;
|
||||
/* font-weight: bold; */
|
||||
/* font-size: 40pt; */
|
||||
font-family: CMSY10, CMEX10, Symbol, Times, Lucida Sans Unicode, MT Extra, Math1, Math2, Math3, Math4, Math5;
|
||||
}
|
||||
|
||||
math[mode="display"] {
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-family: CMSY10, CMEX10, Symbol, Times;
|
||||
font-style: normal;
|
||||
/* font-weight: bold; */
|
||||
/* font-size: 14pt; */
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
[bgcolor="yellow"] {
|
||||
background-color: yellow;
|
||||
}
|
||||
/*******************************************************/
|
||||
/* attributes common to all tags */
|
||||
/*******************************************************/
|
||||
|
||||
[fontstyle="normal"] {
|
||||
font-style: normal;
|
||||
|
@ -92,6 +95,187 @@ math[mode="display"] {
|
|||
font-size: xx-large;
|
||||
}
|
||||
|
||||
/*******************************************************/
|
||||
/* tags with generated content */
|
||||
/*******************************************************/
|
||||
|
||||
ms {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
ms:before {
|
||||
content: open-quote;
|
||||
}
|
||||
|
||||
ms:after {
|
||||
content: close-quote;
|
||||
}
|
||||
|
||||
merror {
|
||||
display: block;
|
||||
font-family: sans-serif;
|
||||
font-weight: bold;
|
||||
white-space: pre;
|
||||
margin: 1em;
|
||||
padding: 1em;
|
||||
border-width: thin;
|
||||
border-style: inset;
|
||||
border-color: red;
|
||||
font-size: 14pt;
|
||||
background-color: lightyellow;
|
||||
}
|
||||
|
||||
/*******************************************************/
|
||||
/* mtable and its related tags */
|
||||
/*******************************************************/
|
||||
|
||||
mtable {
|
||||
display: table;
|
||||
border-spacing: 0.8em 1.0ex; /* horizontal vertical */
|
||||
border-collapse: separate;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
/* margin: 0.5ex 0.4em 0.5ex 0.4em; top right bottom left */
|
||||
box-sizing: border-box;
|
||||
/* box-sizing: content-box; */
|
||||
}
|
||||
|
||||
mtr {
|
||||
display: table-row;
|
||||
text-align: center;
|
||||
vertical-align: middle; /* baseline; */
|
||||
}
|
||||
|
||||
/* must never set padding in td, th */
|
||||
|
||||
mtd {
|
||||
display: table-cell;
|
||||
text-align: inherit;
|
||||
vertical-align: inherit;
|
||||
}
|
||||
|
||||
/***********************/
|
||||
/* -- mtd: columnalign */
|
||||
|
||||
mtd[columnalign="left"] {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
mtd[columnalign="right"] {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
mtd[columnalign="center"] {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/********************/
|
||||
/* -- mtd: rowalign */
|
||||
|
||||
mtd[rowalign="top"] {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
mtd[rowalign="bottom"] {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
mtd[rowalign="center"] {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* -- not yet supported --
|
||||
mtd[rowalign="baseline"] {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
mtd[rowalign="axis"] {
|
||||
vertical-align: mathline;
|
||||
}
|
||||
*/
|
||||
|
||||
/*******************************************************/
|
||||
/* style switching during frame construction */
|
||||
/*******************************************************/
|
||||
|
||||
/* change of style depending on the context of <mi> */
|
||||
|
||||
mi {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
mstyle[fontstyle="normal"] mi {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
:-moz-math-font-style-normal {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* change of size induced by changing the scriptlevel */
|
||||
|
||||
:-moz-math-font-size-smaller {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
:-moz-math-font-size-larger {
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
/* style used for stretchy symbols */
|
||||
|
||||
:-moz-math-font-style-stretchy {
|
||||
font-style: normal;
|
||||
font-family: CMSY10, CMEX10, Math4, MT Extra, Symbol /* ,Math1, Math3, Math4, Math5 */;
|
||||
/* background-color: #3C6; */
|
||||
}
|
||||
|
||||
:-moz-math-font-style-anonymous {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**************************************************************************/
|
||||
/* ALL THESE ARE USED FOR DEMO AND DEBUGGING PURPOSES ONLY */
|
||||
/* They may go away at any time */
|
||||
/**************************************************************************/
|
||||
|
||||
math {
|
||||
/* font-weight: bold; */
|
||||
/* font-size: 24pt; */
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
}
|
||||
|
||||
[background="yellow"] {
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
/*
|
||||
maction:hover {
|
||||
outline: thick solid black;
|
||||
border: 1px dotted black;
|
||||
}
|
||||
*/
|
||||
|
||||
maction {
|
||||
background-color: yellow;
|
||||
/* border: 1px solid black; */
|
||||
}
|
||||
|
||||
maction[actiontype="restyle#background"] {
|
||||
background-color: #3C6;
|
||||
border: 1px dotted red;
|
||||
}
|
||||
|
||||
maction[actiontype="restyle#zoom"] {
|
||||
font-size: 40pt;
|
||||
}
|
||||
|
||||
/*
|
||||
mmultiscripts {
|
||||
background-color: yellow;
|
||||
|
@ -120,14 +304,6 @@ ms {
|
|||
*/
|
||||
}
|
||||
|
||||
ms:before {
|
||||
content: open-quote;
|
||||
}
|
||||
|
||||
ms:after {
|
||||
content: close-quote;
|
||||
}
|
||||
|
||||
/*
|
||||
mpadded {
|
||||
background-color: yellow;
|
||||
|
@ -141,7 +317,7 @@ mspace {
|
|||
*/
|
||||
|
||||
/*
|
||||
msqrt {
|
||||
msqrt, mroot {
|
||||
border: 1px dotted red;
|
||||
background-color: green;
|
||||
}
|
||||
|
@ -162,6 +338,7 @@ mphantom {
|
|||
/*
|
||||
mfrac {
|
||||
background-color: blue;
|
||||
font-size: smaller;
|
||||
border: 1px dotted black;
|
||||
}
|
||||
*/
|
||||
|
@ -175,9 +352,11 @@ msub, msup {
|
|||
*/
|
||||
|
||||
/*
|
||||
mfenced {
|
||||
mclip {
|
||||
color: red;
|
||||
font-style: normal;
|
||||
border: 1px dashed green;
|
||||
background-color: yellow;
|
||||
border: 1px dashed dotted black;
|
||||
}
|
||||
*/
|
||||
|
||||
|
@ -188,9 +367,9 @@ mn {
|
|||
*/
|
||||
|
||||
mi {
|
||||
color: red;
|
||||
color: red;
|
||||
/* font-style: normal; */
|
||||
/* border: 1px dashed green;
|
||||
/* border: 1px dashed green; */
|
||||
/* background-color: yellow; */
|
||||
}
|
||||
|
||||
|
@ -199,7 +378,7 @@ mo {
|
|||
font-family: CMEX10, Math1, Math3, Math4;
|
||||
font-style: normal;
|
||||
border: 1px solid black;
|
||||
background-color: blue;
|
||||
background-color: lightyellow;
|
||||
}
|
||||
*/
|
||||
|
||||
|
@ -208,101 +387,4 @@ munder, mover, munderover {
|
|||
background-color: yellow;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
/*
|
||||
maction:hover {
|
||||
outline: thick solid black;
|
||||
border: 1px dotted black;
|
||||
}
|
||||
*/
|
||||
|
||||
maction {
|
||||
background-color: yellow;
|
||||
/* border: 1px solid black; */
|
||||
}
|
||||
|
||||
maction[actiontype="restyle#background"] {
|
||||
background-color: #3C6;
|
||||
border: 1px dotted red;
|
||||
}
|
||||
|
||||
maction[actiontype="restyle#zoom"] {
|
||||
font-size: 40pt;
|
||||
}
|
||||
|
||||
merror {
|
||||
display: block;
|
||||
font-family: sans-serif;
|
||||
font-weight: bold;
|
||||
white-space: pre;
|
||||
margin: 1em;
|
||||
padding: 1em;
|
||||
border-width: thin;
|
||||
border-style: inset;
|
||||
border-color: red;
|
||||
font-size: 14pt;
|
||||
background-color: lightyellow;
|
||||
}
|
||||
|
||||
mtable {
|
||||
/* display: inline-table; */
|
||||
display: table;
|
||||
/* border-style: outset; */
|
||||
/* border-color: #c0c0c0; */
|
||||
border-spacing: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* must never set padding in td, th */
|
||||
mtd {
|
||||
display: table-cell;
|
||||
vertical-align: inherit;
|
||||
background-color: inherit;
|
||||
text-align: center;
|
||||
/* border-style: inset; */
|
||||
/* border-color: #c0c0c0; */
|
||||
}
|
||||
|
||||
mtr {
|
||||
display: table-row;
|
||||
vertical-align: middle; /* baseline; */
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
mi {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
mstyle[fontstyle="normal"] mi {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
:-moz-math-font-size-smaller {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
:-moz-math-font-size-larger {
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
/*
|
||||
:-moz-math-font-style-italic {
|
||||
font-style: italic;
|
||||
}
|
||||
*/
|
||||
|
||||
:-moz-math-font-style-normal {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
:-moz-math-font-style-stretchy {
|
||||
font-family: CMSY10, CMEX10, MT Extra, Symbol /*,Math1, Math3, Math4, Math5*/;
|
||||
font-style: normal;
|
||||
/* background-color: #3C6; */
|
||||
}
|
||||
|
||||
:-moz-math-font-style-anonymous {
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче