From a8c2913c26f4c0b1e18d749fefea07af45429d87 Mon Sep 17 00:00:00 2001 From: Isarra Date: Sat, 31 Oct 2015 17:23:19 +0000 Subject: [PATCH] Style search some more, add an icon Change-Id: Id2ce1f3761f3948b647e638b5f130d5b5f9cc60a --- TimelessTemplate.php | 39 ++++++++------ resources/images/search-ltr.png | Bin 0 -> 647 bytes resources/images/search-ltr.svg | 93 ++++++++++++++++++++++++++++++++ resources/screen-desktop.less | 35 +++++++----- 4 files changed, 138 insertions(+), 29 deletions(-) create mode 100644 resources/images/search-ltr.png create mode 100644 resources/images/search-ltr.svg diff --git a/TimelessTemplate.php b/TimelessTemplate.php index cabe983..5ecae6c 100644 --- a/TimelessTemplate.php +++ b/TimelessTemplate.php @@ -197,26 +197,33 @@ class TimelessTemplate extends BaseTemplate { } /** - * Outputs the logo and site title + * Outputs the search */ private function outputSearch() { ?> - +
+
+
+ makeSearchInput( array( 'id' => 'searchInput' ) ); ?> +
+ get( 'searchtitle' ) ); + echo $this->makeSearchButton( + 'fulltext', + array( 'id' => 'mw-searchButton', 'class' => 'searchButton mw-fallbackSearchButton' ) + ); + echo $this->makeSearchButton( + 'go', + array( 'id' => 'searchButton', 'class' => 'searchButton' ) + ); + ?> +
+
+ #hY_;Jo~ z&%l3{WQ`yQRH0C)BuVm8MCO4B;1W2t*6v(gUF`)yklYElzP?@(kptji&JZVB>u1$! z^)wgQhc$u8{G|Xm*IF+OgDQai{e9h^EQR$%Ev3#$1n^VN~uGj06ZEU9eob$-I&l?TXDQF0~=^{b@iKw zd`fE(sbn*%-a*iWaNxDD7&jdr^|od-0= z%sA!cZNTG!q13B9U>wJ8|NCvg-PEwwu7qLuWEd=pqNgIV;$(NT84ti1v+Mi*TVM_- zD5VagD2kL)+rICgb-UeZ;5D!Ui~xwpg)!zJ3mja^#>U2jIF6gZRNl%NZ5d;h-P<0# z^lG(ws + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/resources/screen-desktop.less b/resources/screen-desktop.less index 9dc2492..7e64b0c 100644 --- a/resources/screen-desktop.less +++ b/resources/screen-desktop.less @@ -1,7 +1,8 @@ @import "variables.less"; .ts-inner { - max-width: 1250px; + max-width: 1300px; + padding: 0 3em; margin: auto; } #p-logo-text, @@ -22,11 +23,12 @@ #mw-header-container { position: fixed; + top: 0; width: 100%; background: @foreground; color: @text-inverse; height: 3em; - border-bottom: solid @border @foreground2; + border-bottom: solid 1px @foreground2; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); } @@ -50,28 +52,35 @@ /* SEARCH */ -#p-search { +#simpleSearch { box-shadow: inset 0 2px 2px 1px rgba(0, 0, 0, 0.1); background: @background; -} -#searchInput-container { - margin: .5em 8em 0 0; + margin: .5em 0 0 0; + position: relative; + border-top: solid 1px @foreground2; } #searchInput { border: none; margin: 0; - width: 100%; - height: 2.25em; - padding-left: 1em; + height: 2.1em; + padding: .65em 4.5em .45em 2em; box-shadow: none; background: transparent; + width: 100%; } -#searchGoButton { - float: right; - width: 7.5em; - height: 2.25em; +#searchButton, +#mw-searchButton { + position: absolute; + top: 0; + right: 1.5em; + width: 2.5em; + height: 2.5em; border: none; background: transparent; + text-indent: -99999px; + .background-image-svg('images/search-ltr.svg', 'images/search-ltr.png'); + background-position: 50% 40%; + background-repeat: no-repeat; }