style: modified variables.styl

This commit is contained in:
XPoet 2020-07-09 18:24:13 +08:00
parent a15a6f54d3
commit 7029b67c41
1 changed files with 21 additions and 20 deletions

View File

@ -6,27 +6,27 @@
// layout // layout
// =================================== // ===================================
if (hexo-config('magic.enable')) { if (hexo-config('magic.enable')) {
$header-height = 80px; // $header-height = 80px; //
} else { } else {
$header-height = 100px; // $header-height = 100px; //
} }
if (hexo-config('magic.enable') && hexo-config('magic.sidebar.enable')) { if (hexo-config('magic.enable') && hexo-config('magic.sidebar.enable')) {
$main-content-width = 80%; $main-content-width = 80%; //
$sidebar-width = 280px; // $sidebar-width = 280px; //
} else { } else {
$main-content-width = 60%; $main-content-width = 62%; //
} }
$header-shrink-height = 60px; // $header-shrink-height = 60px; //
$tool-button-width = 36px; // $tool-button-width = 36px; //
$component-interspace = 30px; // /px $component-interspace = 30px; // /px
// =================================== // ===================================
// //
// =================================== // ===================================
$media-max-width = 760px; // $media-max-width = 760px; // ()
$media-max-width-mobile = 480px; // $media-max-width-mobile = 480px; //
ils-tablet() ils-tablet()
@media (max-width: $media-max-width) @media (max-width: $media-max-width)
@ -52,16 +52,17 @@ $z-index-6 = 1006;
// color // color
// =================================== // ===================================
// normal mode color // normal mode color
$primary-color = #225eea; // $primary-color = rgba(30, 88, 217, 0.96); //
$background-color = #fff; // //$primary-color = hexo-config('theme_color');
$magic-background-color = #f5f5f5; // MAGIC $background-color = #fff; // normal
$normal-text-color = #43404d; // $magic-background-color = #f5f5f5; // magic
$first-text-color = darken($normal-text-color, 8%); // $normal-text-color = #43404d; //
$second-text-color = darken($normal-text-color, 4%); // $first-text-color = darken($normal-text-color, 8%); //
$second-text-color = darken($normal-text-color, 4%); //
$third-text-color = lighten($normal-text-color, 40%); // $third-text-color = lighten($normal-text-color, 40%); //
$fourth-text-color = #eee; // $fourth-text-color = #eee; //
$border-color = darken($background-color, 30%); // $border-color = darken($background-color, 30%); //
$selection-color = lighten($primary-color, 20%); // $selection-color = lighten($primary-color, 20%); //
// dark mode color // dark mode color
$dark-primary-color = $primary-color; $dark-primary-color = $primary-color;
@ -142,4 +143,4 @@ $default-font-weight = 400;
--normal-text-color: $normal-text-color; --normal-text-color: $normal-text-color;
--border-color: $border-color; --border-color: $border-color;
--selection-color: $selection-color; --selection-color: $selection-color;
} }