Skip to content

Commit 0923d34

Browse files
impr: mobile view
1 parent a25f042 commit 0923d34

File tree

6 files changed

+620
-304
lines changed

6 files changed

+620
-304
lines changed

.github/workflows/BadgesList.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
echo "No changes detected."
4747
else
4848
git add .
49-
git commit -m "feat: update badges json list"
49+
git commit -m "chore: update badges json list"
5050
fi
5151
continue-on-error: true
5252

.github/workflows/ThemeList.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
echo "No changes detected."
5656
else
5757
git add .
58-
git commit -m "feat: update themes json list"
58+
git commit -m "chore: update themes json list"
5959
fi
6060
continue-on-error: true
6161

public/script/index.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ $("#monkeytypeNameInput").on("input", function () {
2020
monkeytypeName = $(this).val();
2121
});
2222

23-
$("#leaderBoardBtn").mouseenter(function () {
24-
$("#leaderBoardTooltip").removeClass("hidden");
25-
});
26-
27-
$("#leaderBoardBtn").mouseleave(function () {
28-
$("#leaderBoardTooltip").addClass("hidden");
29-
});
30-
3123
$("#leaderBoardBtn").click(function () {
3224
initialReadmeBtn("#leaderBoardBtn", leaderBoardBtnState);
3325
leaderBoardBtnState = !leaderBoardBtnState;
@@ -161,14 +153,6 @@ function initialReadmeBtn(buttonId, buttonState) {
161153
}
162154
}
163155

164-
$("#personalBestBtn").mouseenter(function () {
165-
$("#personalBestTooltip").removeClass("hidden");
166-
});
167-
168-
$("#personalBestBtn").mouseleave(function () {
169-
$("#personalBestTooltip").addClass("hidden");
170-
});
171-
172156
function showThemeList() {
173157
$("#showThemeBtn").addClass("hidden");
174158
$("#themeListContainer").removeClass("h-96");

public/style/output.css

Lines changed: 50 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -835,10 +835,6 @@ video {
835835
cursor: not-allowed;
836836
}
837837

838-
.cursor-pointer {
839-
cursor: pointer;
840-
}
841-
842838
.grid-cols-1 {
843839
grid-template-columns: repeat(1, minmax(0, 1fr));
844840
}
@@ -1064,6 +1060,10 @@ video {
10641060
padding-bottom: 4rem;
10651061
}
10661062

1063+
.pb-4 {
1064+
padding-bottom: 1rem;
1065+
}
1066+
10671067
.pl-1 {
10681068
padding-left: 0.25rem;
10691069
}
@@ -1084,14 +1084,6 @@ video {
10841084
padding-top: 1rem;
10851085
}
10861086

1087-
.pb-2 {
1088-
padding-bottom: 0.5rem;
1089-
}
1090-
1091-
.pb-4 {
1092-
padding-bottom: 1rem;
1093-
}
1094-
10951087
.text-left {
10961088
text-align: left;
10971089
}
@@ -1204,6 +1196,11 @@ video {
12041196
color: rgb(236 239 244 / var(--tw-text-opacity));
12051197
}
12061198

1199+
.text-nord-light-green {
1200+
--tw-text-opacity: 1;
1201+
color: rgb(143 188 187 / var(--tw-text-opacity));
1202+
}
1203+
12071204
.text-nord-light-sub {
12081205
--tw-text-opacity: 1;
12091206
color: rgb(106 119 145 / var(--tw-text-opacity));
@@ -1228,16 +1225,6 @@ video {
12281225
color: rgb(255 255 255 / var(--tw-text-opacity));
12291226
}
12301227

1231-
.text-nord-light-subAlt {
1232-
--tw-text-opacity: 1;
1233-
color: rgb(216 222 233 / var(--tw-text-opacity));
1234-
}
1235-
1236-
.text-nord-light-green {
1237-
--tw-text-opacity: 1;
1238-
color: rgb(143 188 187 / var(--tw-text-opacity));
1239-
}
1240-
12411228
.underline {
12421229
text-decoration-line: underline;
12431230
}
@@ -1297,6 +1284,10 @@ video {
12971284
outline-offset: 2px;
12981285
}
12991286

1287+
.group:hover .group-hover\:block {
1288+
display: block;
1289+
}
1290+
13001291
@media (min-width: 640px) {
13011292
.sm\:ml-3 {
13021293
margin-left: 0.75rem;
@@ -1347,6 +1338,21 @@ video {
13471338
font-size: 1.125rem;
13481339
line-height: 1.75rem;
13491340
}
1341+
1342+
.md\:text-sm {
1343+
font-size: 0.875rem;
1344+
line-height: 1.25rem;
1345+
}
1346+
1347+
.md\:text-xs {
1348+
font-size: 0.75rem;
1349+
line-height: 1rem;
1350+
}
1351+
1352+
.md\:text-base {
1353+
font-size: 1rem;
1354+
line-height: 1.5rem;
1355+
}
13501356
}
13511357

13521358
@media (min-width: 1024px) {
@@ -1375,6 +1381,10 @@ video {
13751381
margin-top: 2rem;
13761382
}
13771383

1384+
.lg\:block {
1385+
display: block;
1386+
}
1387+
13781388
.lg\:flex {
13791389
display: flex;
13801390
}
@@ -1509,6 +1519,24 @@ video {
15091519
.lg\:leading-\[3rem\] {
15101520
line-height: 3rem;
15111521
}
1522+
1523+
.lg\:hover\:bg-nord-light-green:hover {
1524+
--tw-bg-opacity: 1;
1525+
background-color: rgb(143 188 187 / var(--tw-bg-opacity));
1526+
}
1527+
1528+
.lg\:hover\:text-nord-light-bg:hover {
1529+
--tw-text-opacity: 1;
1530+
color: rgb(236 239 244 / var(--tw-text-opacity));
1531+
}
1532+
1533+
.lg\:hover\:opacity-60:hover {
1534+
opacity: 0.6;
1535+
}
1536+
1537+
.group:hover .lg\:group-hover\:block {
1538+
display: block;
1539+
}
15121540
}
15131541

15141542
@media (min-width: 1280px) {

0 commit comments

Comments
 (0)