MediaWiki

Equipment.css:修订间差异

来自卡厄思梦境WIKI

律Rhyme留言 | 贡献
无编辑摘要
律Rhyme留言 | 贡献
无编辑摘要
第1行: 第1行:
/* 装备管理器样式 */
.equipment-manager {
.equipment-container {
     max-width: 1200px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 20px auto;
     padding: 20px;
     padding: 20px;
     font-family: Arial, sans-serif;
     font-family: sans-serif;
}
}


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


/* 按钮样式 */
.equipment-button {
.equipment-btn {
     display: inline-block;
     display: inline-block;
     padding: 10px 20px;
     padding: 10px 20px;
     background-color: #0645ad;
     margin: 5px;
     color: white;
     background-color: #f0f0f0;
     text-decoration: none;
     border: 1px solid #ccc;
     border-radius: 4px;
     border-radius: 4px;
    transition: background-color 0.3s;
     cursor: pointer;
     cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}
}


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


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


.equipment-btn-add:hover {
.equipment-button-primary:hover {
     background-color: #4cae4c;
     background-color: #0052a3;
}
}


.equipment-btn-save {
.equipment-button-danger {
     background-color: #0645ad;
     background-color: #cc0000;
     margin-right: 10px;
     color: white;
}
     border-color: #a30000;
 
.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 {
.equipment-button-danger:hover {
     margin-bottom: 20px;
     background-color: #a30000;
}
}


.form-group label {
.equipment-button-small {
    display: block;
     padding: 5px 15px;
    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;
     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 {
.equipment-list {
     display: grid;
     margin-top: 20px;
    gap: 15px;
}
}


/* 装备项样式 */
.equipment-item {
.equipment-item {
     display: flex;
     display: flex;
    justify-content: space-between;
     align-items: center;
     align-items: center;
     padding: 15px;
     padding: 15px;
     background-color: #fff;
    margin-bottom: 10px;
     border: 1px solid #dee2e6;
     background-color: #f9f9f9;
    border-radius: 8px;
     border: 1px solid #ddd;
    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;
     border-radius: 4px;
    overflow: hidden;
}
.equipment-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
}


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


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


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


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


/* 稀有度颜色 */
.equipment-actions {
.rarity-{
     display: flex;
     background-color: #cfe2ff !important;
     gap: 5px;
     color: #084298;
}
}


.rarity-{
.equipment-overlay {
     background-color: #fff3cd !important;
    position: fixed;
     color: #997404;
    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;
}
}


.rarity-{
.equipment-modal {
     background: linear-gradient(90deg, #ffcfe2, #e2cfff, #cfe2ff) !important;
     background-color: white;
    color: #4a1f7c;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
}


.equipment-type {
.equipment-modal-title {
     background-color: #d1ecf1 !important;
     font-size: 20px;
     color: #0c5460;
    font-weight: bold;
    margin-bottom: 20px;
     color: #333;
}
}


.equipment-area {
.equipment-form {
     background-color: #d4edda !important;
     margin-bottom: 20px;
    color: #155724;
}
}


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


.equipment-actions {
.equipment-form-label {
     display: flex;
     display: block;
     gap: 10px;
     margin-bottom: 5px;
     flex-shrink: 0;
     font-weight: bold;
     margin-left: 15px;
     color: #555;
}
}


.equipment-actions a {
.equipment-form-input {
     padding: 5px 12px;
    width: 100%;
     border-radius: 3px;
     padding: 8px;
     text-decoration: none;
     border: 1px solid #ccc;
     font-size: 13px;
     border-radius: 4px;
     transition: background-color 0.3s;
     font-size: 14px;
     box-sizing: border-box;
}
}


.action-edit {
.equipment-form-input:focus {
     background-color: #ffc107;
     outline: none;
     color: #000;
     border-color: #0066cc;
}
}


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


.action-delete {
.equipment-modal-actions {
    background-color: #dc3545;
     display: flex;
    color: #fff;
     justify-content: flex-end;
}
     gap: 10px;
 
     padding-top: 15px;
.action-delete:hover {
     border-top: 1px solid #eee;
    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;
    }
}
}

2025年10月17日 (五) 19:36的版本

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

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

.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;
    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;
}

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

.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;
}