forked from WordPress/wordpress-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsave-status-indicator.module.css
More file actions
145 lines (120 loc) · 1.74 KB
/
save-status-indicator.module.css
File metadata and controls
145 lines (120 loc) · 1.74 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
.indicator {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 0;
border-radius: 4px;
font-size: 14px;
font-weight: 500;
white-space: nowrap;
border: none;
background: transparent;
cursor: default;
flex-shrink: 0;
}
.indicator svg {
flex-shrink: 0;
}
.saved,
.current {
color: #86efac;
}
.saved svg,
.current svg {
fill: #86efac;
}
.unsaved,
.due {
color: #fcd34d;
}
.unsaved svg,
.due svg {
fill: #fcd34d;
}
.overdue {
color: #fca5a5;
}
.overdue svg {
fill: #fca5a5;
}
.saveButton {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
background: #fcd34d;
color: #1e2327;
border: none;
border-radius: 4px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s ease;
min-height: 28px;
}
.saveButton:hover {
background: #fde68a;
}
.saveButton svg {
fill: #1e2327;
}
.currentButton {
background: #86efac;
}
.currentButton:hover {
background: #a7f3d0;
}
.dueButton {
background: #fcd34d;
}
.dueButton:hover {
background: #fde68a;
}
.overdueButton {
background: #fca5a5;
}
.overdueButton:hover {
background: #fecaca;
}
.saving {
color: #93c5fd;
}
.error {
color: #fca5a5;
cursor: pointer;
transition: background 0.15s ease;
}
.error:hover {
background: rgba(255, 255, 255, 0.1);
}
.error svg {
fill: #fca5a5;
}
.label {
display: inline;
}
.spinner {
width: 16px;
height: 16px;
border: 2px solid rgba(147, 197, 253, 0.3);
border-top-color: #93c5fd;
border-radius: 50%;
animation: spin 0.8s linear infinite;
flex-shrink: 0;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Mobile responsive styles */
@media (max-width: 500px) {
.indicator {
font-size: 13px;
}
.saveButton {
min-width: 40px;
min-height: 40px;
padding: 8px 12px;
}
}