i18n
xaoxuu 6 years ago
parent 8875f100ee
commit 0d7c42b25a
  1. 30
      source/less/_article.less
  2. 6
      source/less/_defines.less

@ -364,7 +364,7 @@
margin-left: 0; margin-left: 0;
background-color: darken(@theme_bg_code_block, 3%); background-color: darken(@theme_bg_code_block, 3%);
pre{ pre{
color: fade(@theme_text_main, 35%); color: fade(@theme_text_main, 80%);
} }
&:hover{ &:hover{
@ -379,7 +379,7 @@
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
color: fade(@theme_text_main, 60%); color: fade(@theme_text_main, 80%);
font-size: @fontsize_footnote; font-size: @fontsize_footnote;
padding: 4px 8px 0; padding: 4px 8px 0;
line-height: @lineheight_base; line-height: @lineheight_base;
@ -387,37 +387,37 @@
} }
&.html .code:before{ &.html .code:before{
content: "html"; content: "HTML";
} }
&.js .code:before{ &.js .code:before{
content: "js"; content: "JS";
} }
&.bash .code:before{ &.bash .code:before{
content: "bash"; content: "BASH";
} }
&.shell .code:before{ &.shell .code:before{
content: "shell"; content: "SHELL";
} }
&.css .code:before{ &.css .code:before{
content: "css"; content: "CSS";
} }
&.less .code:before{ &.less .code:before{
content: "less"; content: "LESS";
} }
&.swift .code:before{ &.swift .code:before{
content: "swift"; content: "SWIFT";
} }
&.objc .code:before{ &.objc .code:before{
content: "objc"; content: "OBJC";
} }
&.c .code:before{ &.c .code:before{
content: "c"; content: "C";
} }
&.java .code:before{ &.java .code:before{
content: "java"; content: "JAVA";
} }
&.python .code:before{ &.python .code:before{
content: "python"; content: "PYTHON";
} }
&.plain .code:before{ &.plain .code:before{
content: ""; content: "";
@ -501,13 +501,13 @@ pre{
} }
// 注释 // 注释
.comment, .title{ .comment, .title{
color: fade(@theme_text_main, 50%); color: fade(@theme_text_main, 60%);
} }
.keyword, .javascript .function, .attr { .keyword, .javascript .function, .attr {
color: @hl_keyword; color: @hl_keyword;
} }
.type, .built_in, .tag .name{ .type, .built_in, .tag .name{
color: @hl_blue; color: #e96900;
} }
.variable, .attribute, .regexp, .ruby .constant, .xml .tag .title, .xml .pi, .xml .doctype, .html .doctype, .css .id, .css .class, .css .pseudo { .variable, .attribute, .regexp, .ruby .constant, .xml .tag .title, .xml .pi, .xml .doctype, .html .doctype, .css .id, .css .class, .css .pseudo {
color: @hl_amber; color: @hl_amber;

@ -26,7 +26,7 @@
@color_grey: #828282; @color_grey: #828282;
@white: #ffffff; @white: #ffffff;
@light: #eeeeee; @light: #eeeeee;
@dark: #666666; @dark: #555555;
// mac // mac
@color_mac_maximize: #3DC550; @color_mac_maximize: #3DC550;
@color_mac_minimize: #FFBD2B; @color_mac_minimize: #FFBD2B;
@ -144,9 +144,9 @@
// 卡片标题栏背景 // 卡片标题栏背景
@theme_bg_card_header: @theme_bg_navbar; @theme_bg_card_header: @theme_bg_navbar;
// 代码的背景色 // 代码的背景色
@theme_bg_code: fade(@color_mac_maximize, 6%); @theme_bg_code: fade(@color_mac_minimize, 6%);
// 代码块的背景色 // 代码块的背景色
@theme_bg_code_block: fade(@theme_base_main, 70%); @theme_bg_code_block: fade(@color_mac_minimize, 12%);
// 引用的颜色以及分类、归档的 hover 时颜色 // 引用的颜色以及分类、归档的 hover 时颜色
@theme_bg_quote: @theme_base_tint; @theme_bg_quote: @theme_base_tint;
// 文字颜色 ---------------- // 文字颜色 ----------------

Loading…
Cancel
Save