模板:Index2026/Links/style.css
来自EaseCation Wiki
更多操作
.links-container {
display: flex;
gap: 10px; /* 中间间隔20px */
width: 100%;
box-sizing: border-box;
margin-top: 10px;
height: auto;
font-size: 16px;
}
.links-1 {
background-color: rgba(230, 0, 0, 0.1);
backdrop-filter: blur(10px); /* 背景模糊效果 */
border-radius: 10px;
flex: 2;
padding: 15px;
box-sizing: border-box; /* 确保padding不会增加总宽度 */
border: 1px solid rgba(0, 0, 0, 0.05); /* 淡色描边 */
}
.links-2 {
background-color: rgba(72, 255, 0, 0.1);
backdrop-filter: blur(10px); /* 背景模糊效果 */
border-radius: 10px;
flex: 4;
padding: 15px;
box-sizing: border-box; /* 确保padding不会增加总宽度 */
border: 1px solid rgba(0, 0, 0, 0.05); /* 淡色描边 */
}
.links-title {
font-weight: bold;
margin-bottom: 10px;
font-size: 1.2em;
}
.links-subtitle {
font-weight: bold;
font-size: 1em;
margin-left: 4px;
}
.links-texts {
font-size: 16px;
}
.links-flex-container {
display: flex;
width: 100%;
box-sizing: border-box;
}
.links-flex1 {
flex: 1;
}
.links-flex2 {
flex: 1;
}
.links-flex3 {
flex: 1;
}
.links-flex4 {
flex: 2;
}
@media (max-width: 768px) {
.links-container, .links-flex-container {
flex-direction: column;
height: auto;
}
.links-left {
width: 100%;
min-height: 180px;
}
.links-flex-container {
flex-direction: column;
gap: 10px;
}
.links-flex1, .links-flex2, .links-flex3, .links-flex4 {
flex: none;
width: 100%;
}
.links-texts {
font-size: 14px;
}
.links-title {
font-size: 16px;
}
.links-subtitle {
font-size: 16px;
}
}