Template:漫画总导航/styles.css:修订间差异

模板页面
(创建页面,内容为“.comic-list { display: grid; grid-template-columns: repeat(auto-fill, 12em); grid-template-rows: auto ; justify-content: space-between; justify-items: center; overflow: hidden; padding: .1em; align-items: center } .comic-list p { display: none; } .comic-item { display: flex; font-size: 1em; height: 2.5em; width: 12em; background-color: #fff; border: 1px solid rgba(0, 0, 0, .12); border-radius: 3p…”)
 
(移除前一编辑引入的多余规则)
 
(未显示3个用户的23个中间版本)
第1行: 第1行:
.comic-list {
.comic-list {
display: grid;
display: grid;
grid-template-columns: repeat(auto-fill, 12em);
grid-template-columns: repeat(auto-fill, 12.5em);
grid-template-rows: auto ;
grid-template-rows: auto ;
justify-content: space-between;
justify-content: space-between;
justify-items: center;
justify-items: center;
overflow: hidden;
padding: 1em;
padding: .1em;
align-items: center;
align-items: center
margin-bottom: 1em;
max-height: 30em;
overflow: auto;
}
}


第15行: 第17行:


.comic-item {
.comic-item {
display: flex;
font-size: 1em;
font-size: 1em;
height: 2.5em;
height: 2.5em;
第21行: 第22行:
background-color: #fff;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, .12);
border: 1px solid rgba(0, 0, 0, .12);
border-radius: 3px;
border-radius: .4em;
align-items: center;
cursor: pointer;
margin: 1em;
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 {
.comic-episode {
display: flex;
width: 3.5em;
text-align: center;
padding-left: 1em;
padding-right: 1em;
background-color: #fff;
}
}


.comic-title{
.comic-title{
position: relative;
white-space: nowrap;
white-space: nowrap;
flex: 1;
flex: 1;
第41行: 第54行:
overflow: hidden;
overflow: hidden;
font-size: .9em;
font-size: .9em;
padding-right: .4em;
padding-right: 1em;
text-align: left;
}
}


@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
.comic-list {
.comic-list {
grid-template-columns: repeat(auto-fill, 5em);
grid-template-columns: repeat(auto-fill, 4em);
}
}

.comic-item {
.comic-item {
justify-content: center;
width: 4em;
width: 4em;
height: 2.5em;
height: 2.5em;
}
}

.comic-title {
.comic-title {
display: none;
display: none;

2024年5月5日 (日) 05:47的最新版本

.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;
}