Skip to content

Commit a1ba850

Browse files
committed
chore: Update tab styling in HomeTab component
1 parent 425db2b commit a1ba850

File tree

1 file changed

+48
-46
lines changed

1 file changed

+48
-46
lines changed

apps/web/src/features/home/components/HomeTab/HomeTab.module.css

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -19,65 +19,67 @@
1919
position: relative;
2020
height: 48px;
2121
user-select: none;
22+
}
23+
24+
.tab {
25+
position: relative;
26+
display: flex;
27+
align-items: center;
28+
background-color: gold;
2229

23-
.tab {
30+
& > a {
2431
display: flex;
25-
position: relative;
26-
27-
& a {
28-
display: flex;
29-
align-items: center;
30-
justify-content: center;
31-
font-size: 18px;
32-
text-decoration: none;
33-
white-space: nowrap;
34-
color: var(--text3);
35-
36-
&.active {
37-
color: var(--text1);
38-
font-weight: bold;
39-
}
32+
align-items: center;
33+
justify-content: center;
34+
font-size: 18px;
35+
text-decoration: none;
36+
white-space: nowrap;
37+
color: var(--text3);
4038

41-
& svg {
42-
font-size: 24px;
43-
margin-right: 8px;
44-
}
39+
&.active {
40+
color: var(--text1);
41+
font-weight: bold;
42+
}
4543

46-
@media screen and (max-width: 768px) {
47-
& svg {
48-
font-size: 18px;
49-
}
50-
}
44+
& svg {
45+
font-size: 24px;
46+
margin-right: 8px;
47+
}
5148

52-
@media screen and (max-width: 425px) {
53-
& svg {
54-
font-size: 16px;
55-
}
49+
@media screen and (max-width: 768px) {
50+
& svg {
51+
font-size: 18px;
5652
}
5753
}
5854

59-
& a + a {
60-
margin-left: 20px;
61-
@media screen and (max-width: 768px) {
62-
margin-left: 8px;
55+
@media screen and (max-width: 425px) {
56+
& svg {
57+
font-size: 16px;
6358
}
59+
}
60+
}
6461

65-
@media screen and (max-width: 425px) {
66-
margin-left: 5px;
67-
}
62+
& a + a {
63+
margin-left: 20px;
64+
@media screen and (max-width: 768px) {
65+
margin-left: 8px;
6866
}
6967

70-
.indicator {
71-
position: absolute;
72-
width: 32%;
73-
height: 2px;
74-
background: var(--border1);
75-
bottom: -10px;
68+
@media screen and (max-width: 425px) {
69+
margin-left: 5px;
70+
}
71+
}
7672

77-
@media screen and (max-width: 430px) {
78-
width: 34%;
79-
margin-left: 3px;
80-
}
73+
.indicator {
74+
position: absolute;
75+
width: 32%;
76+
height: 2px;
77+
background: var(--border1);
78+
bottom: -10px;
79+
80+
@media screen and (max-width: 430px) {
81+
width: 34%;
82+
margin-left: 3px;
8183
}
8284
}
8385
}

0 commit comments

Comments
 (0)