Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
southerntofu | ade24ec2bd | |
southerntofu | 173ec41691 | |
southerntofu | b27d049257 | |
southerntofu | f5032974f1 | |
southerntofu | f78a76b588 |
|
@ -0,0 +1 @@
|
|||
**/.*.sw*
|
|
@ -1,6 +0,0 @@
|
|||
/* Close menu buttons on select */
|
||||
Array.from(document.querySelectorAll('.link-grid a')).map( el => {
|
||||
el.addEventListener('click', e => {
|
||||
document.getElementById("toggle").checked = false;
|
||||
})
|
||||
})
|
|
@ -90,26 +90,38 @@ h3 {
|
|||
max-width: 100%;
|
||||
}
|
||||
|
||||
#main-nav #toggle {
|
||||
#main-nav .links {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#main-nav #toggle:checked ~ section {
|
||||
#main-nav:target .links {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#main-nav #toggle:checked ~ label {
|
||||
#main-nav:target .open {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#main-nav:target .close {
|
||||
display: block;
|
||||
background-position: 0 -52px;
|
||||
}
|
||||
|
||||
#main-nav label {
|
||||
#main-nav .open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#main-nav .close {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#main-nav .menubutton {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
line-height: 40px;
|
||||
background-image: url('/assets/nav-toggle.png');
|
||||
background-image: url('nav-toggle.png');
|
||||
background-size: 50px 103px;
|
||||
background-position: 0 0;
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
|
@ -119,10 +131,7 @@ h3 {
|
|||
z-index: 5;
|
||||
}
|
||||
|
||||
#main-nav section {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
#main-nav .links {
|
||||
width: 100vw;
|
||||
max-width: 100%;
|
||||
height: 100vh;
|
||||
|
@ -135,36 +144,14 @@ h3 {
|
|||
background-color: #222;
|
||||
}
|
||||
|
||||
#main-nav section .link-grid {
|
||||
display: grid;
|
||||
#main-nav .links {
|
||||
padding-bottom: 55px;
|
||||
padding-top: 55px;
|
||||
max-height: 100%;
|
||||
grid-template-columns: 1fr 0.5fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 0.5fr 1fr;
|
||||
grid-template-rows: auto auto;
|
||||
grid-template-areas:
|
||||
". . . nl nl nl nl nl nl . . ."
|
||||
}
|
||||
|
||||
#main-nav section .link-grid .links {
|
||||
grid-area: nl;
|
||||
padding-bottom: 55px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#main-nav section header {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#main-nav section header img {
|
||||
height: 22px;
|
||||
padding-top: 17px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
#main-nav section .link-grid .links a {
|
||||
#main-nav .links a {
|
||||
display: block;
|
||||
position: relative;
|
||||
line-height: 60px;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
|
@ -173,27 +160,26 @@ h3 {
|
|||
text-align: center;
|
||||
transition: color 0.7s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
font-family: "blankaregular";
|
||||
max-width: 60vw;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#main-nav section .link-grid .links a:hover {
|
||||
#main-nav .links a:hover {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
#main-nav section .link-grid .links a::after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
//display: block;
|
||||
//position: absolute;
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
top: 0;
|
||||
transform: scaleX(0);
|
||||
transform-origin: left center;
|
||||
//transform: scaleX(0);
|
||||
//transform-origin: left center;
|
||||
transition: background-color 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
background-color: #fc03cf;
|
||||
z-index: -1;
|
||||
//z-index: -1;
|
||||
}
|
||||
|
||||
#main-nav section .link-grid .links a:hover::after {
|
||||
#main-nav .links a:hover::after {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,31 +6,26 @@
|
|||
<meta http-equiv=X-UA-Compatible content="IE=edge">
|
||||
<meta name=viewport content="shrink-to-fit=no,width=device-width,height=device-height,initial-scale=1,user-scalable=1">
|
||||
<meta name="description" content="The black hole of the tildeverse">
|
||||
<link rel='stylesheet' href='/assets/styles.css'>
|
||||
<link rel='stylesheet' href='assets/styles.css'>
|
||||
<link rel='canonical' href='https://tilde.black/' />
|
||||
<link rel='icon' href='favicon.ico' type='image/x-icon' />
|
||||
<script defer type="text/javascript" src="/assets/scripts.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<nav id='main-nav'>
|
||||
<input type='checkbox' id='toggle' />
|
||||
<label for='toggle'> </label>
|
||||
<section>
|
||||
<div class='link-grid'>
|
||||
<div class='links'>
|
||||
<a href='#intro'>Home</a>
|
||||
<a href='#about'>About</a>
|
||||
<a href='#docs'>Guides</a>
|
||||
<a href='#features'>Features</a>
|
||||
<a href='#users'>User Pages</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<nav id='main-nav' class='link-grid'>
|
||||
<div class='links'>
|
||||
<a href='#intro'>Home</a>
|
||||
<a href='#about'>About</a>
|
||||
<a href='#docs'>Guides</a>
|
||||
<a href='#features'>Features</a>
|
||||
<a href='#users'>User Pages</a>
|
||||
</div>
|
||||
<a class="menubutton open" href="#main-nav"></a>
|
||||
<a class="menubutton close" href="#"></a>
|
||||
</nav>
|
||||
<section id="intro">
|
||||
<h1>Tilde Black</h1>
|
||||
<h2>The black hole of the tildeverse</h2>
|
||||
<div class="icon"><img src="/assets/black-hole.svg" alt="Icon of a Black Hole"/></div>
|
||||
<div class="icon"><img src="assets/black-hole.svg" alt="Icon of a Black Hole"/></div>
|
||||
<div class="copy">
|
||||
<p>Tilde (~) servers are public access unix systems in the spirit of
|
||||
<a href="https://tilde.club" rel="noreferrer">tilde.club</a>, which was created by Paul Ford
|
||||
|
|
Loading…
Reference in New Issue