Skip to content

Commit b10cb5b

Browse files
Update index.html and style.css for improved styling and browser compatibility
1 parent 26a3cd3 commit b10cb5b

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

opaque-range/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1>OpaqueRange demo</h1>
2525
<strong>⚠️ OpaqueRange is not supported in this browser.</strong>
2626
OpaqueRange is available in Microsoft Edge 148 and other Chromium-based browsers version 148 and later.
2727
Enable the <strong>Experimental Web Platform features</strong> flag at
28-
<code>edge://flags</code> or <code>chrome://flags</code>, or sign up for the
28+
<code>about://flags</code>, or register for the
2929
<a href="https://developer.chrome.com/origintrials/#/register_trial/1731071106770534401">Origin Trial</a>.
3030
</div>
3131

opaque-range/style.css

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ button {
1313
-moz-text-size-adjust: 100%;
1414
text-size-adjust: 100%;
1515
font-size: 16px;
16-
font-family: Segoe UI, SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif;
16+
font-family: system-ui, sans-serif;
1717
font-weight: 400;
1818
}
1919

@@ -24,21 +24,25 @@ html {
2424
body {
2525
max-width: 800px;
2626
margin: 0 auto;
27-
padding: 2rem 1.5rem;
27+
padding: 2rem;
2828
color: #1b1b1b;
2929
line-height: 1.6;
3030
}
3131

3232
h1 {
33-
margin-bottom: 0.25rem;
33+
margin: 2rem 0;
3434
font-size: 1.75rem;
3535
}
3636

37+
body > p {
38+
margin: 2rem 0;
39+
}
40+
3741
h2 {
38-
margin-top: 2rem;
3942
font-size: 1.3rem;
40-
border-bottom: 1px solid #ddd;
41-
padding-bottom: 0.4rem;
43+
margin: 0 0 1rem 0;
44+
border-block-end: 1px solid #ddd;
45+
padding-block-end: 1rem;
4246
}
4347

4448
h3 {
@@ -74,7 +78,10 @@ a {
7478
}
7579

7680
.demo-section {
77-
margin-bottom: 2rem;
81+
margin-block-end: 2rem;
82+
background: #eee;
83+
padding: 1rem;
84+
border-radius: 6px;
7885
}
7986

8087
.field-wrapper {

0 commit comments

Comments
 (0)