summaryrefslogtreecommitdiffstats
path: root/devtools/client/framework/components/ChromeDebugToolbar.css
blob: 4b74d47e05007e6f3be7c3916702d6c096b6a7f5 (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
/* 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/. */

.chrome-debug-toolbar {
  display: flex;
  padding: 0.5em 1em;
  font-size: 12px;
  line-height: 1.5;
  background-color: var(--theme-body-alternate-emphasized-background);
  font-family: system-ui, -apple-system, sans-serif;
  border-block-end: 1px solid var(--theme-toolbar-separator);
}

.chrome-debug-toolbar section > h3 {
  margin: 0;
  font-weight: normal;
}

.chrome-debug-toolbar__modes {
  display: flex;
  align-items: baseline;
  gap: 0.5em 1em;
  flex-wrap: wrap;
}

.chrome-debug-toolbar__modes label {
  border: 1px solid var(--theme-toolbar-separator);
  border-radius: 4px;
  padding: 4px 8px;
}

.chrome-debug-toolbar__modes label.selected {
  border-color: var(--theme-toolbar-selected-color);
}

.chrome-debug-toolbar__modes label:where(:hover, :focus-within) {
  background-color: var(--blue-50-a30);
}

.chrome-debug-toolbar__modes label input {
  margin: 0;
  margin-inline-end: 4px;
}

.mode__sublabel {
  color: var(--theme-comment);
  margin-inline-start: 4px;
}

@media (prefers-contrast) {
  .chrome-debug-toolbar {
    background-color: Window;
    color: WindowText;
  }

  .mode_sublabel {
    color: GrayText;
  }
}