allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [1/2] allura git commit: Add a stylized search button to sidebar search boxes
Date Wed, 22 Nov 2017 22:14:27 GMT
Repository: allura
Updated Branches:
  refs/heads/db/search_button [created] 8c091aac6


Add a stylized search button to sidebar search boxes


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/4f962ac0
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/4f962ac0
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/4f962ac0

Branch: refs/heads/db/search_button
Commit: 4f962ac0d3d1f79341b85411a6be61342ff94467
Parents: 49fccb7
Author: Dave Brondsema <dave@brondsema.net>
Authored: Wed Nov 22 15:12:49 2017 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Wed Nov 22 15:12:49 2017 -0500

----------------------------------------------------------------------
 Allura/allura/nf/allura/css/site_style.css         | 17 +++++++++++++++++
 .../templates/jinja_master/sidebar_menu.html       |  4 ++++
 2 files changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/4f962ac0/Allura/allura/nf/allura/css/site_style.css
----------------------------------------------------------------------
diff --git a/Allura/allura/nf/allura/css/site_style.css b/Allura/allura/nf/allura/css/site_style.css
index 1f9935b..e7d5e65 100644
--- a/Allura/allura/nf/allura/css/site_style.css
+++ b/Allura/allura/nf/allura/css/site_style.css
@@ -1752,6 +1752,23 @@ a.active {
   position: relative;
   z-index: 2;
 }
+#sidebar #search {
+  position: relative;
+}
+#sidebar #search .fa-search {
+  position: absolute;
+  z-index: 2;
+  top: 15px;
+  right: 0;
+  font-size: 14px;
+  text-align: center;
+  height: 23px;
+  width: 23px;
+  line-height: 23px;
+}
+#sidebar #search .fa-search:hover {
+  cursor: pointer;
+}
 #sidebar ul {
   border: 1px solid #aaaaaa;
   -moz-border-radius: 4px;

http://git-wip-us.apache.org/repos/asf/allura/blob/4f962ac0/Allura/allura/templates/jinja_master/sidebar_menu.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/sidebar_menu.html b/Allura/allura/templates/jinja_master/sidebar_menu.html
index 8d2831a..4c5acf6 100644
--- a/Allura/allura/templates/jinja_master/sidebar_menu.html
+++ b/Allura/allura/templates/jinja_master/sidebar_menu.html
@@ -47,6 +47,10 @@
   {% if c.app and c.app.searchable %}
     <form id="search" method="GET" action="{{c.app.url + 'search/'}}">
       <input name="q" type="text" title="Search {{c.app.config.options.mount_label}}"
placeholder="Search {{c.app.config.options.mount_label}}">
+      <label>
+        <input type="submit" style="display:none">
+        <b class="fa fa-search" title="Submit"></b>
+      </label>
     </form>
   {% else %}
     <div>&nbsp;</div>


Mime
View raw message