|
|
@ -1,8 +1,9 @@ |
|
|
|
.l_header { |
|
|
|
.l_header { |
|
|
|
|
|
|
|
@iconW: 32px; |
|
|
|
|
|
|
|
@iconMargin: 4px; |
|
|
|
position: fixed; |
|
|
|
position: fixed; |
|
|
|
z-index: 9999; |
|
|
|
z-index: 9999; |
|
|
|
top: 0; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
overflow: hidden; |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
font-size: @fontsize_base; |
|
|
|
font-size: @fontsize_base; |
|
|
@ -18,7 +19,12 @@ |
|
|
|
margin: auto; |
|
|
|
margin: auto; |
|
|
|
.enable-trans(); |
|
|
|
.enable-trans(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
&.no_sidebar{ |
|
|
|
|
|
|
|
.wrapper{ |
|
|
|
|
|
|
|
max-width: @on_pad; |
|
|
|
|
|
|
|
margin: auto; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
.wrapper.sub{ |
|
|
|
.wrapper.sub{ |
|
|
|
.enable-trans(); |
|
|
|
.enable-trans(); |
|
|
|
transform: translateY(-@height_navbar); |
|
|
|
transform: translateY(-@height_navbar); |
|
|
@ -123,7 +129,7 @@ |
|
|
|
margin: 2px; |
|
|
|
margin: 2px; |
|
|
|
@height: @height_navbar - @gap; |
|
|
|
@height: @height_navbar - @gap; |
|
|
|
@media(max-width: @on_phone){ |
|
|
|
@media(max-width: @on_phone){ |
|
|
|
width: @height; |
|
|
|
margin: 0; |
|
|
|
height: @height; |
|
|
|
height: @height; |
|
|
|
} |
|
|
|
} |
|
|
|
a{ |
|
|
|
a{ |
|
|
@ -138,7 +144,7 @@ |
|
|
|
background: fade(@theme_cardbg, 30%); |
|
|
|
background: fade(@theme_cardbg, 30%); |
|
|
|
} |
|
|
|
} |
|
|
|
@media(max-width: @on_phone){ |
|
|
|
@media(max-width: @on_phone){ |
|
|
|
width: @height; |
|
|
|
width: @iconW; |
|
|
|
height: @height; |
|
|
|
height: @height; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -154,69 +160,62 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
.m_search { |
|
|
|
.m_search { |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
height: @height_navbar - @gap; |
|
|
|
display: flex; |
|
|
|
width: @width_sidebar; |
|
|
|
width: @width_sidebar; |
|
|
|
@media(max-width: @on_laptop){ |
|
|
|
@media(max-width: @on_desktop){ |
|
|
|
width: @width_sidebar_m; |
|
|
|
width: @width_sidebar_m; |
|
|
|
} |
|
|
|
} |
|
|
|
line-height: @height_navbar - @gap; |
|
|
|
|
|
|
|
margin-top: @gap/2; |
|
|
|
|
|
|
|
margin-bottom: @gap/2; |
|
|
|
|
|
|
|
vertical-align: middle; |
|
|
|
|
|
|
|
.form { |
|
|
|
.form { |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
display: block; |
|
|
|
display: block; |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
|
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
.icon,.input{ |
|
|
|
.icon,.input{ |
|
|
|
.enable-trans(.1s); |
|
|
|
.enable-trans(.3s); |
|
|
|
} |
|
|
|
} |
|
|
|
.icon { |
|
|
|
.icon { |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
display:block; |
|
|
|
display: block; |
|
|
|
height: @height_navbar - @gap; |
|
|
|
line-height: @height_searchbar; |
|
|
|
width: @height_navbar - @gap; |
|
|
|
height: @height_searchbar; |
|
|
|
line-height: @height_navbar - @gap; |
|
|
|
width: @iconW; |
|
|
|
top: 0; |
|
|
|
top: 0; |
|
|
|
left: @gap/2; |
|
|
|
left: @iconMargin+1px; |
|
|
|
font-size: @fontsize_base; |
|
|
|
font-size: @fontsize_base; |
|
|
|
|
|
|
|
color: fade(@color_text_in_header, 60%); |
|
|
|
} |
|
|
|
} |
|
|
|
.input { |
|
|
|
.input { |
|
|
|
display:block; |
|
|
|
display: block; |
|
|
|
font-size: @fontsize_base; |
|
|
|
font-size: @fontsize_base; |
|
|
|
line-height: @height_navbar - @gap; |
|
|
|
line-height: @fontsize_base; |
|
|
|
margin: 0; |
|
|
|
height: @height_searchbar; |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
color: fade(@color_text_in_header, 60%); |
|
|
|
color: fade(@color_text_in_header, 60%); |
|
|
|
padding-left: @fontsize_base + @gap - 2px; |
|
|
|
box-shadow: none; |
|
|
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
|
|
-webkit-appearance: none; |
|
|
|
|
|
|
|
padding-left: @iconW + @iconMargin; |
|
|
|
@media(max-width: @on_phone){ |
|
|
|
@media(max-width: @on_phone){ |
|
|
|
padding-left: @fontsize_base + @gap - 2px; |
|
|
|
padding-left: @iconW + @iconMargin; |
|
|
|
} |
|
|
|
} |
|
|
|
height: @height_navbar - @gap; |
|
|
|
|
|
|
|
line-height: @height_navbar - @gap; |
|
|
|
|
|
|
|
font-family: @fontfamily_base; |
|
|
|
|
|
|
|
border: none; |
|
|
|
|
|
|
|
border-radius: @border_radius_searchbar; |
|
|
|
border-radius: @border_radius_searchbar; |
|
|
|
background: fade(@theme_cardbg, 15%); |
|
|
|
background: fade(@theme_cardbg, 15%); |
|
|
|
box-sizing: border-box; |
|
|
|
|
|
|
|
-webkit-appearance: none; |
|
|
|
|
|
|
|
box-shadow: none; |
|
|
|
|
|
|
|
border: 1px dashed transparent; |
|
|
|
border: 1px dashed transparent; |
|
|
|
.enable-trans(); |
|
|
|
.set-placeholder({ |
|
|
|
~ .icon{ |
|
|
|
padding-top: 2px; |
|
|
|
color: fade(@color_text_in_header, 60%); |
|
|
|
color: fade(@color_text_in_header, 60%); |
|
|
|
} |
|
|
|
}); |
|
|
|
.set-placeholder({color: fade(@color_text_in_header, 60%)}); |
|
|
|
|
|
|
|
&:hover{ |
|
|
|
&:hover{ |
|
|
|
border: 1px dashed fade(@color_text_in_header, 60%); |
|
|
|
color: @color_text_in_header; |
|
|
|
|
|
|
|
border: 1px solid fade(@color_text_in_header, 60%); |
|
|
|
} |
|
|
|
} |
|
|
|
&:focus { |
|
|
|
&:focus { |
|
|
|
~ .icon{ |
|
|
|
~.icon{ |
|
|
|
color: @color_text_in_header; |
|
|
|
color: @color_text_in_header; |
|
|
|
} |
|
|
|
} |
|
|
|
color: @color_text_in_header; |
|
|
|
color: @color_text_in_header; |
|
|
|
border: 1px solid fade(@color_text_in_header, 60%); |
|
|
|
border: 1px solid @color_text_in_header; |
|
|
|
// .set-placeholder({color: @black}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -226,6 +225,12 @@ |
|
|
|
color: @theme_main; |
|
|
|
color: @theme_main; |
|
|
|
} |
|
|
|
} |
|
|
|
box-shadow: @boxshadow_card_normal; // 适合白色导航栏背景 |
|
|
|
box-shadow: @boxshadow_card_normal; // 适合白色导航栏背景 |
|
|
|
|
|
|
|
// box-shadow: none; |
|
|
|
|
|
|
|
// background: transparent; |
|
|
|
|
|
|
|
// .wrapper{ |
|
|
|
|
|
|
|
// background: @theme_cardbg; |
|
|
|
|
|
|
|
// box-shadow: @boxshadow_card_normal; // 适合白色导航栏背景 |
|
|
|
|
|
|
|
// } |
|
|
|
.menu{ |
|
|
|
.menu{ |
|
|
|
ul > li > a{ |
|
|
|
ul > li > a{ |
|
|
|
.enable-trans(); |
|
|
|
.enable-trans(); |
|
|
@ -254,23 +259,28 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.m_search { |
|
|
|
.m_search { |
|
|
|
|
|
|
|
.icon{ |
|
|
|
|
|
|
|
color: fade(@color_text_main, 60%); |
|
|
|
|
|
|
|
} |
|
|
|
.input { |
|
|
|
.input { |
|
|
|
color: @color_text_main; |
|
|
|
color: @color_text_main; |
|
|
|
background: @theme_background; |
|
|
|
background: @theme_background; |
|
|
|
~ .icon{ |
|
|
|
.set-placeholder({ |
|
|
|
color: fade(@color_text_main, 60%); |
|
|
|
color: fade(@color_text_main, 60%); |
|
|
|
} |
|
|
|
}); |
|
|
|
.set-placeholder({color: fade(@color_text_main, 60%)}); |
|
|
|
|
|
|
|
&:hover{ |
|
|
|
&:hover{ |
|
|
|
border: 1px dashed fade(@theme_main, 60%); |
|
|
|
~.icon{ |
|
|
|
|
|
|
|
color: fade(@theme_main, 80%); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
border: 1px solid fade(@theme_main, 60%); |
|
|
|
} |
|
|
|
} |
|
|
|
&:focus { |
|
|
|
&:focus { |
|
|
|
~ .icon{ |
|
|
|
~.icon{ |
|
|
|
color: @theme_main; |
|
|
|
color: @theme_main; |
|
|
|
} |
|
|
|
} |
|
|
|
color: @color_text_main; |
|
|
|
color: @color_text_main; |
|
|
|
background: fade(@theme_main, 15%); |
|
|
|
background: fade(@theme_main, 15%); |
|
|
|
border: 1px solid fade(@theme_main, 60%); |
|
|
|
border: 1px solid @theme_main; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -289,7 +299,7 @@ |
|
|
|
opacity:0; |
|
|
|
opacity:0; |
|
|
|
} |
|
|
|
} |
|
|
|
.m_search{ |
|
|
|
.m_search{ |
|
|
|
width: 100% - 1.5*@gap; |
|
|
|
width: ~"calc(100vw - 2*@{gap} - 2*@{iconW})"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|