summaryrefslogtreecommitdiffstats
path: root/browser/themes/shared/preferences/fxaPairDevice.css
blob: 51183b84c76e26865f9fca5eb957fb69e7cbd7cc (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
/* 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/. */

#fxaPairDeviceDialog {
  padding-bottom: 2em;
}

#pairTitle {
  font-size: 2.1rem;
  font-weight: bold;
  padding-top: 12px;
  text-align: center;
}

.pairHeading {
  font-size: 1.08em;
}

.menu-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  -moz-context-properties: fill;
  fill: currentColor;
}

#qrCodeDisplay {
  width: 450px;
  margin: auto;
}

#qrWrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: auto;
  margin-top: 28px;
}

#qrContainer {
  height: 200px;
  width: 200px;
  background-size: contain;
  image-rendering: -moz-crisp-edges;
  transition: filter 250ms cubic-bezier(.07,.95,0,1);
}

#qrWrapper:not([pairing-status="ready"]) #qrContainer {
  opacity: 0.05;
  filter: blur(3px);
}

#qrWrapper:not([pairing-status="loading"]) #qrSpinner {
  opacity: 0;
}

#qrSpinner {
  display: block;
  position: absolute;
  height: 250px;
  width: 250px;
}

#qrSpinner::before {
  background-image: url("chrome://browser/skin/fxa/fxa-spinner.svg");
  animation: 0.9s spin infinite linear;
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  position: absolute;
  height: 200px;
  width: 200px;
  content: "";
  transition: opacity 250ms cubic-bezier(.07,.95,0,1);
  will-change: transform;
  margin-inline: auto;
}

#qrWrapper:not([pairing-status="error"]) #qrError {
  display: none;
}

#qrError {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 200px; /* Same as #qrContainer */
  position: absolute;
  inset: 0;
  margin-inline: auto;
  transition: opacity 250ms cubic-bezier(.07,.95,0,1);
  cursor: pointer;
}

.qr-error-text {
  text-align: center;
  user-select: none;
  display: block;
  color: #2484C6;
  cursor: pointer;
}

#refresh-qr {
  width: 36px;
  height: 36px;
  background-image: url("chrome://global/skin/icons/reload.svg");
  background-size: contain;
  -moz-context-properties: fill;
  fill: #2484C6;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}