summaryrefslogtreecommitdiffstats
path: root/browser/components/aboutlogins/content/components/generic-dialog.css
blob: d8fbbfe93c25ca6ad7645c2444e25e29347e85f8 (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
/* 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/. */

.overlay {
  position: fixed;
  z-index: 1;
  inset: 0;
  /* TODO: this color is used in the about:preferences overlay, but
           why isn't it declared as a variable? */
  background-color: rgba(0,0,0,0.5);
  display: flex;
}

.container {
  z-index: 2;
  position: relative;
  display: grid;
  grid-template-columns: 37px auto;
  grid-template-rows: 32px auto 50px;
  grid-gap: 5px;
  align-items: center;
  width: 580px;
  height: 290px;
  padding: 50px 50px 20px;
  margin: auto;
  background-color: var(--in-content-page-background);
  color: var(--in-content-page-color);
  box-shadow: var(--shadow-30);
  /* show a border in high contrast mode */
  outline: 1px solid transparent;
}

::slotted([slot="dialog-icon"]) {
  width: 32px;
  height: 32px;
  -moz-context-properties: fill;
  fill: currentColor;
}

::slotted([slot="dialog-title"]) {
  font-size: 2.2em;
  font-weight: 300;
  user-select: none;
  margin: 0;
}

::slotted([slot="content"]) {
  grid-column-start: 2;
  align-self: baseline;
  margin-top: 16px;
  line-height: 1.4em;
}

::slotted([slot="buttons"]) {
  grid-column: 1 / 4;
  grid-row-start: 3;
  border-top: 1px solid var(--in-content-border-color);
  padding-top: 12px;
}

.dialog-body {
  padding-block: 40px 16px;
  padding-inline: 45px 32px;
}