You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2020/02/26 01:15:57 UTC

[lucene-site] branch master updated: Fix some style differences between Core and Home; make search fields use just HTML5 placeholder (no javascript)

This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 88e8e97  Fix some style differences between Core and Home; make search fields use just HTML5 placeholder (no javascript)
88e8e97 is described below

commit 88e8e97c60f1b01bcd9a1b6021bf2cb14f2afc9f
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Wed Feb 26 02:15:41 2020 +0100

    Fix some style differences between Core and Home; make search fields use just HTML5 placeholder (no javascript)
---
 themes/lucene/static/css/lucene/core.css    |  8 +++-----
 themes/lucene/static/css/lucene/global.css  |  1 -
 themes/lucene/templates/lucene/_search.html | 11 +----------
 themes/lucene/templates/solr/_search.html   | 11 +----------
 4 files changed, 5 insertions(+), 26 deletions(-)

diff --git a/themes/lucene/static/css/lucene/core.css b/themes/lucene/static/css/lucene/core.css
index e8eae27..86200e2 100644
--- a/themes/lucene/static/css/lucene/core.css
+++ b/themes/lucene/static/css/lucene/core.css
@@ -90,7 +90,6 @@ html, body, #wrap {height: 100%;}
 body > #wrap {height: auto; min-height: 100%;}
 
 body {
-    font: 11px/ 165% "Lucida Grande", Geneva, Verdana, Arial, Helvetica, sans-serif;
 	color: black;
 	margin: 0;
 	padding: 0;
@@ -479,7 +478,7 @@ input.button {
 	padding-left:5px;
 	right:0px;
     height: 34px;
-    top: 84px;
+    top: 92px;
 	border-radius:3px;
     z-index: 99999;
 	background-color:#444;
@@ -778,7 +777,6 @@ p.thumbs {
 /*HOME*/
 body#home #wrap {
 	position: relative;
-	background: #fff url(/theme/images/lucene/home-wrapper.png) top center no-repeat;
 	width: 945px;
 	margin: 0 auto;
 	text-align: left;
@@ -795,7 +793,7 @@ body#home #header {
 
 body#home #header #slides {
 	position: absolute;
-	top: 118px;
+	top: 126px;
 	left: 0px;
 	width: 945px;
 	height: 260px;
@@ -841,7 +839,7 @@ body#home #header #slides .description {
 body#home #header #slides .descwrapper .description {
 	position: relative;
 	top: 15px;
-	left: 10px;
+	left: 20px;
 	font-size: 14px;
 	line-height: 15px;
 	color: #e0e0e0;
diff --git a/themes/lucene/static/css/lucene/global.css b/themes/lucene/static/css/lucene/global.css
index e9a2073..7237d27 100644
--- a/themes/lucene/static/css/lucene/global.css
+++ b/themes/lucene/static/css/lucene/global.css
@@ -976,7 +976,6 @@ body#home #col2 {
 /*SUBPAGE - NO SIDEBAR*/
 body#full #wrap {
 	position: relative;
-	background: #fff url(/theme/images/lucene/full-wrapper.jpg) top center no-repeat;
 	width: 945px;
 	margin: 0 auto;
 	text-align: left;
diff --git a/themes/lucene/templates/lucene/_search.html b/themes/lucene/templates/lucene/_search.html
index 9cbd6e3..3a373ac 100644
--- a/themes/lucene/templates/lucene/_search.html
+++ b/themes/lucene/templates/lucene/_search.html
@@ -1,16 +1,7 @@
 <div id="search" style="float:right;zoom:1">
-  <script type="text/javascript">
-    function getBlank(input, stdValue) {
-      if (input.value == stdValue) {
-        input.value = '';
-      }
-      return true;
-    }
-  </script>
   <form id="quick-search" method="GET" action="https://sematext.com/opensee/lucene" name="searchform">
     <fieldset>
-      <input type="search" id="q" name="q" value="Search with Apache Solr..." class="class1 class2 hint" accesskey="q"
-             onfocus="getBlank(this, 'Search with Apache Solr...')">
+      <input type="search" id="q" name="q" placeholder="Search with Apache Solr..." class="class1 class2 hint" accesskey="q">
     </fieldset>
   </form>
 </div>
diff --git a/themes/lucene/templates/solr/_search.html b/themes/lucene/templates/solr/_search.html
index 3cd2723..64b70c0 100644
--- a/themes/lucene/templates/solr/_search.html
+++ b/themes/lucene/templates/solr/_search.html
@@ -1,16 +1,7 @@
-<script type="text/javascript">
-  function getBlank(input, stdValue) {
-    if (input.value == stdValue) {
-      input.value = '';
-    }
-    return true;
-  }
-</script>
-
 <form id="quick-search" method="GET" action="https://sematext.com/opensee/solr" name="searchform">
   <fieldset>
     <div ng-show="toggled" class="search-box ng-hide">
-      <input type="search" name="q" placeholder="Search..." accesskey="q" onfocus="getBlank(this, 'Search...');"/>
+      <input type="search" name="q" placeholder="Search..." accesskey="q"/>
       <a class="search-button" type="submit" onclick="this.closest('form').submit();return false;"><img src="{{ SITEURL }}/theme/images/solr/magnifying-glass.png"/></a>
     </div>
   </fieldset>