Skip to content

Commit d2c09ce

Browse files
committed
Tweak mobile styles
1 parent 3a31f74 commit d2c09ce

File tree

3 files changed

+44
-17
lines changed

3 files changed

+44
-17
lines changed

docs/index.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ hide:
88
<div class="hero">
99
<h1><img src="/assets/images/logo-hero.png"/></h1>
1010
<h2>An advanced 3D Gaussian Splatting renderer for THREE.js</h2>
11-
<div class="feature-grid">
12-
<li class="feature-item">Integrates with THREE.js scenes</li>
13-
<li class="feature-item">Fast rendering on all devices via WebGL2</li>
14-
<li class="feature-item">Combine multiple splat objects</li>
15-
<li class="feature-item">Programmable GPU-driven dynamic splat effects</li>
11+
<div class="feature-list">
12+
Integrate in your scene with other meshes and splats, fast rendering on all devices, programmable dynamic splat effects, wide format support (ply, spz, splat, ksplat)
1613
</div>
1714
<a href="/docs/" class="md-button md-button--primary">Get started →</a>
1815
<iframe class="hero-image" src="/examples/hello-world/carousel.html"></iframe>

docs/overrides/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
@media screen and (max-width: 60em) {
3838
.hero img {
39-
max-width: 400px;
39+
max-width: 320px;
4040
margin:auto;
4141
}
4242
.hero h2 {

docs/stylesheets/forge.css

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,44 @@
125125
color: white;
126126
}
127127

128-
.feature-grid {
129-
display: grid;
130-
grid-template-columns: 1fr 1fr;
131-
gap: 0.5rem;
132-
max-width: 800px;
133-
margin: 1.5rem auto;
134-
}
135-
136-
.feature-item {
137-
list-style: none;
138-
}
128+
.feature-list {
129+
font-size: 1rem;
130+
margin: auto;
131+
margin-bottom: 30px;
132+
max-width: 600px;
133+
}
134+
135+
@media screen and (max-width: 60em) {
136+
.feature-list {
137+
font-size: 0.8rem;
138+
}
139+
140+
.md-custom-header-right {
141+
margin-left: 0;
142+
margin-right: 0;
143+
}
144+
145+
.icon-discord,
146+
.icon-github {
147+
margin-right: 15px;
148+
}
149+
150+
.icon-discord {
151+
width: 25px;
152+
height: 25px;
153+
}
154+
155+
.icon-github {
156+
width: 20px;
157+
height: 20px;
158+
}
159+
160+
.md-header__button {
161+
margin-left: 0;
162+
}
163+
164+
[dir=ltr] .md-header__title {
165+
margin-left: 0;
166+
margin-right: 0;
167+
}
168+
}

0 commit comments

Comments
 (0)