summaryrefslogtreecommitdiffstats
path: root/comm/mail/themes/shared/mail/searchBox.css
blob: 1b32694fc89bf0c63f2ef1c55df3d3cfe7641ad0 (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
/* 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/. */

.gloda-search {
  padding-inline-start: 21px !important;
  flex: 1;
}

.search-icon {
  margin-inline-end: -21px;
  height: 16px;
  width: 16px;
  z-index: 2;
}

.search-icon:-moz-locale-dir(rtl) {
  transform: scaleX(-1);
}

.searchBox,
.themeableSearchBox {
  appearance: none;
  color: FieldText;
  background-color: Field;
  border: 1px solid color-mix(in srgb, currentColor 50%, transparent);
  border-radius: var(--button-border-radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  outline: none;
  min-height: 24px;
  height: 1.2em;
}

.textbox-search-clear {
  opacity: 0.8;
}

.textbox-search-clear:not([disabled]):hover {
  opacity: 1;
}

.themeableSearchBox[disabled] {
  border-color: hsla(240, 5%, 5%, 0.1) !important;
}

.searchBox:hover,
.themeableSearchBox:not([disabled]):hover {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .searchBox:hover {
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.25);
  }
}

/* special treatment because these boxes are on themable toolbars */
.gloda-search:-moz-lwtheme,
.remote-gloda-search:-moz-lwtheme,
:root[lwt-tree] .themeableSearchBox,
:root[lwt-tree] #peopleSearchInput:not([focused="true"]) {
  color: var(--toolbar-field-color);
  background-color: var(--toolbar-field-background-color);
  border-color: var(--toolbar-field-border-color);
}

.gloda-search:focus,
.searchBox[focused="true"],
.themeableSearchBox:not([disabled="true"]):focus,
.themeableSearchBox:not([disabled="true"])[focused="true"] {
  border-color: var(--toolbar-field-focus-border-color);
  outline: 1px solid var(--toolbar-field-focus-border-color);
}

.gloda-search:-moz-lwtheme:focus,
:root[lwt-tree] .themeableSearchBox:focus,
:root[lwt-tree] .themeableSearchBox[focused="true"],
:root[lwt-tree] #peopleSearchInput[focused="true"],
.remote-gloda-search:-moz-lwtheme[focused="true"] {
  color: var(--toolbar-field-focus-color);
  background-color: var(--toolbar-field-focus-background-color);
}

.gloda-search:-moz-lwtheme::selection,
.themeableSearchBox:-moz-lwtheme::selection {
  background-color: var(--lwt-toolbar-field-highlight, Highlight);
  color: var(--lwt-toolbar-field-highlight-text, HighlightText);
}

.gloda-search:not(:focus)::selection,
.themeableSearchBox:not(:focus)::selection,
.themeableSearchBox:not([focused="true"])::selection {
  background-color: var(--lwt-toolbar-field-highlight, text-select-disabled-background);
}

#PopupGlodaAutocomplete > .autocomplete-richlistbox {
  padding: 0;
  color: inherit;
  background-color: inherit;
}

#PopupGlodaAutocomplete .ac-url {
  display: flex;
  margin-bottom: 2px;
}

.ac-url:not([selected=true]) > .ac-url-text {
  color: var(--autocomplete-popup-url-color);
}

.autocomplete-richlistitem[type^="gloda-"] {
  margin-inline: 2px;
  padding-inline-start: 12px;
  border-radius: 2px;
}

.autocomplete-richlistitem[type^="gloda-"]:hover {
  background-color: hsla(0, 0%, 80%, 0.3);
}

.autocomplete-richlistitem[type^="gloda-"][selected] {
  background: var(--autocomplete-popup-highlight-background);
  color: var(--autocomplete-popup-highlight-color);
}

.remote-gloda-search-container {
  min-width: 10em;
  align-items: center;
}