模板:GINKA/style.css
来自EaseCation Wiki
更多操作
/* 手机PC布局优化自适应 */
.content-wrapper {
overflow: auto;
}
.text-content {
margin-right: 20px;
}
.table-content {
margin-bottom: 20px;
}
@media screen and (min-width: 768px) {
.text-content {
float: left;
width: 50%;
}
.table-content {
float: right;
width: 40%;
margin-right: 30px;
}
}
@media screen and (max-width: 767px) {
.text-content,
.table-content {
float: none;
width: 100%;
}
.table-content {
margin-bottom: 20px;
}
}
/* 模板NewInfoBox */
.info {
display: flex;
width: 100%;
max-width: 780px;
margin: 15px auto;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.info-sidebar {
width: 20px;
background: var(--sidebar-color, brown); /* 使用传入的颜色,默认棕色 */
}
.info-image {
width: 60px;
flex-shrink: 0; /* 防止图片被压缩 */
background: var(--image-bg, #F9F5F0);
display: flex;
align-items: center;
justify-content: center;
}
.info-image img {
max-width: 100%;
height: auto;
border-radius: 4px;
}
.info-content {
flex: 1;
padding: 12px 15px;
background: var(--content-bg, #F9F5F0); /* 使用传入的背景色,默认浅米色 */
position: relative;
}
.info-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 1px;
color: black;
}
.info-description {
font-size: 14px;
color: #333;
line-height: 1;
}
.info-watermark {
position: absolute;
right: 15px;
top: 48px;
transform: translateY(-50%);
font-size: 78px;
font-weight: 600; /* 修正为标准值 */
color: #1a3e8c;
opacity: 0.15;
z-index: 0;
white-space: nowrap; /* 防止换行 */
overflow: hidden; /* 隐藏溢出内容 */
text-overflow: ellipsis;
max-width: calc(100% - 30px); /* 限制宽度,留出 padding 空间 */
}
@media (max-width: 600px) {
.info-watermark {
display: none;
}
}
/* 一个超级无敌好看的框框和按钮 */
.guide-font {
font-family: 'Arial', 'PingFang SC', sans-serif;
max-width: 900px;
margin: 0 auto;
padding: 20px;
}
.card {
background: #f9f9f9;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
padding: 20px;
margin-bottom: 20px;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.5s ease forwards;
}
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
.card h2 {
color: #2c3e50;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}
.button {
display: inline-block;
background: #3498db;
color: white;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
transition: background 0.3s ease;
}
.button:hover {
background: #2980b9;
}
.card ul {
list-style-type: disc;
margin-left: 20px;
}
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }
.nav-card__background img {
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
}
@media (min-width: 768px) {
.nav-grid--featured {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: minmax(150px, auto);
grid-gap: 1rem;
}
.nav-grid--featured .nav-card {
aspect-ratio: 16 / 9;
min-width: 200px;
}
.nav-grid--featured .nav-card__background img {
object-fit: cover;
}
}
.nav-grid {
display: grid;
grid: auto-flow dense / repeat(auto-fit, minmax(9.375rem, 1fr));
grid-auto-rows: minmax(3rem, auto);
grid-gap: 0.625rem;
}
#nav-nav {
margin-top: 0.8rem;
}
.nav-card {
position: relative;
padding: 15px;
background: var(--color-surface-1);
border-radius: 8px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
font-size: 0.875rem;
}
.nav-card__background {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #242a31;
border-radius: 8px;
}
.nav-card__background:after {
position: absolute;
pointer-events: none;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
background: linear-gradient(to right, #000, transparent);
content: "";
}
.nav-card__foreground {
pointer-events: none;
height: 100%;
width: 100%;
display: flex;
align-items: center;
padding: 0 15px;
color: #fff;
font-weight: 500;
}
.nav-card--button {
overflow: hidden;
padding: 0;
border: 0;
}
.nav-card--button a {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
padding: 0 var(--space-md);
background: transparent;
color: #fff;
font-weight: var(--font-weight-medium);
}
.nav-card--button img {
transition: transform 250ms ease;
}
.nav-card--button:hover img {
transform: scale(1.1);
}