polish search a little bit
[themes.git] / LCARStrek / browser / searchbar.css
index 63efbbcdca5b2c43c87855af06337b8dfb7eb2e8..253fdbb9b3f5ad54a7febea316a57d5c635791dc 100644 (file)
@@ -1,7 +1,6 @@
-.searchbar-textbox {
-  width: 6em;
-  min-width: 6em;
-}
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 .autocomplete-textbox-container {
   -moz-box-align: stretch;
   -moz-box-align: center;
   background: none;
   border: none;
+  border-radius: 3px 0px 0px 3px;
+}
+
+.searchbar-engine-button:-moz-locale-dir(rtl) {
+  border-radius: 0px 3px 3px 0px;
 }
 
-.searchbar-engine-button["open=true"] {
+.searchbar-engine-button:hover {
+  background-color: #FFCF00;
+}
+
+.searchbar-engine-button[open="true"] {
   background-color: #FF9F00;
 }
 
@@ -43,6 +51,7 @@
   list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
 }
 
+.searchbar-engine-button:hover > .searchbar-dropmarker-image,
 .searchbar-engine-button[open="true"] > .searchbar-dropmarker-image {
   list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
 }
   -moz-image-region: rect(0, 16px, 16px, 0);
 }
 
-.search-go-button:-moz-system-metric(touch-enabled) {
-  -moz-padding-start: 5px;
-  -moz-padding-end: 3px;
-}
-
 .search-go-button:-moz-locale-dir(rtl) {
-  -moz-transform: scaleX(-1);
+  transform: scaleX(-1);
 }
 
 .search-go-button:hover {
 .searchbar-engine-menuitem[selected="true"] > .menu-iconic-text {
   font-weight: bold;
 }
+
+
+.searchbar-search-button-container {
+  -moz-box-align: center;
+  padding: 3px 4px;
+  -moz-padding-end: 2px;
+}
+
+.searchbar-search-button {
+  list-style-image: url("chrome://browser/skin/search-indicator.png");
+  -moz-image-region: rect(0, 20px, 20px, 0);
+  margin: -2px -2px;
+  border-radius: 3px;
+}
+
+.searchbar-search-button:hover,
+.searchbar-search-button:hover:active {
+  -moz-image-region: rect(0, 40px, 20px, 20px);
+  background-color: #FFCF00;  
+}
+
+searchbar[oneoffui] .search-go-button {
+  list-style-image: url("chrome://browser/skin/reload-stop-go.png");
+  -moz-image-region: rect(0, 42px, 14px, 28px);
+}
+
+searchbar[oneoffui] .search-go-button:hover {
+  -moz-image-region: rect(14px, 42px, 28px, 28px);
+}
+
+searchbar[oneoffui] .search-go-button:hover:active {
+  -moz-image-region: rect(28px, 42px, 42px, 28px);
+}
+
+searchbar[oneoffui] .search-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
+  transform: scaleX(-1);
+}
+
+
+.search-panel-current-engine {
+  border-top: none !important;
+  border-bottom: 1px solid #9C9CFF;
+  -moz-box-align: center;
+}
+
+.search-panel-header {
+  font-weight: normal;
+  background-color: #A09090;
+  border-top: 1px solid #9C9CFF;
+  margin: 0;
+  padding: 3px 6px;
+  color: #000000;
+}
+
+.search-panel-current-input > label {
+  margin: 0 0 !important;
+}
+
+.search-panel-input-value {
+  color: black;
+}
+
+.search-panel-one-offs {
+  margin: 0 0 !important;
+  border-top: 1px solid #9C9CFF;
+}
+
+.searchbar-engine-one-off-item {
+  display: inline-block;
+  border: none;
+  border-radius: 0;
+  min-width: 48px;
+  height: 32px;
+  margin: 0 0;
+  padding: 0 0;
+  background: none;
+  background-image: url('chrome://browser/skin/search-oneoff-bg-border.png');
+  background-repeat: no-repeat;
+  background-position: right center;
+}
+
+.searchbar-engine-one-off-item:not(.last-row) {
+  box-sizing: padding-box;
+  border-bottom: 1px solid #9C9CFF;
+}
+
+.searchbar-engine-one-off-item.last-of-row {
+  background-image: none;
+}
+
+.searchbar-engine-one-off-item:hover:not(.dummy),
+.searchbar-engine-one-off-item[selected] {
+  background-color: #008484;
+  background-image: none;
+}
+
+.searchbar-engine-one-off-item > .button-box {
+  border: none;
+  padding: 0 0;
+}
+
+.searchbar-engine-one-off-item > .button-box > .button-text {
+  display: none;
+}
+
+.searchbar-engine-one-off-item > .button-box > .button-icon {
+  width: 16px;
+  height: 16px;
+}
+.addengine-item {
+  border: none;
+/*  height: 32px;*/
+  margin: 0 0;
+  padding: 0 10px;
+  border-radius: 0;
+}
+
+.addengine-item > .button-box {
+  -moz-box-pack: start;
+}
+
+.addengine-item:first-of-type {
+  border-top: 1px solid #9C9CFF;
+}
+
+.addengine-item:hover {
+  background-color: #FFCF00;
+  color: #000000;
+}
+
+.addengine-item > .button-box > .button-icon {
+  height: 16px;
+  width: 16px;
+}
+
+.addengine-item > .button-box > .button-text {
+  -moz-box-flex: 1;
+  text-align: start;
+  -moz-padding-start: 10px;
+}
+
+.addengine-item:not([image]) {
+  list-style-image: url("chrome://browser/skin/search-engine-placeholder.png");
+}
+
+searchbar[oneoffui] .searchbar-engine-button {
+  display: none;
+}
+
+.search-panel-tree > .autocomplete-treebody::-moz-tree-cell {
+  -moz-padding-start: 15px;
+  border-top: none !important;
+}
+
+searchbar[oneoffui] .searchbar-engine-image {
+  -moz-margin-start: -1px;
+}
+
+.search-setting-button {
+  border-bottom: none;
+  border-left: none;
+  border-right: none;
+  border-radius: 0;
+  -moz-border-top-colors: none;
+/*  min-height: 32px;*/
+}
+
+.search-setting-button:hover {
+  background-color: #FFCF00;
+  border-top-color: #9C9CFF;
+}