summaryrefslogtreecommitdiffstats
path: root/toolkit/components/reader/color-input.css
blob: 93e269dd1692474e0da95ec78a34ca9ea33c3c31 (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
/* 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/. */

.color-input-container {
  display: flex;
  position: relative;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-small);
  min-height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0 var(--space-small);
  border-radius: var(--border-radius-small);
}

.color-input-container:hover {
  background-color: var(--toolbar-button-background-hover);
}

#color-swatch:focus-visible {
  outline: none;
}

.color-input-container:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: var(--focus-outline-offset);
}

.icon-container {
  display: flex;
  margin-inline: auto var(--space-xsmall);
}

#color-swatch {
  appearance: none;
  width: 34px;
  height: 34px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

#color-swatch::-moz-color-swatch {
  border-radius: var(--border-radius-circle);
  border: 1px solid rgba(0, 0, 0, 0.25);
}