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
This commit is contained in:
Volker E 2017-10-09 17:44:34 -07:00
parent 7060ec573f
commit 0d95e5b6cd
1 changed files with 10 additions and 11 deletions

View File

@ -13,12 +13,16 @@
form, form,
input { input {
margin: 0; margin: 0.4em 0 0;
margin-top: 0.4em;
} }
} }
div#simpleSearch { #simpleSearch {
background-color: #fff;
.background-image( 'images/search-fade.png' );
background-position: top left;
background-repeat: repeat-x;
color: #000;
display: block; display: block;
width: 12.6em; width: 12.6em;
width: 20vw; /* responsive width */ width: 20vw; /* responsive width */
@ -31,11 +35,6 @@ div#simpleSearch {
min-height: 1px; /* Gotta trigger hasLayout for IE7 */ min-height: 1px; /* Gotta trigger hasLayout for IE7 */
border: 1px solid @colorGray10; border: 1px solid @colorGray10;
border-radius: @borderRadius; 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 ); .transition( border-color 250ms );
&:hover { &:hover {
@ -44,11 +43,11 @@ div#simpleSearch {
// Styles for both the search input and the button // Styles for both the search input and the button
input { input {
background-color: transparent;
color: #000;
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0; border: 0;
background-color: transparent;
color: #000;
} }
// The search input // The search input
@ -103,7 +102,7 @@ div#simpleSearch {
} }
#searchButton { #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-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
} }