jenkins-bot has submitted this change and it was merged.

Change subject: Fix font size in local overlays (inspectors)
......................................................................


Fix font size in local overlays (inspectors)

Change-Id: Iade0de5f851bd0ab3edde3050f22a8d3634f7ad9
---
M modules/editor/editors/visualeditor/mw.flow.ve.Target-monobook.less
M modules/editor/editors/visualeditor/mw.flow.ve.Target-vector.less
2 files changed, 16 insertions(+), 6 deletions(-)

Approvals:
  Mattflaschen: Looks good to me, approved
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git 
a/modules/editor/editors/visualeditor/mw.flow.ve.Target-monobook.less 
b/modules/editor/editors/visualeditor/mw.flow.ve.Target-monobook.less
index 5455334..6eef6fd 100644
--- a/modules/editor/editors/visualeditor/mw.flow.ve.Target-monobook.less
+++ b/modules/editor/editors/visualeditor/mw.flow.ve.Target-monobook.less
@@ -12,10 +12,15 @@
                }
        }
 
+       // Undo .mw-body-content font-size (0.875em) and apply font-size 
matching OOUI theme (0.8em)
+       @uiFontSize: 0.8em/0.625/1.27; /* 0.8em / x-small / 127% */
+
+       .ve-ui-overlay {
+               font-size: @uiFontSize;
+       }
+
        .oo-ui-toolbar {
-               // Undo .mw-body-content font-size (0.875em) and apply 
font-size matching OOUI theme (0.8em)
-               // TODO: Make this theme specific
-               font-size: 0.8em/0.625/1.27; /* 0.8em / x-small / 127% */
+               font-size: @uiFontSize;
                .oo-ui-toolbar {
                        // But don't let these rules double-apply for nested 
toolbars
                        font-size: 1em;
diff --git a/modules/editor/editors/visualeditor/mw.flow.ve.Target-vector.less 
b/modules/editor/editors/visualeditor/mw.flow.ve.Target-vector.less
index b9181ed..2bd1c78 100644
--- a/modules/editor/editors/visualeditor/mw.flow.ve.Target-vector.less
+++ b/modules/editor/editors/visualeditor/mw.flow.ve.Target-vector.less
@@ -11,14 +11,19 @@
                }
        }
 
+       // Undo .mw-body-content font-size (0.875em) and apply font-size 
matching OOUI theme (0.8em)
+       @uiFontSize: 0.8/0.875em;
+
+       .ve-ui-overlay {
+               font-size: @uiFontSize;
+       }
+
        .oo-ui-toolbar {
                // The 2px of positive margin gives room for the blue border of 
the
                // documentNode (via .mw-ui-input)
                margin: (-@editorToolbarHeight - 2px) 2px 2px 2px;
 
-               // Undo .mw-body-content font-size (0.875em) and apply 
font-size matching OOUI theme (0.8em)
-               // TODO: Make this theme specific
-               font-size: 0.8/0.875em;
+               font-size: @uiFontSize;
                .oo-ui-toolbar {
                        // But don't let these rules double-apply for nested 
toolbars
                        font-size: 1em;

-- 
To view, visit https://gerrit.wikimedia.org/r/285294
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iade0de5f851bd0ab3edde3050f22a8d3634f7ad9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to