MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 标签:已被回退 |
||
| 第28行: | 第28行: | ||
* { | * { | ||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
} | |||
.card { | |||
width: 300px; | |||
height: 200px; | |||
perspective: 1000px; | |||
} | |||
.card-inner { | |||
width: 100%; | |||
height: 100%; | |||
position: relative; | |||
transform-style: preserve-3d; | |||
transition: transform 0.999s; | |||
} | |||
.card:hover .card-inner { | |||
transform: rotateY(180deg); | |||
} | |||
.card-front, | |||
.card-back { | |||
position: absolute; | |||
width: 100%; | |||
height: 100%; | |||
backface-visibility: hidden; | |||
} | |||
.card-front { | |||
background-color: #6A2C70; | |||
color: #fff; | |||
display: flex; | |||
align-items: center; | |||
border: 10px solid #6A2C70; | |||
border-radius: 10px; | |||
justify-content: center; | |||
font-size: 24px; | |||
transform: rotateY(0deg); | |||
} | |||
.card-back { | |||
background-color: #F08A5D; | |||
color: #fff; | |||
display: flex; | |||
align-items: center; | |||
border: 10px solid #F08A5D; | |||
border-radius: 10px; | |||
justify-content: center; | |||
font-size: 24px; | |||
transform: rotateY(180deg); | |||
} | } | ||
2023年12月13日 (三) 12:21的版本
/* 这里放置的CSS将应用于所有皮肤 */
.mw-parser-output .home-card {
position: relative;
padding: 15px;
background: var(--color-surface-1);
border-radius: 8px;
box-shadow: 0 3px 6px rgb(0 0 0 / 4%), 0 3px 6px rgb(0 0 0 / 6%);
font-size: 0.875rem;
}
.mw-parser-output #home-content {
margin-top: 1.6rem;
}
.citizen-table-wrapper {
overflow-x: unset!important;
}
/* 人物介绍css */
@media screen and (max-width:767px){
.rwjj {
backdrop-filter: blur(3px);
}
.rwjj:active {
backdrop-filter: unset;
}
}
* {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.card {
width: 300px;
height: 200px;
perspective: 1000px;
}
.card-inner {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transition: transform 0.999s;
}
.card:hover .card-inner {
transform: rotateY(180deg);
}
.card-front,
.card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
}
.card-front {
background-color: #6A2C70;
color: #fff;
display: flex;
align-items: center;
border: 10px solid #6A2C70;
border-radius: 10px;
justify-content: center;
font-size: 24px;
transform: rotateY(0deg);
}
.card-back {
background-color: #F08A5D;
color: #fff;
display: flex;
align-items: center;
border: 10px solid #F08A5D;
border-radius: 10px;
justify-content: center;
font-size: 24px;
transform: rotateY(180deg);
}