rating is implemented, updates the stars and prohibits voting more than once

This commit is contained in:
J-Klinke
2024-07-06 18:28:07 +02:00
parent 442c532e85
commit c0ad1ca848
4 changed files with 53 additions and 3 deletions

View File

@@ -79,6 +79,17 @@ h1 {
grid-column: 1 / 3;
}
#rating-input {
mask-image: url("stars.svg");
-webkit-mask-image: url("stars.svg");
mask-size: contain;
mask-mode: alpha;
width: 5lh;
height: 1lh;
margin-inline: .5ch;
background: linear-gradient(to right, yellow 33%, black 33%);
}
#rating {
color: color-mix(in oklab, var(--text-color) 80%, black);
color: transparent;