From f7bd5b5503a18735a0cffd56d5f117f111ffd810 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Tue, 7 Oct 2014 15:40:03 -0700 Subject: [PATCH] MediaWiki UI: Use em's for the button width In mobile iOS this causes overlap of buttons with footer text on our Wikigrok widget. We use em's to create a margin for the button but since the button is defined in pixels when zooming out of the page this causes overlap. Bug: 71577 Change-Id: I0332b925a3f09c7f924aa48bd636f7fb19743ff7 --- resources/src/mediawiki.ui/components/buttons.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/src/mediawiki.ui/components/buttons.less b/resources/src/mediawiki.ui/components/buttons.less index 01c481d108..d3037987b3 100644 --- a/resources/src/mediawiki.ui/components/buttons.less +++ b/resources/src/mediawiki.ui/components/buttons.less @@ -47,7 +47,7 @@ // Container styling .button-colors(#FFF); border-radius: @borderRadius; - min-width: 70px; + min-width: 4em; // Ensure that buttons and inputs are nicely aligned when they have differing heights vertical-align: middle; -- 2.20.1