MediaWiki:Event.css
来自卡厄思梦境WIKI
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 事件管理器样式 */
.event-manager {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.event-toolbar {
margin-bottom: 20px;
padding: 15px;
background: #f8f9fa;
border-radius: 5px;
}
.event-toolbar button {
margin-right: 10px;
padding: 8px 16px;
background: #36c;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
.event-toolbar button:hover {
background: #2a4b8d;
}
.event-list {
background: white;
border: 1px solid #a2a9b1;
border-radius: 5px;
padding: 10px;
}
.event-item {
padding: 10px;
margin-bottom: 10px;
background: #f8f9fa;
border: 1px solid #e1e4e8;
border-radius: 3px;
cursor: pointer;
transition: background 0.2s;
}
.event-item:hover {
background: #eaecf0;
}
.event-item.selected {
background: #def;
border-color: #36c;
}
.event-item-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.event-item-title {
font-weight: bold;
font-size: 1.1em;
}
.event-item-meta {
display: flex;
gap: 10px;
margin-top: 5px;
font-size: 0.9em;
color: #666;
}
.event-form {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
border: 2px solid #36c;
border-radius: 5px;
padding: 20px;
width: 90%;
max-width: 800px;
max-height: 80vh;
overflow-y: auto;
z-index: 1000;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.event-form.active {
display: block;
}
.event-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 999;
}
.event-overlay.active {
display: block;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 8px;
border: 1px solid #a2a9b1;
border-radius: 3px;
font-size: 14px;
}
.form-group textarea {
min-height: 60px;
resize: vertical;
}
.checkbox-group {
display: flex;
flex-wrap: wrap;
gap: 15px;
}
.checkbox-group label {
display: flex;
align-items: center;
font-weight: normal;
}
.checkbox-group input[type="checkbox"] {
width: auto;
margin-right: 5px;
}
.options-container,
.effects-container {
border: 1px solid #a2a9b1;
padding: 10px;
border-radius: 3px;
margin-top: 10px;
}
.option-item,
.effect-item {
display: flex;
gap: 10px;
margin-bottom: 10px;
align-items: flex-start;
}
.option-number {
font-weight: bold;
padding-top: 8px;
min-width: 30px;
}
.effect-controls {
display: flex;
gap: 5px;
margin-bottom: 5px;
}
.text-format-btn {
padding: 4px 8px;
background: #ff6600;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
font-size: 12px;
}
.text-format-btn:hover {
background: #cc5200;
}
.form-buttons {
margin-top: 20px;
display: flex;
justify-content: flex-end;
gap: 10px;
}
.btn-save {
background: #00af89;
}
.btn-save:hover {
background: #008a6d;
}
.btn-cancel {
background: #666;
}
.btn-cancel:hover {
background: #555;
}
.btn-delete {
background: #d33;
}
.btn-delete:hover {
background: #b22;
}
.output-container {
margin-top: 20px;
padding: 15px;
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 5px;
}
.output-container h3 {
margin-top: 0;
}
.output-container pre {
background: white;
padding: 10px;
border: 1px solid #e1e4e8;
border-radius: 3px;
overflow-x: auto;
}
.copy-btn {
margin-top: 10px;
padding: 8px 16px;
background: #36c;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
.copy-btn:hover {
background: #2a4b8d;
}