i18n
xaoxuu 5 years ago
parent 167c26c3bd
commit f11baf42ba
  1. 2
      _config.yml
  2. 16
      source/less/_base.less

@ -2,7 +2,7 @@
info: info:
name: Material X name: Material X
docs: https://xaoxuu.com/wiki/material-x/ docs: https://xaoxuu.com/wiki/material-x/
cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.3/ cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.6/
############################### 主题样式 ############################### ############################### 主题样式 ###############################

@ -45,13 +45,11 @@ body {
.home-cover{ .home-cover{
top: 0; top: 0;
left: 0; left: 0;
width: 100%; max-width: 100%;
// height: 100vh - @height_navbar - @gap;
height: ~"calc(100vh - @{gap} - @{height_navbar})"; height: ~"calc(100vh - @{gap} - @{height_navbar})";
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: nowrap;
flex-direction: column; flex-direction: column;
// background: white;
margin-bottom: 2*@gap; margin-bottom: 2*@gap;
align-items: center; align-items: center;
align-self: center; align-self: center;
@ -59,9 +57,9 @@ body {
padding: @gap; padding: @gap;
.title, .logo{ .title, .logo{
font-size: @fontsize_h1*3; font-size: @fontsize_h1*3;
line-height: @fontsize_h1*3.2; line-height: @fontsize_h1*3.3;
margin-top: 30vh; margin-top: 28vh;
align-self: center; text-align: center;
font-weight: bold; font-weight: bold;
} }
.logo{ .logo{
@ -70,14 +68,14 @@ body {
} }
@media(max-width: @on_phone){ @media(max-width: @on_phone){
.title, .logo { .title, .logo {
margin-top: 24vh; margin-top: 20vh;
font-size: @fontsize_h1*2; font-size: @fontsize_h1*2;
line-height: @fontsize_h1*2.2; line-height: @fontsize_h1*2.2;
} }
} }
.m_search{ .m_search{
margin-top: 5vh; margin-top: 2vh;
position: relative; position: relative;
height: @height_navbar - @gap; height: @height_navbar - @gap;
width: 1.1*@width_sidebar; width: 1.1*@width_sidebar;

Loading…
Cancel
Save