Commit e7739de5 authored by Randall Leeds's avatar Randall Leeds

Kill the px calculations in the search styles

Besides the line height hack for FF kill the rest of the px related
calculation and do everything in nice, pretty ems.
parent ae6603b2
...@@ -11,11 +11,10 @@ ...@@ -11,11 +11,10 @@
.simple-search-icon { .simple-search-icon {
position: absolute; position: absolute;
font-size: 1.1em;
top: 50%; top: 50%;
left: 8 / 14 * 1em; left: .6em;
margin-top: -0.5em; margin-top: -.5em;
font-size: 14px;
line-height: 1;
pointer-events: none; pointer-events: none;
:not(:focus) ~ & { :not(:focus) ~ & {
...@@ -26,11 +25,11 @@ ...@@ -26,11 +25,11 @@
.simple-search-input { .simple-search-input {
outline: none; outline: none;
color: $text-color; color: $text-color;
height: 2em; // Temporary fix for FF. line-height: 24px;
width: 100%; width: 100%;
border-radius: 1em; border-radius: 2em;
border: 1px solid $gray-lighter !important; // Override base input styles. border: 1px solid $gray-lighter !important; // Override base input styles.
padding-left: 2em; padding: 0 2em;
.simple-search-inactive &:not(:focus) { .simple-search-inactive &:not(:focus) {
border-color: #f3f3f3 !important; border-color: #f3f3f3 !important;
...@@ -42,25 +41,23 @@ ...@@ -42,25 +41,23 @@
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
margin-top: -0.5em; margin-top: -.5em;
margin-left: -0.5em; margin-left: -.5em;
font-size: .7em;
} }
position: absolute; position: absolute;
outline: none; outline: none;
right: 5 / 9 * 1em; right: .35em;
top: 50%; top: 50%;
border: none; border: none;
border-radius: 50%; border-radius: 50%;
background: $gray-light; background: $gray-light;
color: #fff; color: #fff;
width: 16 / 9 * 1em; width: 1.33em;
height: 16 / 9 * 1em; height: 1.33em;
padding: 0; padding: 0;
margin-top: -8 / 9 * 1em; margin-top: -.65em;
font-size: 9px;
text-align: center;
text-shadow: none;
@include box-shadow(none); @include box-shadow(none);
&:focus, &:hover, &:active:not([disabled]) { &:focus, &:hover, &:active:not([disabled]) {
...@@ -70,6 +67,5 @@ ...@@ -70,6 +67,5 @@
border: none; border: none;
background-image: none; background-image: none;
box-shadow: none; box-shadow: none;
top: 50%; // Reset button state.
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment