MediaWiki:Common.css:修订间差异

Baneq​(留言 | 贡献)
无编辑摘要
标签:已被回退
Baneq​(留言 | 贡献)
无编辑摘要
标签:已被回退
第1行: 第1行:
/* Noblecraft homepage polish. Append after the current homepage CSS in MediaWiki:Common.css */
/* Noblecraft homepage recovery polish.
 
  Append this at the very bottom of MediaWiki:Common.css after removing broken test rules. */
/* Keep polish scoped to the existing homepage pieces. */
.nc-stage,
.nc-cards {
max-width: 1180px;
margin-left: auto;
margin-right: auto;
}


.nc-mascot {
.nc-mascot {
第21行: 第14行:
}
}


/* A compact intro panel for the current homepage text area. */
.nc-home-intro {
.nc-home-intro {
max-width: 1180px;
max-width: 1180px;
第72行: 第64行:
}
}


/* Make the original four-card layout feel more deliberate. */
.nc-cards {
.nc-cards {
display: grid !important;
display: flex !important;
grid-template-columns: repeat(4, minmax(0, 1fr));
flex-wrap: wrap !important;
gap: 16px;
align-items: stretch !important;
margin-top: 18px;
gap: 16px !important;
align-items: stretch;
max-width: 1180px;
margin: 18px auto 0 !important;
}
}


.nc-card {
.nc-card {
position: relative;
flex: 1 1 230px !important;
min-width: 230px;
min-width: 230px;
min-height: 520px;
min-height: 520px;
border-color: rgba(225,229,234,.95);
align-self: stretch !important;
overflow: hidden;
overflow: hidden;
align-self: stretch;
}
}


第94行: 第85行:
}
}


.nc-card::after {
@media (max-width: 760px) {
content: "";
.nc-mascot img {
position: absolute;
max-width: min(360px, 86vw);
left: 0;
}
right: 0;
.nc-home-intro {
padding: 16px;
}
.nc-home-intro h2 {
font-size: 1.22rem;
}
.nc-card {
min-width: 100%;
}
}