mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-09-23 10:21:45 +00:00
Remove special font-size
treatment following-up UI unified in 14px
base
Removing `0.8em`/`12.8px` VE special base `font-size` for UI as we're unifying OOUI interfaces to `14px` equals to `0.875em` at user agent default size. Bug: T189920 Depends-on: I693d168d2ccf2babbcfe8952af3e1c262aa97773 Change-Id: Idf64b077d8e5ab5b1352052b72ac198816dcc07a
This commit is contained in:
parent
372124fe56
commit
3cfe17ea37
|
@ -54,6 +54,8 @@
|
|||
var surface = ve.init.target.getSurface();
|
||||
if ( surface.getMode() === 'source' ) {
|
||||
target = new mw.TemplateData.VETarget( surface, config );
|
||||
// Use the same font size as main content text
|
||||
target.$element.addClass( 'mw-body-content' );
|
||||
$( '.ve-init-mw-desktopArticleTarget-originalContent' ).prepend( target.$element );
|
||||
}
|
||||
} );
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
.tdg-editscreen-main {
|
||||
font-size: 0.914286em; /* (12.8/14) */
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.ve-init-mw-desktopArticleTarget .tdg-editscreen-main {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
.tdg-editscreen-main-helplink {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
|
|
@ -18,10 +18,6 @@
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mw-templateData-doc-params .oo-ui-widget {
|
||||
font-size: 0.9143em;
|
||||
}
|
||||
|
||||
.mw-templateData-format {
|
||||
font-weight: normal;
|
||||
font-size: 0.85em;
|
||||
|
|
Loading…
Reference in a new issue