From a30ad5b2e7926584ff3c8fd903bea23346ce9b5a Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 16 Oct 2024 11:46:06 -0700 Subject: fix projects section images to be responsive --- styles/projects.css | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) (limited to 'styles/projects.css') diff --git a/styles/projects.css b/styles/projects.css index 2db3061..5b00204 100644 --- a/styles/projects.css +++ b/styles/projects.css @@ -15,3 +15,62 @@ .projects-section ul li { margin-bottom: 10px; } + +.projects-section .image-container { + display: flex; + flex-wrap: wrap; + gap: 10px; +} +.projects-section .image-container img { + max-width: 100%; + height: auto; + cursor: pointer; + transition: transform 0.2s; +} +.projects-section .image-container img:hover { + transform: scale(1.05); +} + +.fullscreen-img { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.9); + justify-content: center; + align-items: center; + z-index: 1000; +} +.fullscreen-img img { + max-width: 90%; + max-height: 90%; +} + +@media (max-width: 768px) { + .projects-section { + padding: 5px; + } + + .projects-section h3 { + font-size: 1.5em; + } + + .projects-section ul { + padding-left: 10px; + } + + .projects-section ul li { + margin-bottom: 5px; + } + + .projects-section .image-container { + flex-direction: column; + align-items: center; + } + .projects-section .image-container img { + width: 100%; + height: auto; + } +} \ No newline at end of file -- cgit v1.2.3