diff --git a/public/style.css b/public/style.css index 3f9824b6..27116a87 100644 --- a/public/style.css +++ b/public/style.css @@ -8563,10 +8563,14 @@ span.icon-rss::before { } .project-header-img { width: 100%; - height: var(--height-5); background-color: rgba(255, 255, 255, 0.5); background-size: cover; } +@media screen and (min-width: 35em) { + .project-header-img { + height: var(--height-5); + } +} .project-links { background-color: var(--c-transparent-background); display: flex; @@ -8578,6 +8582,15 @@ span.icon-rss::before { content: "\200b"; padding: var(--spacing-2) 0; } +.project-links-spacer { + height: var(--height-4); +} +@media screen and (min-width: 35em) { + .project-links-spacer { + height: auto; + flex-grow: 1; + } +} .project-homepage-card { width: 100%; max-width: var(--site-width-narrow); @@ -8587,7 +8600,11 @@ span.icon-rss::before { display: flex; gap: var(--spacing-3); overflow: hidden; - margin-top: -4rem; +} +@media screen and (min-width: 35em) { + .project-homepage-card { + margin-top: -4rem; + } } /* src/rawdata/scss/showcase.css */ diff --git a/src/rawdata/scss/projects.css b/src/rawdata/scss/projects.css index 660d32b0..1b86da4d 100644 --- a/src/rawdata/scss/projects.css +++ b/src/rawdata/scss/projects.css @@ -80,10 +80,13 @@ .project-header-img { /* w-100 h5 bg-white-50 bg-center cover */ width: 100%; - height: var(--height-5); /* TODO(redesign): Better placeholder */ background-color: rgba(255, 255, 255, 0.5); background-size: cover; + + @media screen and (min-width: 35em) { + height: var(--height-5); + } } .project-links { @@ -100,6 +103,15 @@ } } +.project-links-spacer { + height: var(--height-4); + + @media screen and (min-width: 35em) { + height: auto; + flex-grow: 1; + } +} + .project-homepage-card { width: 100%; max-width: var(--site-width-narrow); @@ -110,5 +122,7 @@ gap: var(--spacing-3); overflow: hidden; - margin-top: -4rem; + @media screen and (min-width: 35em) { + margin-top: -4rem; + } } \ No newline at end of file diff --git a/src/templates/src/project_homepage.html b/src/templates/src/project_homepage.html index ba873a03..02ee255a 100644 --- a/src/templates/src/project_homepage.html +++ b/src/templates/src/project_homepage.html @@ -9,9 +9,9 @@ {{ define "content" }}