From 608d3c611e278ec9011ddbf31602dbc837ebb3bb Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 13 Oct 2022 13:57:57 +0800 Subject: [PATCH] css --- source/css/_layout/main.styl | 2 +- source/css/_layout/sidebar/sidebar.styl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/css/_layout/main.styl b/source/css/_layout/main.styl index a43c7aa..75eacdf 100644 --- a/source/css/_layout/main.styl +++ b/source/css/_layout/main.styl @@ -4,7 +4,7 @@ @media screen and (min-width: 1400px) margin-left: "calc(2 * %s)" % var(--gap-l) margin-right: "calc(2 * %s + %s / 2)" % (var(--gap-l) var(--width-left)) - @media screen and (min-width: $device-tablet) + @media screen and (min-width: $device-mobile-max) padding-top: "calc(2 * %s)" % var(--gap-l) header margin: 4rem 1rem 2rem diff --git a/source/css/_layout/sidebar/sidebar.styl b/source/css/_layout/sidebar/sidebar.styl index 9f30759..355f560 100644 --- a/source/css/_layout/sidebar/sidebar.styl +++ b/source/css/_layout/sidebar/sidebar.styl @@ -6,14 +6,14 @@ padding: var(--gap-l) padding-top: "calc(2 * %s)" % var(--gap-l) height: "calc(100vh - 3 * %s)" % var(--gap-l) - @media screen and (max-width: $device-tablet) + @media screen and (max-width: $device-mobile-max) padding-top: "calc(1 * %s)" % var(--gap-l) height: "calc(100% - 2 * %s)" % var(--gap-l) .l_left[layout=wiki] padding-bottom: 0 height: "calc(100vh - 2 * %s)" % var(--gap-l) - @media screen and (max-width: $device-tablet) + @media screen and (max-width: $device-mobile-max) height: "calc(100% - 1 * %s)" % var(--gap-l) .widgets >:last-child margin-bottom: 6rem