aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/PullToRefresh.css
blob: d4946d22fe074dd6dba049f41f551914399176fb (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
.pull-to-refresh-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.pull-to-refresh-indicator {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

.refresh-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-color, #f8f9fa);
  border: 2px solid var(--border-color, #e9ecef);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.refresh-icon-container.active {
  background: var(--primary-color, #007bff);
  border-color: var(--primary-color, #007bff);
}

.refresh-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary, #6c757d);
  transition: color 0.2s ease;
}

.refresh-icon-container.active .refresh-icon {
  color: white;
}

.refresh-icon.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.pull-to-refresh-content {
  width: 100%;
  height: 100%;
  /* Completely normal scrolling */
  overflow: visible;
  touch-action: auto;
}