Mobile zooming fixes

This commit is contained in:
august kline 2024-08-18 13:46:41 -04:00
parent 74fbd4eb4b
commit 6112655373
1 changed files with 21 additions and 24 deletions

View File

@ -2,25 +2,22 @@
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5; line-height: 1.5;
font-weight: 400; font-weight: 400;
color: var(--text-color); color: var(--text-color);
font-synthesis: none; font-synthesis: none;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
--link-color: oklch(68% 0.1707 0); --link-color: oklch(68% .1707 0);
--text-color: black; --text-color: black
} }
body, body,
html { html {
block-size: 100svb; inline-size: 100%;
inline-size: 100svi; block-size: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow: hidden; overflow: hidden
} }
#app { #app {
@ -28,34 +25,36 @@ html {
block-size: 100%; block-size: 100%;
display: flex; display: flex;
margin: 0; margin: 0;
padding: 0;
position: relative;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden
} }
h1 { h1 {
font-size: 1.5rem; font-size: 1.5rem;
margin-block: 0.5rem; margin-block: .5rem
} }
p { p {
font-size: 1.5rem; font-size: 1.5rem;
margin: 0; margin: 0;
text-align: justify; text-align: justify;
inline-size: 100%; inline-size: 100%
} }
a { a {
color: var(--link-color); color: var(--link-color);
text-decoration: none; text-decoration: none;
transition: 0.2s text-shadow, 0.2s transform; transition: .2s text-shadow, .2s transform;
display: inline-block; display: inline-block
}
&:hover { a:hover {
text-shadow: 0rem 0rem 1rem var(--link-color); text-shadow: 0rem 0rem 1rem var(--link-color);
transform: rotateZ(-3deg); transform: rotate(-3deg)
}
} }
img { img {
@ -63,18 +62,16 @@ img {
position: absolute; position: absolute;
inline-size: 10%; inline-size: 10%;
z-index: -1; z-index: -1;
min-inline-size: 10rem; min-inline-size: 10rem
} }
.text { .text {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
background: white; background: #fff;
border: 1px solid black; border: 1px solid black;
box-shadow: 0rem 0rem 1.5rem white; box-shadow: 0 0 1.5rem #fff;
/* box-shadow: 0rem 0rem 1rem rgba(0, 0, 0, 0.2); */ padding: .8rem 1.6rem;
/* border-radius: 0.5rem; */ inline-size: clamp(20rem, 30%, 40rem)
padding: 0.8rem 1.6rem;
inline-size: clamp(20rem, 30%, 40rem);
} }