mirror of
https://github.com/amalthea-mc/amalthea-mc.github.io.git
synced 2024-11-09 12:11:07 +00:00
Make links box as flex box
This commit is contained in:
parent
8d3984c9e6
commit
37ea2122b0
20
index.html
20
index.html
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Amalthea</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
<meta name="color-scheme" content="dark">
|
||||
<meta name="robots" content="none noarchive">
|
||||
<link rel="shortcut icon" href="server-icon.png" type="image/x-icon">
|
||||
@ -13,18 +13,12 @@
|
||||
<div class="content">
|
||||
<h1 class="address">mc.amalthea.one</h1>
|
||||
<div class="address-desc">Java + Bedrock</div>
|
||||
<table class="links">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="https://t.me/+1brxlMQR7kk5YzQy">Telegram chat</a></td>
|
||||
<td style="text-align: right;"><a href="https://discord.gg/9adwzUt76M">Discord</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#">Support us</a></td>
|
||||
<td style="text-align: right;"><a href="#">Server map</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="links">
|
||||
<a href="https://t.me/+1brxlMQR7kk5YzQy">Telegram chat</a>
|
||||
<a href="https://discord.gg/9adwzUt76M">Discord</a>
|
||||
<a href="#">Support us</a>
|
||||
<a href="#">Server map</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
47
style.css
47
style.css
@ -10,23 +10,43 @@
|
||||
background-color: beige;
|
||||
color: black;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
display: table;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
background-color: black;
|
||||
color: beige;
|
||||
text-shadow: 1px 1px black;
|
||||
font-family: PRegular;
|
||||
}
|
||||
td {
|
||||
padding: 10px;
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
.content {
|
||||
width: 100vw;
|
||||
|
||||
}
|
||||
|
||||
.address {
|
||||
font-size: 160%;
|
||||
|
||||
}
|
||||
|
||||
.address-desc {
|
||||
font-size: 140%;
|
||||
}
|
||||
|
||||
.links {
|
||||
margin-top: 10px;
|
||||
font-size: 140%;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: beige;
|
||||
}
|
||||
@ -39,10 +59,7 @@ a:focus-visible {
|
||||
color: midnightblue;
|
||||
outline: none;
|
||||
}
|
||||
.card {
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 20px 50px;
|
||||
margin-left: auto;
|
||||
@ -65,6 +82,14 @@ a:focus-visible {
|
||||
.links {
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 24px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.links > a {
|
||||
margin: 10px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user