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