augustkline.com/public/style.css

175 lines
4.0 KiB
CSS
Raw Permalink Normal View History

:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color: var(--text-color);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
--text-color: black;
--link-color: var(--text-color);
--link-shadow-color: rgba(0, 0, 0, 0.5);
--border-color: rgba(200, 200, 200, 0.5);
2024-09-30 19:16:48 -04:00
--text-bg-color: rgba(255, 255, 255, 0.95);
--text-border-shadow-color: rgba(255, 255, 255, 0.7);
--text-shadow-color: rgba(0, 0, 0, 0.1);
--img-bg-color: rgba(50, 50, 50, 0.2);
--img-border-color: rgba(255, 255, 255, 0.8);
2024-09-30 19:16:48 -04:00
--font-base-size: 1rem;
}
body,
html {
2024-09-30 19:16:48 -04:00
align-items: center;
block-size: 100%;
display: flex;
2024-09-30 19:16:48 -04:00
flex-direction: column;
inline-size: 100%;
justify-content: center;
margin: 0;
2024-09-30 19:16:48 -04:00
overflow: hidden;
padding: 0;
position: relative;
}
2024-09-30 19:16:48 -04:00
h1,
h2,
h3 {
margin-block: .5rem;
}
2024-09-30 19:16:48 -04:00
h1 {
font-size: calc(var(--font-base-size) * 2);
}
h2 {
font-size: calc(var(--font-base-size) * 1.8);
}
h3 {
font-size: calc(var(--font-base-size) * 1.6);
}
p {
2024-09-30 19:16:48 -04:00
font-size: calc(var(--font-base-size) * 1.5);
margin: 0;
inline-size: 100%;
}
a {
color: var(--link-color);
transition: .2s text-shadow, .2s transform;
display: inline-block;
font-weight: 600;
}
2024-09-30 19:16:48 -04:00
a {
color: var(--link-color);
transition: .2s text-shadow, .2s transform;
display: inline-block;
font-weight: 600;
}
2024-09-30 19:16:48 -04:00
a {
transition: .2s text-shadow, .2s box-shadow,
.2s transform;
&:has(> p) {
&:hover {
box-shadow: 0rem 0.2rem 1rem var(--link-shadow-color);
transform: translateY(-7%);
}
color: var(--link-color);
display: inline-block;
border-radius: 1rem;
text-decoration: none;
}
&:not(:has(> p)) {
&:hover {
text-shadow: 0rem 0.2rem 1rem var(--link-shadow-color);
transform: translateY(-7%) scale(1.01);
}
}
}
#background {
transform-style: preserve-3d;
transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
inline-size: 100%;
block-size: 100%;
z-index: -1;
position: absolute;
2024-08-26 19:36:05 -04:00
&[loaded] img {
2024-08-26 20:52:53 -04:00
opacity: 1;
}
2024-09-30 19:16:48 -04:00
img {
transform: translate(-50%, -50%) translateZ(var(--translate-z));
transition: opacity 0.3s;
opacity: 0;
position: absolute;
z-index: -1;
border: 0.01rem solid var(--img-border-color);
border-radius: 1rem;
box-shadow: 0.05rem 0.05rem 0px var(--img-bg-color),
-0.05rem -0.05rem 0px var(--img-bg-color),
0.05rem -0.05rem 0px var(--img-bg-color),
-0.05rem 0.05rem 0px var(--img-bg-color),
0 0 1rem rgba(0, 0, 0, 0.3);
}
}
pre {
padding: 0.5rem 1rem;
border-radius: 1rem;
box-shadow: 0.05rem 0.05rem 0px var(--img-bg-color),
-0.05rem -0.05rem 0px var(--img-bg-color),
0.05rem -0.05rem 0px var(--img-bg-color),
-0.05rem 0.05rem 0px var(--img-bg-color),
0 0 1rem rgba(0, 0, 0, 0.3);
2024-08-26 20:52:53 -04:00
}
2024-09-30 19:16:48 -04:00
.blog {}
main {
overflow-inline: auto;
display: flex;
flex-direction: column;
background: var(--text-bg-color);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 0.01rem solid var(--border-color);
margin: 1px;
padding: .8rem 1.6rem;
2024-09-30 19:16:48 -04:00
max-inline-size: clamp(20rem, 50%, 40rem);
border-radius: 1rem;
box-shadow: 0.05rem 0.05rem 0px var(--text-border-shadow-color),
-0.05rem -0.05rem 0px var(--text-border-shadow-color),
0.05rem -0.05rem 0px var(--text-border-shadow-color),
-0.05rem 0.05rem 0px var(--text-border-shadow-color),
0rem 0rem 2rem var(--text-shadow-color);
2024-09-30 19:16:48 -04:00
img {
inline-size: 100%;
border-radius: 1rem;
}
}
2024-08-27 13:38:08 -04:00
@media (prefers-reduced-motion: reduce) {
#background {
transform: none;
}
a {
transition: none;
}
a:hover {
transform: none;
}
}