MediaWiki

Equipment.css:修订间差异

来自卡厄思梦境WIKI

律Rhyme留言 | 贡献
创建页面,内容为“.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…”
 
律Rhyme留言 | 贡献
无编辑摘要
 
(未显示同一用户的4个中间版本)
第2行: 第2行:
     max-width: 1200px;
     max-width: 1200px;
     margin: 20px auto;
     margin: 20px auto;
    padding: 20px;
     font-family: sans-serif;
     font-family: sans-serif;
}
}


.eq-header {
.equipment-title {
     display: flex;
     font-size: 24px;
    justify-content: space-between;
     font-weight: bold;
     align-items: center;
     margin-bottom: 10px;
     margin-bottom: 20px;
     color: #333;
     padding-bottom: 15px;
    border-bottom: 2px solid #0645ad;
}
}


.eq-header h2 {
.equipment-stats {
     margin: 0;
     font-size: 14px;
     color: #0645ad;
     color: #666;
    margin-bottom: 20px;
}
}


.eq-btn {
.equipment-button {
     display: inline-block;
     display: inline-block;
     padding: 8px 16px;
     padding: 10px 20px;
    margin: 5px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
     border-radius: 4px;
     border-radius: 4px;
     cursor: pointer;
     cursor: pointer;
    text-align: center;
    transition: all 0.3s;
     user-select: none;
     user-select: none;
    transition: all 0.2s;
}
}


.eq-btn-primary {
.equipment-button:hover {
     background-color: #0645ad;
    background-color: #e0e0e0;
}
 
.equipment-button-primary {
     background-color: #0066cc;
     color: white;
     color: white;
    border-color: #0052a3;
}
}


.eq-btn-primary:hover {
.equipment-button-primary:hover {
     background-color: #0b0080;
     background-color: #0052a3;
}
}


.eq-btn-secondary {
.equipment-button-danger {
     background-color: #f8f9fa;
     background-color: #cc0000;
     color: #202122;
     color: white;
     border: 1px solid #a2a9b1;
     border-color: #a30000;
}
}


.eq-btn-secondary:hover {
.equipment-button-danger:hover {
     background-color: #e9ecef;
     background-color: #a30000;
}
}


/* 表格样式 */
.equipment-button-small {
.eq-table {
     padding: 5px 15px;
     border: 1px solid #a2a9b1;
     font-size: 14px;
     border-radius: 4px;
    overflow: hidden;
    background: white;
}
}


.eq-table-header {
.equipment-list {
     display: flex;
     margin-top: 20px;
    background-color: #eaecf0;
    font-weight: bold;
    border-bottom: 2px solid #a2a9b1;
}
}


.eq-table-row {
.equipment-item {
     display: flex;
     display: flex;
     border-bottom: 1px solid #eaecf0;
     justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}
}


.eq-table-row:hover {
.equipment-info {
    background-color: #f8f9fa;
}
 
.eq-table-row:last-child {
    border-bottom: none;
}
 
.eq-cell {
    padding: 12px;
     flex: 1;
     flex: 1;
    min-width: 0;
    word-wrap: break-word;
}
}


.eq-cell:nth-child(1) {
.equipment-name {
    flex: 0 0 60px;
     font-size: 18px;
}
 
.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;
     font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}
}


.eq-rarity-紫 {
.equipment-meta {
     color: #8b00ff;
    font-size: 14px;
     font-weight: bold;
     color: #666;
     margin-bottom: 5px;
}
}


.eq-rarity-橙 {
.equipment-tags {
     color: #ff8c00;
     font-size: 14px;
     font-weight: bold;
     color: #888;
}
}


/* 操作链接 */
.equipment-actions {
.eq-actions {
     display: flex;
     display: flex;
     gap: 10px;
     gap: 5px;
}
 
.eq-link {
    color: #0645ad;
    cursor: pointer;
    text-decoration: underline;
}
 
.eq-link:hover {
    color: #0b0080;
}
 
.eq-delete {
    color: #d33;
}
}


.eq-delete:hover {
.equipment-overlay {
    color: #a00;
}
 
/* 模态框 */
.eq-modal {
     position: fixed;
     position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
     z-index: 1000;
     z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
}


.eq-modal-content {
.equipment-modal {
     background-color: #fefefe;
     background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
     border-radius: 8px;
     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;
     padding: 20px;
     border-bottom: 1px solid #eaecf0;
     max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
}


.eq-modal-header h3 {
.equipment-modal-title {
    margin: 0;
     font-size: 20px;
    color: #0645ad;
}
 
.eq-close {
    color: #a2a9b1;
     font-size: 28px;
     font-weight: bold;
     font-weight: bold;
     cursor: pointer;
     margin-bottom: 20px;
     line-height: 1;
     color: #333;
}
}


.eq-close:hover {
.equipment-form {
     color: #000;
     margin-bottom: 20px;
}
}


.eq-modal-body {
.equipment-form-field {
    padding: 20px;
     margin-bottom: 15px;
}
 
/* 表单样式 */
.eq-form-group {
     margin-bottom: 20px;
}
}


.eq-form-group label {
.equipment-form-label {
     display: block;
     display: block;
     margin-bottom: 8px;
     margin-bottom: 5px;
     font-weight: bold;
     font-weight: bold;
     color: #202122;
     color: #555;
    font-size: 14px;
}
}


.eq-input {
.equipment-form-input {
     width: 100%;
     width: 100%;
     padding: 8px 12px;
     padding: 8px;
     border: 1px solid #a2a9b1;
     border: 1px solid #ccc;
     border-radius: 4px;
     border-radius: 4px;
     font-size: 14px;
     font-size: 14px;
     box-sizing: border-box;
     box-sizing: border-box;
    font-family: sans-serif;
}
}


.eq-input:focus {
.equipment-form-textarea {
    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;
     resize: vertical;
    min-height: 60px;
}
}


.eq-textarea:focus {
.equipment-form-input:focus {
     outline: none;
     outline: none;
     border-color: #0645ad;
     border-color: #0066cc;
    box-shadow: 0 0 0 1px #0645ad;
}
}


/* 单选按钮组 */
.equipment-form-input[readonly] {
.eq-radio-group {
     background-color: #f0f0f0;
     display: flex;
     cursor: not-allowed;
     gap: 20px;
}
}


.eq-radio-group label {
.equipment-modal-actions {
     display: flex;
     display: flex;
     align-items: center;
     justify-content: flex-end;
    font-weight: normal;
     gap: 10px;
     cursor: pointer;
     padding-top: 15px;
}
     border-top: 1px solid #eee;
 
.eq-radio-group input[type="radio"] {
     margin-right: 6px;
     cursor: pointer;
}
}


/* 表单操作按钮 */
.equipment-format-toolbar {
.eq-form-actions {
     display: flex;
     display: flex;
     gap: 10px;
     gap: 8px;
    justify-content: flex-end;
     margin-bottom: 8px;
     margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaecf0;
}
}


/* 代码区域 */
.equipment-format-btn {
.eq-code-section {
     font-size: 12px;
    margin-top: 40px;
     padding: 4px 8px;
    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;
}
}

2025年10月17日 (五) 20:39的最新版本

.equipment-manager {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: sans-serif;
}

.equipment-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.equipment-stats {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.equipment-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.equipment-button:hover {
    background-color: #e0e0e0;
}

.equipment-button-primary {
    background-color: #0066cc;
    color: white;
    border-color: #0052a3;
}

.equipment-button-primary:hover {
    background-color: #0052a3;
}

.equipment-button-danger {
    background-color: #cc0000;
    color: white;
    border-color: #a30000;
}

.equipment-button-danger:hover {
    background-color: #a30000;
}

.equipment-button-small {
    padding: 5px 15px;
    font-size: 14px;
}

.equipment-list {
    margin-top: 20px;
}

.equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.equipment-info {
    flex: 1;
}

.equipment-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.equipment-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.equipment-tags {
    font-size: 14px;
    color: #888;
}

.equipment-actions {
    display: flex;
    gap: 5px;
}

.equipment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.equipment-modal {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.equipment-modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.equipment-form {
    margin-bottom: 20px;
}

.equipment-form-field {
    margin-bottom: 15px;
}

.equipment-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.equipment-form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: sans-serif;
}

.equipment-form-textarea {
    resize: vertical;
    min-height: 60px;
}

.equipment-form-input:focus {
    outline: none;
    border-color: #0066cc;
}

.equipment-form-input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.equipment-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.equipment-format-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.equipment-format-btn {
    font-size: 12px;
    padding: 4px 8px;
}