parent
e34326eee1
commit
a741e80254
10 changed files with 1470 additions and 1470 deletions
@ -1,47 +1,47 @@ |
|||||||
#archive-page { |
#archive-page { |
||||||
margin-bottom: @gap * 2; |
margin-bottom: @gap * 2; |
||||||
.archive { |
.archive { |
||||||
position: relative; |
position: relative; |
||||||
.archive-year { |
.archive-year { |
||||||
font-size: @fontsize_base; |
font-size: @fontsize_base; |
||||||
margin-top: 4em; |
margin-top: 4em; |
||||||
margin-bottom: 1em; |
margin-bottom: 1em; |
||||||
&:first-child{ |
&:first-child{ |
||||||
margin-top: 0em; |
margin-top: 0em; |
||||||
padding-top: 0; |
padding-top: 0; |
||||||
} |
} |
||||||
h2 { |
h2 { |
||||||
margin-top: 1em; |
margin-top: 1em; |
||||||
} |
} |
||||||
a { |
a { |
||||||
color: @color_text_main; |
color: @color_text_main; |
||||||
text-decoration: none; |
text-decoration: none; |
||||||
} |
} |
||||||
} |
} |
||||||
.archive-post { |
.archive-post { |
||||||
a { |
a { |
||||||
width: 100%; |
width: 100%; |
||||||
display: inline-flex; |
display: inline-flex; |
||||||
flex-flow: row nowrap; |
flex-flow: row nowrap; |
||||||
justify-content: flex-start; |
justify-content: flex-start; |
||||||
align-items: flex-start; |
align-items: flex-start; |
||||||
text-decoration: none; |
text-decoration: none; |
||||||
} |
} |
||||||
time { |
time { |
||||||
color: @color_text_main; |
color: @color_text_main; |
||||||
flex: none; |
flex: none; |
||||||
font-size: @fontsize_small; |
font-size: @fontsize_small; |
||||||
padding: .5em .5em .5em 3em; |
padding: .5em .5em .5em 3em; |
||||||
@media (max-width: @on_phone) { |
@media (max-width: @on_phone) { |
||||||
padding: .5em .5em .5em 0; |
padding: .5em .5em .5em 0; |
||||||
} |
|
||||||
} |
|
||||||
.title { |
|
||||||
flex: auto; |
|
||||||
padding: .5em; |
|
||||||
font-size: @fontsize_small; |
|
||||||
color: fade(@color_text_main,80%); |
|
||||||
} |
|
||||||
} |
} |
||||||
|
} |
||||||
|
.title { |
||||||
|
flex: auto; |
||||||
|
padding: .5em; |
||||||
|
font-size: @fontsize_small; |
||||||
|
color: fade(@color_text_main,80%); |
||||||
|
} |
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
|
@ -1,47 +1,47 @@ |
|||||||
#footer { |
#footer { |
||||||
position: relative; |
position: relative; |
||||||
padding: 40px 10px 120px 10px; |
padding: 40px 10px 120px 10px; |
||||||
width: 100%; |
width: 100%; |
||||||
|
color: fade(@color_text_main, 50%); |
||||||
|
margin: 0px auto; |
||||||
|
font-size: @fontsize_small; |
||||||
|
overflow: hidden; |
||||||
|
text-align: center; |
||||||
|
font-family: @fontfamily_base; |
||||||
|
.licenses { |
||||||
color: fade(@color_text_main, 50%); |
color: fade(@color_text_main, 50%); |
||||||
margin: 0px auto; |
text-decoration: underline; |
||||||
font-size: @fontsize_small; |
} |
||||||
overflow: hidden; |
.codename { |
||||||
text-align: center; |
// color: @color_vue; |
||||||
font-family: @fontfamily_base; |
text-decoration: underline; |
||||||
.licenses { |
} |
||||||
color: fade(@color_text_main, 50%); |
.social-wrapper { |
||||||
text-decoration: underline; |
display: flex; |
||||||
|
justify-content: center; |
||||||
|
flex-wrap: wrap; |
||||||
|
} |
||||||
|
a { |
||||||
|
color: fade(@color_text_main, 70%); |
||||||
|
.enable-trans(); |
||||||
|
&:hover { |
||||||
|
color: @color_text_highlight; |
||||||
} |
} |
||||||
.codename { |
&.social { |
||||||
// color: @color_vue; |
position: relative; |
||||||
text-decoration: underline; |
display: inline-block; |
||||||
} |
text-align: center; |
||||||
.social-wrapper { |
display: flex; |
||||||
display: flex; |
justify-content: center; |
||||||
justify-content: center; |
align-items: center; |
||||||
flex-wrap: wrap; |
width: 32px; |
||||||
} |
height: 32px; |
||||||
a { |
margin: 4px; |
||||||
color: fade(@color_text_main, 70%); |
border-radius: 100px; |
||||||
.enable-trans(); |
&:hover { |
||||||
&:hover { |
background: fade(@theme_main, 10%); |
||||||
color: @color_text_highlight; |
color: @theme_main; |
||||||
} |
} |
||||||
&.social { |
|
||||||
position: relative; |
|
||||||
display: inline-block; |
|
||||||
text-align: center; |
|
||||||
display: flex; |
|
||||||
justify-content: center; |
|
||||||
align-items: center; |
|
||||||
width: 32px; |
|
||||||
height: 32px; |
|
||||||
margin: 4px; |
|
||||||
border-radius: 100px; |
|
||||||
&:hover { |
|
||||||
background: fade(@theme_main, 10%); |
|
||||||
color: @theme_main; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
|
@ -1,336 +1,336 @@ |
|||||||
.l_header { |
.l_header { |
||||||
position:fixed; |
position:fixed; |
||||||
z-index: 9999; |
z-index: 9999; |
||||||
top:0; |
top:0; |
||||||
left:0; |
left:0; |
||||||
width:100%; |
width:100%; |
||||||
font-size: @fontsize_base; |
font-size: @fontsize_base; |
||||||
line-height: @height_navbar; |
line-height: @height_navbar; |
||||||
|
height: @height_navbar; |
||||||
|
overflow: hidden; |
||||||
|
font-family: @fontfamily_base; |
||||||
|
font-weight: bold; |
||||||
|
padding: 0 @gap; |
||||||
|
.wrapper{ |
||||||
|
padding: auto @gap; |
||||||
|
.enable-trans(); |
||||||
|
} |
||||||
|
.wrapper.sub{ |
||||||
|
.enable-trans(); |
||||||
|
transform: translateY(-@height_navbar); |
||||||
|
.logo{ |
||||||
|
// padding-left: 0; |
||||||
|
@media(max-width: @on_phone){ |
||||||
|
.enable-trans(); |
||||||
|
padding-left: @gap; |
||||||
|
padding-right: 0; |
||||||
|
font-size: @fontsize_base; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
.nav--main,.nav-sub{ |
||||||
height: @height_navbar; |
height: @height_navbar; |
||||||
overflow: hidden; |
} |
||||||
font-family: @fontfamily_base; |
background: @color_bg_navbar; |
||||||
font-weight: bold; |
|
||||||
|
&, a{ |
||||||
|
.txt-ellipsis; |
||||||
|
height: @height_navbar; |
||||||
|
line-height: @height_navbar; |
||||||
|
color: @color_text_in_header; |
||||||
|
} |
||||||
|
&:extend(.z-depth-nav); // 适合深色导航栏背景 |
||||||
|
|
||||||
|
.enable-trans(); |
||||||
|
&:hover { |
||||||
|
// &:extend(.z-depth-nav-raised); |
||||||
|
} |
||||||
|
&:active { |
||||||
|
|
||||||
|
} |
||||||
|
.logo { |
||||||
padding: 0 @gap; |
padding: 0 @gap; |
||||||
.wrapper{ |
line-height: @height_navbar; |
||||||
padding: auto @gap; |
font-size: @fontsize_logo; |
||||||
.enable-trans(); |
font-family: @fontfamily_logo; |
||||||
|
@media(max-width: @on_phone){ |
||||||
|
flex: auto; |
||||||
} |
} |
||||||
.wrapper.sub{ |
&.img{ |
||||||
.enable-trans(); |
padding: 0 @gap 0 0; |
||||||
transform: translateY(-@height_navbar); |
|
||||||
.logo{ |
|
||||||
// padding-left: 0; |
|
||||||
@media(max-width: @on_phone){ |
|
||||||
.enable-trans(); |
|
||||||
padding-left: @gap; |
|
||||||
padding-right: 0; |
|
||||||
font-size: @fontsize_base; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
.nav--main,.nav-sub{ |
img{ |
||||||
height: @height_navbar; |
padding: 0; |
||||||
|
height: 100%; |
||||||
} |
} |
||||||
background: @color_bg_navbar; |
letter-spacing: 0; |
||||||
|
} |
||||||
|
|
||||||
&, a{ |
.nav-sub{ |
||||||
.txt-ellipsis; |
.logo { |
||||||
height: @height_navbar; |
font-size: @fontsize_base; |
||||||
line-height: @height_navbar; |
font-family: @fontfamily_base; |
||||||
color: @color_text_in_header; |
@media(max-width: @on_phone){ |
||||||
} |
letter-spacing: -0.5px; |
||||||
&:extend(.z-depth-nav); // 适合深色导航栏背景 |
padding-top: 1px; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
.menu{ |
||||||
|
position:relative; |
||||||
|
flex: 1 0 auto; |
||||||
|
height: @height_navbar; |
||||||
.enable-trans(); |
.enable-trans(); |
||||||
&:hover { |
margin:0 @gap; |
||||||
// &:extend(.z-depth-nav-raised); |
ul > li > a{ |
||||||
|
.enable-trans(); |
||||||
|
display: block; |
||||||
|
font-size: @fontsize_base; |
||||||
|
color: fade(@color_text_in_header, 70%); |
||||||
|
padding: 0 8px; |
||||||
|
&:hover{ |
||||||
|
color: @color_text_in_header; |
||||||
|
border-bottom: @loading_height solid @theme_cardbg; |
||||||
|
background: fade(@theme_cardbg, 10%); |
||||||
|
} |
||||||
|
&:active,&.active{ |
||||||
|
color: @color_text_in_header; |
||||||
|
border-bottom: @loading_height solid @theme_cardbg; |
||||||
|
} |
||||||
} |
} |
||||||
&:active { |
@media(max-width: @on_phone){ |
||||||
|
display:none; |
||||||
} |
} |
||||||
.logo { |
} |
||||||
padding: 0 @gap; |
.switcher{ |
||||||
line-height: @height_navbar; |
display: none; |
||||||
font-size: @fontsize_logo; |
font-size: @fontsize_base; |
||||||
font-family: @fontfamily_logo; |
line-height: @height_navbar; |
||||||
@media(max-width: @on_phone){ |
|
||||||
flex: auto; |
& > li{ |
||||||
} |
height: @height_navbar - @gap; |
||||||
&.img{ |
.enable-trans(); |
||||||
padding: 0 @gap 0 0; |
margin: 2px; |
||||||
|
@height: @height_navbar - @gap; |
||||||
|
@media(max-width: @on_phone){ |
||||||
|
width: @height; |
||||||
|
height: @height; |
||||||
|
} |
||||||
|
a{ |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
align-items: center; |
||||||
|
width: @height; |
||||||
|
height: @height; |
||||||
|
border-radius: 100px; |
||||||
|
.enable-trans(); |
||||||
|
&:hover { |
||||||
|
background: fade(@theme_cardbg, 30%); |
||||||
} |
} |
||||||
img{ |
@media(max-width: @on_phone){ |
||||||
padding: 0; |
width: @height; |
||||||
height: 100%; |
height: @height; |
||||||
} |
} |
||||||
letter-spacing: 0; |
} |
||||||
} |
} |
||||||
|
@media(max-width: @on_phone){ |
||||||
.nav-sub{ |
display: flex; |
||||||
.logo { |
padding-left: @gap/2; |
||||||
font-size: @fontsize_base; |
padding-right: @gap - 6px; |
||||||
font-family: @fontfamily_base; |
} |
||||||
@media(max-width: @on_phone){ |
} |
||||||
letter-spacing: -0.5px; |
.nav-sub .switcher{ |
||||||
padding-top: 1px; |
display: flex; |
||||||
} |
} |
||||||
|
.m_search { |
||||||
|
position: relative; |
||||||
|
height: @height_navbar - @gap; |
||||||
|
width: @width_sidebar; |
||||||
|
@media(max-width: @on_laptop){ |
||||||
|
width: @width_sidebar_m; |
||||||
|
} |
||||||
|
line-height: @height_navbar - @gap; |
||||||
|
margin-top: @gap/2; |
||||||
|
margin-bottom: @gap/2; |
||||||
|
vertical-align: middle; |
||||||
|
.form { |
||||||
|
position: relative; |
||||||
|
display: block; |
||||||
|
width: 100%; |
||||||
|
} |
||||||
|
.icon,.input{ |
||||||
|
.enable-trans(.1s); |
||||||
|
} |
||||||
|
.icon { |
||||||
|
position: absolute; |
||||||
|
display:block; |
||||||
|
height: @height_navbar - @gap; |
||||||
|
width: @height_navbar - @gap; |
||||||
|
line-height: @height_navbar - @gap; |
||||||
|
top: 0; |
||||||
|
left: @gap/2; |
||||||
|
font-size: @fontsize_small; |
||||||
|
} |
||||||
|
.input { |
||||||
|
display:block; |
||||||
|
font-size: @fontsize_small; |
||||||
|
line-height: @height_navbar - @gap; |
||||||
|
margin: 0; |
||||||
|
width: 100%; |
||||||
|
color: fade(@color_text_in_header, 60%); |
||||||
|
padding-left: @fontsize_base + @gap - 2px; |
||||||
|
@media(max-width: @on_phone){ |
||||||
|
padding-left: @fontsize_base + @gap - 2px; |
||||||
|
} |
||||||
|
height: @height_navbar - @gap; |
||||||
|
line-height: @height_navbar - @gap; |
||||||
|
font-family: @fontfamily_base; |
||||||
|
border: none; |
||||||
|
border-radius: @border_radius_searchbar; |
||||||
|
background: fade(@theme_cardbg, 15%); |
||||||
|
box-sizing: border-box; |
||||||
|
-webkit-appearance: none; |
||||||
|
box-shadow: none; |
||||||
|
border: 1px dashed transparent; |
||||||
|
.enable-trans(); |
||||||
|
~ .icon{ |
||||||
|
color: fade(@color_text_in_header, 60%); |
||||||
|
} |
||||||
|
.set-placeholder({color: fade(@color_text_in_header, 60%)}); |
||||||
|
&:hover{ |
||||||
|
border: 1px dashed fade(@color_text_in_header, 60%); |
||||||
|
} |
||||||
|
&:focus { |
||||||
|
~ .icon{ |
||||||
|
color: @color_text_in_header; |
||||||
} |
} |
||||||
|
color: @color_text_in_header; |
||||||
|
border: 1px solid fade(@color_text_in_header, 60%); |
||||||
|
// .set-placeholder({color: @black}); |
||||||
|
} |
||||||
} |
} |
||||||
|
} |
||||||
|
&.pure{ |
||||||
|
background: @theme_cardbg; |
||||||
|
&, a{ |
||||||
|
color: @theme_main; |
||||||
|
} |
||||||
|
box-shadow: @boxshadow_card_normal; // 适合白色导航栏背景 |
||||||
.menu{ |
.menu{ |
||||||
position:relative; |
ul > li > a{ |
||||||
flex: 1 0 auto; |
|
||||||
height: @height_navbar; |
|
||||||
.enable-trans(); |
.enable-trans(); |
||||||
margin:0 @gap; |
color: fade(@theme_main, 70%); |
||||||
ul > li > a{ |
&.current{ |
||||||
.enable-trans(); |
border-bottom: @loading_height solid fade(@theme_main, 80%); |
||||||
display: block; |
|
||||||
font-size: @fontsize_base; |
|
||||||
color: fade(@color_text_in_header, 70%); |
|
||||||
padding: 0 8px; |
|
||||||
&:hover{ |
|
||||||
color: @color_text_in_header; |
|
||||||
border-bottom: @loading_height solid @theme_cardbg; |
|
||||||
background: fade(@theme_cardbg, 10%); |
|
||||||
} |
|
||||||
&:active,&.active{ |
|
||||||
color: @color_text_in_header; |
|
||||||
border-bottom: @loading_height solid @theme_cardbg; |
|
||||||
} |
|
||||||
} |
} |
||||||
@media(max-width: @on_phone){ |
&:hover{ |
||||||
display:none; |
color: @theme_main; |
||||||
|
border-bottom: @loading_height solid @theme_main; |
||||||
|
background: fade(@theme_main, 10%); |
||||||
} |
} |
||||||
|
&:active,&.active{ |
||||||
|
color: @theme_main; |
||||||
|
border-bottom: @loading_height solid @theme_main; |
||||||
|
} |
||||||
|
} |
||||||
} |
} |
||||||
.switcher{ |
.switcher{ |
||||||
display: none; |
& > li{ |
||||||
font-size: @fontsize_base; |
a{ |
||||||
line-height: @height_navbar; |
&:hover { |
||||||
|
background: fade(@theme_main, 15%); |
||||||
& > li{ |
} |
||||||
height: @height_navbar - @gap; |
|
||||||
.enable-trans(); |
|
||||||
margin: 2px; |
|
||||||
@height: @height_navbar - @gap; |
|
||||||
@media(max-width: @on_phone){ |
|
||||||
width: @height; |
|
||||||
height: @height; |
|
||||||
} |
|
||||||
a{ |
|
||||||
display: flex; |
|
||||||
justify-content: center; |
|
||||||
align-items: center; |
|
||||||
width: @height; |
|
||||||
height: @height; |
|
||||||
border-radius: 100px; |
|
||||||
.enable-trans(); |
|
||||||
&:hover { |
|
||||||
background: fade(@theme_cardbg, 30%); |
|
||||||
} |
|
||||||
@media(max-width: @on_phone){ |
|
||||||
width: @height; |
|
||||||
height: @height; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
@media(max-width: @on_phone){ |
|
||||||
display: flex; |
|
||||||
padding-left: @gap/2; |
|
||||||
padding-right: @gap - 6px; |
|
||||||
} |
} |
||||||
} |
} |
||||||
.nav-sub .switcher{ |
|
||||||
display: flex; |
|
||||||
} |
} |
||||||
.m_search { |
.m_search { |
||||||
position: relative; |
.input { |
||||||
height: @height_navbar - @gap; |
color: fade(@theme_main, 60%); |
||||||
width: @width_sidebar; |
background: @theme_background; |
||||||
@media(max-width: @on_laptop){ |
~ .icon{ |
||||||
width: @width_sidebar_m; |
color: fade(@theme_main, 60%); |
||||||
} |
|
||||||
line-height: @height_navbar - @gap; |
|
||||||
margin-top: @gap/2; |
|
||||||
margin-bottom: @gap/2; |
|
||||||
vertical-align: middle; |
|
||||||
.form { |
|
||||||
position: relative; |
|
||||||
display: block; |
|
||||||
width: 100%; |
|
||||||
} |
} |
||||||
.icon,.input{ |
.set-placeholder({color: fade(@theme_main, 60%)}); |
||||||
.enable-trans(.1s); |
&:hover{ |
||||||
|
border: 1px dashed fade(@theme_main, 60%); |
||||||
} |
} |
||||||
.icon { |
&:focus { |
||||||
position: absolute; |
~ .icon{ |
||||||
display:block; |
color: @theme_main; |
||||||
height: @height_navbar - @gap; |
|
||||||
width: @height_navbar - @gap; |
|
||||||
line-height: @height_navbar - @gap; |
|
||||||
top: 0; |
|
||||||
left: @gap/2; |
|
||||||
font-size: @fontsize_small; |
|
||||||
} |
|
||||||
.input { |
|
||||||
display:block; |
|
||||||
font-size: @fontsize_small; |
|
||||||
line-height: @height_navbar - @gap; |
|
||||||
margin: 0; |
|
||||||
width: 100%; |
|
||||||
color: fade(@color_text_in_header, 60%); |
|
||||||
padding-left: @fontsize_base + @gap - 2px; |
|
||||||
@media(max-width: @on_phone){ |
|
||||||
padding-left: @fontsize_base + @gap - 2px; |
|
||||||
} |
|
||||||
height: @height_navbar - @gap; |
|
||||||
line-height: @height_navbar - @gap; |
|
||||||
font-family: @fontfamily_base; |
|
||||||
border: none; |
|
||||||
border-radius: @border_radius_searchbar; |
|
||||||
background: fade(@theme_cardbg, 15%); |
|
||||||
box-sizing: border-box; |
|
||||||
-webkit-appearance: none; |
|
||||||
box-shadow: none; |
|
||||||
border: 1px dashed transparent; |
|
||||||
.enable-trans(); |
|
||||||
~ .icon{ |
|
||||||
color: fade(@color_text_in_header, 60%); |
|
||||||
} |
|
||||||
.set-placeholder({color: fade(@color_text_in_header, 60%)}); |
|
||||||
&:hover{ |
|
||||||
border: 1px dashed fade(@color_text_in_header, 60%); |
|
||||||
} |
|
||||||
&:focus { |
|
||||||
~ .icon{ |
|
||||||
color: @color_text_in_header; |
|
||||||
} |
|
||||||
color: @color_text_in_header; |
|
||||||
border: 1px solid fade(@color_text_in_header, 60%); |
|
||||||
// .set-placeholder({color: @black}); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
&.pure{ |
|
||||||
background: @theme_cardbg; |
|
||||||
&, a{ |
|
||||||
color: @theme_main; |
|
||||||
} |
|
||||||
box-shadow: @boxshadow_card_normal; // 适合白色导航栏背景 |
|
||||||
.menu{ |
|
||||||
ul > li > a{ |
|
||||||
.enable-trans(); |
|
||||||
color: fade(@theme_main, 70%); |
|
||||||
&.current{ |
|
||||||
border-bottom: @loading_height solid fade(@theme_main, 80%); |
|
||||||
} |
|
||||||
&:hover{ |
|
||||||
color: @theme_main; |
|
||||||
border-bottom: @loading_height solid @theme_main; |
|
||||||
background: fade(@theme_main, 10%); |
|
||||||
} |
|
||||||
&:active,&.active{ |
|
||||||
color: @theme_main; |
|
||||||
border-bottom: @loading_height solid @theme_main; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
.switcher{ |
|
||||||
& > li{ |
|
||||||
a{ |
|
||||||
&:hover { |
|
||||||
background: fade(@theme_main, 15%); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
} |
color: @theme_main; |
||||||
.m_search { |
background: fade(@theme_main, 15%); |
||||||
.input { |
border: 1px solid fade(@theme_main, 60%); |
||||||
color: fade(@theme_main, 60%); |
|
||||||
background: @theme_background; |
|
||||||
~ .icon{ |
|
||||||
color: fade(@theme_main, 60%); |
|
||||||
} |
|
||||||
.set-placeholder({color: fade(@theme_main, 60%)}); |
|
||||||
&:hover{ |
|
||||||
border: 1px dashed fade(@theme_main, 60%); |
|
||||||
} |
|
||||||
&:focus { |
|
||||||
~ .icon{ |
|
||||||
color: @theme_main; |
|
||||||
} |
|
||||||
color: @theme_main; |
|
||||||
background: fade(@theme_main, 15%); |
|
||||||
border: 1px solid fade(@theme_main, 60%); |
|
||||||
} |
|
||||||
} |
} |
||||||
} |
} |
||||||
} |
} |
||||||
@media (max-width: @on_phone) { |
} |
||||||
padding: 0; |
@media (max-width: @on_phone) { |
||||||
.m_search{ |
padding: 0; |
||||||
width:0; |
.m_search{ |
||||||
overflow: hidden; |
width:0; |
||||||
position: absolute; |
overflow: hidden; |
||||||
.enable-trans(); |
position: absolute; |
||||||
margin: 0 @gap/2; |
.enable-trans(); |
||||||
} |
margin: 0 @gap/2; |
||||||
&.z_search-open{ |
|
||||||
.logo{ |
|
||||||
opacity:0; |
|
||||||
} |
|
||||||
.m_search{ |
|
||||||
width: 100% - 1.5*@gap; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
|
&.z_search-open{ |
||||||
|
.logo{ |
||||||
|
opacity:0; |
||||||
|
} |
||||||
|
.m_search{ |
||||||
|
width: 100% - 1.5*@gap; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
} |
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.menu-phone{ |
.menu-phone{ |
||||||
.header{ |
.header{ |
||||||
border-top-left-radius: @border_radius; |
border-top-left-radius: @border_radius; |
||||||
border-top-right-radius: @border_radius; |
border-top-right-radius: @border_radius; |
||||||
background-color: fade(@color_bg_navbar,90%); |
background-color: fade(@color_bg_navbar,90%); |
||||||
color: @color_text_in_header; |
color: @color_text_in_header; |
||||||
font-size: @fontsize_base; |
font-size: @fontsize_base; |
||||||
line-height: 1.8em; |
line-height: 1.8em; |
||||||
padding: 8px @gap+6px; |
padding: 8px @gap+6px; |
||||||
} |
} |
||||||
position: fixed; |
position: fixed; |
||||||
top: @height_navbar + @gap; |
top: @height_navbar + @gap; |
||||||
right: 0; |
right: 0; |
||||||
z-index:9999 + 1; |
z-index:9999 + 1; |
||||||
line-height: 2 * @gap; |
line-height: 2 * @gap; |
||||||
background: white; |
background: white; |
||||||
border-right: 0; |
border-right: 0; |
||||||
|
box-shadow: @boxshadow_card_raised; |
||||||
|
border-radius: @border_radius; |
||||||
|
transform: translate3d(-40px, -40px, 0) scale(0,0); |
||||||
|
transform-origin: right top; |
||||||
|
.enable-trans(); |
||||||
|
&:hover { |
||||||
box-shadow: @boxshadow_card_raised; |
box-shadow: @boxshadow_card_raised; |
||||||
border-radius: @border_radius; |
} |
||||||
transform: translate3d(-40px, -40px, 0) scale(0,0); |
&:active { |
||||||
transform-origin: right top; |
box-shadow: @boxshadow_card_normal; |
||||||
.enable-trans(); |
} |
||||||
&:hover { |
nav { |
||||||
box-shadow: @boxshadow_card_raised; |
padding: @gap/2 0px; |
||||||
} |
.nav { |
||||||
&:active { |
height: @height_cell; |
||||||
box-shadow: @boxshadow_card_normal; |
line-height: @height_cell; |
||||||
} |
position: relative; |
||||||
nav { |
display: block; |
||||||
padding: @gap/2 0px; |
color: @black; |
||||||
.nav { |
padding: 2px 20px; |
||||||
height: @height_cell; |
border-left: 4px solid transparent; |
||||||
line-height: @height_cell; |
border-right: 4px solid transparent; |
||||||
position: relative; |
&:hover,&.active{ |
||||||
display: block; |
border-left: 4px solid @theme_main; |
||||||
color: @black; |
background: fade(@theme_main, 10%); |
||||||
padding: 2px 20px; |
} |
||||||
border-left: 4px solid transparent; |
|
||||||
border-right: 4px solid transparent; |
|
||||||
&:hover,&.active{ |
|
||||||
border-left: 4px solid @theme_main; |
|
||||||
background: fade(@theme_main, 10%); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
|
@ -1,484 +1,484 @@ |
|||||||
.l_main { |
.l_main { |
||||||
width: ~"calc(100% - 1 * @{width_sidebar})"; |
width: ~"calc(100% - 1 * @{width_sidebar})"; |
||||||
@media(max-width: @on_laptop) { |
@media(max-width: @on_laptop) { |
||||||
width: ~"calc(100% - 1 * @{width_sidebar_m})"; |
width: ~"calc(100% - 1 * @{width_sidebar_m})"; |
||||||
|
} |
||||||
|
@media(max-width: @on_pad) { |
||||||
|
width: 100%; |
||||||
|
} |
||||||
|
padding-right: @gap; |
||||||
|
float: left; |
||||||
|
.post-list { |
||||||
|
position: relative; |
||||||
|
margin: 0px auto; |
||||||
|
// columns: 400px; |
||||||
|
column-gap: 0; |
||||||
|
margin: -@gap /2; |
||||||
|
@media(max-width: @on_phone) { |
||||||
|
margin: 0; |
||||||
} |
} |
||||||
@media(max-width: @on_pad) { |
} |
||||||
width: 100%; |
#comments { |
||||||
|
position: relative; |
||||||
|
// padding-top: 1.5*@gap; |
||||||
|
@media(max-width: @on_phone) { |
||||||
|
// padding-top: @gap; |
||||||
} |
} |
||||||
padding-right: @gap; |
#valine_container{ |
||||||
float: left; |
p{ |
||||||
.post-list { |
line-height: @lineheight_base; |
||||||
position: relative; |
|
||||||
margin: 0px auto; |
|
||||||
// columns: 400px; |
|
||||||
column-gap: 0; |
|
||||||
margin: -@gap /2; |
|
||||||
@media(max-width: @on_phone) { |
|
||||||
margin: 0; |
|
||||||
} |
} |
||||||
} |
.info{ |
||||||
#comments { |
display: none; |
||||||
position: relative; |
|
||||||
// padding-top: 1.5*@gap; |
|
||||||
@media(max-width: @on_phone) { |
|
||||||
// padding-top: @gap; |
|
||||||
} |
} |
||||||
#valine_container{ |
.vwrap{ |
||||||
p{ |
border-radius: @border_radius; |
||||||
line-height: @lineheight_base; |
border-style: dashed; |
||||||
} |
border: 1px dashed fade(@color_text_main, 30%); |
||||||
.info{ |
.enable-trans(); |
||||||
display: none; |
&:hover{ |
||||||
} |
border: 1px dashed fade(@theme_main, 100%); |
||||||
.vwrap{ |
|
||||||
border-radius: @border_radius; |
|
||||||
border-style: dashed; |
|
||||||
border: 1px dashed fade(@color_text_main, 30%); |
|
||||||
.enable-trans(); |
|
||||||
&:hover{ |
|
||||||
border: 1px dashed fade(@theme_main, 100%); |
|
||||||
} |
|
||||||
.vheader{ |
|
||||||
.vinput{ |
|
||||||
border-radius: 0; |
|
||||||
border-bottom: 1px dashed fade(@color_text_main, 30%); |
|
||||||
&:hover{ |
|
||||||
border-bottom: 1px dashed @theme_main; |
|
||||||
} |
|
||||||
&:focus{ |
|
||||||
border-bottom: 1px solid @theme_main; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
.vedit .vctrl span { |
|
||||||
color: @theme_main; |
|
||||||
padding: 0; |
|
||||||
margin: 10px; |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
button{ |
|
||||||
border: none; |
|
||||||
padding-left: 2.4em; |
|
||||||
padding-right: 2.4em; |
|
||||||
font-weight: bold; |
|
||||||
background-color: @theme_main; |
|
||||||
color: white; |
|
||||||
border-radius: @border_radius/2; |
|
||||||
.enable-trans(); |
|
||||||
&:hover { |
|
||||||
background: darken(@theme_main, 10%); |
|
||||||
} |
|
||||||
&:active { |
|
||||||
// background: lighten(@theme_main, 20%); |
|
||||||
} |
|
||||||
} |
|
||||||
blockquote{ |
|
||||||
padding: @gap; |
|
||||||
border-left: @border_radius_line solid @color_bg_quote; |
|
||||||
// border-radius: @border_radius_code_block; |
|
||||||
.enable-trans(); |
|
||||||
p{ |
|
||||||
text-align: left; |
|
||||||
word-wrap: normal; |
|
||||||
margin: 0; |
|
||||||
font-size: @fontsize_small; |
|
||||||
line-height: @fontsize_small * 1.5; |
|
||||||
} |
|
||||||
} |
|
||||||
pre code{ |
|
||||||
border: none; |
|
||||||
} |
|
||||||
code{ |
|
||||||
font-family: @fontfamily_code; |
|
||||||
font-size: @fontsize_base * .8; |
|
||||||
color: fade(@color_text_main, 90%); |
|
||||||
} |
|
||||||
a, .vemoji-btn, .vpreview-btn{ |
|
||||||
color: @color_text_link; |
|
||||||
.enable-trans(); |
|
||||||
&:hover { |
|
||||||
color: @color_text_highlight; |
|
||||||
text-decoration: underline; |
|
||||||
} |
|
||||||
&:active { |
|
||||||
color: darken(@color_text_highlight, 25%); |
|
||||||
} |
|
||||||
} |
|
||||||
.vhead{ |
|
||||||
span{ |
|
||||||
&.vnick{ |
|
||||||
color: fade(@color_text_main, 90%); |
|
||||||
} |
|
||||||
} |
|
||||||
a{ |
|
||||||
&.vnick{ |
|
||||||
color: #ff9800; |
|
||||||
font-weight: bold; |
|
||||||
&:hover { |
|
||||||
color: @color_text_highlight; |
|
||||||
text-decoration: underline; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
.vsys{ |
|
||||||
margin: 2px; |
|
||||||
padding: 1px 8px; |
|
||||||
background-color: fade(@color_text_main, 10%); |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
.vcard{ |
|
||||||
.vquote{ |
|
||||||
border-left: none; |
|
||||||
} |
|
||||||
.vh { |
|
||||||
border-bottom: 1px dashed fade(@color_text_main, 10%); |
|
||||||
} |
|
||||||
} |
|
||||||
.vmeta{ |
|
||||||
.vat{ |
|
||||||
font-weight: bold; |
|
||||||
color: @theme_main; |
|
||||||
.enable-trans(); |
|
||||||
&:hover { |
|
||||||
color: @color_text_highlight; |
|
||||||
text-decoration: underline; |
|
||||||
} |
|
||||||
&:active { |
|
||||||
color: darken(@color_text_highlight, 25%); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
.vinput{ |
|
||||||
color: @color_text_main; |
|
||||||
} |
|
||||||
p{ |
|
||||||
color: @color_text_main; |
|
||||||
} |
|
||||||
} |
} |
||||||
.vemojis{ |
.vheader{ |
||||||
justify-content: space-between; |
.vinput{ |
||||||
i{ |
border-radius: 0; |
||||||
width: auto; |
border-bottom: 1px dashed fade(@color_text_main, 30%); |
||||||
height: 36px; |
&:hover{ |
||||||
padding: 0; |
border-bottom: 1px dashed @theme_main; |
||||||
margin: 8px 8px 0 8px; |
} |
||||||
.emoji{ |
&:focus{ |
||||||
height: 24px; |
border-bottom: 1px solid @theme_main; |
||||||
margin-top: 6px; |
|
||||||
background: transparent; |
|
||||||
} |
} |
||||||
} |
} |
||||||
} |
} |
||||||
p{ |
|
||||||
.emoji{ |
|
||||||
display: inline; |
|
||||||
height: 28px; |
|
||||||
background: transparent; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
.post-wrapper{ |
|
||||||
// for firefox |
|
||||||
column-break-inside: avoid; |
|
||||||
break-inside: avoid-column; |
|
||||||
} |
|
||||||
.mobile-post() { |
|
||||||
.post { |
|
||||||
padding: 1.5 * @gap @gap; |
|
||||||
.meta { |
|
||||||
margin-bottom: @gap; |
|
||||||
.title { |
|
||||||
font-size: @fontsize_article_title_phone; |
|
||||||
} |
|
||||||
} |
|
||||||
.full-width { |
|
||||||
margin-left: -@gap; |
|
||||||
margin-right: -@gap; |
|
||||||
padding-left: @gap; |
|
||||||
padding-right: @gap; |
|
||||||
width:~"calc(100% + 2 * @{gap})" |
|
||||||
} |
|
||||||
.auto-padding { |
|
||||||
padding-left: @gap; |
|
||||||
padding-right: @gap; |
|
||||||
border-bottom-left-radius: @border_radius; |
|
||||||
border-bottom-right-radius: @border_radius; |
|
||||||
overflow: auto; |
|
||||||
} |
|
||||||
img, |
|
||||||
.highlight { |
|
||||||
// width:~"calc(100% + 2 * @{gap})"; |
|
||||||
// display: block; |
|
||||||
} |
|
||||||
.highlight{ |
|
||||||
margin-left: 0*@gap; |
|
||||||
margin-right: 0*@gap; |
|
||||||
width:~"calc(100% - 0 * @{gap})"; |
|
||||||
} |
|
||||||
@media(max-width:@on_phone) { |
|
||||||
.highlight { |
|
||||||
margin-left: 0*@gap; |
|
||||||
margin-right: 0*@gap; |
|
||||||
width:~"calc(100% - 0 * @{gap})"; |
|
||||||
} |
|
||||||
.auto-padding { |
|
||||||
padding-left: @gap; |
|
||||||
padding-right: @gap; |
|
||||||
border-bottom-left-radius: 0; |
|
||||||
border-bottom-right-radius: 0; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
.vedit .vctrl span { |
||||||
|
color: @theme_main; |
||||||
|
padding: 0; |
||||||
|
margin: 10px; |
||||||
} |
} |
||||||
} |
|
||||||
.post-wrapper { |
} |
||||||
padding: @gap / 2; |
button{ |
||||||
.mobile-post(); |
border: none; |
||||||
.tags { |
padding-left: 2.4em; |
||||||
margin-bottom: -1.5*@gap; |
padding-right: 2.4em; |
||||||
|
font-weight: bold; |
||||||
|
background-color: @theme_main; |
||||||
|
color: white; |
||||||
|
border-radius: @border_radius/2; |
||||||
|
.enable-trans(); |
||||||
|
&:hover { |
||||||
|
background: darken(@theme_main, 10%); |
||||||
} |
} |
||||||
@media(max-width:@on_phone) { |
&:active { |
||||||
padding: 0 0 @gap 0; |
// background: lighten(@theme_main, 20%); |
||||||
} |
} |
||||||
} |
} |
||||||
.post { |
blockquote{ |
||||||
position: relative; |
padding: @gap; |
||||||
margin: 0 auto; |
border-left: @border_radius_line solid @color_bg_quote; |
||||||
padding: 2 * @gap 1.5*@gap; |
// border-radius: @border_radius_code_block; |
||||||
//max-width: 768px; |
.enable-trans(); |
||||||
background: @theme_cardbg; |
p{ |
||||||
border-radius: @border_radius; |
text-align: left; |
||||||
h1{ |
word-wrap: normal; |
||||||
font-weight: normal; |
margin: 0; |
||||||
font-size: @fontsize_article_title; |
font-size: @fontsize_small; |
||||||
line-height: @lineheight_base; |
line-height: @fontsize_small * 1.5; |
||||||
color: @color_text_main; |
|
||||||
} |
} |
||||||
&:extend(.z-depth-main); |
} |
||||||
|
pre code{ |
||||||
|
border: none; |
||||||
|
} |
||||||
|
code{ |
||||||
|
font-family: @fontfamily_code; |
||||||
|
font-size: @fontsize_base * .8; |
||||||
|
color: fade(@color_text_main, 90%); |
||||||
|
} |
||||||
|
a, .vemoji-btn, .vpreview-btn{ |
||||||
|
color: @color_text_link; |
||||||
.enable-trans(); |
.enable-trans(); |
||||||
&:hover { |
&:hover { |
||||||
box-shadow: @boxshadow_card_raised; |
color: @color_text_highlight; |
||||||
|
text-decoration: underline; |
||||||
} |
} |
||||||
&:active { |
&:active { |
||||||
box-shadow: @boxshadow_card_normal; |
color: darken(@color_text_highlight, 25%); |
||||||
} |
} |
||||||
@media(max-width: @on_phone) { |
} |
||||||
border-radius: 0; |
.vhead{ |
||||||
|
span{ |
||||||
|
&.vnick{ |
||||||
|
color: fade(@color_text_main, 90%); |
||||||
|
} |
||||||
|
} |
||||||
|
a{ |
||||||
|
&.vnick{ |
||||||
|
color: #ff9800; |
||||||
|
font-weight: bold; |
||||||
&:hover { |
&:hover { |
||||||
box-shadow: @boxshadow_card_normal; |
color: @color_text_highlight; |
||||||
|
text-decoration: underline; |
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
.tags a{ |
.vsys{ |
||||||
color: fade(@color_text_main, 70%); |
margin: 2px; |
||||||
|
padding: 1px 8px; |
||||||
|
background-color: fade(@color_text_main, 10%); |
||||||
} |
} |
||||||
.meta { |
|
||||||
color: fade(@color_text_main, 70%); |
} |
||||||
&#header-meta{ |
.vcard{ |
||||||
margin-top: 0; |
.vquote{ |
||||||
margin-bottom: 1*@gap; |
border-left: none; |
||||||
|
} |
||||||
|
.vh { |
||||||
|
border-bottom: 1px dashed fade(@color_text_main, 10%); |
||||||
|
} |
||||||
|
} |
||||||
|
.vmeta{ |
||||||
|
.vat{ |
||||||
|
font-weight: bold; |
||||||
|
color: @theme_main; |
||||||
|
.enable-trans(); |
||||||
|
&:hover { |
||||||
|
color: @color_text_highlight; |
||||||
|
text-decoration: underline; |
||||||
} |
} |
||||||
&#footer-meta{ |
&:active { |
||||||
margin-top: 2*@gap; |
color: darken(@color_text_highlight, 25%); |
||||||
margin-bottom: 0.5*@gap; |
|
||||||
} |
} |
||||||
font-size: @fontsize_small * .95; |
} |
||||||
.aplayer{ |
} |
||||||
.enable-trans(); |
.vinput{ |
||||||
width: 65px; |
color: @color_text_main; |
||||||
height: 65px; |
} |
||||||
border-radius: 100%; |
p{ |
||||||
float: right; |
color: @color_text_main; |
||||||
margin: 4px; |
} |
||||||
box-shadow: @boxshadow_card_normal; |
} |
||||||
&:hover { |
.vemojis{ |
||||||
border-radius: 25%; |
justify-content: space-between; |
||||||
transform: scale(1.1); |
i{ |
||||||
box-shadow: @boxshadow_card_raised; |
width: auto; |
||||||
} |
height: 36px; |
||||||
@media(max-width: @on_phone) { |
padding: 0; |
||||||
&:hover { |
margin: 8px 8px 0 8px; |
||||||
border-radius: 100%; |
.emoji{ |
||||||
transform: scale(1); |
height: 24px; |
||||||
box-shadow: @boxshadow_card_normal; |
margin-top: 6px; |
||||||
} |
background: transparent; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
p{ |
||||||
|
.emoji{ |
||||||
|
display: inline; |
||||||
|
height: 28px; |
||||||
|
background: transparent; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
.post-wrapper{ |
||||||
|
// for firefox |
||||||
|
column-break-inside: avoid; |
||||||
|
break-inside: avoid-column; |
||||||
|
} |
||||||
|
.mobile-post() { |
||||||
|
.post { |
||||||
|
padding: 1.5 * @gap @gap; |
||||||
|
.meta { |
||||||
|
margin-bottom: @gap; |
||||||
|
.title { |
||||||
|
font-size: @fontsize_article_title_phone; |
||||||
} |
} |
||||||
|
} |
||||||
|
.full-width { |
||||||
|
margin-left: -@gap; |
||||||
|
margin-right: -@gap; |
||||||
|
padding-left: @gap; |
||||||
|
padding-right: @gap; |
||||||
|
width:~"calc(100% + 2 * @{gap})" |
||||||
|
} |
||||||
|
.auto-padding { |
||||||
|
padding-left: @gap; |
||||||
|
padding-right: @gap; |
||||||
|
border-bottom-left-radius: @border_radius; |
||||||
|
border-bottom-right-radius: @border_radius; |
||||||
|
overflow: auto; |
||||||
|
} |
||||||
|
img, |
||||||
|
.highlight { |
||||||
|
// width:~"calc(100% + 2 * @{gap})"; |
||||||
|
// display: block; |
||||||
|
} |
||||||
|
.highlight{ |
||||||
|
margin-left: 0*@gap; |
||||||
|
margin-right: 0*@gap; |
||||||
|
width:~"calc(100% - 0 * @{gap})"; |
||||||
|
} |
||||||
|
@media(max-width:@on_phone) { |
||||||
|
.highlight { |
||||||
|
margin-left: 0*@gap; |
||||||
|
margin-right: 0*@gap; |
||||||
|
width:~"calc(100% - 0 * @{gap})"; |
||||||
|
} |
||||||
|
.auto-padding { |
||||||
|
padding-left: @gap; |
||||||
|
padding-right: @gap; |
||||||
|
border-bottom-left-radius: 0; |
||||||
|
border-bottom-right-radius: 0; |
||||||
} |
} |
||||||
|
} |
||||||
|
|
||||||
.title { |
} |
||||||
left: 0; |
} |
||||||
font-size: @fontsize_article_title; |
.post-wrapper { |
||||||
@media(max-width: @on_phone) { |
padding: @gap / 2; |
||||||
font-size: @fontsize_article_title_phone; |
.mobile-post(); |
||||||
} |
.tags { |
||||||
&:before { |
margin-bottom: -1.5*@gap; |
||||||
// content: "#"; |
} |
||||||
} |
@media(max-width:@on_phone) { |
||||||
a { |
padding: 0 0 @gap 0; |
||||||
display: inline; |
} |
||||||
line-height: @lineheight_base; |
} |
||||||
font-weight: normal; |
.post { |
||||||
color: @color_text_main; |
position: relative; |
||||||
text-decoration: none; |
margin: 0 auto; |
||||||
font-size: @fontsize_article_title; |
padding: 2 * @gap 1.5*@gap; |
||||||
@media(max-width: @on_phone) { |
//max-width: 768px; |
||||||
font-size: @fontsize_article_title_phone; |
background: @theme_cardbg; |
||||||
} |
border-radius: @border_radius; |
||||||
&:hover { |
h1{ |
||||||
color: @color_text_highlight; |
font-weight: normal; |
||||||
} |
font-size: @fontsize_article_title; |
||||||
} |
line-height: @lineheight_base; |
||||||
|
color: @color_text_main; |
||||||
|
} |
||||||
|
&:extend(.z-depth-main); |
||||||
|
.enable-trans(); |
||||||
|
&:hover { |
||||||
|
box-shadow: @boxshadow_card_raised; |
||||||
|
} |
||||||
|
&:active { |
||||||
|
box-shadow: @boxshadow_card_normal; |
||||||
|
} |
||||||
|
@media(max-width: @on_phone) { |
||||||
|
border-radius: 0; |
||||||
|
&:hover { |
||||||
|
box-shadow: @boxshadow_card_normal; |
||||||
|
} |
||||||
|
} |
||||||
|
.tags a{ |
||||||
|
color: fade(@color_text_main, 70%); |
||||||
|
} |
||||||
|
.meta { |
||||||
|
color: fade(@color_text_main, 70%); |
||||||
|
&#header-meta{ |
||||||
|
margin-top: 0; |
||||||
|
margin-bottom: 1*@gap; |
||||||
|
} |
||||||
|
&#footer-meta{ |
||||||
|
margin-top: 2*@gap; |
||||||
|
margin-bottom: 0.5*@gap; |
||||||
|
} |
||||||
|
font-size: @fontsize_small * .95; |
||||||
|
.aplayer{ |
||||||
|
.enable-trans(); |
||||||
|
width: 65px; |
||||||
|
height: 65px; |
||||||
|
border-radius: 100%; |
||||||
|
float: right; |
||||||
|
margin: 4px; |
||||||
|
box-shadow: @boxshadow_card_normal; |
||||||
|
&:hover { |
||||||
|
border-radius: 25%; |
||||||
|
transform: scale(1.1); |
||||||
|
box-shadow: @boxshadow_card_raised; |
||||||
} |
} |
||||||
.tags{ |
@media(max-width: @on_phone) { |
||||||
display: inline-flex; |
&:hover { |
||||||
background: transparent; |
border-radius: 100%; |
||||||
word-spacing: normal; |
transform: scale(1); |
||||||
|
box-shadow: @boxshadow_card_normal; |
||||||
|
} |
||||||
} |
} |
||||||
@cellH: 28px; |
} |
||||||
.metatag { |
|
||||||
.enable-trans(); |
.title { |
||||||
font-size: @fontsize_small * .95; |
left: 0; |
||||||
line-height: @cellH + 1px; |
font-size: @fontsize_article_title; |
||||||
height: @cellH; |
@media(max-width: @on_phone) { |
||||||
color: fade(@color_text_main, 70%); |
font-size: @fontsize_article_title_phone; |
||||||
display: inline-flex; |
} |
||||||
background: @theme_background; |
&:before { |
||||||
margin: 4px 4px 4px 0px; |
// content: "#"; |
||||||
padding: 0px 8px 0px 2px; |
} |
||||||
border-radius: 0.5*@border_radius_code_block; |
a { |
||||||
border-left: 25px solid lighten(@theme_main, 10%); |
display: inline; |
||||||
&:hover { |
line-height: @lineheight_base; |
||||||
background: lighten(@theme_main, 10%); |
font-weight: normal; |
||||||
color: @color_text_in_header; |
color: @color_text_main; |
||||||
a{ |
text-decoration: none; |
||||||
color: @color_text_in_header; |
font-size: @fontsize_article_title; |
||||||
|
@media(max-width: @on_phone) { |
||||||
|
font-size: @fontsize_article_title_phone; |
||||||
} |
} |
||||||
.fas, .fab{ |
&:hover { |
||||||
color: @color_text_in_header; |
color: @color_text_highlight; |
||||||
} |
} |
||||||
border-left-width: 30px; |
} |
||||||
padding-right: 10px; |
} |
||||||
} |
.tags{ |
||||||
i{ |
display: inline-flex; |
||||||
width: 28px; |
background: transparent; |
||||||
line-height: @cellH; |
word-spacing: normal; |
||||||
color: @color_text_in_header; |
} |
||||||
margin-left: -28px; |
@cellH: 28px; |
||||||
} |
.metatag { |
||||||
|
.enable-trans(); |
||||||
|
font-size: @fontsize_small * .95; |
||||||
|
line-height: @cellH + 1px; |
||||||
|
height: @cellH; |
||||||
|
color: fade(@color_text_main, 70%); |
||||||
|
display: inline-flex; |
||||||
|
background: @theme_background; |
||||||
|
margin: 4px 4px 4px 0px; |
||||||
|
padding: 0px 8px 0px 2px; |
||||||
|
border-radius: 0.5*@border_radius_code_block; |
||||||
|
border-left: 25px solid lighten(@theme_main, 10%); |
||||||
|
&:hover { |
||||||
|
background: lighten(@theme_main, 10%); |
||||||
|
color: @color_text_in_header; |
||||||
a{ |
a{ |
||||||
color: fade(@color_text_main, 70%); |
color: @color_text_in_header; |
||||||
.enable-trans(); |
|
||||||
&:hover { |
|
||||||
color: @color_text_highlight; |
|
||||||
color: @color_text_in_header; |
|
||||||
} |
|
||||||
} |
|
||||||
.categories { |
|
||||||
font-weight: normal; |
|
||||||
color: fade(@color_text_main, 70%); |
|
||||||
} |
} |
||||||
.tag,{ |
.fas, .fab{ |
||||||
color: fade(@color_text_main, 70%); |
color: @color_text_in_header; |
||||||
} |
} |
||||||
.fa-spinner{ |
border-left-width: 30px; |
||||||
|
padding-right: 10px; |
||||||
|
} |
||||||
|
i{ |
||||||
|
width: 28px; |
||||||
|
line-height: @cellH; |
||||||
|
color: @color_text_in_header; |
||||||
|
margin-left: -28px; |
||||||
|
} |
||||||
|
a{ |
||||||
color: fade(@color_text_main, 70%); |
color: fade(@color_text_main, 70%); |
||||||
margin-left: 2px; |
.enable-trans(); |
||||||
} |
&:hover { |
||||||
|
color: @color_text_highlight; |
||||||
|
color: @color_text_in_header; |
||||||
|
} |
||||||
|
} |
||||||
|
.categories { |
||||||
|
font-weight: normal; |
||||||
|
color: fade(@color_text_main, 70%); |
||||||
|
} |
||||||
|
.tag,{ |
||||||
|
color: fade(@color_text_main, 70%); |
||||||
|
} |
||||||
|
.fa-spinner{ |
||||||
|
color: fade(@color_text_main, 70%); |
||||||
|
margin-left: 2px; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
.share{ |
||||||
|
&:hover { |
||||||
|
background: @theme_background; |
||||||
} |
} |
||||||
.share{ |
.share-body{ |
||||||
&:hover { |
display: flex; |
||||||
background: @theme_background; |
a{ |
||||||
} |
margin-left: 4px; |
||||||
.share-body{ |
img{ |
||||||
display: flex; |
margin: 2px 0; |
||||||
a{ |
height: @cellH - 4px; |
||||||
margin-left: 4px; |
width: auto; |
||||||
img{ |
background: transparent; |
||||||
margin: 2px 0; |
} |
||||||
height: @cellH - 4px; |
i{ |
||||||
width: auto; |
display: inline-block; |
||||||
background: transparent; |
margin: 0; |
||||||
} |
padding: 0; |
||||||
i{ |
color: fade(@color_text_main, 70%); |
||||||
display: inline-block; |
} |
||||||
margin: 0; |
padding-bottom: 0; |
||||||
padding: 0; |
margin-bottom: 0; |
||||||
color: fade(@color_text_main, 70%); |
&:hover{ |
||||||
} |
// background: darken(@color_md_orange, 10%); |
||||||
padding-bottom: 0; |
text-decoration: none; |
||||||
margin-bottom: 0; |
|
||||||
&:hover{ |
|
||||||
// background: darken(@color_md_orange, 10%); |
|
||||||
text-decoration: none; |
|
||||||
} |
|
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
} |
||||||
|
|
||||||
} |
} |
||||||
.full-width,.highlight{ |
.full-width,.highlight{ |
||||||
margin-left: 0*@gap; |
margin-left: 0*@gap; |
||||||
margin-right: 0*@gap; |
margin-right: 0*@gap; |
||||||
width:~"calc(100% - 0 * @{gap})"; |
width:~"calc(100% - 0 * @{gap})"; |
||||||
} |
} |
||||||
|
|
||||||
img { |
img { |
||||||
display: block; |
display: block; |
||||||
max-width: 100%; |
max-width: 100%; |
||||||
border-radius: 4px; |
border-radius: 4px; |
||||||
background: none; |
background: none; |
||||||
} |
} |
||||||
} |
} |
||||||
@media(max-width:@on_pad) { |
@media(max-width:@on_pad) { |
||||||
padding-right: 0; |
padding-right: 0; |
||||||
@media(max-width: @on_phone) { |
@media(max-width: @on_phone) { |
||||||
width: 100%; |
width: 100%; |
||||||
} |
} |
||||||
.mobile-post(); |
.mobile-post(); |
||||||
} |
} |
||||||
|
|
||||||
.prev-next{ |
.prev-next{ |
||||||
width: 100%; |
width: 100%; |
||||||
display: flex; |
display: flex; |
||||||
justify-content: space-between; |
justify-content: space-between; |
||||||
align-items: baseline; |
align-items: baseline; |
||||||
color: fade(@color_text_main, 50%); |
color: fade(@color_text_main, 50%); |
||||||
margin: 0; |
margin: 0; |
||||||
.prev{ |
.prev{ |
||||||
text-align: left; |
text-align: left; |
||||||
border-top-right-radius: 32px; |
border-top-right-radius: 32px; |
||||||
border-bottom-right-radius: 32px; |
border-bottom-right-radius: 32px; |
||||||
} |
} |
||||||
.next{ |
.next{ |
||||||
text-align: right; |
text-align: right; |
||||||
border-top-left-radius: 32px; |
border-top-left-radius: 32px; |
||||||
border-bottom-left-radius: 32px; |
border-bottom-left-radius: 32px; |
||||||
} |
} |
||||||
p{ |
p{ |
||||||
margin: @gap; |
margin: @gap; |
||||||
} |
} |
||||||
a{ |
a{ |
||||||
color: fade(@color_text_link, 90%); |
color: fade(@color_text_link, 90%); |
||||||
} |
} |
||||||
section{ |
section{ |
||||||
color: fade(@color_text_main, 80%); |
color: fade(@color_text_main, 80%); |
||||||
padding: @gap; |
padding: @gap; |
||||||
border-radius: @border_radius; |
border-radius: @border_radius; |
||||||
&:hover { |
&:hover { |
||||||
color: @color_text_highlight; |
color: @color_text_highlight; |
||||||
} |
} |
||||||
} |
} |
||||||
@media(max-width:@on_phone) { |
@media(max-width:@on_phone) { |
||||||
section{ |
section{ |
||||||
border-radius: 0; |
border-radius: 0; |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
@ -1,15 +1,15 @@ |
|||||||
.l_side { |
.l_side { |
||||||
width: @width_sidebar; |
width: @width_sidebar; |
||||||
float: right; |
float: right; |
||||||
position: relative; |
position: relative; |
||||||
display: flex; |
display: flex; |
||||||
flex-direction: column; |
flex-direction: column; |
||||||
@media(max-width: @on_laptop) { |
@media(max-width: @on_laptop) { |
||||||
width: @width_sidebar_m; |
width: @width_sidebar_m; |
||||||
} |
} |
||||||
@media(max-width: @on_pad) { |
@media(max-width: @on_pad) { |
||||||
margin: @gap 0 0; |
margin: @gap 0 0; |
||||||
width: 100%; |
width: 100%; |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
@ -1,110 +1,110 @@ |
|||||||
.l_side .toc-wrapper{ |
.l_side .toc-wrapper{ |
||||||
z-index: 1; |
z-index: 1; |
||||||
overflow: hidden; |
overflow: hidden; |
||||||
border-radius: @border_radius; |
border-radius: @border_radius; |
||||||
|
position: sticky; |
||||||
|
top: @height_navbar + 1*@gap; |
||||||
|
.enable-trans(); |
||||||
|
header{ |
||||||
position: sticky; |
position: sticky; |
||||||
top: @height_navbar + 1*@gap; |
width: 100%; |
||||||
.enable-trans(); |
top: 0; |
||||||
|
} |
||||||
|
.content{ |
||||||
|
padding: @gap/2 0; |
||||||
|
max-height: 500px; |
||||||
|
overflow: auto; |
||||||
|
&.pure{ |
||||||
|
padding-top: 0; // 适合白色导航栏背景 |
||||||
|
} |
||||||
|
a { |
||||||
|
border-left: 4px solid transparent; |
||||||
|
&:hover{ |
||||||
|
color: fade(@color_text_main, 100%); |
||||||
|
border-left: 4px solid @theme_main; |
||||||
|
} |
||||||
|
&:active{ |
||||||
|
border-left: 8px solid @theme_main; |
||||||
|
} |
||||||
|
&.active{ |
||||||
|
color: fade(@color_text_main, 100%); |
||||||
|
border-left: 4px solid @theme_main; |
||||||
|
background: fade(@theme_main, 10%); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
&.active{ |
||||||
|
position: fixed; |
||||||
|
box-shadow: @boxshadow_card_raised; |
||||||
header{ |
header{ |
||||||
position: sticky; |
.s-toc{ |
||||||
width: 100%; |
transform: rotate(30deg); |
||||||
top: 0; |
} |
||||||
} |
} |
||||||
.content{ |
} |
||||||
padding: @gap/2 0; |
.enable-trans(); |
||||||
max-height: 500px; |
@media(max-width: @on_phone){ |
||||||
overflow: auto; |
position: fixed; |
||||||
&.pure{ |
max-height: 1000px; |
||||||
padding-top: 0; // 适合白色导航栏背景 |
// width: ~"calc(100% - 2 * @{gap})"; |
||||||
} |
top: @height_navbar; |
||||||
a { |
box-shadow: @boxshadow_card_raised; |
||||||
border-left: 4px solid transparent; |
visibility: hidden; |
||||||
&:hover{ |
.rightBtn{ |
||||||
color: fade(@color_text_main, 100%); |
display: none; |
||||||
border-left: 4px solid @theme_main; |
|
||||||
} |
|
||||||
&:active{ |
|
||||||
border-left: 8px solid @theme_main; |
|
||||||
} |
|
||||||
&.active{ |
|
||||||
color: fade(@color_text_main, 100%); |
|
||||||
border-left: 4px solid @theme_main; |
|
||||||
background: fade(@theme_main, 10%); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
|
transform: scale(0,0); |
||||||
|
transform-origin: right top; |
||||||
&.active{ |
&.active{ |
||||||
position: fixed; |
visibility: visible; |
||||||
box-shadow: @boxshadow_card_raised; |
transform: scale(1,1); |
||||||
header{ |
|
||||||
.s-toc{ |
|
||||||
transform: rotate(30deg); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
.enable-trans(); |
|
||||||
@media(max-width: @on_phone){ |
|
||||||
position: fixed; |
|
||||||
max-height: 1000px; |
|
||||||
// width: ~"calc(100% - 2 * @{gap})"; |
|
||||||
top: @height_navbar; |
|
||||||
box-shadow: @boxshadow_card_raised; |
|
||||||
visibility: hidden; |
|
||||||
.rightBtn{ |
|
||||||
display: none; |
|
||||||
} |
|
||||||
transform: scale(0,0); |
|
||||||
transform-origin: right top; |
|
||||||
&.active{ |
|
||||||
visibility: visible; |
|
||||||
transform: scale(1,1); |
|
||||||
} |
|
||||||
} |
} |
||||||
|
} |
||||||
|
|
||||||
a { |
a { |
||||||
padding-left: 8px; |
padding-left: 8px; |
||||||
color: fade(@color_text_main, 60%); |
color: fade(@color_text_main, 60%); |
||||||
font-size: @fontsize_small; |
font-size: @fontsize_small; |
||||||
display: inline-block; |
display: inline-block; |
||||||
|
} |
||||||
|
ol{ |
||||||
|
.toc-item.toc-level-1 { |
||||||
|
.toc-child a{ |
||||||
|
padding-left: 0.8*@gap; |
||||||
|
font-weight: normal; |
||||||
|
} |
||||||
} |
} |
||||||
ol{ |
.toc-item.toc-level-2 { |
||||||
.toc-item.toc-level-1 { |
.toc-child a{ |
||||||
.toc-child a{ |
padding-left: 1.6*@gap; |
||||||
padding-left: 0.8*@gap; |
font-weight: normal; |
||||||
font-weight: normal; |
} |
||||||
} |
} |
||||||
} |
.toc-item.toc-level-3 { |
||||||
.toc-item.toc-level-2 { |
.toc-child a{ |
||||||
.toc-child a{ |
padding-left: 2.4*@gap; |
||||||
padding-left: 1.6*@gap; |
font-weight: normal; |
||||||
font-weight: normal; |
} |
||||||
} |
} |
||||||
} |
.toc-item.toc-level-4 { |
||||||
.toc-item.toc-level-3 { |
.toc-child a{ |
||||||
.toc-child a{ |
padding-left: 3.2*@gap; |
||||||
padding-left: 2.4*@gap; |
font-weight: normal; |
||||||
font-weight: normal; |
} |
||||||
} |
|
||||||
} |
|
||||||
.toc-item.toc-level-4 { |
|
||||||
.toc-child a{ |
|
||||||
padding-left: 3.2*@gap; |
|
||||||
font-weight: normal; |
|
||||||
} |
|
||||||
} |
|
||||||
li{ |
|
||||||
a{ |
|
||||||
padding: 0 @gap/2 0 (@gap - 5px); |
|
||||||
font-weight: bold; |
|
||||||
width: 100%; |
|
||||||
|
|
||||||
} |
|
||||||
width: auto; |
|
||||||
text-align: left; |
|
||||||
// &:extend(.txt-ellipsis); |
|
||||||
} |
|
||||||
} |
} |
||||||
&:empty{ |
li{ |
||||||
display:none; |
a{ |
||||||
|
padding: 0 @gap/2 0 (@gap - 5px); |
||||||
|
font-weight: bold; |
||||||
|
width: 100%; |
||||||
|
|
||||||
|
} |
||||||
|
width: auto; |
||||||
|
text-align: left; |
||||||
|
// &:extend(.txt-ellipsis); |
||||||
} |
} |
||||||
|
} |
||||||
|
&:empty{ |
||||||
|
display:none; |
||||||
|
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue