Skip to content

Commit f10488e

Browse files
committed
Add Cooking achievements CSS styles
Introduces styles for Cooking achievements section, including layout for achievement and dish items, grid display, and visual indicators for achieved and pending states.
1 parent 44c4ee3 commit f10488e

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.section-achievements {
2+
display: flex;
3+
align-items:start;
4+
gap: 1rem;
5+
flex-wrap: wrap;
6+
}
7+
8+
.dishes-grid {
9+
display: flex;
10+
flex-wrap: wrap;
11+
gap: 0.5rem;
12+
}
13+
14+
.dish-item {
15+
display: block;
16+
position: relative;
17+
}
18+
19+
.dish-item .times-cooked {
20+
text-decoration: none;
21+
color: white;
22+
font-weight: bold;
23+
text-shadow: 2px 2px 2px #000;
24+
position: absolute;
25+
bottom: 5px;
26+
right: 0;
27+
}
28+
29+
.achievement-item {
30+
display: flex;
31+
align-items: center;
32+
gap: 0.5rem;
33+
font-weight: bold;
34+
max-width: 30%;
35+
}
36+
37+
.section-achievements img {
38+
width: 3rem !important;
39+
height: 3rem !important;
40+
}
41+
42+
.section-achievements img.achieved {
43+
filter: grayscale(0) brightness(1) !important;
44+
}
45+
46+
.section-achievements img.pending {
47+
filter: grayscale(1) brightness(0.5) !important;
48+
}

0 commit comments

Comments
 (0)