From 44cd3ddfad4b0aae18f72cf1b924da11fb3edeb6 Mon Sep 17 00:00:00 2001 From: XPoet Date: Mon, 26 Apr 2021 17:26:19 +0800 Subject: [PATCH] ui: modified header style --- source/css/common/variables.styl | 4 ++-- source/css/layout/_partial/header.styl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/css/common/variables.styl b/source/css/common/variables.styl index 846defe..6a36379 100644 --- a/source/css/common/variables.styl +++ b/source/css/common/variables.styl @@ -6,8 +6,8 @@ // ======================================================================================== // layout // ======================================================================================== -$header-height = 76px; // header height -$header-shrink-height = $header-height * 0.72; // header shrink height +$header-height = 68px; // header height +$header-shrink-height = 50px; // header shrink height $scroll-progress-bar-height = 2px; // scroll progress bar height $main-content-width = 80%; // main content width (PC) $main-content-width-tablet = 86%; // main content width (tablet) diff --git a/source/css/layout/_partial/header.styl b/source/css/layout/_partial/header.styl index e8c376a..bb06f16 100644 --- a/source/css/layout/_partial/header.styl +++ b/source/css/layout/_partial/header.styl @@ -1,4 +1,4 @@ -$logo-title-font-size = 2.2rem; +$logo-title-font-size = 2rem; $pc-search-icon-font-size = 1.5rem; $menu-bar-line-height = 2.5px; @@ -44,7 +44,7 @@ $menu-bar-line-height = 2.5px; transition-t("transform", "0", "0.2", "linear"); .header-shrink & { - transform: scale(0.85); + transform: scale(0.8); transform-origin: left; }