From 52df8b70906384cebe0ce202ce548be895b09b3a Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 29 Oct 2022 20:04:08 +0800 Subject: [PATCH] css --- source/css/_layout/sidebar/sidebar.styl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/css/_layout/sidebar/sidebar.styl b/source/css/_layout/sidebar/sidebar.styl index 7d82508..0c3ec74 100644 --- a/source/css/_layout/sidebar/sidebar.styl +++ b/source/css/_layout/sidebar/sidebar.styl @@ -6,17 +6,18 @@ height: "calc(100vh - 1 * %s)" % var(--gap-l) .header margin: var(--gap-l) var(--gap-l) 0 - >.widgets:first-child>.widget-wrap:first-child - margin-top: "calc(2 * %s)" % var(--gap-l) + @media screen and (min-width: $device-mobile-max) + >.widgets:first-child>.widget-wrap:first-child + margin-top: "calc(2 * %s)" % var(--gap-l) @media screen and (max-width: $device-mobile-max) - height: "calc(100% - 2 * %s)" % var(--gap-l) + height: 100vh .l_left[layout=wiki] padding-bottom: 0 height: 100vh @media screen and (max-width: $device-mobile-max) - height: "calc(100% - 1 * %s)" % var(--gap-l) + height: 100vh .widgets >:last-child margin-bottom: 6rem