添加主页拉取逻辑,改善主页结构,加入简易的媒体查询

This commit is contained in:
2021-07-31 17:50:48 +08:00
parent bbfc03f947
commit a1386d8870
7 changed files with 165 additions and 55 deletions

View File

@@ -15,24 +15,36 @@
right: 40px;
bottom: 20px;
}
.message {
width: calc(50% - 60px);
margin-top: 30px;
/* 这里的卡片和分栏结构就比较接近bootstrap了可惜视觉做的太古板如果愿意的话改成Material Design就更好了 */
.split-lg > .card {
width: 440px;
flex-shrink: 0;
margin: 0 5px;
}
.container {
display: flex;
width: 1000px;
margin: 0 auto;
justify-content: space-between;
}
.cut-line {
display: flex;
height: 1px;
width: 100%;
background-color: #e6e6e6;
}
.little-title {
.card-header {
padding: .75em .5em;
font-size: 18px;
border-bottom: 1px solid #e6e6e6;
}
.card-center {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.card-body {
padding: 10px;
}
.split-lg {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
@media (max-width: 980px) {
.split-lg > .card {
width: 100%;
margin-bottom: 20px;
}
}