better mobile support

This commit is contained in:
minish 2024-04-22 21:04:26 -04:00
parent 0a3d8bf027
commit 5b6f162809
Signed by: min
GPG Key ID: FEECFF24EF0CE9E9
3 changed files with 41 additions and 23 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# old revisions
scrap

View File

@ -16,6 +16,8 @@
<meta name="theme-color" content="#c4b5a1"> <meta name="theme-color" content="#c4b5a1">
<title>min.rip</title> <title>min.rip</title>
<script>0</script>
</head> </head>
<body> <body>
@ -23,7 +25,6 @@
<div id="bordeur"></div> <div id="bordeur"></div>
<main> <main>
<div id="floats"> <div id="floats">
<img src="/assets/icon.webp" alt="" id="icon">
<div id="yapping"> <div id="yapping">
<h1>hi, world!</h1> <h1>hi, world!</h1>
<h2>i am minish</h2> <h2>i am minish</h2>
@ -35,7 +36,7 @@
a simple, performant file upload server a simple, performant file upload server
</li> </li>
<li> <li>
<a href="https://git.min.rip/breeze/hls_convert">hls_convert</a> - <a href="#">hls_convert</a> -
easily download videos and fix embeds easily download videos and fix embeds
</li> </li>
<li> <li>
@ -51,6 +52,7 @@
<li>cafe de touhou <img src="/assets/interests/cdth.webp" alt=""></li> <li>cafe de touhou <img src="/assets/interests/cdth.webp" alt=""></li>
</ul> </ul>
</div> </div>
<img src="/assets/icon.webp" alt="" id="icon">
</div> </div>
<div id="cont"> <div id="cont">
<hr> <hr>

View File

@ -20,9 +20,8 @@ body {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: calc(100% - calc(2px * 2)); width: calc(100vw - calc(2px * 2));
height: calc(100vh - calc(2px * 2)); height: calc(100vh - calc(2px * 2));
z-index: -97;
margin: 2px; margin: 2px;
@ -34,20 +33,18 @@ body {
content: ""; content: "";
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100vw;
height: 100vh; height: 100vh;
z-index: -98;
backdrop-filter: blur(0px); /* backdrop-filter: blur(2px); */
} }
#bg { #bg {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100vw;
height: 100vh; height: 100vh;
z-index: -99;
background-image: linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.53)), url(/assets/bg.webp); background-image: linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.53)), url(/assets/bg.webp);
background-attachment: fixed; background-attachment: fixed;
@ -62,6 +59,9 @@ main {
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
font-size: 10pt; font-size: 10pt;
line-height: 2em; line-height: 2em;
@ -77,34 +77,49 @@ main {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
} }
a:link, a:visited, a:hover, a:active { @media only screen and (max-width: 700px) {
main {
min-width: 90dvw;
}
#bordeur {
border-width: 0px;
}
#icon {
display: none;
}
}
a:link,
a:visited,
a:hover,
a:active {
color: var(--accent-b) color: var(--accent-b)
} }
main * { h2 {
margin: 0px;
}
main h2 {
font-size: medium; font-size: medium;
font-weight: lighter; font-weight: lighter;
margin-bottom: 4px; margin-bottom: 4px;
} }
#floats {
display: flex;
}
#icon { #icon {
float: right; justify-self: right;
position: relative;
/* make some space around it */ /* make some space around it */
margin-bottom: 6px;
margin-left: 24px; margin-left: 24px;
height: 7em; height: 7em;
} }
#yapping { #yapping {
float: left; justify-self: right;
} }
ul { ul {
@ -126,7 +141,7 @@ li {
vertical-align: middle; vertical-align: middle;
} }
main hr { hr {
margin-bottom: 10px; margin-bottom: 10px;
margin-top: 12px; margin-top: 12px;
@ -143,8 +158,7 @@ main hr {
} }
#cont { #cont {
/* This has to be here or the separator margin disappears. Dear god i have no idea what the hell i am doing. */
padding-top: 1px; padding-top: 1px;
clear: both; margin-top: auto;
} }