summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/components/SearchModifiers.css
blob: b92f12b1f991f9be670fa026c8923bbfe8ad4637 (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
/* 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/. */

/* Search Modifiers */

.search-modifiers {
  display: flex;
  align-items: center;
}

.search-modifiers button {
  padding: 2px;
  margin: 0 3px;
  border: none;
  background: none;
  width: 20px;
  height: 20px;
  border-radius: 2px;
}

.search-modifiers .pipe-divider {
  flex: none;
  align-self: stretch;
  width: 1px;
  vertical-align: middle;
  margin: 4px;
  background-color: var(--theme-splitter-color);
}

.search-modifiers button > span {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  /* do not let images shrink when used as flex children */
  flex-shrink: 0;
  fill: var(--theme-icon-color);
  -moz-context-properties: fill;
}

.search-modifiers button > span.case-match {
  background-image: url(chrome://devtools/content/debugger/images/case-match.svg);
}

.search-modifiers button  > span.regex-match {
  background-image: url(chrome://devtools/content/debugger/images/regex-match.svg);
}

.search-modifiers button > span.whole-word-match {
  background-image: url(chrome://devtools/content/debugger/images/whole-word-match.svg);
}

.search-modifiers button:hover {
  fill: var(--theme-toolbar-background-hover);
}

.search-modifiers button.active > span {
  fill: var(--theme-icon-checked-color);
}