[Rt-commit] rt branch, 4.4/layout-changes, created. rt-4.2.11-239-g9687c3e
Shawn Moore
shawn at bestpractical.com
Mon Oct 19 19:23:55 EDT 2015
The branch, 4.4/layout-changes has been created
at 9687c3e3cb8040debfd073ec721ba502d2b20c04 (commit)
- Log -----------------------------------------------------------------
commit 9687c3e3cb8040debfd073ec721ba502d2b20c04
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Mon Oct 19 22:42:11 2015 +0000
Improve topactions layout
Use input[type=search] for a dropdown of recent searches in WebKit (with a
button to clear them)
More modern rounded, borderless search field
Adjust sizing and layout to be more consistent and centered
On focus widen search field
diff --git a/share/html/Elements/SimpleSearch b/share/html/Elements/SimpleSearch
index 7db2aca..6d07a75 100644
--- a/share/html/Elements/SimpleSearch
+++ b/share/html/Elements/SimpleSearch
@@ -46,7 +46,7 @@
%#
%# END BPS TAGGED BLOCK }}}
<form action="<% RT->Config->Get('WebPath') %><% $SendTo %>" id="simple-search">
- <input size="12" name="q" accesskey="0" class="field" value="<% $value %>" placeholder="<% $Placeholder %>..." />
+ <input size="12" name="q" accesskey="0" class="field" value="<% $value %>" placeholder="<% $Placeholder %>..." type="search" results=5 autosave="simple-search" />
</form>
<%init>
my $value = defined $DECODED_ARGS->{q} ? $DECODED_ARGS->{q} : '';
diff --git a/share/static/css/aileron/nav.css b/share/static/css/aileron/nav.css
index d78fad2..573284b 100644
--- a/share/static/css/aileron/nav.css
+++ b/share/static/css/aileron/nav.css
@@ -157,3 +157,10 @@
-moz-border-radius: 0 0 0 5px;
-webkit-border-radius: 0 0 0 5px;
}
+
+#simple-search input.field {
+ border-radius: 10px;
+ -moz-border-radius: 10px;
+ -webkit-border-radius: 10px;
+}
+
diff --git a/share/static/css/ballard/nav.css b/share/static/css/ballard/nav.css
index 09858cb..47f4683 100644
--- a/share/static/css/ballard/nav.css
+++ b/share/static/css/ballard/nav.css
@@ -142,3 +142,8 @@
color: #000;
}
+#simple-search input.field {
+ border-radius: 10px;
+ -moz-border-radius: 10px;
+ -webkit-border-radius: 10px;
+}
diff --git a/share/static/css/base/nav.css b/share/static/css/base/nav.css
index 538aab8..dd63b51 100644
--- a/share/static/css/base/nav.css
+++ b/share/static/css/base/nav.css
@@ -27,3 +27,22 @@
width: 1.25em;
}
+#simple-search input.field {
+ border: none;
+
+ /* turn off webkit input[type=search] styling */
+ -webkit-appearance: textfield;
+}
+
+#simple-search input.field::-webkit-search-cancel-button {
+ /* hide webkit x button for searches */
+ -webkit-appearance: none;
+}
+
+#topactions input,
+#topactions select,
+#topactions button {
+ height: 2em;
+ padding-top: 0;
+ padding-bottom: 0;
+}
diff --git a/share/static/css/rudder/nav.css b/share/static/css/rudder/nav.css
index 3e1be38..68a1ea6 100644
--- a/share/static/css/rudder/nav.css
+++ b/share/static/css/rudder/nav.css
@@ -117,12 +117,10 @@
#topactions {
position: absolute;
background: transparent;
- top: 2.5em;
+ top: 3.25em;
right: 0em;
padding-right: 0.7em;
width: auto;
- padding-top: 0.5em;
- padding-bottom: 0.5em;
min-width: 42em;
font-size: 0.9em;
z-index: 99;
@@ -140,8 +138,25 @@
padding-bottom: 0.25em;
padding-left: 0.5em;
padding-right: 0.5em;
- width: 8em;
vertical-align: middle;
+
+ width: 8em;
+ -webkit-transition: width 0.25s ease-in-out;
+ -moz-transition: width 0.25s ease-in-out;
+ -ms-transition: width 0.25s ease-in-out;
+ transition: width 0.25s ease-in-out;
+}
+
+#topactions input:focus {
+ width: 16em;
+ -webkit-transition: width 0.25s ease-in-out;
+ -moz-transition: width 0.25s ease-in-out;
+ -ms-transition: width 0.25s ease-in-out;
+ transition: width 0.25s ease-in-out;
+}
+
+#topactions select {
+ -webkit-appearance: menulist-button;
}
#topactions .select-queue {
@@ -210,3 +225,10 @@
-moz-border-radius: 0 0 0 5px;
-webkit-border-radius: 0 0 0 5px;
}
+
+#simple-search input.field {
+ border-radius: 10px;
+ -moz-border-radius: 10px;
+ -webkit-border-radius: 10px;
+}
+
-----------------------------------------------------------------------
More information about the rt-commit
mailing list