Skip to content

Commit

Permalink
Fix mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
cristipufu committed Aug 26, 2024
1 parent 527ec46 commit fce7013
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions src/Tunnelite.Server/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,81 @@
.copy-notification.show {
opacity: 1;
}

@media (max-width: 768px) {
.container {
padding: 0 1.5rem;
}

.hero {
padding: 40px 0;
}

h1 {
font-size: 36px;
}

.subtitle {
font-size: 20px;
}

.features {
grid-template-columns: 1fr;
gap: 20px;
}

.installation, .usage, .self-hosting {
padding: 20px;
}

pre {
font-size: 14px;
padding: 15px;
}
}

@media (max-width: 480px) {
.nav-links {
flex-direction: column;
gap: 0.5rem;
}

.nav-links a {
padding: 0.5rem 0;
}

h1 {
font-size: 28px;
}

.subtitle {
font-size: 18px;
}

.cta-button {
padding: 10px 20px;
font-size: 16px;
}
}

@media (max-width: 768px) {

header {
display: none;
}
.copy-button {
display: block;
width: 100%;
margin-top: 10px;
}

.copy-notification {
bottom: 10px;
right: 10px;
left: 10px;
text-align: center;
}
}
</style>
</head>
<body>
Expand Down

0 comments on commit fce7013

Please sign in to comment.