diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-01-16 00:35:36 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-01-16 12:54:51 +0530 |
| commit | 704921ccd12dca2892d36704e3246712cddf5427 (patch) | |
| tree | d19bbb46beb1d7665a02aa0e8ce67186f50b5c4a /assets/css/zmedia.css | |
| parent | 4c51e9e8be0d62ecc7620e685e40e12bd454c749 (diff) | |
init media.css
- combine all media queries
- name zmedia to conacat at last
- change some max-width values to group them
Diffstat (limited to 'assets/css/zmedia.css')
| -rw-r--r-- | assets/css/zmedia.css | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/assets/css/zmedia.css b/assets/css/zmedia.css new file mode 100644 index 0000000..f460b4d --- /dev/null +++ b/assets/css/zmedia.css @@ -0,0 +1,72 @@ +@media screen and (max-width: 768px) { + /* theme-vars */ + :root { + --gap: 14px; + } + + /* profile-mode */ + .profile img { + transform: scale(0.85); + } + + /* post-entry */ + .first-entry { + min-height: 260px; + } + + /* archive */ + .archive-month { + flex-direction: column; + } + + .archive-year { + margin-top: 20px; + } +} + +@media screen and (min-width: 768px) { + /* reset */ + ::-webkit-scrollbar { + width: 10px; + height: 6px; + } +} + +/* footer */ +@media screen and (max-width: 900px) { + .list .top-link { + transform: translateY(-5rem); + } +} + +@media (prefers-reduced-motion) { + /* terms */ + .terms-tags a:active { + transform: none; + } + + /* profile-mode */ + .button:active { + transform: none; + } + + /* post-single */ + .share-buttons svg:active { + transform: none; + } + + /* post-entry */ + .post-entry:active { + transform: none; + } + + /* footer */ + .top-link { + transition: none; + } + + /* search */ + #searchResults .active { + transform: none; + } +} |
