mirror of
https://github.com/inzerosight/zwus.pages.dev.git
synced 2026-04-07 05:02:16 +00:00
Fix: true horizontal centering on Android
Co-authored-by: gpt-5.3-codex <no-reply@openai.com>
This commit is contained in:
75
index.html
75
index.html
@@ -7,6 +7,12 @@
|
|||||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||||
<link href="https://fonts.bunny.net/css?family=inter:400,700,900" rel="stylesheet" />
|
<link href="https://fonts.bunny.net/css?family=inter:400,700,900" rel="stylesheet" />
|
||||||
<style>
|
<style>
|
||||||
|
:root {
|
||||||
|
--pad: 16px;
|
||||||
|
--content-max: 760px;
|
||||||
|
--grid-max: 340px;
|
||||||
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
@@ -17,9 +23,10 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
background-color: #ffffff;
|
background: #fff;
|
||||||
color: #000000;
|
color: #000;
|
||||||
font-family: 'Inter', sans-serif;
|
font-family: 'Inter', sans-serif;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -30,34 +37,33 @@
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
min-height: 100svh;
|
min-height: 100svh;
|
||||||
min-height: 100dvh;
|
min-height: 100dvh;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
text-align: center;
|
|
||||||
overflow-x: hidden;
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding:
|
padding-top: max(48px, env(safe-area-inset-top));
|
||||||
max(16px, env(safe-area-inset-top))
|
padding-right: max(var(--pad), env(safe-area-inset-right));
|
||||||
16px
|
padding-bottom: max(24px, env(safe-area-inset-bottom));
|
||||||
max(20px, env(safe-area-inset-bottom));
|
padding-left: max(var(--pad), env(safe-area-inset-left));
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
width: min(100%, var(--content-max));
|
||||||
|
margin-inline: auto; /* hard centering */
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: clamp(2rem, 8vw, 2.6rem);
|
font-size: clamp(2rem, 8vw, 2.6rem);
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
margin: 0 0 2.2rem 0;
|
margin: 0 0 2.2rem;
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
max-width: 600px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid {
|
.grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
width: min(100%, 340px);
|
width: min(100%, var(--grid-max));
|
||||||
margin-bottom: 2.2rem;
|
margin: 0 auto 2.2rem; /* hard centering */
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid a {
|
.grid a {
|
||||||
@@ -70,7 +76,7 @@
|
|||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
padding: 0.85rem 1rem;
|
padding: 0.85rem 1rem;
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
transition: transform 0.1s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
|
transition: transform .1s ease, opacity .15s ease, background-color .15s ease, color .15s ease;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,12 +92,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.filled {
|
.filled {
|
||||||
color: #ffffff;
|
color: #fff;
|
||||||
background-color: #000000;
|
background: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filled.rust {
|
.filled.rust {
|
||||||
background-color: #ce412b;
|
background: #ce412b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filled .logo-invert {
|
.filled .logo-invert {
|
||||||
@@ -99,14 +105,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.outlined {
|
.outlined {
|
||||||
color: #000000;
|
color: #000;
|
||||||
background-color: transparent;
|
background: transparent;
|
||||||
border: 2px solid #000000;
|
border: 2px solid #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.outlined:hover {
|
.outlined:hover {
|
||||||
background-color: #000000;
|
background: #000;
|
||||||
color: #ffffff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
.divider {
|
||||||
@@ -120,9 +126,10 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-weight: 400;
|
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
color: #666;
|
color: #666;
|
||||||
|
width: min(100%, var(--grid-max));
|
||||||
|
margin: 0 auto; /* hard centering */
|
||||||
}
|
}
|
||||||
|
|
||||||
.playground img {
|
.playground img {
|
||||||
@@ -138,29 +145,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.playground a {
|
.playground a {
|
||||||
color: #000000;
|
color: #000;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-underline-offset: 4px;
|
text-underline-offset: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Keep desktop centered, but on phones move content upward naturally */
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.page {
|
|
||||||
justify-content: flex-start;
|
|
||||||
padding-top: max(48px, env(safe-area-inset-top));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 380px) {
|
@media (max-width: 380px) {
|
||||||
|
:root { --grid-max: 290px; }
|
||||||
h1 { font-size: 2rem; }
|
h1 { font-size: 2rem; }
|
||||||
.grid { width: min(100%, 290px); }
|
.grid a { font-size: .8rem; padding: .7rem .6rem; }
|
||||||
.grid a { font-size: 0.8rem; padding: 0.7rem 0.6rem; }
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main class="page">
|
<main class="page">
|
||||||
|
<section class="content">
|
||||||
<h1>Zero Width Unicode Standard</h1>
|
<h1>Zero Width Unicode Standard</h1>
|
||||||
|
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
@@ -185,6 +185,7 @@
|
|||||||
<img src="https://raw.githubusercontent.com/planetrenox/inzerosight/main/icon_128.png" alt="inØsight logo">
|
<img src="https://raw.githubusercontent.com/planetrenox/inzerosight/main/icon_128.png" alt="inØsight logo">
|
||||||
<p>playground: <a href="https://inzerosight.pages.dev" target="_blank" rel="noopener noreferrer">inzerosight.pages.dev</a></p>
|
<p>playground: <a href="https://inzerosight.pages.dev" target="_blank" rel="noopener noreferrer">inzerosight.pages.dev</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user