mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-15 11:48:23 +00:00
3ebade4175
Previously there were only two possible button widths, now there are four. Bug: T145613 Change-Id: I233f4f7c6cb810d6b5d54a5242514afed7c2ad9d
109 lines
2.4 KiB
CSS
109 lines
2.4 KiB
CSS
/*!
|
|
* VisualEditor UserInterface MWMathDialog styles.
|
|
*
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-mwMathDialog-content .oo-ui-bookletLayout-stackLayout {
|
|
padding: 0.5em;
|
|
}
|
|
|
|
.ve-ui-mwMathDialog-content .oo-ui-bookletLayout-stackLayout h3 {
|
|
margin: 0 0 0.5em 0;
|
|
color: #888;
|
|
font-weight: normal;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.ve-ui-mwMathDialog-content .oo-ui-textInputWidget {
|
|
max-width: none;
|
|
}
|
|
|
|
.ve-ui-mwMathDialog-menuLayout > .oo-ui-menuLayout-content {
|
|
border-bottom: 1px solid #e6e6e6;
|
|
box-shadow: 0 1px 0 0 rgba( 0, 0, 0, 0.05 ); /* stylelint-disable-line no-unsupported-browser-features */
|
|
overflow: auto;
|
|
}
|
|
|
|
.ve-ui-mwMathDialog-menuLayout-short .oo-ui-menuLayout-menu {
|
|
height: 10em;
|
|
}
|
|
|
|
.ve-ui-mwMathDialog-menuLayout-short .oo-ui-menuLayout-content {
|
|
bottom: 10em;
|
|
}
|
|
|
|
.ve-ui-mwMathPage-symbol {
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
cursor: pointer;
|
|
font-size: 1.5em;
|
|
width: 1.8em;
|
|
height: 1.8em;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
margin: 0 0.1em 0.1em 0;
|
|
box-sizing: border-box;
|
|
border: 1px solid #e6e6e6;
|
|
/* stylelint-disable no-unsupported-browser-features */
|
|
-webkit-transition: border-color 200ms;
|
|
-moz-transition: border-color 200ms;
|
|
transition: border-color 200ms;
|
|
/* stylelint-enable no-unsupported-browser-features */
|
|
}
|
|
|
|
.ve-ui-mwMathPage-symbol-wide {
|
|
/* 2(symbol width) + margin */
|
|
width: 3.7em;
|
|
}
|
|
|
|
.ve-ui-mwMathPage-symbol-wider {
|
|
/* 2.5(symbol width) + 1.5(margin) */
|
|
width: 4.65em;
|
|
}
|
|
|
|
.ve-ui-mwMathPage-symbol-widest {
|
|
/* 3(symbol width) + 2(margin) */
|
|
width: 5.6em;
|
|
}
|
|
|
|
.ve-ui-mwMathPage-symbol-contain {
|
|
background-size: contain; /* stylelint-disable-line no-unsupported-browser-features */
|
|
}
|
|
|
|
.ve-ui-mwMathPage-symbol-largeLayout {
|
|
height: 3.7em;
|
|
width: 4.65em;
|
|
}
|
|
|
|
.ve-ui-mwMathPage-symbol-largeLayout.ve-ui-mwMathPage-symbol-wide {
|
|
/* 5(symbol width) + 4(margin) */
|
|
width: 9.4em;
|
|
}
|
|
|
|
.ve.ui.mwMathPage-symbol:hover {
|
|
border-color: #ccc;
|
|
}
|
|
|
|
.ve-ui-mwMathDialog-preview {
|
|
text-align: center;
|
|
line-height: 10em;
|
|
height: 10em;
|
|
}
|
|
|
|
.ve-ui-mwMathDialog-menuLayout-short .ve-ui-mwMathDialog-preview {
|
|
line-height: 6em;
|
|
height: 6em;
|
|
}
|
|
|
|
/* Ensures the preview image is vertically centred */
|
|
.ve-ui-mwMathDialog-preview .mwe-math-fallback-image-display {
|
|
display: inline-block;
|
|
}
|
|
|
|
.ve-ui-mwMathPage-outline {
|
|
padding: 0.5em;
|
|
color: #555;
|
|
}
|