Skip to content

Commit b0d6cc1

Browse files
committed
Sua font va responsive mobile trang scan
1 parent feee174 commit b0d6cc1

2 files changed

Lines changed: 90 additions & 17 deletions

File tree

scan/src/App.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,15 @@
8686
<section class="search-band">
8787
<div class="search-copy">
8888
<p>MRG Token Explorer</p>
89-
<h1>MRG token activity and proof ledger for MergeOS.</h1>
89+
<h1 aria-label="MRG token activity and proof ledger for MergeOS.">
90+
<span class="title-desktop">MRG token activity and proof ledger for MergeOS.</span>
91+
<span class="title-mobile" aria-hidden="true">
92+
MRG token<br />
93+
activity and<br />
94+
proof ledger<br />
95+
for MergeOS.
96+
</span>
97+
</h1>
9098
</div>
9199

92100
<form class="search-panel" @submit.prevent="submitSearch">

scan/src/styles.css

Lines changed: 81 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap");
2+
13
:root {
24
color-scheme: light;
3-
font-family: Georgia, Cambria, "Times New Roman", serif;
5+
font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
46
background: #ead7b4;
57
color: #342715;
68
font-synthesis: none;
7-
text-rendering: geometricPrecision;
9+
text-rendering: optimizeLegibility;
810
--paper: #f4e5c3;
911
--paper-soft: #f8ecd0;
1012
--paper-warm: #ead6af;
@@ -1240,7 +1242,7 @@ main,
12401242
}
12411243

12421244
.brand strong {
1243-
font-size: clamp(1.72rem, 1.9vw, 2rem);
1245+
font-size: clamp(1.62rem, 1.72vw, 1.82rem);
12441246
letter-spacing: 0;
12451247
text-shadow: 0 1px 0 rgba(255, 249, 222, 0.78);
12461248
}
@@ -1344,8 +1346,8 @@ main {
13441346
}
13451347

13461348
.search-band {
1347-
grid-template-columns: minmax(330px, 0.7fr) minmax(470px, 1.3fr);
1348-
gap: clamp(30px, 5vw, 76px);
1349+
grid-template-columns: minmax(540px, 0.65fr) minmax(470px, 1.35fr);
1350+
gap: clamp(14px, 1vw, 18px);
13491351
padding: 6px 0 26px;
13501352
}
13511353

@@ -1355,17 +1357,23 @@ main {
13551357
.api-docs-head p {
13561358
color: var(--forest);
13571359
font-size: 0.86rem;
1360+
font-weight: 700;
13581361
letter-spacing: 0.02em;
13591362
}
13601363

13611364
.search-copy h1 {
1362-
max-width: 610px;
1363-
font-size: clamp(3rem, 4.3vw, 4.55rem);
1364-
line-height: 0.98;
1365-
text-wrap: balance;
1365+
max-width: 560px;
1366+
font-size: clamp(2.55rem, 3.05vw, 3.28rem);
1367+
font-weight: 700;
1368+
line-height: 1.05;
1369+
text-wrap: auto;
13661370
text-shadow: 0 1px 0 rgba(255, 249, 222, 0.72);
13671371
}
13681372

1373+
.title-mobile {
1374+
display: none;
1375+
}
1376+
13691377
.search-panel {
13701378
min-height: 80px;
13711379
padding: 10px 12px 10px 22px;
@@ -1380,7 +1388,8 @@ main {
13801388

13811389
.search-panel input {
13821390
color: var(--ink);
1383-
font-size: 1.16rem;
1391+
font-size: 1.22rem;
1392+
font-weight: 700;
13841393
}
13851394

13861395
.search-panel input::placeholder {
@@ -1460,6 +1469,7 @@ main {
14601469
.panel-head h2,
14611470
.detail-head h2 {
14621471
font-size: 1.45rem;
1472+
font-weight: 700;
14631473
text-shadow: 0 1px 0 rgba(255, 249, 222, 0.7);
14641474
}
14651475

@@ -1597,7 +1607,7 @@ main {
15971607
}
15981608
}
15991609

1600-
@media (max-width: 1120px) {
1610+
@media (max-width: 1180px) {
16011611
.topbar {
16021612
align-items: flex-start;
16031613
flex-wrap: wrap;
@@ -1635,6 +1645,10 @@ main {
16351645
}
16361646

16371647
@media (max-width: 620px) {
1648+
:root {
1649+
--mobile-content-width: calc(100vw - 48px);
1650+
}
1651+
16381652
.scan-app {
16391653
min-height: 100vh;
16401654
margin: 0;
@@ -1661,21 +1675,30 @@ main {
16611675
}
16621676

16631677
.top-actions {
1678+
display: grid;
1679+
grid-template-columns: repeat(3, minmax(46px, max-content));
16641680
gap: 8px;
1681+
width: 100%;
1682+
min-width: 0;
16651683
}
16661684

16671685
.header-account {
1686+
display: grid;
1687+
grid-template-columns: 1fr;
1688+
grid-column: 1 / -1;
16681689
flex: 1 1 100%;
16691690
order: -1;
16701691
width: 100%;
1692+
min-width: 0;
16711693
gap: 8px;
16721694
}
16731695

16741696
.header-combo,
16751697
.wallet-address-group,
16761698
.github-address-group {
1677-
flex: 1 1 calc(50% - 4px);
1678-
width: auto;
1699+
flex: none;
1700+
width: 100%;
1701+
min-width: 0;
16791702
min-height: 48px;
16801703
}
16811704

@@ -1714,19 +1737,50 @@ main {
17141737

17151738
main {
17161739
padding: 22px 18px 24px;
1740+
overflow-x: hidden;
1741+
}
1742+
1743+
.search-band,
1744+
.search-copy,
1745+
.search-panel {
1746+
width: var(--mobile-content-width);
1747+
min-width: 0;
1748+
max-width: var(--mobile-content-width);
1749+
}
1750+
1751+
.search-band {
1752+
display: block;
1753+
grid-template-columns: minmax(0, 1fr);
17171754
}
17181755

17191756
.search-copy h1 {
1720-
font-size: 2.55rem;
1721-
line-height: 1.02;
1757+
width: var(--mobile-content-width);
1758+
max-width: var(--mobile-content-width);
1759+
font-size: 2.08rem;
1760+
line-height: 1.12;
1761+
text-wrap: wrap;
1762+
overflow-wrap: anywhere;
1763+
word-break: break-word;
1764+
white-space: normal;
1765+
}
1766+
1767+
.title-desktop {
1768+
display: none;
1769+
}
1770+
1771+
.title-mobile {
1772+
display: block;
17221773
}
17231774

17241775
.search-panel {
17251776
grid-template-columns: auto minmax(0, 1fr);
1777+
width: var(--mobile-content-width);
1778+
max-width: var(--mobile-content-width);
1779+
margin-top: 28px;
17261780
}
17271781

17281782
.search-panel input {
1729-
font-size: 0.98rem;
1783+
font-size: 0.92rem;
17301784
}
17311785

17321786
.search-panel button {
@@ -1738,6 +1792,17 @@ main {
17381792
.side-rail,
17391793
.address-summary {
17401794
grid-template-columns: 1fr;
1795+
width: var(--mobile-content-width);
1796+
max-width: var(--mobile-content-width);
1797+
}
1798+
1799+
.activity-panel,
1800+
.rail-panel,
1801+
.detail-panel,
1802+
.stat-card,
1803+
.table-wrap {
1804+
min-width: 0;
1805+
max-width: 100%;
17411806
}
17421807

17431808
.panel-head,

0 commit comments

Comments
 (0)