aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/UpdateNotification.css
blob: 61831947ef6ab217cc0052e54168de28e152a62e (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
.update-notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--button-background-color);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.update-content {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  max-width: 100%;
}

.update-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.update-text {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.update-description {
  font-size: 0.8rem;
  opacity: 0.9;
  line-height: 1.2;
}

.update-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.update-button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.update-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}

.update-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.update-dismiss {
  background: none;
  border: none;
  color: white;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.update-dismiss:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .update-content {
    max-width: 768px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .update-content {
    max-width: 1024px;
  }
}