diff options
author | thinkpadmaster <a.scerba02@gmail.com> | 2023-07-26 23:13:19 -0500 |
---|---|---|
committer | Alex Scerba <alex@scerba.org> | 2024-10-29 13:19:57 -0400 |
commit | 862d2bb8f08e4f147fb6a4d2368257af92b24268 (patch) | |
tree | 5bc703b6bee6f4a9f13925cc4ceede629fdd0c2a | |
parent | 3e0978f8a7b1e5f3bc4bdbf81f573fe6e616e10c (diff) |
Update image aspect ratio and spacing on home page and projects page. Add new class for projects specifically.
-rw-r--r-- | static/style.css | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/static/style.css b/static/style.css index c796074..516a2b7 100644 --- a/static/style.css +++ b/static/style.css @@ -151,16 +151,31 @@ h2 { max-height: 40vh; } -.postContent { +.postContent, .projectList { background-color: var(--dark-transparent); margin: 0 15vw; padding: 10px 30px; } -.postContent > p { +.postContent > p, .projectList > p { margin-left: 25px; } +.projectList figure { + margin-left: 0; + margin-right: 0; +} + +.projectList figure:not(:last-child) { + margin-bottom: 50px; +} + +.projectList img { + width: 100%; + aspect-ratio: 16/9; + object-fit: cover; +} + figcaption { color: var(--subtext-color); } @@ -184,8 +199,8 @@ a, a > figcaption { } .bottom > .posts > .thumbnail { - padding: 10px 10px 30px 10px; - margin-bottom: 30px; + padding: 10px; + margin: auto auto 30px auto; } .bottom > .posts > .thumbnail:hover { @@ -194,8 +209,8 @@ a, a > figcaption { } .bottom > .posts > .thumbnail img { - width: 400px; - height: 100%; + width: 500px; + aspect-ratio: 16/9; object-fit: cover; } @@ -242,7 +257,7 @@ video { margin-top: 13vh; max-height: fit-content; } - .postContent { + .postContent, .projectList { margin: 0 40px; } .posts { @@ -274,7 +289,7 @@ video { margin-top: 85px; font-size: 36px; } - .postContent { + .postContent, .projectList { margin: 100px 0 0 0; } .posts { |