测试:卡片测试:修订间差异

来自EaseCation Wiki
无编辑摘要
标签
无编辑摘要
标签
第1行: 第1行:
<!-- Nav -->
<!-- Nav -->
<div class="home-grid home-button">
<div class="nav-grid nav-button">
<div class="home-card home-card--button">
<div class="nav-card nav-card--button">
<div class="home-card__background">[[文件:Cardbg.jpg|300px|link=易什春秋]]</div>
<div class="nav-card__background">[[文件:Cardbg.jpg|300px|link=易什春秋]]</div>
<div class="home-card__foreground home-card__navimgtext">了解我们</div>
<div class="nav-card__foreground nav-card__navimgtext">了解我们</div>
</div>
</div>
<div class="home-card home-card--button">
<div class="nav-card nav-card--button">
<div class="home-card__background">[[文件:Cardbg.jpg|300px|link=游戏列表]]</div>
<div class="nav-card__background">[[文件:Cardbg.jpg|300px|link=游戏列表]]</div>
<div class="home-card__foreground home-card__navimgtext">游戏列表</div>
<div class="nav-card__foreground nav-card__navimgtext">游戏列表</div>
</div>
</div>
<div class="home-card home-card--button">
<div class="nav-card nav-card--button">
<div class="home-card__background">[[文件:Cardbg.jpg|300px|link=Category:玩家攻略]]</div>
<div class="nav-card__background">[[文件:Cardbg.jpg|300px|link=Category:玩家攻略]]</div>
<div class="home-card__foreground home-card__navimgtext">玩家攻略</div>
<div class="nav-card__foreground nav-card__navimgtext">玩家攻略</div>
</div>
</div>
<div class="home-card home-card--button">
<div class="nav-card nav-card--button">
<div class="home-card__background">[[文件:Cardbg.jpg|300px|link=EaseCation_Wiki:人文关怀]]</div>
<div class="nav-card__background">[[文件:Cardbg.jpg|300px|link=EaseCation_Wiki:人文关怀]]</div>
<div class="home-card__foreground home-card__navimgtext">人文关怀</div>
<div class="nav-card__foreground nav-card__navimgtext">人文关怀</div>
</div>
</div>
</div>
</div>
<!-- CSS -->
<!-- CSS -->
{{#CSS:
{{#CSS:
.home-card {
.nav-card {
position: relative;
position: relative;
padding: 15px;
padding: 15px;
/*margin-bottom: 10px;*/
background: var( --color-surface-1 );
background: var( --color-surface-1 );
border-radius: 15px;
border-radius: 15px;
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 );
font-size: 0.875rem;
font-size: 0.875rem;
}
}


#home-nav {
.nav-card__background:after {
margin-top: 0.8rem;
position: absolute;
}
pointer-events: none;
 
#home-nav .home-card__background:after {
position: absolute;
pointer-events: none;
     top: 0;
     top: 0;
     right: 0;
     right: 0;
第46行: 第41行:
}
}


#home-nav .home-card__foreground {
.nav-card__foreground {
     pointer-events: none;
     pointer-events: none;
height: 100%;
height: 100%;
     width: 100%;
     width: 100%;
     display: flex;
     display: flex;
第58行: 第53行:




.home-card__navimgtext {
.nav-card__navimgtext {
pointer-events: none;
pointer-events: none;
height: 100%;
height: 100%;
width: 100%;
width: 100%;
display: flex;
display: flex;
align-items: center;
align-items: center;
padding: 0 15px;
padding: 0 15px;
color: #fff;
color: #fff;
font-weight: 500;
font-weight: 500;
}
 
.nav-card__background {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #242a31;
border-radius: 15px;
}
 
.nav-card__background img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
 
.nav-card__foreground {
position: absolute;
}
 
.nav-card p {
margin-top: 0.2rem;
font-size: 0.875rem;
}
 
.nav-card.nav-card--button {
overflow: hidden;
padding: 0;
background: #242a31;
}
 
.nav-card--button a {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
padding: 0 15px;
background: transparent;
color: #fff;
font-weight: 500;
}
 
.nav-card--button .nav-card__background a {
padding: 0;
}
 
.nav-card--button img {
transition: transform 0.3s ease;
}
 
.nav-card--button:hover img {
transform: scale(1.05);
}
 
.card-button {
background: var( --color-base );
border-radius: 0 0 var( --border-radius--medium ) var( --border-radius--medium );
transition: opacity 0.2s ease;
}
 
.card-button:hover {
opacity: 0.8;
}
}
.home-card__background {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #242a31;
border-radius: 15px;
}


.home-card__background img {
.card-button a {
width: 100%;
display: block;
height: 100%;
padding: 0.6rem;
object-fit: cover;
/* Cancel out a styles */
object-position: center;
background: none !important;
}
color: #fff!important;
font-size: 0.875rem;
.home-card__foreground {
font-weight: 600;
position: absolute;
letter-spacing: 0.25px;
}
text-align: center;
transition: background 0.2s ease, color 0.2s ease;
.home-card p {
}
margin-top: 0.2rem;
font-size: 0.875rem;
}
.home-card.home-card--button {
overflow: hidden;
padding: 0;
background: #242a31;
}
.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 img {
transition: transform 0.3s ease;
}
.home-card--button:hover img {
transform: scale(1.05);
}
.card-button {
background: var( --color-base );
border-radius: 0 0 var( --border-radius--medium ) var( --border-radius--medium );
transition: opacity 0.2s ease;
}
.card-button:hover {
opacity: 0.8;
}
.card-button a {
display: block;
padding: 0.6rem;
/* Cancel out a styles */
background: none !important;
color: #fff!important;
font-size: 0.875rem;
font-weight: 600;
letter-spacing: 0.25px;
text-align: center;
transition: background 0.2s ease, color 0.2s ease;
}
/* grid 排版 */
/* grid 排版 */
.home-grid {
.nav-grid {
display: grid;
display: grid;
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
第157行: 第152行:
.home-grid a.external {
.nav-grid a.external {
background-image: none;
background-image: none;
}
}
}}
}}

2024年4月5日 (五) 14:45的版本