跳转到内容

模板:首页/styles.css:修订间差异

来自高中题库
无编辑摘要
无编辑摘要
 
(未显示同一用户的1个中间版本)
第33行: 第33行:
     color: var(--color-link);
     color: var(--color-link);
     text-decoration: none;
     text-decoration: none;
     white-space: nowrap;
     white-space: normal;
}
}
@media (max-width: 480px) {
@media (max-width: 480px) {
第124行: 第124行:
.mw-parser-output {
.mw-parser-output {
     min-width: 0 !important;
     min-width: 0 !important;
}
@media (max-width: 450px) {
    .homepage-grid {
        grid-template-columns: 1fr !important;
    }
}
}

2026年1月16日 (五) 15:30的最新版本

@media (max-width: 700px) {
    .homepage-title-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}


.subject-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    padding: 0.6em 0;
}

.subject-item {
	display: flex;
    align-items: center;        /* ← 垂直居中 */
    border: 1px solid var(--border-color-base);
    border-radius: 8px;
    background: var(--background-color-base);
    overflow: hidden;
}

/* 让链接撑满整个卡片 */
.subject-item > a {
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.4em 0.6em;
    width: 100%;
    height: 100%;
    color: var(--color-link);
    text-decoration: none;
    white-space: normal;
}
@media (max-width: 480px) {
    .subject-item > a {
        padding: 0.4em 0.3em;
        gap: 0.3em;
    }
}


/* hover 效果 */
.subject-item:hover {
    background: var(--background-color-neutral-subtle);
}


.info-card {
    border: 1px solid var(--border-color-base);
    border-radius: 8px;
    padding: 0.8em 1em;
    background: var(--background-color-base);
    margin: 0;
}

.info-main-title {
    font-size: 1.35em;      /* 比 info-title 更大 */
    font-weight: bold;
    margin-bottom: 0.4em;
    display: flex;
    align-items: center;
    gap: 0.35em;
}


.info-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.4em;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.info-list {
    margin: 0.4em 0;
    padding-left: 1.2em;
}

.info-list li {
    margin: 0.3em 0;
}

.info-footer {
    margin-top: 0.6em;
}

/* 让 info-title 在前面有内容时自动增加上边距 */ 
.info-title:not(:first-child) { margin-top: 0.8em; }


.homepage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 1em;
    grid-auto-flow: dense;
}

@media (max-width: 480px) {
    .homepage-grid {
        grid-template-columns: 1fr !important;
    }
}


.homepage-dyk {
	background: var(--background-color-notice-subtle);
    border-left: 3px solid var(--border-color-base); /* 你要的竖线 */
    border-radius: 8px; /* 和 info-card 一样的圆角 */
    padding: 0.8em 1em; /* 和 info-card 一样的内边距 */
    white-space: revert !important;
}

.homepage-formula {
    display: block;
    width: 100%;
    white-space: normal;
    min-width: 0;
}

.mw-parser-output {
    min-width: 0 !important;
}

@media (max-width: 450px) {
    .homepage-grid {
        grid-template-columns: 1fr !important;
    }
}