Template:首页/episodes/style.css:修订间差异

模板页面
(// Edit via Wikiplus)
无编辑摘要
第1行: 第1行:
body {
body {
overflow-x: hidden;
overflow-x: hidden;
}
}


.latest-item-episode {
.latest-item-episode {
font-size: .9em;
font-size: .9em;
}
}


.latest-item-info {
.latest-item-info {
padding: .6em;
padding: .6em;
white-space: nowrap;
white-space: nowrap;
}
}


.latest-item-info p {
.latest-item-info p {
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
}
}


.latest-item-more {
.latest-item-more {
width: 4em;
width: 4em;
height: 4em;
height: 4em;
border-radius: 999px;
border-radius: 999px;
text-align: center;
text-align: center;
}
}


.comic-header a img {
width: 10em;
height: 10em;
object-fit: cover;
}


.scroller-item {
.scroller-item {
flex-wrap: wrap;
flex-wrap: wrap;
display: flex;
display: flex;
margin: .8em;
margin: .8em;
width: 11em;
width: 11em;
height: 200px;
height: 200px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
border: 1px solid rgba(0, 0, 0, .12);
border: 1px solid rgba(0, 0, 0, .12);
border-radius: 4px;
border-radius: 4px;
transition: all .2s;
transition: all .2s;
}
}


.scroller-item:nth-child(1) {
margin-left: 5%;
}


.scroller-item:hover {
.scroller-item:hover {
border-color: var(--color-primary--hover);
border-color: var(--color-primary--hover);
transition: all .2s;
transition: all .2s;
}
}


.scroller-item-now {
.scroller-item-now {
border-color: var(--color-primary);
border-color: var(--color-primary);
transition: all .2s;
transition: all .2s;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 5px 8px rgba(0, 0, 0, 0.0975);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 5px 8px rgba(0, 0, 0, 0.0975);
}
}


.latest-item-more-text {
.latest-item-more-text {
width: 4em;
width: 4em;
height: 4em;
height: 4em;
line-height: 4em;
line-height: 4em;
}
}


.latest-item-click {
.latest-item-click {
position: absolute;
position: absolute;
}
}


.latest-item-click a img {
.latest-item-click a img {
width: 11em;
width: 11em;
height: 13em;
height: 13em;
opacity: 0;
opacity: 0;
}
}


.scroller {
.scroller {
position: relative;
position: relative;
}
}


#scroller-last-btn {
position: absolute;
top: 45%;
left: 7px;
}

#scroller-next-btn {
position: absolute;
top: 45%;
right: 7px;
}


@media screen and (max-width:768px) {
@media screen and (max-width:768px) {
.home-card--col2 {
.home-card--col2 {
grid-column: span 4;
grid-column: span 4;
}
}
@media screen and (max-width: 640px){
#scroller-last-btn,#scroller-next-btn{
pointer-events: none;
height: 200px;
width: 30px;
top: 27%;
background-color: rgba(255, 255, 255, 0.5);
box-shadow: none;
border: none;
transition: width .5s, transform .5s,opacity .2s;
display: flex;
align-items: center;
text-align: center;
}
#scroller-last-btn{
transform-origin: right;
border-radius:0 5px 5px 0;
}
#scroller-next-btn{
transform-origin: left;
border-radius:5px 0 0 5px;
}
}
}
}

.scroller-container {
.scroller-container {
height: 15em;
height: 18em;
display: flex;
display: flex;
flex-wrap: nowrap;
flex-wrap: nowrap;
flex-direction: row;
flex-direction: row;
align-items: center;
align-items: center;
overflow-x: auto;
overflow-x: auto;
width: 90%;
width: 90%;
overflow-y: hidden;
overflow-y: hidden;
margin: .8em;
margin: .8em;
margin-left: 5%;
margin-left: 5%;
}
}


.comic-header img {
.comic-header a img {
height: auto;
height: auto;
width: 10em;
width: 10em;
border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
object-fit: cover;
}
}


.scroller-item {
.scroller-item {
flex-wrap: wrap;
flex-wrap: wrap;
display: flex;
display: flex;
justify-content: left;
justify-content: left;
margin: .8em;
margin: .8em;
width: 10em;
width: 10em;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
border: 1px solid rgba(0, 0, 0, .12);
border: 1px solid rgba(0, 0, 0, .12);
border-radius: 4px;
border-radius: 4px;
transition: all .2s;
transition: all .2s;


}

.scroller-item:nth-child(1) {
margin-left: 5%;
}
}


.scroller-item:hover {
.scroller-item:hover {
border-color: var(--color-primary--hover);
border-color: var(--color-primary--hover);
transition: all .2s;
transition: all .2s;
}

.scroller-item-now {
border-color: #999;
transition: all .2s;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 5px 8px rgba(0, 0, 0, 0.0975);
}


.scroller-btn {
position: absolute;
display: block;
width: 2em;
height: 2em;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
border: 1px solid rgba(0, 0, 0, .12);
border-radius: 99px;
transition: all .2s;
line-height: 2em;
font-size: 1.2em;
background-color: #fff;
text-align: center;
user-select: none;
}

.scroller-btn:hover {
border-color: var(--color-primary--hover);
transition: all .2s;
}

#scroller-next-btn {
margin-left: 85%;
}
}

2024年2月17日 (六) 21:41的版本

body {
    overflow-x: hidden;
}

.latest-item-episode {
    font-size: .9em;
}

.latest-item-info {
    padding: .6em;
    white-space: nowrap;
}

.latest-item-info p {
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-item-more {
    width: 4em;
    height: 4em;
    border-radius: 999px;
    text-align: center;
}


.scroller-item {
    flex-wrap: wrap;
    display: flex;
    margin: .8em;
    width: 11em;
    height: 200px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 4px;
    transition: all .2s;
}

.scroller-item:nth-child(1) {
    margin-left: 5%;
}

.scroller-item:hover {
    border-color: var(--color-primary--hover);
    transition: all .2s;
}

.scroller-item-now {
    border-color: var(--color-primary);
    transition: all .2s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 5px 8px rgba(0, 0, 0, 0.0975);
}

.latest-item-more-text {
    width: 4em;
    height: 4em;
    line-height: 4em;
}

.latest-item-click {
    position: absolute;
}

.latest-item-click a img {
    width: 11em;
    height: 13em;
    opacity: 0;
}

.scroller {
    position: relative;
}

#scroller-last-btn {
    position: absolute;
    top: 45%;
    left: 7px;
}

#scroller-next-btn {
    position: absolute;
    top: 45%;
    right: 7px;
}

@media screen and (max-width:768px) {
    .home-card--col2 {
        grid-column: span 4;
    }
}
@media screen and (max-width: 640px){
  #scroller-last-btn,#scroller-next-btn{
    pointer-events: none;  
    height: 200px;
    width: 30px;
    top: 27%;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    border: none;
    transition: width .5s, transform .5s,opacity .2s;
    display: flex;  
	align-items: center;
	text-align: center;
  }
  #scroller-last-btn{
  	transform-origin: right;
  	border-radius:0 5px 5px 0;
  }
  #scroller-next-btn{
  	transform-origin:  left;
  	border-radius:5px 0 0 5px;
  }
}
.scroller-container {
    height: 18em;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    width: 90%;
    overflow-y: hidden;
    margin: .8em;
    margin-left: 5%;
}

.comic-header a img {
    height: auto;
    width: 10em;
    border-radius: 4px 4px 0 0;
    object-fit: cover;
}

.scroller-item {
    flex-wrap: wrap;
    display: flex;
    justify-content: left;
    margin: .8em;
    width: 10em;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 4px;
    transition: all .2s;

}

.scroller-item:nth-child(1) {
    margin-left: 5%;
}

.scroller-item:hover {
    border-color: var(--color-primary--hover);
    transition: all .2s;
}

.scroller-item-now {
    border-color: #999;
    transition: all .2s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 5px 8px rgba(0, 0, 0, 0.0975);
}


.scroller-btn {
    position: absolute;
    display: block;
    width: 2em;
    height: 2em;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 99px;
    transition: all .2s;
    line-height: 2em;
    font-size: 1.2em;
    background-color: #fff;
    text-align: center;
    user-select: none;
}

.scroller-btn:hover {
    border-color: var(--color-primary--hover);
    transition: all .2s;
}

#scroller-next-btn {
    margin-left: 85%;
}