jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/383293 )
Change subject: simpleSearch: Reduce selector specificity & clean up
......................................................................
simpleSearch: Reduce selector specificity & clean up
Reducing selector specificity and cleaning up CSS as in reducing
properties and putting main colors on top of selectors.
Change-Id: I91959f07404382fcc143607ab4cd5cf0c9aed13e
---
M components/search.less
1 file changed, 10 insertions(+), 11 deletions(-)
Approvals:
Krinkle: Looks good to me, approved
jenkins-bot: Verified
diff --git a/components/search.less b/components/search.less
index 34cbd96..308d557 100644
--- a/components/search.less
+++ b/components/search.less
@@ -13,12 +13,16 @@
form,
input {
- margin: 0;
- margin-top: 0.4em;
+ margin: 0.4em 0 0;
}
}
-div#simpleSearch {
+#simpleSearch {
+ background-color: #fff;
+ .background-image( 'images/search-fade.png' );
+ background-position: top left;
+ background-repeat: repeat-x;
+ color: #000;
display: block;
width: 12.6em;
width: 20vw; /* responsive width */
@@ -31,11 +35,6 @@
min-height: 1px; /* Gotta trigger hasLayout for IE7 */
border: 1px solid @colorGray10;
border-radius: @borderRadius;
- color: #000;
- background-color: #fff;
- .background-image( 'images/search-fade.png' );
- background-position: top left;
- background-repeat: repeat-x;
.transition( border-color 250ms );
&:hover {
@@ -44,11 +43,11 @@
// Styles for both the search input and the button
input {
+ background-color: transparent;
+ color: #000;
margin: 0;
padding: 0;
border: 0;
- background-color: transparent;
- color: #000;
}
// The search input
@@ -103,7 +102,7 @@
}
#searchButton {
- .background-image-svg('images/search-ltr.svg',
'images/search-ltr.png');
+ .background-image-svg( 'images/search-ltr.svg',
'images/search-ltr.png' );
background-position: center center;
background-repeat: no-repeat;
}
--
To view, visit https://gerrit.wikimedia.org/r/383293
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I91959f07404382fcc143607ab4cd5cf0c9aed13e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/Vector
Gerrit-Branch: master
Gerrit-Owner: VolkerE <[email protected]>
Gerrit-Reviewer: Bartosz DziewoĆski <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits