From ec19540d9299cd65b3598bcb0acb69a6545c6e10 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Fri, 21 Oct 2022 21:09:12 +0200 Subject: add simple theme --- themes/PaperMod | 1 - themes/PaperMod/assets/css/core/zmedia.css | 49 ++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) delete mode 160000 themes/PaperMod create mode 100644 themes/PaperMod/assets/css/core/zmedia.css (limited to 'themes/PaperMod/assets/css/core/zmedia.css') diff --git a/themes/PaperMod b/themes/PaperMod deleted file mode 160000 index 3a0a481..0000000 --- a/themes/PaperMod +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3a0a4811cbc07c0bea09ef55b3c1bfb39b48cddd diff --git a/themes/PaperMod/assets/css/core/zmedia.css b/themes/PaperMod/assets/css/core/zmedia.css new file mode 100644 index 0000000..210d486 --- /dev/null +++ b/themes/PaperMod/assets/css/core/zmedia.css @@ -0,0 +1,49 @@ +@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; + } + + /* footer */ + .footer { + padding: calc((var(--footer-height) - var(--gap) - 10px) / 2) var(--gap); + } +} + +/* footer */ +@media screen and (max-width: 900px) { + .list .top-link { + transform: translateY(-5rem); + } +} + +@media (prefers-reduced-motion) { + /* terms; profile-mode; post-single; post-entry; post-entry; search; search */ + .terms-tags a:active, + .button:active, + .post-entry:active, + .top-link, + #searchResults .focus, + #searchResults li:active { + transform: none; + } +} -- cgit v1.2.3