summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/osx/global/findBar.css
blob: e53c3510b2c6d43b4f2c422da17b7f3c46be1a3a (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
/* 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/. */

%filter substitution
%define findUiDefaultBorderColor rgba(0,0,0,.35)

%include ../../shared/findBar.inc.css

findbar {
  background-image: linear-gradient(#e8e8e8, #d0d0d0);
  border-top-color: #888;
}

.findbar-container {
  padding-inline-start: 2px;
}

label.findbar-find-fast {
  color: #6d6d6d;
  margin: 0;
  margin-inline-start: 12px;
}

label.findbar-find-fast:-moz-lwtheme {
  color: inherit;
}

.findbar-closebutton {
  margin-inline: 4px 0;
  padding-inline: 0 8px;
  border: none;
  /* make sure the closebutton is displayed as the first element in the bar: */
  -moz-box-ordinal-group: 0;
}

.findbar-find-next:not(:-moz-lwtheme),
.findbar-find-previous:not(:-moz-lwtheme),
.findbar-button {
  border-style: solid;
  border-color: @findUiDefaultBorderColor@;
  color: black;
  background-image: linear-gradient(#f6f6f6, #e9e9e9);
}

.findbar-button {
  appearance: none;
  border-width: 1px;
  margin-inline-end: 5px;
  padding: 2px 9px;
  border-radius: 10000px;
}

.findbar-find-next:-moz-lwtheme,
.findbar-find-previous:-moz-lwtheme {
  border-color: var(--lwt-toolbar-field-border-color, @findUiDefaultBorderColor@);
}

.findbar-find-next:not(:-moz-lwtheme, [disabled]):hover:active,
.findbar-find-previous:not(:-moz-lwtheme, [disabled]):hover:active,
.findbar-button:not([disabled]):hover:active,
.findbar-button:not([disabled])[checked="true"] {
  background-image: linear-gradient(#dadada, #dadada);
  box-shadow: 0 1px rgba(255,255,255,.4), inset 0 1px 3px rgba(0,0,0,.2);
}

html|input.findbar-textbox {
  border: 1px solid var(--lwt-toolbar-field-border-color, @findUiDefaultBorderColor@);
  -moz-context-properties: fill, fill-opacity;
  fill: currentColor;
  fill-opacity: 0.8;
  background-image: url("chrome://global/skin/icons/search-textbox.svg");
  background-repeat: no-repeat;
  background-position: 5px center;
  margin: 0;
  padding-inline-start: 19px;
}

html|input.findbar-textbox:focus {
  box-shadow: 0 0 0 1px var(--toolbar-field-focus-border-color) inset,
              0 0 0 1px var(--toolbar-field-focus-border-color);
}

html|input.findbar-textbox:-moz-locale-dir(rtl) {
  background-position-x: right 5px;
}