summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/windows/global/findBar.css
blob: 96115f1938f5d755a0bae2557e7dfe9df3af9a74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/* 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/. */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

findbar {
  box-shadow: 0 1px 1px rgba(0,0,0,.1) inset;
  background-image: linear-gradient(rgba(0,0,0,.15) 1px, rgba(255,255,255,.15) 1px);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  min-width: 1px;
  transition-property: margin-bottom, opacity, visibility;
  transition-duration: 150ms, 150ms, 0s;
  transition-timing-function: ease-in-out, ease-in-out, linear;
}

findbar[hidden] {
  /* Override display:none to make the transition work. */
  display: -moz-box;
  visibility: collapse;
  margin-bottom: -1em;
  opacity: 0;
  transition-delay: 0s, 0s, 150ms;
}

findbar[noanim] {
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

.findbar-container {
  padding-inline-start: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.findbar-closebutton {
  margin-inline-start: 4px;
  padding-inline-start: 0;
  padding-inline-end: 8px;
  border: none;
  -moz-appearance: none;
}


/* Search field */

.findbar-textbox {
  -moz-appearance: none;
  border: 1px solid ThreeDShadow;
  border-radius: 2px 0 0 2px;
  margin: 0;
  padding: 1px 5px;
  width: 14em;
}

.findbar-textbox:-moz-locale-dir(rtl) {
  border-radius: 0 2px 2px 0;
}

.findbar-textbox[focused="true"] {
  border-color: Highlight;
}

.findbar-textbox[status="notfound"] {
  background-color: #f66;
  color: white;
}

.findbar-textbox[flash="true"] {
  background-color: yellow;
  color: black;
}

.findbar-textbox.minimal {
  border-radius: 2px;
}

/* Buttons */

.findbar-find-previous,
.findbar-find-next {
  margin-inline-start: 0;
  -moz-appearance: none;
  background: linear-gradient(rgba(255,255,255,.8) 1px, rgba(255,255,255,.4) 1px, rgba(255,255,255,.1));
  border: 1px solid ThreeDShadow;
  padding: 1px 5px;
  line-height: 1em;
}

.findbar-find-previous:not([disabled]):active,
.findbar-find-next:not([disabled]):active {
  background: rgba(23,50,76,.2);
  box-shadow: 0 1px 2px rgba(10,31,51,.2) inset;
}

.findbar-find-previous {
  list-style-image: url(chrome://global/skin/icons/find-arrows.svg#glyph-find-previous);
}

.findbar-find-next {
  list-style-image: url(chrome://global/skin/icons/find-arrows.svg#glyph-find-next);
}

.findbar-find-previous,
.findbar-find-previous:not([disabled]):active {
  border-right: none;
  border-left: none;
}

.findbar-find-previous > .toolbarbutton-icon,
.findbar-find-next > .toolbarbutton-icon {
  margin: 0;
}

.findbar-find-previous[disabled="true"] > .toolbarbutton-icon,
.findbar-find-next[disabled="true"] > .toolbarbutton-icon {
  opacity: .5;
}

.findbar-find-next:-moz-locale-dir(ltr) {
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

.findbar-find-next:-moz-locale-dir(rtl) {
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}

.findbar-highlight,
.findbar-case-sensitive,
.findbar-entire-word {
  margin-inline-start: 5px;
}

.findbar-highlight > .toolbarbutton-icon,
.findbar-case-sensitive > .toolbarbutton-icon,
.findbar-entire-word > .toolbarbutton-icon {
  display: none;
}

.findbar-find-status,
.found-matches {
  color: GrayText;
  margin: 0 !important;
  margin-inline-start: 12px !important;
}

.find-status-icon[status="pending"] {
  list-style-image: url("chrome://global/skin/icons/loading.png");
}

@media (min-resolution: 1.1dppx) {
  .find-status-icon[status="pending"] {
    width: 16px;
    list-style-image: url("chrome://global/skin/icons/loading@2x.png");
  }
}