i18n
xaoxuu 6 years ago
parent 05cd9817b7
commit 2d5c88044c
  1. 4
      source/js/app.js
  2. 10
      source/less/_article.less
  3. 5
      source/less/_defines.less
  4. 11
      source/less/_main.less
  5. 2
      source/less/_toc.less
  6. 17
      source/less/_widget.less

@ -22,10 +22,10 @@ var customSearch;
$(document, window).scroll(() => { $(document, window).scroll(() => {
const scrollTop = $(window).scrollTop(); const scrollTop = $(window).scrollTop();
const del = scrollTop - pos; const del = scrollTop - pos;
if (del >= 80 && scrollTop > 100) { if (del >= 50 && scrollTop > 100) {
pos = scrollTop; pos = scrollTop;
$wrapper.addClass('sub'); $wrapper.addClass('sub');
} else if (del <= -80) { } else if (del <= -50) {
pos = scrollTop; pos = scrollTop;
$wrapper.removeClass('sub'); $wrapper.removeClass('sub');
} }

@ -195,7 +195,7 @@
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
font-family: @code-font-family; font-family: @code-font-family;
color: fade(@theme-text-main, 75%); color: fade(@theme-text-main, 90%);
} }
code { code {
font-family: @code-font-family; font-family: @code-font-family;
@ -398,7 +398,7 @@
font-size: @small-font-size * .95; font-size: @small-font-size * .95;
font-family:@code-font-family; font-family:@code-font-family;
line-height: @base-line-height; line-height: @base-line-height;
border-radius: @border-radius; border-radius: @border-code-block;
.enable-trans(); .enable-trans();
table{ table{
@ -427,8 +427,8 @@
} }
&::-webkit-scrollbar { &::-webkit-scrollbar {
height: 8px; height: @border-code-block;
width: 8px; width: @border-code-block;
} }
// /* Track */ // /* Track */
@ -442,7 +442,7 @@
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background: darken(@theme-bg-code-block, 5%); background: darken(@theme-bg-code-block, 5%);
cursor: pointer; cursor: pointer;
border-radius: @border-radius; border-radius: @border-code-block;
.enable-trans(); .enable-trans();
&:hover { &:hover {
background: darken(@theme-bg-code-block, 12%); background: darken(@theme-bg-code-block, 12%);

@ -124,9 +124,10 @@
// start: 圆角 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // start: 圆角 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// 圆角半径,可以根据心情随时调整风格 // 0px: 极端,2px:硬朗,4px:常规,8px:圆润,16px:温柔
@border-radius: 8px; // 0px: 极端,2px:硬朗,4px:常规,8px:温柔,16px:圆润 @border-radius: 4px; // 圆角半径,可以根据心情随时调整风格
@border-left-radius: 4px; // 左边的竖线的宽度 @border-left-radius: 4px; // 左边的竖线的宽度
@border-code-block: 4px; // 代码块的圆角及其滚动条的宽度
// end: 圆角 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< // end: 圆角 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

@ -164,9 +164,6 @@
//max-width: 768px; //max-width: 768px;
background: @theme-bg-card; background: @theme-bg-card;
border-radius: @border-radius; border-radius: @border-radius;
@media(max-width: @on-phone) {
border-radius: 0;
}
h1{ h1{
font-weight: normal; font-weight: normal;
font-size: @article-title-size; font-size: @article-title-size;
@ -176,11 +173,17 @@
&:extend(.z-depth-main); &:extend(.z-depth-main);
.enable-trans(); .enable-trans();
&:hover { &:hover {
&:extend(.z-depth-main-raised); box-shadow: @box-shadow-card-raised;
} }
&:active { &:active {
box-shadow: @box-shadow-card-normal; box-shadow: @box-shadow-card-normal;
} }
@media(max-width: @on-phone) {
border-radius: 0;
&:hover {
box-shadow: @box-shadow-card-normal;
}
}
.meta { .meta {
margin-bottom: 2*@gap; margin-bottom: 2*@gap;
.title { .title {

@ -2,7 +2,7 @@
overflow: auto; overflow: auto;
border-radius: @border-radius; border-radius: @border-radius;
position: fixed; position: fixed;
top: @header-height + @gap; top: @header-height + 2*@gap;
display: none; display: none;
.content{ .content{
padding: @gap/2 0; padding: @gap/2 0;

@ -3,19 +3,22 @@
background: @theme-bg-card; background: @theme-bg-card;
margin-bottom: @gap; margin-bottom: @gap;
border-radius: @border-radius; border-radius: @border-radius;
@media(max-width: @on-phone) {
border-radius: 0;
width: 100%;
}
width: @side-width;
max-height: ~"calc(100% - @{header-height} - 4 * @{gap})";
.enable-trans(); .enable-trans();
&:hover { &:hover {
&:extend(.z-depth-main-raised); box-shadow: @box-shadow-card-raised;
} }
&:active { &:active {
box-shadow: @box-shadow-card-normal; box-shadow: @box-shadow-card-normal;
} }
@media(max-width: @on-phone) {
border-radius: 0;
width: 100%;
&:hover {
box-shadow: @box-shadow-card-normal;
}
}
width: @side-width;
max-height: ~"calc(100% - @{header-height} - 4 * @{gap})";
.header{ .header{
border-top-left-radius: @border-radius; border-top-left-radius: @border-radius;

Loading…
Cancel
Save