1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/themes/linux/global/findBar.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,161 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 1.9 + 1.10 +findbar { 1.11 + border-top: 2px solid; 1.12 + -moz-border-top-colors: ThreeDShadow ThreeDHighlight; 1.13 + min-width: 1px; 1.14 + transition-property: margin-bottom, opacity, visibility; 1.15 + transition-duration: 150ms, 150ms, 0s; 1.16 + transition-timing-function: ease-in-out, ease-in-out, linear; 1.17 +} 1.18 + 1.19 +findbar[hidden] { 1.20 + /* Override display:none to make the transition work. */ 1.21 + display: -moz-box; 1.22 + visibility: collapse; 1.23 + margin-bottom: -1em; 1.24 + opacity: 0; 1.25 + transition-delay: 0s, 0s, 150ms; 1.26 +} 1.27 + 1.28 +.findbar-container { 1.29 + -moz-padding-start: 8px; 1.30 + padding-top: 4px; 1.31 + padding-bottom: 4px; 1.32 +} 1.33 + 1.34 +.findbar-closebutton { 1.35 + -moz-appearance: none; 1.36 + width: 16px; 1.37 + height: 16px; 1.38 + margin: 0 8px; 1.39 +} 1.40 + 1.41 +/* Search field */ 1.42 + 1.43 +.findbar-textbox { 1.44 + -moz-appearance: none; 1.45 + border: 1px solid ThreeDShadow; 1.46 + box-shadow: 0 0 1px 0 ThreeDShadow inset; 1.47 + margin: 0; 1.48 + padding: 5px; 1.49 + width: 14em; 1.50 +} 1.51 + 1.52 +.findbar-textbox:-moz-locale-dir(ltr) { 1.53 + border-radius: 3px 0 0 3px; 1.54 + border-right-width: 0; 1.55 +} 1.56 + 1.57 +.findbar-textbox:-moz-locale-dir(rtl) { 1.58 + border-radius: 0 3px 3px 0; 1.59 + border-left-width: 0; 1.60 +} 1.61 + 1.62 +.findbar-textbox[focused="true"] { 1.63 + border-color: Highlight; 1.64 + box-shadow: 0 0 1px 0 Highlight inset; 1.65 +} 1.66 + 1.67 +.findbar-textbox[status="notfound"] { 1.68 + background-color: #f66; 1.69 + color: white; 1.70 +} 1.71 + 1.72 +.findbar-textbox[flash="true"] { 1.73 + background-color: yellow; 1.74 + color: black; 1.75 +} 1.76 + 1.77 +.findbar-textbox.minimal { 1.78 + border-width: 1px; 1.79 + border-radius: 3px; 1.80 +} 1.81 + 1.82 +.findbar-find-previous, 1.83 +.findbar-find-next { 1.84 + -moz-margin-start: 0; 1.85 + -moz-appearance: none; 1.86 + background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.2)); 1.87 + border: 1px solid ThreeDShadow; 1.88 + box-shadow: 0 1px #fff inset; 1.89 + list-style-image: url("chrome://global/skin/icons/find-arrows.png"); 1.90 + padding: 5px 9px; 1.91 + line-height: 1em; 1.92 +} 1.93 + 1.94 +.findbar-find-previous:focus, 1.95 +.findbar-find-next:focus { 1.96 + border-color: Highlight; 1.97 + box-shadow: 0 0 1px 0 Highlight inset; 1.98 +} 1.99 + 1.100 +.findbar-find-previous:not([disabled]):active, 1.101 +.findbar-find-next:not([disabled]):active { 1.102 + background: rgba(23,50,76,.2); 1.103 + border: 1px solid ThreeDShadow; 1.104 + box-shadow: 0 1px 2px rgba(10,31,51,.2) inset; 1.105 +} 1.106 + 1.107 +.findbar-find-previous { 1.108 + -moz-image-region: rect(0, 12px, 9px, 0); 1.109 + -moz-border-end-width: 0; 1.110 +} 1.111 + 1.112 +.findbar-find-next { 1.113 + -moz-image-region: rect(0, 24px, 9px, 12px); 1.114 +} 1.115 + 1.116 +.findbar-find-previous > .toolbarbutton-icon, 1.117 +.findbar-find-next > .toolbarbutton-icon { 1.118 + margin: 0; 1.119 +} 1.120 + 1.121 +.findbar-find-previous > .toolbarbutton-text, 1.122 +.findbar-find-next > .toolbarbutton-text { 1.123 + margin: 0; 1.124 + padding: 0; 1.125 + width: 0; 1.126 +} 1.127 + 1.128 +.findbar-find-previous[disabled="true"] > .toolbarbutton-icon, 1.129 +.findbar-find-next[disabled="true"] > .toolbarbutton-icon { 1.130 + opacity: .5; 1.131 +} 1.132 + 1.133 +.findbar-find-next:-moz-locale-dir(ltr) { 1.134 + border-top-right-radius: 2px; 1.135 + border-bottom-right-radius: 2px; 1.136 +} 1.137 + 1.138 +.findbar-find-next:-moz-locale-dir(rtl) { 1.139 + border-top-left-radius: 2px; 1.140 + border-bottom-left-radius: 2px; 1.141 +} 1.142 + 1.143 +.findbar-find-previous:focus + .findbar-find-next { 1.144 + -moz-border-start-width: 0; 1.145 +} 1.146 + 1.147 +.findbar-find-previous:focus { 1.148 + -moz-border-end-width: 1px; 1.149 +} 1.150 + 1.151 +.findbar-highlight, 1.152 +.findbar-case-sensitive { 1.153 + -moz-margin-start: 5px; 1.154 +} 1.155 + 1.156 +.findbar-find-status { 1.157 + color: GrayText; 1.158 + margin: 0 !important; 1.159 + -moz-margin-start: 12px !important; 1.160 +} 1.161 + 1.162 +.find-status-icon[status="pending"] { 1.163 + list-style-image: url("chrome://global/skin/icons/loading_16.png"); 1.164 +}