MediaWiki

Equipment.css:修订间差异

来自卡厄思梦境WIKI

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


/* 头部 */
.equipment-header {
.eq-header {
     display: flex;
     display: flex;
     justify-content: space-between;
     justify-content: space-between;
     align-items: center;
     align-items: center;
     margin-bottom: 20px;
     margin-bottom: 30px;
     padding: 15px 20px;
     padding-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     border-bottom: 2px solid #ddd;
     border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
}


.eq-title {
.equipment-header h2 {
    margin: 0;
    color: #333;
     font-size: 24px;
     font-size: 24px;
    font-weight: bold;
    color: white;
}
}


/* 按钮 */
/* 按钮样式 */
.eq-btn {
.equipment-btn {
    display: inline-block;
     padding: 10px 20px;
     padding: 10px 20px;
     border-radius: 6px;
     background-color: #0645ad;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
}
 
.eq-btn-primary {
    background: #4CAF50;
     color: white;
     color: white;
}
     text-decoration: none;
 
.eq-btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}
 
.eq-btn-secondary {
    background: #6c757d;
    color: white;
}
 
.eq-btn-secondary:hover {
    background: #5a6268;
}
 
.eq-btn-small {
     display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
     border-radius: 4px;
     border-radius: 4px;
    transition: background-color 0.3s;
     cursor: pointer;
     cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}
}


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


.eq-btn-edit:hover {
.equipment-btn-add {
     background: #0b7dda;
     background-color: #5cb85c;
}
}


.eq-btn-delete {
.equipment-btn-add:hover {
     background: #f44336;
     background-color: #4cae4c;
    color: white;
}
}


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


/* 表格 */
.equipment-btn-cancel {
.eq-table {
     background-color: #6c757d;
     background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
}


.eq-table-header {
.equipment-btn-cancel:hover {
    display: flex;
     background-color: #5a6268;
     background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
    padding: 12px 10px;
}
}


.eq-th {
/* 表单样式 */
     flex: 1;
.equipment-form-container {
     padding: 0 10px;
     background-color: #f8f9fa;
     text-align: left;
    border: 1px solid #dee2e6;
    border-radius: 8px;
     padding: 25px;
     margin-bottom: 30px;
}
}


.eq-th-image {
.form-title {
     flex: 0 0 80px;
     margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}
}


.eq-th-name {
.equipment-form {
     flex: 0 0 150px;
     max-width: 600px;
}
}


.eq-th-actions {
.form-group {
     flex: 0 0 140px;
     margin-bottom: 20px;
    text-align: center;
}
 
.eq-table-body {
    max-height: 600px;
    overflow-y: auto;
}
 
.eq-table-row {
    display: flex;
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
    align-items: center;
}
}


.eq-table-row:hover {
.form-group label {
    background: #f8f9fa;
     display: block;
}
     margin-bottom: 8px;
 
.eq-td {
    flex: 1;
    padding: 0 10px;
    word-wrap: break-word;
}
 
.eq-td-image {
    flex: 0 0 80px;
}
 
.eq-td-name {
     flex: 0 0 150px;
    font-weight: 500;
}
 
.eq-td-actions {
    flex: 0 0 140px;
    text-align: center;
}
 
.eq-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #dee2e6;
}
 
/* 稀有度标签 */
.eq-rarity {
    padding: 3px 10px;
    border-radius: 12px;
     font-size: 12px;
     font-weight: bold;
     font-weight: bold;
    color: #495057;
}
}


.eq-rarity-蓝 {
.form-input {
     background: #e3f2fd;
     width: 100%;
     color: #1976d2;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
     font-size: 14px;
    box-sizing: border-box;
}
}


.eq-rarity-紫 {
.form-input:focus {
     background: #f3e5f5;
     outline: none;
     color: #7b1fa2;
     border-color: #80bdff;
}
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
 
.eq-rarity-金{
    background: #fff3e0;
    color: #f57c00;
}
}


/* 模态框 */
.form-textarea {
.eq-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
     width: 100%;
     width: 100%;
     height: 100%;
     padding: 8px 12px;
     background: rgba(0,0,0,0.5);
     border: 1px solid #ced4da;
     z-index: 9998;
     border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}
}


.eq-modal {
.form-textarea:focus {
     position: fixed;
     outline: none;
     top: 50%;
     border-color: #80bdff;
     left: 50%;
     box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
}


.eq-modal-content {
/* 单选按钮组 */
     background: white;
.radio-group {
     border-radius: 12px;
     display: flex;
     box-shadow: 0 10px 40px rgba(0,0,0,0.3);
     gap: 15px;
     flex-wrap: wrap;
}
}


.eq-modal-header {
.radio-label {
     display: flex;
     display: flex;
    justify-content: space-between;
     align-items: center;
     align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}
.eq-modal-title {
    font-size: 20px;
    font-weight: bold;
}
.eq-modal-close {
    font-size: 28px;
     cursor: pointer;
     cursor: pointer;
     color: #6c757d;
     font-weight: normal;
    line-height: 1;
    width: 30px;
    height: 30px;
    text-align: center;
}
}


.eq-modal-close:hover {
.radio-label input[type="radio"] {
     color: #000;
     margin-right: 5px;
}
}


.eq-modal-body {
.form-actions {
     padding: 25px;
     margin-top: 25px;
     max-height: calc(90vh - 160px);
     padding-top: 20px;
     overflow-y: auto;
     border-top: 1px solid #dee2e6;
}
}


.eq-modal-footer {
/* 装备列表样式 */
     display: flex;
.equipment-list-container h3 {
    justify-content: flex-end;
     margin-bottom: 20px;
    gap: 10px;
     color: #333;
     padding: 15px 25px;
     font-size: 20px;
     border-top: 1px solid #e9ecef;
}
}


/* 表单 */
.equipment-filter {
.eq-form {
     margin-bottom: 20px;
     display: flex;
    flex-direction: column;
    gap: 18px;
}
}


.eq-form-group {
.filter-input {
     display: flex;
     width: 300px;
     flex-direction: column;
     padding: 8px 12px;
     gap: 8px;
     border: 1px solid #ced4da;
}
     border-radius: 4px;
 
.eq-label {
     font-weight: 500;
    color: #495057;
     font-size: 14px;
     font-size: 14px;
}
}


.eq-label-small {
.filter-input:focus {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
    margin-bottom: 5px;
}
 
/* 可编辑输入框 */
.eq-input,
.eq-input-small {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 12px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 20px;
     outline: none;
     outline: none;
}
.eq-input:focus,
.eq-input-small:focus {
     border-color: #80bdff;
     border-color: #80bdff;
     box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
     box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
}


.eq-input:empty:before,
.equipment-list {
.eq-input-small:empty:before {
     display: grid;
     content: attr(data-placeholder);
     gap: 15px;
     color: #999;
}
}


.eq-input-small {
/* 装备项样式 */
     padding: 8px 10px;
.equipment-item {
     font-size: 13px;
    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 {
.eq-select {
     box-shadow: 0 4px 8px rgba(0,0,0,0.1);
     position: relative;
}
}


.eq-select-display {
.equipment-image {
     border: 1px solid #ced4da;
     width: 64px;
     border-radius: 6px;
    height: 64px;
     padding: 10px 30px 10px 12px;
     margin-right: 15px;
     background: white;
     flex-shrink: 0;
     cursor: pointer;
     display: flex;
     transition: border-color 0.2s, box-shadow 0.2s;
     align-items: center;
     position: relative;
     justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
     overflow: hidden;
}
}


.eq-select-display:after {
.equipment-image img {
     content: '▼';
     max-width: 100%;
    position: absolute;
     max-height: 100%;
    right: 12px;
     object-fit: contain;
    top: 50%;
     transform: translateY(-50%);
     font-size: 10px;
    color: #6c757d;
}
}


.eq-select-display:hover {
.equipment-info {
     border-color: #80bdff;
    flex: 1;
     min-width: 0;
}
}


.eq-select-dropdown {
.equipment-name {
     display: none;
     font-size: 16px;
    position: absolute;
     font-weight: bold;
    top: 100%;
     color: #333;
    left: 0;
     margin-bottom: 8px;
     right: 0;
    margin-top: 4px;
    background: white;
     border: 1px solid #ced4da;
     border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}
}


.eq-select-option {
.equipment-meta {
     padding: 10px 12px;
     display: flex;
     cursor: pointer;
     gap: 10px;
     transition: background 0.2s;
     margin-bottom: 5px;
}
}


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


.eq-select-option:first-child {
/* 稀有度颜色 */
     border-radius: 6px 6px 0 0;
.rarity-蓝 {
    background-color: #cfe2ff !important;
     color: #084298;
}
}


.eq-select-option:last-child {
.rarity-金 {
     border-radius: 0 0 6px 6px;
    background-color: #fff3cd !important;
     color: #997404;
}
}


/* 表单分组 */
.rarity-{
.eq-form-section {
     background: linear-gradient(90deg, #ffcfe2, #e2cfff, #cfe2ff) !important;
    margin-top: 20px;
     color: #4a1f7c;
    padding: 20px;
     background: #f8f9fa;
     border-radius: 8px;
}
}


.eq-section-title {
.equipment-type {
     font-size: 16px;
     background-color: #d1ecf1 !important;
    font-weight: bold;
     color: #0c5460;
    margin-bottom: 15px;
    color: #495057;
     border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
}
}


.eq-level-group {
.equipment-area {
    margin-bottom: 15px;
     background-color: #d4edda !important;
    padding: 15px;
     color: #155724;
     background: white;
    border-radius: 6px;
     border-left: 4px solid #667eea;
}
}


.eq-level-title {
.equipment-tags {
     font-weight: bold;
     font-size: 13px;
     color: #667eea;
     color: #6c757d;
     margin-bottom: 10px;
     margin-top: 5px;
    font-size: 15px;
}
}


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


.eq-form-col {
.equipment-actions a {
     flex: 1;
     padding: 5px 12px;
     display: flex;
    border-radius: 3px;
     flex-direction: column;
     text-decoration: none;
     font-size: 13px;
    transition: background-color 0.3s;
}
}


/* 滚动条样式 */
.action-edit {
.eq-modal-body::-webkit-scrollbar,
    background-color: #ffc107;
.eq-table-body::-webkit-scrollbar,
     color: #000;
.eq-select-dropdown::-webkit-scrollbar {
     width: 8px;
}
}


.eq-modal-body::-webkit-scrollbar-track,
.action-edit:hover {
.eq-table-body::-webkit-scrollbar-track,
     background-color: #e0a800;
.eq-select-dropdown::-webkit-scrollbar-track {
     background: #f1f1f1;
    border-radius: 4px;
}
}


.eq-modal-body::-webkit-scrollbar-thumb,
.action-delete {
.eq-table-body::-webkit-scrollbar-thumb,
     background-color: #dc3545;
.eq-select-dropdown::-webkit-scrollbar-thumb {
     color: #fff;
     background: #888;
     border-radius: 4px;
}
}


.eq-modal-body::-webkit-scrollbar-thumb:hover,
.action-delete:hover {
.eq-table-body::-webkit-scrollbar-thumb:hover,
     background-color: #c82333;
.eq-select-dropdown::-webkit-scrollbar-thumb:hover {
     background: #555;
}
}


/* 响应式设计 */
/* 响应式设计 */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .eq-header {
     .equipment-container {
        padding: 10px;
    }
   
    .equipment-header {
         flex-direction: column;
         flex-direction: column;
        gap: 10px;
         align-items: flex-start;
         align-items: stretch;
     }
     }
      
      
     .eq-table-header {
     .equipment-actions {
         display: none;
         margin-top: 15px;
     }
     }
      
      
     .eq-table-row {
     .filter-input {
        width: 100%;
    }
   
    .equipment-item {
         flex-direction: column;
         flex-direction: column;
         padding: 15px;
         text-align: center;
         gap: 10px;
    }
   
    .equipment-image {
        margin-right: 0;
         margin-bottom: 10px;
     }
     }
      
      
     .eq-td {
     .equipment-info {
         width: 100%;
         width: 100%;
     }
     }
      
      
     .eq-td:before {
     .equipment-meta {
         content: attr(data-label);
         justify-content: center;
        font-weight: bold;
        margin-right: 10px;
     }
     }
      
      
     .eq-modal {
     .equipment-actions {
         width: 95%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
         width: 100%;
     }
     }
      
      
     .eq-form-row {
     .radio-group {
         flex-direction: column;
         flex-direction: column;
     }
     }
}
/* 加载动画 */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.eq-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}
/* 空状态 */
.eq-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}
.eq-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}
.eq-empty-text {
    font-size: 16px;
}
}

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

/* 装备管理器样式 */
.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;
    }
}