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