summaryrefslogtreecommitdiff
path: root/assets/css/core/zmedia.css
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-03-27 11:28:55 +0530
committerGitHub <noreply@github.com>2021-03-27 11:28:55 +0530
commite503367a1adff7a62f4d7773f06f071f910ffc5a (patch)
treec50374b50fc19c82f46af7f613dc42af74f94322 /assets/css/core/zmedia.css
parentb6af9eddee7f816b01a68836344b36d30de4a492 (diff)
[BREAKING] Split-up css into sub-parts (#317)
* Move styles into 3 different locations - core - common - hljs * Load all stylesheets in proper order
Diffstat (limited to 'assets/css/core/zmedia.css')
-rw-r--r--assets/css/core/zmedia.css53
1 files changed, 53 insertions, 0 deletions
diff --git a/assets/css/core/zmedia.css b/assets/css/core/zmedia.css
new file mode 100644
index 0000000..6f63a6d
--- /dev/null
+++ b/assets/css/core/zmedia.css
@@ -0,0 +1,53 @@
+@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: 19px;
+ height: 11px;
+ }
+}
+
+/* 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,
+ .share-buttons svg:active,
+ .post-entry:active,
+ .top-link,
+ #searchResults .focus,
+ #searchResults li:active {
+ transform: none;
+ }
+}