summaryrefslogtreecommitdiffstats
path: root/panels/user-accounts/data/cc-fingerprint-dialog.css
blob: 800d6582cf8ecae7b76bb822ed16b230861c3a29 (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
.fingerprint-icon {
  padding: 3px;
}

.fingerprint-icon > button,
.fingerprint-icon > image {
  padding: 15px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 64px;
  border: 1px solid @borders;
  background-color: @theme_base_color;
  color: @insensitive_fg_color;
}

.fingerprint-print-add image:not(:disabled):not(:backdrop),
.fingerprint-print-add button:not(:disabled):not(:backdrop) {
  color: @theme_fg_color;
}

.fingerprint-icon.enroll-status image {
  outline-color: @theme_selected_bg_color;
  outline-offset: 0px;
  outline-width: 4px;
}

.fingerprint-icon.enroll-status image:backdrop {
  outline-color: @theme_unfocused_selected_bg_color;
}

.fingerprint-icon.enroll-status {
  font-weight: bold;
}

.fingerprint-icon.enroll-status.completed image {
  outline-color: @success_color;
}

.fingerprint-icon.enroll-status.warning image {
  outline-color: @warning_color;
}

.fingerprint-icon.enroll-status.error image {
  outline-color: @error_color;
  /* Given we don't have an error image, we can just recolorize the warning one */
  -gtk-icon-palette: warning @error_color;
}

.fingerprint-icon.enroll-status.success image:not(:backdrop) {
  color: @theme_selected_bg_color;
}

.fingerprint-icon.enroll-status.warning image:not(:backdrop),
.fingerprint-icon.enroll-status.warning label:not(:backdrop) {
  color: @warning_color;
}

.fingerprint-icon.enroll-status.error image:not(:backdrop),
.fingerprint-icon.enroll-status.error label:not(:backdrop) {
  color: @error_color;
}

@keyframes wiggle {
  /* Unfortunately we can't use translation or xalign, so here's the workaround */
  0% { padding-left: 0; padding-right: 0; }
  10% { padding-left: 0; padding-right: 2px; }
  20% { padding-left: 4px; padding-right: 0; }
  30% { padding-left: 0; padding-right: 8px; }
  40% { padding-left: 8px; padding-right: 0; }
  50% { padding-left: 0; padding-right: 8px; }
  60% { padding-left: 8px; padding-right: 0; }
  70% { padding-left: 0; padding-right: 8px; }
  80% { padding-left: 4px; padding-right: 0; }
  90% { padding-left: 0; padding-right: 2px; }
  100% { padding-left: 0; padding-right: 0; }
}

.fingerprint-icon.enroll-status.retry label {
  animation-name: wiggle;
  animation-duration: 850ms;
  animation-timing-function: ease-in;
  animation-iteration-count: 1;
}