MediaWiki:EventList.css
来自卡厄思梦境WIKI
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 事件模块样式 */
.event-container {
position: relative;
width: 375px;
height: auto;
min-height: 270px;
margin-bottom: 20px;
display: inline-block;
margin-right: 10px;
}
.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;
}
.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: background-color 0.3s;
line-height: 20px;
}
.event-option:hover {
background-color: rgba(255, 255, 255, 0.4);
}
.event-option.active {
background-color: rgba(255, 255, 255, 0.5);
}
.event-effect {
width: 345px;
color: #ffcc00;
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;
}
/* 响应式布局 */
@media (max-width: 768px) {
.event-container {
width: 100%;
max-width: 375px;
margin-right: 0;
display: block;
margin: 0 auto 20px auto;
}
}