Skip to content

Commit d8d8911

Browse files
committed
Prevent admins from seeing their Check count
Fixes #506
1 parent 75bf3b6 commit d8d8911

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/layout.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,25 +270,28 @@ body:has(.island.visible) #checker {
270270
align-self: center;
271271
position: fixed;
272272
bottom: 25px;
273-
padding-left: 5px;
274273
transition: 0.5s;
275274
}
276275

277-
#controls-container:has(> :last-child:hover) {
276+
#controls-container[checks] {
277+
padding-left: 5px;
278+
}
279+
280+
#controls-container[checks]:has(> :last-child:hover) {
278281
transition: 0.1s;
279282
}
280283

281-
#controls-container:not(:has(> :last-child:hover)) {
284+
#controls-container[checks]:not(:has(> :last-child:hover)) {
282285
padding-right: 5px;
283286
transition: 0.1s;
284287
}
285288

286-
#controls-container:hover {
289+
#controls-container[checks]:hover {
287290
border-radius: 0 100vh 100vh 0;
288291
transition: 0.5s;
289292
}
290293

291-
#controls-container::before {
294+
#controls-container[checks]::before {
292295
content: attr(checks);
293296
position: absolute;
294297
bottom: 0;
@@ -303,7 +306,7 @@ body:has(.island.visible) #checker {
303306
transition: 0.5s;
304307
}
305308

306-
#controls-container:hover::before {
309+
#controls-container[checks]:hover::before {
307310
right: 100%;
308311
background-color: var(--accent-color);
309312
transition: 0.5s;

0 commit comments

Comments
 (0)