Skip to content

Commit fce7013

Browse files
committed
Fix mobile layout
1 parent 527ec46 commit fce7013

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

src/Tunnelite.Server/wwwroot/index.html

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,81 @@
173173
.copy-notification.show {
174174
opacity: 1;
175175
}
176+
177+
@media (max-width: 768px) {
178+
.container {
179+
padding: 0 1.5rem;
180+
}
181+
182+
.hero {
183+
padding: 40px 0;
184+
}
185+
186+
h1 {
187+
font-size: 36px;
188+
}
189+
190+
.subtitle {
191+
font-size: 20px;
192+
}
193+
194+
.features {
195+
grid-template-columns: 1fr;
196+
gap: 20px;
197+
}
198+
199+
.installation, .usage, .self-hosting {
200+
padding: 20px;
201+
}
202+
203+
pre {
204+
font-size: 14px;
205+
padding: 15px;
206+
}
207+
}
208+
209+
@media (max-width: 480px) {
210+
.nav-links {
211+
flex-direction: column;
212+
gap: 0.5rem;
213+
}
214+
215+
.nav-links a {
216+
padding: 0.5rem 0;
217+
}
218+
219+
h1 {
220+
font-size: 28px;
221+
}
222+
223+
.subtitle {
224+
font-size: 18px;
225+
}
226+
227+
.cta-button {
228+
padding: 10px 20px;
229+
font-size: 16px;
230+
}
231+
}
232+
233+
@media (max-width: 768px) {
234+
235+
header {
236+
display: none;
237+
}
238+
.copy-button {
239+
display: block;
240+
width: 100%;
241+
margin-top: 10px;
242+
}
243+
244+
.copy-notification {
245+
bottom: 10px;
246+
right: 10px;
247+
left: 10px;
248+
text-align: center;
249+
}
250+
}
176251
</style>
177252
</head>
178253
<body>

0 commit comments

Comments
 (0)