Template:漫画总导航/styles.css

模板页面
.comic-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 12.5em);
    grid-template-rows: auto ;
    justify-content: space-between;
    justify-items: center;
    padding: 1em;
    align-items: center;
    margin-bottom: 1em;
    max-height: 30em;
    overflow: auto;
}

.comic-list p {
    display: none;
}

.comic-item {
    font-size: 1em;
    height: 2.5em;
    width: 12em;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: .4em;
    margin: 1em;
    margin-bottom: 0;
    transition: border-color .5s;
}

.comic-item:hover {
    border-color: var(--color-primary);
    transition: border-color .5s;
}

.comic-item a {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
}
.comic-item a:hover {
    text-decoration: none;
}

.comic-episode {
	width: 3.5em;
	text-align: center;
}

.comic-title{
    white-space: nowrap;
	flex: 1;
	text-overflow: ellipsis;
	overflow: hidden;
    font-size: .9em;
    padding-right: 1em;
	text-align: left;
}

@media screen and (max-width: 768px) {
    .comic-list {
        grid-template-columns: repeat(auto-fill, 4em);
    }
    .comic-item {
        width: 4em;
        height: 2.5em;
    }
    .comic-title {
        display: none;
    }
}

.navbox-list {
    display: block;
}