屏幕最小高度

This commit is contained in:
禺狨 2023-03-30 10:12:31 +08:00
parent c76557541b
commit c1b0bf28f7
6 changed files with 202 additions and 191 deletions

View File

@ -35,6 +35,24 @@ body {
min-height: 100vh; min-height: 100vh;
} }
.main-body {
width: 100%;
height: auto;
min-height: 900px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.container {
width: 1200px;
min-height: 900px;
height: auto;
margin: 0 auto;
display: flex;
flex-direction: column
}
h1 { h1 {
font-size: 3.2em; font-size: 3.2em;
line-height: 1.1; line-height: 1.1;
@ -221,13 +239,6 @@ h1 {
color: $primaryColor; color: $primaryColor;
} }
.container {
width: 1200px;
min-height: calc(100vh - 260px);
height: auto;
margin: 0 auto;
}
.login-box { .login-box {
.ant-btn { .ant-btn {
font-size: 18px !important; font-size: 18px !important;

View File

@ -8,7 +8,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
box-sizing: border-box; box-sizing: border-box;
padding: 24px; padding: 24px 24px 24px 24px;
.info { .info {
width: 720px; width: 720px;
height: 90px; height: 90px;

View File

@ -2,7 +2,7 @@
width: 1200px; width: 1200px;
height: auto; height: auto;
margin: 0 auto; margin: 0 auto;
margin-top: 50px; padding-top: 50px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
@ -133,7 +133,6 @@
gap: 24px; gap: 24px;
grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: repeat(3, minmax(0, 1fr));
position: relative; position: relative;
min-height: calc(100vh - 630px);
} }
.extra { .extra {

View File

@ -108,7 +108,8 @@ const IndexPage = () => {
}; };
return ( return (
<> <div className="main-body">
<div className="content">
<div className={styles["top-cont"]}> <div className={styles["top-cont"]}>
<div className={styles["top-item"]}> <div className={styles["top-item"]}>
<div className={styles["title"]}> <div className={styles["title"]}>
@ -299,8 +300,9 @@ const IndexPage = () => {
))} ))}
</div> </div>
)} )}
</div>
<div className={styles["extra"]}>{systemConfig.pcIndexFooterMsg}</div> <div className={styles["extra"]}>{systemConfig.pcIndexFooterMsg}</div>
</> </div>
); );
}; };

View File

@ -1,6 +1,5 @@
.content { .content {
width: 1200px; width: 1200px;
min-height: calc(100vh - 350px);
height: auto; height: auto;
margin: 0 auto; margin: 0 auto;
box-sizing: border-box; box-sizing: border-box;

View File

@ -26,7 +26,7 @@ const LatestLearnPage = () => {
}; };
return ( return (
<div> <div className="main-body">
<div className={styles["content"]}> <div className={styles["content"]}>
{loading && ( {loading && (
<Row style={{ width: 1200 }}> <Row style={{ width: 1200 }}>