Rework Mobile SDK explorer into module tile grid, polish nav styling
CI / build (push) Canceled after 0s
CI / build (push) Canceled after 0s
Replace the tab/scrubber UI with a module tile grid, drop the leaked real phone number from the call-scam demo script, and simplify nav scroll background handling. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+113
-78
@@ -16,9 +16,9 @@
|
||||
--hex-dot: rgba(59, 181, 134, 0.9);
|
||||
--bg-grad: radial-gradient(
|
||||
140% 90% at 50% 0%,
|
||||
#075466 0%,
|
||||
#013b49 55%,
|
||||
#01303b 100%
|
||||
#ffffff 0%,
|
||||
#f6f5f2 55%,
|
||||
#ece9e3 100%
|
||||
);
|
||||
}
|
||||
*,
|
||||
@@ -105,11 +105,8 @@ textarea {
|
||||
align-items: center;
|
||||
padding: 0 32px;
|
||||
justify-content: space-between;
|
||||
transition:
|
||||
background 0.3s,
|
||||
border-color 0.3s;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
transition: border-color 0.3s;
|
||||
background: rgba(1, 59, 73, 1);
|
||||
border-bottom: 1px solid transparent;
|
||||
}
|
||||
.bd-nav-links {
|
||||
@@ -248,11 +245,11 @@ textarea {
|
||||
/* HERO */
|
||||
.bd-hero {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--bg);
|
||||
overflow: hidden;
|
||||
padding:90px;
|
||||
}
|
||||
.bd-hero-sh {
|
||||
position: relative;
|
||||
@@ -304,13 +301,13 @@ textarea {
|
||||
}
|
||||
.bd-hero-sh .bd-hero-in {
|
||||
min-height: auto;
|
||||
height: 100vh;
|
||||
}
|
||||
/* TYPE */
|
||||
.ey {
|
||||
font-family: var(--fm);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.18em;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.15em;
|
||||
color: var(--t3);
|
||||
text-transform: uppercase;
|
||||
display: block;
|
||||
@@ -552,19 +549,38 @@ textarea {
|
||||
background: #071318;
|
||||
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
/* The Guardian explorer widget is a wide, multi-tab section rather than a
|
||||
phone-shaped hero visual — break it out of the 2-col hero grid to full
|
||||
width instead of squeezing it into the narrow phone-sized slot above. */
|
||||
#pg-p2 .bd-hero-sh .bd-hero-in {
|
||||
grid-template-columns: 1fr;
|
||||
display: block;
|
||||
height: auto;
|
||||
padding-bottom: 40px;
|
||||
padding-top: 0px;
|
||||
padding-bottom: 14px;
|
||||
}
|
||||
/* Grid items default to min-width:auto, which lets the tabstrip's
|
||||
unwrapped flex content (9 tabs) blow out the track instead of
|
||||
scrolling internally — force the mount's grid cell back down to the
|
||||
column width so it scrolls internally instead of widening the page. */
|
||||
#pg-p2 .bd-hero-sh .bd-hero-in > div:last-child {
|
||||
#pg-p2 .bd-hero-top {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 20px;
|
||||
}
|
||||
#pg-p2 .bd-hero-top > div:first-child {
|
||||
max-width: 720px;
|
||||
}
|
||||
#pg-p2 .bd-hero-top .h1 {
|
||||
font-size: clamp(32px, 3.4vw, 44px);
|
||||
}
|
||||
#pg-p2 .bd-hero-top .hero-sub {
|
||||
margin: 12px 0 18px;
|
||||
}
|
||||
/* The hero now fits one screen, so the global "scroll down" hint collides
|
||||
with the demo's caption text instead of pointing at hidden content. */
|
||||
body[data-active-page="p2"] .scroll-hint {
|
||||
display: none !important;
|
||||
}
|
||||
/* Flex items default to min-width:auto, which lets the tabstrip's
|
||||
unwrapped flex content (9 tabs) blow out the row instead of scrolling
|
||||
internally — min-width:0 forces it back down to the mount's own width
|
||||
so the tabstrip scrolls internally instead of widening the page. */
|
||||
#pg-p2 .bd-hero-top > .bd-mobile-demo-mount {
|
||||
flex: none;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -576,7 +592,6 @@ textarea {
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
overflow: visible;
|
||||
margin-top: 32px;
|
||||
min-width: 0;
|
||||
}
|
||||
.bd-phone-cta {
|
||||
@@ -675,7 +690,8 @@ textarea {
|
||||
}
|
||||
.tier-tg {
|
||||
font-family: var(--fm);
|
||||
font-size: 10px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--t3);
|
||||
margin-top: 4px;
|
||||
@@ -702,7 +718,8 @@ textarea {
|
||||
}
|
||||
.tier-tagi {
|
||||
font-family: var(--fm);
|
||||
font-size: 10px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.06em;
|
||||
padding: 3px 8px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
@@ -993,9 +1010,13 @@ textarea {
|
||||
}
|
||||
/* PILLAR MAP */
|
||||
.pm-strip {
|
||||
border-bottom: 1px solid var(--bdr);
|
||||
border-top: 1px solid rgba(13, 27, 36, 0.1);
|
||||
border-bottom: 1px solid rgba(13, 27, 36, 0.1);
|
||||
padding: 20px 40px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
background: #f6f5f2;
|
||||
}
|
||||
.pm-strip .ey {
|
||||
color: rgba(13, 27, 36, 0.45);
|
||||
}
|
||||
.pm-in {
|
||||
max-width: 1200px;
|
||||
@@ -1023,12 +1044,12 @@ textarea {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--txt);
|
||||
color: #0d1b24;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.pm-cell span {
|
||||
font-size: 13px;
|
||||
color: var(--t2);
|
||||
color: rgba(13, 27, 36, 0.6);
|
||||
line-height: 1.55;
|
||||
}
|
||||
/* AUD STRIP */
|
||||
@@ -1506,7 +1527,7 @@ textarea {
|
||||
}
|
||||
/* FOOTER */
|
||||
.bd-footer {
|
||||
background: rgba(1, 47, 59, 0.8);
|
||||
background: rgba(1, 47, 59, 1);
|
||||
border-top: 1px solid var(--bdr);
|
||||
padding: 20px 40px;
|
||||
display: flex;
|
||||
@@ -1784,6 +1805,9 @@ textarea {
|
||||
.bd-hero {
|
||||
min-height: auto;
|
||||
}
|
||||
#pg-p2 .bd-hero-top {
|
||||
gap: 24px;
|
||||
}
|
||||
.hero-sub {
|
||||
max-width: 100%;
|
||||
}
|
||||
@@ -1963,10 +1987,8 @@ textarea {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
/* ── WHITE SECTIONS: 2nd & 4th per page ──────────────────────── */
|
||||
.pg > section:nth-of-type(2),
|
||||
.pg > section:nth-of-type(4) {
|
||||
background: #ffffff !important;
|
||||
/* ── 3-COLOR SECTION ROTATION: dark base / dark stripe / off-white, repeating per page ──── */
|
||||
.pg > section:nth-of-type(3n + 2) {
|
||||
--txt: #013b49;
|
||||
--t2: rgba(1, 59, 73, 0.65);
|
||||
--t3: rgba(1, 59, 73, 0.42);
|
||||
@@ -1975,153 +1997,166 @@ textarea {
|
||||
--axd: rgba(59, 181, 134, 0.1);
|
||||
--axb: rgba(59, 181, 134, 0.25);
|
||||
}
|
||||
/* Hardcoded-bg elements inside white sections */
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-card {
|
||||
.pg > section:nth-of-type(3n) {
|
||||
background: var(--s1);
|
||||
}
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) {
|
||||
background: #f6f5f2 !important;
|
||||
--txt: #013b49;
|
||||
--t2: rgba(1, 59, 73, 0.65);
|
||||
--t3: rgba(1, 59, 73, 0.42);
|
||||
--bdr: rgba(0, 0, 0, 0.09);
|
||||
--bdr2: rgba(0, 0, 0, 0.14);
|
||||
--axd: rgba(59, 181, 134, 0.1);
|
||||
--axb: rgba(59, 181, 134, 0.25);
|
||||
}
|
||||
/* Hardcoded-bg elements inside the off-white sections */
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-card {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-card:hover {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-card:hover {
|
||||
background: rgba(59, 181, 134, 0.07);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .mc {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .mc {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .mc-val {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .mc-val {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .mc-val.ax {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .mc-val.ax {
|
||||
color: var(--ax);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .stats-bar {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .stats-bar {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .stat-lbl {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .stat-lbl {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .stat-desc {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .stat-desc {
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-feed {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-feed {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .feed-hd {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .feed-hd {
|
||||
border-color: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .feed-row {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .feed-row {
|
||||
border-color: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .dash-frame {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .dash-frame {
|
||||
background: #ecf0ff;
|
||||
border-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .dash-bar {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .dash-bar {
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
border-color: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .arch-cap {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .arch-cap {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .tier-tagi {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .tier-tagi {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
border-color: rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .c-tag.mu {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .c-tag.mu {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
border-color: rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .vs-box {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .vs-box {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .vs-mrk.dns {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .vs-mrk.dns {
|
||||
background: rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .diff-ck {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .diff-ck {
|
||||
background: rgba(59, 181, 134, 0.1);
|
||||
border-color: rgba(59, 181, 134, 0.25);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .inv-stat {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .inv-stat {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.09);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .inv-lbl {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .inv-lbl {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .news-card {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .news-card {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .contact-card {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .contact-card {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.09);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .form-inp {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .form-inp {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: #013b49;
|
||||
border-color: rgba(0, 0, 0, 0.14);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .form-lbl {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .form-lbl {
|
||||
color: rgba(1, 59, 73, 0.5);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4))
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4)
|
||||
.form-inp:focus {
|
||||
border-color: var(--ax);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .btn-g {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .btn-g {
|
||||
border-color: rgba(0, 0, 0, 0.2);
|
||||
color: rgba(1, 59, 73, 0.65);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .btn-g:hover {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .btn-g:hover {
|
||||
border-color: rgba(0, 0, 0, 0.5);
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-bq {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-bq {
|
||||
background: rgba(59, 181, 134, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .ex-box {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .ex-box {
|
||||
background: rgba(59, 181, 134, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .pillar-role {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .pillar-role {
|
||||
color: rgba(1, 59, 73, 0.35);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .ops-ov {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .ops-ov {
|
||||
color: var(--ax);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .spec-r label {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .spec-r label {
|
||||
color: rgba(1, 59, 73, 0.4);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .spec-r span {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .spec-r span {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .tier-nm {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .tier-nm {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .dep-step h4 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .dep-step h4 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .sig-item h4 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .sig-item h4 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .sb h4 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .sb h4 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4))
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4)
|
||||
.diff-it
|
||||
strong {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .arch-body h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .arch-body h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .news-card h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .news-card h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .ops-card h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .ops-card h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .cta-card h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .cta-card h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user