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