Repository navigation
Expand file tree
/
Copy pathtaskbar.css
More file actions
140 lines (130 loc) · 2.35 KB
/
Copy pathtaskbar.css
File metadata and controls
140 lines (130 loc) · 2.35 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
html,
body {
width: 100%;
height: 100%;
overflow: hidden;
font-family: "Segoe UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
sans-serif;
}
/* The window is transparent so it blends into the taskbar like a native
element (e.g. the weather/Widgets button); only #widget paints, and only a
translucent highlight on hover. Text color follows the OS light/dark theme. */
body.dark {
background: transparent;
color: #f2f3f5;
}
body.light {
background: transparent;
color: #1a1a1a;
}
#widget {
/* Inset slightly so the hover highlight reads as a rounded taskbar button. */
height: calc(100% - 8px);
margin: 4px 2px;
display: flex;
align-items: center;
gap: 8px;
padding: 0 6px 0 8px;
border-radius: 6px;
transition: background 0.15s;
cursor: grab;
}
#widget:active {
cursor: grabbing;
}
/* Subtle hover fill matching native Windows 11 taskbar buttons. */
body.dark #widget:hover {
background: rgba(255, 255, 255, 0.08);
}
body.light #widget:hover {
background: rgba(0, 0, 0, 0.06);
}
#info {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
gap: 1px;
}
#row-ip,
#row-loc {
display: flex;
align-items: center;
gap: 5px;
white-space: nowrap;
overflow: hidden;
}
.value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#ip {
font-size: 12px;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
#loc {
font-size: 11px;
opacity: 0.78;
}
.dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: #f0b429;
flex: 0 0 auto;
}
.dot.ok {
background: #2ecc71;
}
.dot.err {
background: #e74c3c;
}
.dot.loading {
background: #f0b429;
animation: pulse 1s infinite;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.3;
}
}
#refresh {
flex: 0 0 auto;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 5px;
background: transparent;
color: inherit;
opacity: 0.65;
cursor: pointer;
transition: opacity 0.15s, background 0.15s;
}
#refresh:hover {
opacity: 1;
background: rgba(127, 127, 127, 0.22);
}
#refresh.spin svg {
animation: spin 0.7s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}