From 922daba0a996c1ad3c7e7a9074f57960f70a0a4f Mon Sep 17 00:00:00 2001 From: Volker E Date: Mon, 15 Jun 2020 16:10:25 -0700 Subject: [PATCH] [less] Remove default, already inherited user-agent properties Also describe #simpleSearch reasoning clearer. Change-Id: Ief3ebe9b1f1c519d6424dd8495a3522889efbbbc --- resources/skins.vector.styles/SearchBox.less | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/resources/skins.vector.styles/SearchBox.less b/resources/skins.vector.styles/SearchBox.less index a7fa5f23..6089f800 100644 --- a/resources/skins.vector.styles/SearchBox.less +++ b/resources/skins.vector.styles/SearchBox.less @@ -17,15 +17,17 @@ } } +// Defined as `div`. +// Provide extra element for gadgets due to `form` already carrying an `id`. #simpleSearch { - display: block; - width: 13.2em; - width: 20vw; /* responsive width */ + position: relative; min-width: 5em; + // Support: IE 8, Firefox 18-, Chrome 19-, Safari 5.1-, Opera 19-, Android 4.4.4-. + width: 13.2em; + // Support: Modern browsers, responsive width. + width: 20vw; max-width: 20em; height: 100%; - margin-top: 0; - position: relative; // Styles for both the search input and the button. input {