mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
feat(style): add header title style config (#170)
This commit is contained in:
parent
6e091b6fad
commit
ee1c5c22bc
5 changed files with 18 additions and 8 deletions
|
@ -8,7 +8,7 @@ header {
|
|||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 1.5rem;
|
||||
font-family: $header-title-font-family;
|
||||
font-weight: bold;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
|
@ -55,6 +55,7 @@ header {
|
|||
justify-content: space-between;
|
||||
|
||||
.header-title {
|
||||
font-size: $header-title-font-size-desktop;
|
||||
max-width: 30%;
|
||||
}
|
||||
|
||||
|
@ -105,6 +106,7 @@ header {
|
|||
|
||||
.header-title {
|
||||
max-width: 80%;
|
||||
font-size: $header-title-font-size-mobile;
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
|
|
|
@ -57,6 +57,12 @@ $header-height-mobile: 3.5rem !default;
|
|||
$header-background-color: #f8f8f8 !default;
|
||||
$header-background-color-dark: #252627 !default;
|
||||
|
||||
// Font style of the header title
|
||||
$header-title-font-family: $global-font-family !default;
|
||||
|
||||
$header-title-font-size-desktop: 1.5rem !default;
|
||||
$header-title-font-size-mobile: 1.5rem !default;
|
||||
|
||||
// Position of the header
|
||||
$header-position-desktop: if($header-normal-mode-desktop, static, fixed) !default;
|
||||
$header-position-mobile: if($header-normal-mode-mobile, static, fixed) !default;
|
||||
|
|
|
@ -9,6 +9,10 @@ theme = "LoveIt"
|
|||
# 主题目录
|
||||
themesDir = "../.."
|
||||
|
||||
# website title
|
||||
# 网站标题
|
||||
title = "LoveIt"
|
||||
|
||||
# whether to use robots.txt
|
||||
# 是否使用 robots.txt
|
||||
enableRobotsTXT = true
|
||||
|
@ -24,8 +28,6 @@ enableEmoji = true
|
|||
weight = 1
|
||||
# language code
|
||||
languageCode = "en"
|
||||
# website title
|
||||
title = "LoveIt"
|
||||
# language name
|
||||
languageName = "English"
|
||||
# whether to include Chinese/Japanese/Korean
|
||||
|
@ -248,8 +250,6 @@ enableEmoji = true
|
|||
weight = 2
|
||||
# 网站语言, 仅在这里 CN 大写
|
||||
languageCode = "zh-CN"
|
||||
# 网站标题
|
||||
title = "LoveIt"
|
||||
# 语言名称
|
||||
languageName = "简体中文"
|
||||
# 是否包括中日韩文字
|
||||
|
@ -470,8 +470,6 @@ enableEmoji = true
|
|||
weight = 3
|
||||
# language code
|
||||
languageCode = "fr"
|
||||
# website title
|
||||
title = "LoveIt"
|
||||
# language name
|
||||
languageName = "Français"
|
||||
# whether to include Chinese/Japanese/Korean
|
||||
|
|
|
@ -2,3 +2,7 @@
|
|||
// Override Variables
|
||||
// 覆盖变量
|
||||
// ==============================
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500&display=swap');
|
||||
|
||||
$header-title-font-family: 'Baloo 2', $global-font-family;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue