personal_site/_sass/projects.scss
2025-04-07 20:09:47 +02:00

65 lines
1.1 KiB
SCSS

article.project {
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-wrap: nowrap;
flex-direction: row;
h2 {
margin-top: 0;
}
a.photo {
width: $thumbnail_image_size;
height: $thumbnail_image_size;
margin-right: 1em;
}
img {
max-height: $thumbnail_image_size;
width: unset;
aspect-ratio: 1 / 1;
}
figure {
padding: 0;
justify-content: center;
}
section.text {
width: 100%;
}
}
section.header {
h1 {
font-size: clamp(20px, 20px * 100vw / 300px, 25px);
}
.icon-container {
height: clamp(30px, 80px * 100vw / 375px, 50px);
aspect-ratio: 1 / 1;
overflow: clip;
}
}
section.header.sticky {
width: 100%;
gap: 1em;
position: sticky;
top: 0px;
background: var(--theme-bg-color);
z-index: 11;
margin-top: 0.5rem;
}
.icon-container {
canvas {
width: 100%;
height: 100%;
position: relative;
left: 100%;
transition: left 0.3s ease-in-out,
}
canvas.revealed {
left: 0%;
}
}