diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-10-16 11:46:06 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-10-16 11:46:06 -0700 |
| commit | a30ad5b2e7926584ff3c8fd903bea23346ce9b5a (patch) | |
| tree | e278a5465008d1a1b6c825ff0659921b83b5f74e /styles/projects.css | |
| parent | bd55bd43ad471192ebcdc60d306b7aa7bde78636 (diff) | |
fix projects section images to be responsive
Diffstat (limited to 'styles/projects.css')
| -rw-r--r-- | styles/projects.css | 59 |
1 files changed, 59 insertions, 0 deletions
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 |
