MediaWiki

Equipment.css:修订间差异

来自卡厄思梦境WIKI

律Rhyme留言 | 贡献
无编辑摘要
律Rhyme留言 | 贡献
无编辑摘要
 
(未显示同一用户的2个中间版本)
第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: 10px;
     margin-bottom: 30px;
     color: #333;
     padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}
}


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


/* 按钮样式 */
.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 {
.equipment-button-danger:hover {
     background-color: #6c757d;
     background-color: #a30000;
}
}


.equipment-btn-cancel:hover {
.equipment-button-small {
     background-color: #5a6268;
    padding: 5px 15px;
     font-size: 14px;
}
}


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


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


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


.form-group {
.equipment-name {
     margin-bottom: 20px;
     font-size: 18px;
}
 
.form-group label {
    display: block;
    margin-bottom: 8px;
     font-weight: bold;
     font-weight: bold;
     color: #495057;
    margin-bottom: 5px;
     color: #333;
}
}


.form-input {
.equipment-meta {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
     font-size: 14px;
     font-size: 14px;
     box-sizing: border-box;
     color: #666;
    margin-bottom: 5px;
}
}


.form-input:focus {
.equipment-tags {
    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;
     color: #888;
    resize: vertical;
}
}


.form-textarea:focus {
.equipment-actions {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
 
/* 单选按钮组 */
.radio-group {
     display: flex;
     display: flex;
     gap: 15px;
     gap: 5px;
    flex-wrap: wrap;
}
}


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


.radio-label input[type="radio"] {
.equipment-modal {
     margin-right: 5px;
     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);
}
}


.form-actions {
.equipment-modal-title {
     margin-top: 25px;
     font-size: 20px;
    padding-top: 20px;
     font-weight: bold;
     border-top: 1px solid #dee2e6;
}
 
/* 装备列表样式 */
.equipment-list-container h3 {
     margin-bottom: 20px;
     margin-bottom: 20px;
     color: #333;
     color: #333;
    font-size: 20px;
}
}


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


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


.filter-input:focus {
.equipment-form-label {
     outline: none;
     display: block;
     border-color: #80bdff;
     margin-bottom: 5px;
     box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    font-weight: bold;
    color: #555;
     font-size: 14px;
}
}


.equipment-list {
.equipment-form-input {
    display: grid;
     width: 100%;
    gap: 15px;
     padding: 8px;
}
     border: 1px solid #ccc;
 
/* 装备项样式 */
.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;
     border-radius: 4px;
     overflow: hidden;
     font-size: 14px;
    box-sizing: border-box;
    font-family: sans-serif;
}
}


.equipment-image img {
.equipment-form-textarea {
     max-width: 100%;
     resize: vertical;
     max-height: 100%;
     min-height: 60px;
    object-fit: contain;
}
}


.equipment-info {
.equipment-form-input:focus {
     flex: 1;
     outline: none;
     min-width: 0;
     border-color: #0066cc;
}
}


.equipment-name {
.equipment-form-input[readonly] {
     font-size: 16px;
     background-color: #f0f0f0;
    font-weight: bold;
     cursor: not-allowed;
    color: #333;
     margin-bottom: 8px;
}
}


.equipment-meta {
.equipment-modal-actions {
     display: flex;
     display: flex;
    justify-content: flex-end;
     gap: 10px;
     gap: 10px;
     margin-bottom: 5px;
     padding-top: 15px;
}
     border-top: 1px solid #eee;
 
.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 {
.equipment-format-toolbar {
     display: flex;
     display: flex;
     gap: 10px;
     gap: 8px;
    flex-shrink: 0;
     margin-bottom: 8px;
     margin-left: 15px;
}
}


.equipment-actions a {
.equipment-format-btn {
    padding: 5px 12px;
     font-size: 12px;
    border-radius: 3px;
     padding: 4px 8px;
    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;
    }
}
}

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