diff options
author | Luke Bacon <luke@equivalentideas.com> | 2015-04-01 13:14:30 +1100 |
---|---|---|
committer | Luke Bacon <luke@equivalentideas.com> | 2015-04-01 13:19:16 +1100 |
commit | cebea2496b3cd8e5afe08bbe2cdabb818993fa1d (patch) | |
tree | c89f38e5ff58b23be16f1e0d18c0047e207d8afc | |
parent | dc62a87ef8c836f24e7b3876861cc4f1ee2d7721 (diff) |
layout search form with button on right hand side
basically flips inverts the layout and targets the
button rather than the label.
Having the button on the right is a familiar pattern
from Google, Facebook, all the other search froms in alaveteli etc.
It would also be strange to have the button before the input for keyboard access.
relates to #2210
-rw-r--r-- | app/assets/stylesheets/responsive/_header_layout.scss | 11 | ||||
-rw-r--r-- | app/assets/stylesheets/responsive/_header_style.scss | 6 |
2 files changed, 10 insertions, 7 deletions
diff --git a/app/assets/stylesheets/responsive/_header_layout.scss b/app/assets/stylesheets/responsive/_header_layout.scss index b3103e3a9..a1f4ab9de 100644 --- a/app/assets/stylesheets/responsive/_header_layout.scss +++ b/app/assets/stylesheets/responsive/_header_layout.scss @@ -131,25 +131,22 @@ } form{ @include grid-row; - padding-right: 1em; + padding: 1em 1em 0; @include lte-ie7 { display: inline; } } input{ @include grid-column($columns:9); - margin:0; + margin-right:0; @include lte-ie7 { width: 10.063em; } } - label{ + button[type="submit"]{ @include prefix-postfix-base; - @include grid-column($columns:3,$float:left); + @include grid-column($columns:3,$float:right); border:none; - img{ - max-width: 100%; - } @include lte-ie7 { width: 2.125em; } diff --git a/app/assets/stylesheets/responsive/_header_style.scss b/app/assets/stylesheets/responsive/_header_style.scss index 9008a73a7..ec1e8ea5c 100644 --- a/app/assets/stylesheets/responsive/_header_style.scss +++ b/app/assets/stylesheets/responsive/_header_style.scss @@ -2,3 +2,9 @@ #navigation { border-bottom: 1px solid #e9e9e9; } + +#navigation_search { + button[type="submit"] { + background:image-url('/assets/search.png') transparent no-repeat center center; + } +} |