From cd93432768f540e261624049e32434bd0803033a Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 4 Apr 2020 22:20:44 +0800 Subject: [PATCH] update css --- _config.yml | 4 ++-- source/css/_base/index.styl | 18 +++++++++--------- source/css/_defines/func.styl | 2 +- source/css/_highlight/index.styl | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/_config.yml b/_config.yml index fa0f9ad..64688ea 100755 --- a/_config.yml +++ b/_config.yml @@ -12,9 +12,9 @@ info: style: max_width: 1080px # Sum of body width and sidebar width (This limit will be exceeded when the device width is greater than 2000px, reaching 75% of the total width) scrollbar: - size: 8px + size: 8px border: 1px - color: '#2196f3' + color: '#2196f3' navbar: height: 64px width: auto # auto, max diff --git a/source/css/_base/index.styl b/source/css/_base/index.styl index d5a0514..06c2a19 100644 --- a/source/css/_base/index.styl +++ b/source/css/_base/index.styl @@ -243,23 +243,23 @@ optgroup table border-collapse: collapse - margin-top: .7em - margin-bottom: .7em overflow: auto - display: block + display: inline-block + max-width: 100% + scrollbar() th background-color: darken($color-block, 2) td,th padding: 6px 16px - border: 1px solid darken($color-block, 3) + border: 2px solid darken($color-block, 2) tr word-break: keep-all background-color: lighten($color-block, 3) - tbody>tr - trans() - &:hover - background-color: darken($color-block, 2) - + tbody + >tr + trans() + &:hover + background-color: darken($color-block, 2) td,th padding: 0 diff --git a/source/css/_defines/func.styl b/source/css/_defines/func.styl index ae44cd7..7160a07 100644 --- a/source/css/_defines/func.styl +++ b/source/css/_defines/func.styl @@ -42,7 +42,7 @@ scrollbar($w = 4px, $b = 2px, $c = mix($color-p, $color-card, 70)) &::-webkit-scrollbar-track-piece background: transparent &::-webkit-scrollbar-thumb - background: alpha($c, .5) + background: alpha($c, .4) cursor: pointer border-radius: $b &:hover diff --git a/source/css/_highlight/index.styl b/source/css/_highlight/index.styl index 1a49b63..ef44e8a 100644 --- a/source/css/_highlight/index.styl +++ b/source/css/_highlight/index.styl @@ -19,10 +19,10 @@ left: 0 padding: $gap * 0.25 $gap * 0.5 $gap * 0.25 $gap * 0.5 background-color: darken($color-codeblock, 5%) - + border-top-left-radius: $border-codeblock + border-top-right-radius: $border-codeblock >table - scrollbar() overflow: auto display: block td,th