MediaWiki

MediaWiki:Equipment.css

来自卡厄思梦境WIKI

律Rhyme留言 | 贡献2025年10月17日 (五) 19:13的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/* 装备管理器样式 */
.equipment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.equipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.equipment-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

/* 按钮样式 */
.equipment-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0645ad;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.equipment-btn:hover {
    background-color: #0374d8;
    text-decoration: none;
    color: white;
}

.equipment-btn-add {
    background-color: #5cb85c;
}

.equipment-btn-add:hover {
    background-color: #4cae4c;
}

.equipment-btn-save {
    background-color: #0645ad;
    margin-right: 10px;
}

.equipment-btn-cancel {
    background-color: #6c757d;
}

.equipment-btn-cancel:hover {
    background-color: #5a6268;
}

/* 表单样式 */
.equipment-form-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.form-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.equipment-form {
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin-right: 5px;
}

.form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* 装备列表样式 */
.equipment-list-container h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

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

.filter-input {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.filter-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.equipment-list {
    display: grid;
    gap: 15px;
}

/* 装备项样式 */
.equipment-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.equipment-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.equipment-image {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.equipment-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.equipment-info {
    flex: 1;
    min-width: 0;
}

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

.equipment-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.equipment-meta span {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    background-color: #f8f9fa;
}

/* 稀有度颜色 */
.rarity-蓝 {
    background-color: #cfe2ff !important;
    color: #084298;
}

.rarity-金 {
    background-color: #fff3cd !important;
    color: #997404;
}

.rarity-彩 {
    background: linear-gradient(90deg, #ffcfe2, #e2cfff, #cfe2ff) !important;
    color: #4a1f7c;
}

.equipment-type {
    background-color: #d1ecf1 !important;
    color: #0c5460;
}

.equipment-area {
    background-color: #d4edda !important;
    color: #155724;
}

.equipment-tags {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

.equipment-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 15px;
}

.equipment-actions a {
    padding: 5px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s;
}

.action-edit {
    background-color: #ffc107;
    color: #000;
}

.action-edit:hover {
    background-color: #e0a800;
}

.action-delete {
    background-color: #dc3545;
    color: #fff;
}

.action-delete:hover {
    background-color: #c82333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .equipment-container {
        padding: 10px;
    }
    
    .equipment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .equipment-actions {
        margin-top: 15px;
    }
    
    .filter-input {
        width: 100%;
    }
    
    .equipment-item {
        flex-direction: column;
        text-align: center;
    }
    
    .equipment-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .equipment-info {
        width: 100%;
    }
    
    .equipment-meta {
        justify-content: center;
    }
    
    .equipment-actions {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .radio-group {
        flex-direction: column;
    }
}