MediaWiki:Equipment.css
来自卡厄思梦境WIKI
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
.equipment-manager {
max-width: 1200px;
margin: 20px auto;
font-family: sans-serif;
}
.eq-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid #0645ad;
}
.eq-header h2 {
margin: 0;
color: #0645ad;
}
.eq-btn {
display: inline-block;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
text-align: center;
transition: all 0.3s;
user-select: none;
}
.eq-btn-primary {
background-color: #0645ad;
color: white;
}
.eq-btn-primary:hover {
background-color: #0b0080;
}
.eq-btn-secondary {
background-color: #f8f9fa;
color: #202122;
border: 1px solid #a2a9b1;
}
.eq-btn-secondary:hover {
background-color: #e9ecef;
}
/* 表格样式 */
.eq-table {
border: 1px solid #a2a9b1;
border-radius: 4px;
overflow: hidden;
background: white;
}
.eq-table-header {
display: flex;
background-color: #eaecf0;
font-weight: bold;
border-bottom: 2px solid #a2a9b1;
}
.eq-table-row {
display: flex;
border-bottom: 1px solid #eaecf0;
}
.eq-table-row:hover {
background-color: #f8f9fa;
}
.eq-table-row:last-child {
border-bottom: none;
}
.eq-cell {
padding: 12px;
flex: 1;
min-width: 0;
word-wrap: break-word;
}
.eq-cell:nth-child(1) {
flex: 0 0 60px;
}
.eq-cell:nth-child(2) {
flex: 2;
}
.eq-cell:nth-child(3) {
flex: 0 0 80px;
}
.eq-cell:nth-child(4) {
flex: 0 0 80px;
}
.eq-cell:nth-child(5) {
flex: 0 0 80px;
}
.eq-cell:nth-child(6) {
flex: 2;
}
.eq-cell:nth-child(7) {
flex: 0 0 120px;
}
/* 稀有度颜色 */
.eq-rarity-蓝 {
color: #0645ad;
font-weight: bold;
}
.eq-rarity-紫 {
color: #8b00ff;
font-weight: bold;
}
.eq-rarity-橙 {
color: #ff8c00;
font-weight: bold;
}
/* 操作链接 */
.eq-actions {
display: flex;
gap: 10px;
}
.eq-link {
color: #0645ad;
cursor: pointer;
text-decoration: underline;
}
.eq-link:hover {
color: #0b0080;
}
.eq-delete {
color: #d33;
}
.eq-delete:hover {
color: #a00;
}
/* 模态框 */
.eq-modal {
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
}
.eq-modal-content {
background-color: #fefefe;
margin: 5% auto;
width: 90%;
max-width: 600px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.eq-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid #eaecf0;
}
.eq-modal-header h3 {
margin: 0;
color: #0645ad;
}
.eq-close {
color: #a2a9b1;
font-size: 28px;
font-weight: bold;
cursor: pointer;
line-height: 1;
}
.eq-close:hover {
color: #000;
}
.eq-modal-body {
padding: 20px;
}
/* 表单样式 */
.eq-form-group {
margin-bottom: 20px;
}
.eq-form-group label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #202122;
}
.eq-input {
width: 100%;
padding: 8px 12px;
border: 1px solid #a2a9b1;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
}
.eq-input:focus {
outline: none;
border-color: #0645ad;
box-shadow: 0 0 0 1px #0645ad;
}
.eq-input:disabled {
background-color: #f8f9fa;
color: #72777d;
}
.eq-textarea {
width: 100%;
padding: 8px 12px;
border: 1px solid #a2a9b1;
border-radius: 4px;
font-size: 14px;
font-family: monospace;
box-sizing: border-box;
resize: vertical;
}
.eq-textarea:focus {
outline: none;
border-color: #0645ad;
box-shadow: 0 0 0 1px #0645ad;
}
/* 单选按钮组 */
.eq-radio-group {
display: flex;
gap: 20px;
}
.eq-radio-group label {
display: flex;
align-items: center;
font-weight: normal;
cursor: pointer;
}
.eq-radio-group input[type="radio"] {
margin-right: 6px;
cursor: pointer;
}
/* 表单操作按钮 */
.eq-form-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eaecf0;
}
/* 代码区域 */
.eq-code-section {
margin-top: 40px;
padding: 20px;
background-color: #f8f9fa;
border-radius: 8px;
border: 1px solid #a2a9b1;
}
.eq-code-section h3 {
margin-top: 0;
margin-bottom: 15px;
color: #0645ad;
}
.eq-code-box {
background-color: #ffffff;
border: 1px solid #a2a9b1;
border-radius: 4px;
padding: 15px;
font-family: 'Courier New', Courier, monospace;
font-size: 13px;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 400px;
overflow-y: auto;
margin-bottom: 15px;
color: #202122;
}
#eq-copy-code {
display: inline-block;
}
/* 响应式设计 */
@media (max-width: 768px) {
.equipment-manager {
margin: 10px;
}
.eq-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.eq-table-header {
display: none;
}
.eq-table-row {
flex-direction: column;
padding: 10px;
}
.eq-cell {
padding: 5px 0;
flex: none !important;
min-width: 100% !important;
}
.eq-cell:before {
content: attr(data-label);
font-weight: bold;
display: inline-block;
width: 100px;
}
.eq-modal-content {
width: 95%;
margin: 10% auto;
}
.eq-radio-group {
flex-direction: column;
gap: 10px;
}
.eq-form-actions {
flex-direction: column;
}
.eq-btn {
width: 100%;
}
}
/* 加载动画 */
.eq-loading {
text-align: center;
padding: 40px;
color: #72777d;
}
.eq-loading:after {
content: '...';
animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
0%, 20% {
content: '.';
}
40% {
content: '..';
}
60%, 100% {
content: '...';
}
}
/* 空状态 */
.eq-empty {
text-align: center;
padding: 60px 20px;
color: #72777d;
}
.eq-empty-icon {
font-size: 48px;
margin-bottom: 10px;
opacity: 0.5;
}
/* 通知样式增强 */
.equipment-manager .mw-notification {
border-radius: 4px;
}