xaoxuu 4 years ago
parent 8801ed5f2c
commit 822009fbe2
  1. 1
      source/less/_article.less
  2. 3
      source/less/_color.less
  3. 6
      source/less/_normalize.less

@ -453,6 +453,7 @@
font-family:@fontfamily_code; font-family:@fontfamily_code;
line-height: @lineheight_base; line-height: @lineheight_base;
border-radius: @border_radius_code_block; border-radius: @border_radius_code_block;
border: 1px solid @color_border_code_block;
.enable-trans(); .enable-trans();
figcaption{ figcaption{
padding: @gap/4 @gap/2; padding: @gap/4 @gap/2;

@ -19,7 +19,8 @@
// 代码的背景色 // 代码的背景色
@color_bg_code: #FFF8F0; @color_bg_code: #FFF8F0;
// 代码块的背景色 // 代码块的背景色
@color_bg_code_block: #FFFAF5; @color_bg_code_block: darken(@theme_cardbg, 5%);
@color_border_code_block: #ddd;
// 引用的颜色 // 引用的颜色
@color_bg_quote: @theme_main; @color_bg_quote: @theme_main;
// 选中部分文字的背景颜色 // 选中部分文字的背景颜色

@ -422,8 +422,9 @@ optgroup {
table { table {
border-collapse: collapse; border-collapse: collapse;
width: 100%; width: 100%;
background-color: @theme_cardbg;
th { th {
background-color: lighten(@theme_background, 1%); background-color: @color_bg_code_block;
} }
td, td,
th { th {
@ -434,6 +435,9 @@ table {
tr { tr {
// border-bottom: 2px solid #eee; // border-bottom: 2px solid #eee;
// background-color: @theme_main; // background-color: @theme_main;
&:hover{
background-color: @color_bg_code_block;
}
} }
&>thead>th { &>thead>th {
// border-bottom-width: 2px; // border-bottom-width: 2px;

Loading…
Cancel
Save