EventList.css:修订间差异
来自卡厄思梦境WIKI
无编辑摘要 |
无编辑摘要 |
||
| 第7行: | 第7行: | ||
display: inline-block; | display: inline-block; | ||
margin-right: 10px; | margin-right: 10px; | ||
transition: min-height 0.3s ease-in-out; | |||
} | } | ||
| 第18行: | 第19行: | ||
border-radius: 0px 0px 8px 8px; | border-radius: 0px 0px 8px 8px; | ||
padding-bottom: 10px; | padding-bottom: 10px; | ||
transition: height 0.3s ease-in-out; | |||
} | } | ||
| 第64行: | 第66行: | ||
margin-bottom: 5px; | margin-bottom: 5px; | ||
cursor: pointer; | cursor: pointer; | ||
transition: | transition: all 0.3s ease; | ||
line-height: 20px; | line-height: 20px; | ||
position: relative; | |||
overflow: hidden; | |||
} | |||
/* 选项hover效果优化 */ | |||
.event-option::before { | |||
content: ''; | |||
position: absolute; | |||
top: 0; | |||
left: -100%; | |||
width: 100%; | |||
height: 100%; | |||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); | |||
transition: left 0.5s ease; | |||
} | |||
.event-option:hover::before { | |||
left: 100%; | |||
} | } | ||
.event-option:hover { | .event-option:hover { | ||
background-color: rgba(255, 255, 255, 0.4); | background-color: rgba(255, 255, 255, 0.4); | ||
transform: translateX(2px); | |||
} | } | ||
.event-option.active { | .event-option.active { | ||
background-color: rgba(255, 255, 255, 0.5); | background-color: rgba(255, 255, 255, 0.5); | ||
box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2); | |||
} | } | ||
.event-effect { | .event-effect { | ||
width: 345px; | width: 345px; | ||
color: | color: white; | ||
padding: 5px 10px; | padding: 5px 10px; | ||
margin-left: 10px; | margin-left: 10px; | ||
| 第87行: | 第109行: | ||
font-size: 14px; | font-size: 14px; | ||
line-height: 18px; | line-height: 18px; | ||
opacity: 0; | |||
transform: translateY(-10px); | |||
animation: fadeInDown 0.3s forwards; | |||
} | |||
/* 淡入动画 */ | |||
@keyframes fadeInDown { | |||
to { | |||
opacity: 1; | |||
transform: translateY(0); | |||
} | |||
} | |||
/* 淡出动画类 */ | |||
.event-effect.hiding { | |||
animation: fadeOutUp 0.3s forwards; | |||
} | |||
@keyframes fadeOutUp { | |||
to { | |||
opacity: 0; | |||
transform: translateY(-10px); | |||
} | |||
} | } | ||
2025年10月18日 (六) 12:49的版本
.event-container {
position: relative;
width: 375px;
height: auto;
min-height: 280px;
margin-bottom: 20px;
display: inline-block;
margin-right: 10px;
transition: min-height 0.3s ease-in-out;
}
.event-background {
position: absolute;
top: 160px;
left: 5px;
width: 365px;
min-height: 120px;
background-color: #343434;
border-radius: 0px 0px 8px 8px;
padding-bottom: 10px;
transition: height 0.3s ease-in-out;
}
.event-image {
position: absolute;
top: 0px;
left: 0px;
}
.event-title-bg {
position: absolute;
top: 135px;
left: 5px;
width: 365px;
height: 30px;
background-color: rgba(0, 0, 0, 0.3);
border-radius: 0px 0px 8px 8px;
}
.event-title {
position: absolute;
top: 140px;
left: 5px;
width: 365px;
height: 30px;
color: white;
text-align: center;
font-weight: bold;
}
.event-options {
position: absolute;
top: 170px;
left: 10px;
width: 365px;
}
.event-option {
width: 355px;
min-height: 30px;
color: white;
text-align: left;
padding: 5px 0px 5px 10px;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 4px;
margin-bottom: 5px;
cursor: pointer;
transition: all 0.3s ease;
line-height: 20px;
position: relative;
overflow: hidden;
}
/* 选项hover效果优化 */
.event-option::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s ease;
}
.event-option:hover::before {
left: 100%;
}
.event-option:hover {
background-color: rgba(255, 255, 255, 0.4);
transform: translateX(2px);
}
.event-option.active {
background-color: rgba(255, 255, 255, 0.5);
box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}
.event-effect {
width: 345px;
color: white;
padding: 5px 10px;
margin-left: 10px;
margin-bottom: 5px;
background-color: rgba(0, 0, 0, 0.4);
border-radius: 4px;
border-left: 3px solid #ffcc00;
font-size: 14px;
line-height: 18px;
opacity: 0;
transform: translateY(-10px);
animation: fadeInDown 0.3s forwards;
}
/* 淡入动画 */
@keyframes fadeInDown {
to {
opacity: 1;
transform: translateY(0);
}
}
/* 淡出动画类 */
.event-effect.hiding {
animation: fadeOutUp 0.3s forwards;
}
@keyframes fadeOutUp {
to {
opacity: 0;
transform: translateY(-10px);
}
}
/* 响应式布局 */
@media (max-width: 768px) {
.event-container {
width: 100%;
max-width: 375px;
margin-right: 0;
display: block;
margin: 0 auto 20px auto;
}
}