diff options
author | Andinus <andinus@nand.sh> | 2022-06-10 16:39:58 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2022-06-10 16:39:58 +0530 |
commit | 199375bc36307c3ffb0d4cfe6a4394fe9bc6ea9a (patch) | |
tree | fc45b52373c3ea1dca9f60f626bd10e3b165e97e /resources/css | |
parent | 483cb31907a34f5aea7c221fd1a22427bf3fa487 (diff) | |
download | crater-199375bc36307c3ffb0d4cfe6a4394fe9bc6ea9a.tar.gz |
Improve responsiveness, fix bricks.js layout
The images weren't laid out properly on some devices. Solution: https://stackoverflow.com/questions/48987395/check-if-all-the-images-in-the-page-are-loaded
Diffstat (limited to 'resources/css')
-rw-r--r-- | resources/css/style.css | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/resources/css/style.css b/resources/css/style.css index 7e8f72d..0c51bab 100644 --- a/resources/css/style.css +++ b/resources/css/style.css @@ -60,6 +60,18 @@ input, .alert { img, .text { width: 400px; } .heading { width: 380px; } +@media only screen and (max-width: 512px) { + img, .text { width: 368px; } + .heading { width: 350px; } +} +@media only screen and (max-width: 450px) { + img, .text { width: 350px; } + .heading { width: 330px; } +} +@media only screen and (max-width: 400px) { + img, .text { width: 330px; } + .heading { width: 310px; } +} .heading { box-shadow: var(--blue-intense-bg) 0px 0px 0px 2px inset, @@ -83,15 +95,15 @@ img, .text { width: 400px; } padding: 1em; } -.gallery { +#gallery { margin: auto; } -.gallery img { +#gallery img { transform-origin: center; transition: 0.5s; } -.gallery:hover img { opacity: 0.5; } -.gallery img:hover { +#gallery:hover img { opacity: 0.5; } +#gallery img:hover { transform: scale(1.1); box-shadow: var(--bg-active) 0px 20px 30px -10px; opacity: 1; |