MediaWiki

MediaWiki:Card.css

来自卡厄思梦境WIKI

律Rhyme留言 | 贡献2025年10月23日 (四) 17:49的版本

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

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/* 卡牌管理器容器 */
.card-manager {
    display: flex;
    gap: 20px;
    padding: 20px;
    font-family: sans-serif;
    background: #f5f5f5;
}

/* 左侧输入区 */
.card-input-section {
    flex: 0 0 350px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: 90vh;
}

/* 中间列表区 */
.card-list-section {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: 90vh;
}

/* 右侧预览区 */
.card-preview-section {
    flex: 0 0 400px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: 90vh;
}

/* 表单组 */
.form-group {
    margin-bottom: 15px;
}

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

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: monospace;
}

/* 下拉选择器样式 */
.form-select {
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f0f0f0;
}

/* 按钮组 */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.btn {
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    border: 1px solid #ddd;
    background: white;
    transition: all 0.2s;
}

.btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.btn-blue {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.btn-green {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #388e3c;
}

.btn-primary {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.btn-primary:hover {
    background: #357abd;
}

.btn-danger {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-success {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.btn-success:hover {
    background: #388e3c;
}

/* 卡牌项 */
.card-item {
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.card-item:hover {
    background: #f0f0f0;
    border-color: #4a90e2;
    transform: translateX(5px);
}

.card-item.active {
    background: #e3f2fd;
    border-color: #2196f3;
}

.card-item-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.card-item-info {
    font-size: 12px;
    color: #666;
}

/* 代码预览 */
.code-preview {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* 区块标题 */
.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
    color: #333;
}

/* 灵光一闪/神光一闪区域 */
.inspiration-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.inspiration-item {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #4a90e2;
    border-radius: 4px;
}

.inspiration-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.inspiration-item-title {
    font-weight: bold;
    color: #4a90e2;
}

.god-select-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.god-tab {
    padding: 6px 12px;
    border-radius: 4px;
    background: #e0e0e0;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.god-tab.active {
    background: #4a90e2;
    color: white;
}

/* 默认信息区 */
.default-info-section {
    background: #fff3e0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #ff9800;
}

/* 滚动条美化 */
.card-input-section::-webkit-scrollbar,
.card-list-section::-webkit-scrollbar,
.card-preview-section::-webkit-scrollbar,
.code-preview::-webkit-scrollbar {
    width: 8px;
}

.card-input-section::-webkit-scrollbar-track,
.card-list-section::-webkit-scrollbar-track,
.card-preview-section::-webkit-scrollbar-track,
.code-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.card-input-section::-webkit-scrollbar-thumb,
.card-list-section::-webkit-scrollbar-thumb,
.card-preview-section::-webkit-scrollbar-thumb,
.code-preview::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.card-input-section::-webkit-scrollbar-thumb:hover,
.card-list-section::-webkit-scrollbar-thumb:hover,
.card-preview-section::-webkit-scrollbar-thumb:hover,
.code-preview::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 复选框样式 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #4a90e2;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s;
}

.checkbox.checked {
    background: #4a90e2;
}

.checkbox.checked::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* 列表容器 */
.list-container {
    margin-bottom: 20px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.list-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.empty-state-text {
    font-size: 14px;
}

/* 加载提示 */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 16px;
}
/* 在文件末尾添加以下样式 */

/* 变体编辑区 */
.variant-edit-section {
    background: #f3e5f5;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #9c27b0;
}

/* 简化的灵光/神光列表项 */
.inspiration-item-simple {
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.inspiration-item-simple:hover {
    background: #f0f0f0;
    border-color: #9c27b0;
    transform: translateX(3px);
}

.inspiration-item-simple.active {
    background: #f3e5f5;
    border-color: #9c27b0;
    border-width: 2px;
}

.inspiration-item-name {
    font-weight: bold;
    color: #9c27b0;
    margin-bottom: 4px;
    font-size: 13px;
}

.inspiration-item-info {
    font-size: 12px;
    color: #666;
}