更多操作
无编辑摘要 标签:手工回退 |
无编辑摘要 |
||
第13行: | 第13行: | ||
grid-auto-flow: row; | grid-auto-flow: row; | ||
grid-template-areas: | grid-template-areas: | ||
" | "News News Character-Select Character-Select Character-Select Editing-Tools Editing-Tools" | ||
"News News Character-Select Character-Select Character-Select Skullgirls-Wiki Skullgirls-Wiki" | "News News Character-Select Character-Select Character-Select Skullgirls-Wiki Skullgirls-Wiki" | ||
" | "Intro Intro Other-Wikis Other-Wikis Other-Wikis Video Video" | ||
" | "Intro Intro Steam-Link Steam-Link Steam-Link Featured-Article Featured-Article"; | ||
} | } | ||
} | } |
2024年11月4日 (一) 17:14的版本
/* 转自Dustloop This page was last edited on 25 October 2024, at 19:13. */
.main-container {
display: grid;
grid-gap: 0.625rem;
}
.news-container {
overflow-y: scroll;
}
@media (min-width: 900px) {
.main-container {
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
grid-template-rows: min-content min-content min-content min-content;
grid-auto-flow: row;
grid-template-areas:
"News News Character-Select Character-Select Character-Select Editing-Tools Editing-Tools"
"News News Character-Select Character-Select Character-Select Skullgirls-Wiki Skullgirls-Wiki"
"Intro Intro Other-Wikis Other-Wikis Other-Wikis Video Video"
"Intro Intro Steam-Link Steam-Link Steam-Link Featured-Article Featured-Article";
}
}
@media (max-width: 899px) {
.news-container {
max-height: 225px;
}
.main-container {
grid-template-columns: 1fr;
grid-auto-rows: minmax( 100px, auto );
grid-template-areas:
"Character-Select"
"Intro"
"Video"
"News"
"Skullgirls-Wiki"
"Other-Wikis"
"Featured-Article"
"Steam-Link"
"Editing-Tools";
}
}
.Character-Select { grid-area: Character-Select; }
.Intro {grid-area: Intro; }
.Editing-Tools { grid-area: Editing-Tools; }
.Skullgirls-Wiki { grid-area: Skullgirls-Wiki; }
.Other-Wikis { grid-area: Other-Wikis; }
.Steam-Link { grid-area: Steam-Link; }
.Video { grid-area: Video; }
.Featured-Article { grid-area: Featured-Article; }
.News { grid-area: News; }
@media only screen and (min-width: 601px) {
#home-content {
display: grid;
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
grid-auto-rows: minmax( 3rem, auto );
gap: var(--space-sm);
}
}
@media only screen and (max-width: 600px) {
#home-content {
display: grid;
grid-template-columns: 1fr;
grid-auto-rows: auto;
gap: var(--space-sm);
}
#home-content > div {
grid-column: span 1 !important;
grid-row: span 1 !important;
}
}
.home-grid-container {
position: relative;
}
.home-card-title-large {
width: 100%;
margin-bottom: 10px;
color: var(--color-base--emphasized);
font-size: 1.4rem;
font-weight: bold;
line-height: 1.4;
text-align: center;
border-bottom: 1px solid;
border-color: var(--border-color-base);
}
.home-card-title-large:not(:first-child) {
margin-top: 10px;
}
.home-grid--col1 { grid-template-columns: 1fr !important; }
.home-grid--col2 { grid-template-columns: 1fr 1fr !important; }
.home-grid--col3 { grid-template-columns: 1fr 1fr 1fr !important;}
.home-grid--col4 { grid-template-columns: 1fr 1fr 1fr 1fr !important; }
.home-grid--col5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important; }
.home-grid--col6 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr !important; }
.logo-nav-menu img {
width: auto;
height: auto;
max-width: 100%;
max-height: 175px;
}
.home-grid a.external {
background-image: none;
}
.home-card {
position: relative;
padding: 15px;
background: var( --color-surface-1 );
border-radius: var( --border-radius--medium );
box-shadow: var(--card-shadow-dlw);
}
.home-card table.timeline {
margin-top: 0.2rem;
}
.home-card-bottom-margin {
margin-bottom: 0.625rem;
}
.home-card--col1 {
grid-column: span 1;
}
.home-card--col2 {
grid-column: span 2;
}
.home-card--col3 {
grid-column: span 3;
}
.home-card--col4 {
grid-column: span 4;
}
.home-card--col5 {
grid-column: span 5;
}
.home-card--col6 {
grid-column: span 6;
}
.home-card--col7 {
grid-column: span 7;
}
.home-card--col8 {
grid-column: span 8;
}
.home-card--row1 {
grid-row: span 1;
}
.home-card--row2 {
grid-row: span 2;
}
.home-card--row3 {
grid-row: span 3;
}
.home-card--row4 {
grid-row: span 4;
}
.home-card--row5 {
grid-row: span 5;
}
.home-card--row6 {
grid-row: span 6;
}
.home-card--row7 {
grid-row: span 7;
}
.home-card--row8 {
grid-row: span 8 / auto;
}
.home-card__label {
color: var( --color-base--subtle );
font-size: 0.8125em;
letter-spacing: 0.75px;
}
h3.home-card__header {
margin-top: 0;
font-size: 1em;
}
.home-card__header a {
display: flex;
align-items: center;
justify-content: space-between;
}
.home-card__header a:after {
content: '▶';
font-size: 0.8125em;
}
.home-card__background {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #242a31;
border-radius: var(--border-radius--medium);
}
.home-card__background img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
.home-card__foreground {
position: absolute;
}
.home-card__foreground .home-card__label {
color: #bababa;
}
.home-card__foreground .home-card__header {
color: #fff;
}
.home-card p {
margin-top: 0.2rem;
}
.home-card--button {
overflow: hidden;
padding: 0;
background: #242a31;
position: relative;
}
.home-card--button a {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
padding: 0 15px;
background: transparent;
color: #fff;
font-weight: 500;
}
.home-card--button .home-card__background a {
padding: 0;
}
.home-card--button:hover {
box-shadow: var(--shadow-3);
transform: scale(1.02);
}
.home-link {
display: grid;
margin-top: 6px;
font-size: 0.875em;
font-weight: 500;
grid-gap: 6px;
text-align: center;
}
.home-link__button {
display: flex;
}
.home-link__button a {
height: 100%;
flex-grow: 1;
padding: 0.3rem 0.6rem;
background: var( --color-surface-2 );
border-radius: var(--border-radius--medium);
color: var( --color-base--emphasized );
box-shadow: var(--shadow-1);
display: flex;
justify-content: center;
}
.home-link__button a:hover {
background: var( --color-surface-2--hover );
box-shadow: var(--shadow-3);
transform: scale(1.02);
}
.home-link__button a:active {
background: var( --color-surface-2--active );
}
.home-link__button a:visited {
color: var( --color-base--emphasized );
}
.home-link__button a img {
align-self: center;
}
#home-content {
margin-top: 1.6rem;
}
.home-stats {
flex-grow: 1;
line-height: 1;
}
.home-stats__value {
font-size: 1.5rem;
font-weight: 600;
}
.home-stats__unit {
margin-top: 0.2rem;
color: var( --color-base--subtle );
font-size: 0.8125em;
}
#home-card-twitter, #home-card-youtube { padding: 5px 0; }
#home-card-twitter span, #home-card-youtube span { margin-left: 1em; }
#home-card-qq { background-color: #ea1c26; }
#home-card-ifdian { background-color: #a17aee; }
#home-card-bilibili { background-color: #20b0e3; }
#home-card-discord { background-color: #5865f2; }
#home-card-kofi { background-color: #ff5872; }
#home-card-twitter { background-color: #009df7; }
#home-card-youtube { background-color: #ff0000; }
#home-card-replay { background-color: #1f456E; }
#home-card-twitter a, #home-card-youtube a {
font-weight: bolder;
color: white;
}
#home-card-qq a::after, #home-card-ifdian a::after, #home-card-bilibili a::after, #home-card-discord a::after, #home-card-kofi a::after, #home-card-twitter a::after, #home-card-youtube a::after, #home-card-replay a::after {
display: none;
}
.home-footer {
font-size: 0.8125em;
font-family: monospace;
text-align: center;
}
#home-card-video {
position: relative;
}
#home-card-video > div {
border-radius: var( --border-radius--medium );
box-shadow: var(--card-shadow-dlw);
overflow: hidden;
padding: 0;
}
#home-card-video .embedvideo,
#home-card-video .embedvideo-wrapper,
#home-card-video .embedvideo-wrapper iframe {
width: 100% !important;
height: 100% !important;
}
#home-card-video > div img {
transition: transform 0.2s ease;
}
#home-card-video > div:hover img {
transform: scale(1.1);
}
.add-hover-effect, .add-hover-effect--2 {
overflow: visible;
}
.add-hover-effect img:hover {
transform: scale(1.05);
transition: all 200ms;
}
.add-hover-effect--2 div:hover img {
animation: rattle 0.25s 1 forwards;
}
.add-hover-effect .thumb, .add-hover-effect--2 .thumb {
overflow: visible;
}
@keyframes rattle {
0% { transform: rotate(0deg); }
25% { transform: rotate(3deg); }
30% { transform: rotate(0deg); }
50% { transform: rotate(-0.5deg); }
75% { transform: rotate(0deg); }
100% { transform: rotate(2deg); }
}
.character-links-button .home-link__button {
font-size: 1em;
font-weight: bolder;
}
.character-links-button .home-link__button a {
background-color: var(--color-destructive--hover);
}