mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 02:04:02 +00:00
Add padding support for other skins
Change-Id: Ia7494545f2dda36bc2798c23ff8a2855212b77aa
This commit is contained in:
parent
659e0963f1
commit
29680aceb7
|
@ -13,12 +13,27 @@
|
|||
box-sizing: border-box;
|
||||
pointer-events: none;
|
||||
|
||||
// Core VE default padding
|
||||
padding: 0.5em 1.5em;
|
||||
|
||||
// Skin specific paddings
|
||||
.skin-vector & {
|
||||
padding: 0 1.14286em; /* 1/0.875 */
|
||||
@media screen and ( min-width: 982px ) {
|
||||
padding: 0 1.71429em; /* surface-margin-left (1.5em) / (mw-body-content font-size) 0.875em */
|
||||
}
|
||||
}
|
||||
|
||||
.skin-monobook & {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.skin-timeless & {
|
||||
padding-left: 2em;
|
||||
padding-right: 2em;
|
||||
}
|
||||
}
|
||||
|
||||
.CodeMirror pre,
|
||||
.CodeMirror-lines {
|
||||
padding: 0;
|
||||
|
|
Loading…
Reference in a new issue