Card.css:修订间差异
来自卡厄思梦境WIKI
小无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的4个中间版本) | |||
| 第1行: | 第1行: | ||
/* | /* 卡牌管理器容器 */ | ||
.card-manager { | .card-manager { | ||
display: flex; | display: flex; | ||
gap: 20px; | gap: 20px; | ||
padding: 20px; | padding: 20px; | ||
font-family: sans-serif; | |||
background: #f5f5f5; | background: #f5f5f5; | ||
} | } | ||
/* 左侧输入区 */ | /* 左侧输入区 */ | ||
.card-input- | .card-input-section { | ||
flex: 0 0 350px; | flex: 0 0 350px; | ||
background: white; | background: white; | ||
padding: 20px; | |||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |||
box-shadow: 0 2px | overflow-y: auto; | ||
height: | max-height: 90vh; | ||
} | } | ||
/* 中间列表区 */ | /* 中间列表区 */ | ||
.card-list- | .card-list-section { | ||
flex: 1; | flex: 1; | ||
background: white; | background: white; | ||
padding: 20px; | |||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |||
box-shadow: 0 2px | overflow-y: auto; | ||
max-height: 90vh; | |||
} | } | ||
/* 右侧预览区 */ | /* 右侧预览区 */ | ||
.card-preview- | .card-preview-section { | ||
flex: 0 0 400px; | flex: 0 0 400px; | ||
background: white; | background: white; | ||
padding: 20px; | |||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |||
box-shadow: 0 2px | overflow-y: auto; | ||
max-height: 90vh; | max-height: 90vh; | ||
} | } | ||
/* | /* 表单组 */ | ||
.form-group { | .form-group { | ||
margin-bottom: 15px; | margin-bottom: 15px; | ||
| 第45行: | 第48行: | ||
.form-label { | .form-label { | ||
display: block; | display: block; | ||
margin-bottom: 5px; | |||
font-weight: bold; | font-weight: bold; | ||
color: #333; | color: #333; | ||
font-size: 14px; | |||
} | } | ||
.form-input, | |||
. | .form-select, | ||
.form-textarea { | |||
width: 100%; | 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; | |||
} | } | ||
.select | /* 下拉选择器样式 */ | ||
.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; | position: absolute; | ||
background: white; | background: white; | ||
border: 1px solid #ddd; | border: 1px solid #ddd; | ||
border-radius: 4px; | |||
border-radius: | |||
max-height: 200px; | max-height: 200px; | ||
overflow-y: auto; | overflow-y: auto; | ||
display: none; | display: none; | ||
z-index: 1000; | z-index: 1000; | ||
box-shadow: 0 | box-shadow: 0 2px 8px rgba(0,0,0,0.15); | ||
} | } | ||
. | .dropdown-item { | ||
padding: 8px 12px; | |||
padding: 8px | |||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
. | .dropdown-item:hover { | ||
background: #f0f0f0; | background: #f0f0f0; | ||
} | } | ||
/* 按钮组 */ | |||
.button-group { | |||
/* | |||
. | |||
display: flex; | display: flex; | ||
gap: | flex-wrap: wrap; | ||
gap: 8px; | |||
margin-bottom: 10px; | margin-bottom: 10px; | ||
} | } | ||
. | .btn { | ||
padding: | padding: 6px 12px; | ||
border-radius: 4px; | border-radius: 4px; | ||
cursor: pointer; | cursor: pointer; | ||
font-size: | font-size: 13px; | ||
border: 1px solid #ddd; | |||
background: white; | background: white; | ||
transition: all 0.2s; | transition: all 0.2s; | ||
user-select: none; | |||
} | } | ||
. | .btn:hover { | ||
background: #f0f0f0; | background: #f0f0f0; | ||
transform: translateY(-1px); | |||
} | } | ||
. | .btn:active { | ||
transform: translateY(0); | |||
} | } | ||
. | .btn-blue { | ||
background: #e3f2fd; | |||
border-color: # | border-color: #2196f3; | ||
color: #1976d2; | |||
} | } | ||
.btn-blue:hover { | |||
. | background: #bbdefb; | ||
} | } | ||
. | .btn-green { | ||
background: #e8f5e9; | |||
border-color: #4caf50; | |||
color: #388e3c; | |||
border- | |||
} | } | ||
. | .btn-green:hover { | ||
background: #c8e6c9; | |||
} | } | ||
. | .btn-primary { | ||
background: # | background: #4a90e2; | ||
color: white; | color: white; | ||
border-color: #4a90e2; | |||
} | } | ||
.btn-primary:hover { | |||
. | background: #357abd; | ||
} | } | ||
. | .btn-danger { | ||
background: # | background: #f44336; | ||
border-color: # | color: white; | ||
border-color: #f44336; | |||
} | } | ||
. | .btn-danger:hover { | ||
background: # | background: #d32f2f; | ||
} | } | ||
. | .btn-success { | ||
background: #4caf50; | |||
background: # | |||
color: white; | color: white; | ||
border- | border-color: #4caf50; | ||
} | } | ||
. | .btn-success:hover { | ||
background: # | background: #388e3c; | ||
} | } | ||
/* | /* 卡牌项 */ | ||
. | .card-item { | ||
padding: 10px | padding: 12px; | ||
border-radius: | margin-bottom: 10px; | ||
border: 1px solid #e0e0e0; | |||
border-radius: 6px; | |||
cursor: pointer; | cursor: pointer; | ||
transition: all 0.2s; | transition: all 0.2s; | ||
background: #fafafa; | |||
} | } | ||
. | .card-item:hover { | ||
background: # | background: #f0f0f0; | ||
color: | border-color: #4a90e2; | ||
transform: translateX(5px); | |||
} | } | ||
. | .card-item.active { | ||
background: # | background: #e3f2fd; | ||
border-color: #2196f3; | |||
border-width: 2px; | |||
padding: 11px; /* 补偿边框宽度 */ | |||
} | } | ||
. | .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; | |||
/* | |||
.preview | |||
background: # | |||
padding: 15px; | padding: 15px; | ||
border-radius: | border-radius: 6px; | ||
font-family: monospace; | font-family: 'Consolas', 'Monaco', monospace; | ||
font-size: | font-size: 13px; | ||
line-height: 1.6; | |||
white-space: pre-wrap; | white-space: pre-wrap; | ||
word-wrap: break-word; | word-wrap: break-word; | ||
max-height: | max-height: calc(90vh - 150px); | ||
overflow-y: auto; | overflow-y: auto; | ||
} | } | ||
/* | /* 区块标题 */ | ||
. | .section-title { | ||
font-size: 18px; | font-size: 18px; | ||
font-weight: bold; | font-weight: bold; | ||
margin-bottom: 15px; | margin-bottom: 15px; | ||
padding-bottom: 10px; | |||
border-bottom: 2px solid #4a90e2; | |||
color: #333; | color: #333; | ||
} | } | ||
.section | /* 灵光一闪/神光一闪区域 */ | ||
.inspiration-section { | |||
margin-top: 20px; | |||
padding-top: 15px; | |||
border-top: 1px solid #e0e0e0; | |||
} | } | ||
.inspiration-item { | |||
. | background: #f9f9f9; | ||
background: # | padding: 10px; | ||
padding: | margin-bottom: 10px; | ||
border-left: 3px solid #4a90e2; | |||
border-radius: 4px; | border-radius: 4px; | ||
} | } | ||
.inspiration-item-header { | |||
. | |||
display: flex; | display: flex; | ||
justify-content: space-between; | |||
align-items: center; | |||
margin-bottom: 8px; | |||
} | |||
.inspiration-item-title { | |||
font-weight: bold; | |||
color: #4a90e2; | |||
} | } | ||
. | /* 简化的灵光/神光列表项 */ | ||
.inspiration-item-simple { | |||
padding: 10px 12px; | |||
border: | margin-bottom: 8px; | ||
border-radius: | border: 1px solid #e0e0e0; | ||
border-radius: 6px; | |||
cursor: pointer; | cursor: pointer; | ||
transition: all 0.2s; | transition: all 0.2s; | ||
background: #fafafa; | |||
} | } | ||
. | .inspiration-item-simple:hover { | ||
border-color: # | background: #f0f0f0; | ||
border-color: #9c27b0; | |||
transform: translateX(3px); | |||
} | } | ||
. | .inspiration-item-simple.active { | ||
border-color: # | background: #f3e5f5; | ||
border-color: #9c27b0; | |||
border-width: 2px; | |||
padding: 9px 11px; /* 补偿边框宽度 */ | |||
} | |||
.inspiration-item-name { | |||
font-weight: bold; | font-weight: bold; | ||
color: #9c27b0; | |||
margin-bottom: 4px; | |||
font-size: 13px; | |||
} | } | ||
/* | .inspiration-item-info { | ||
.god- | font-size: 12px; | ||
color: #666; | |||
} | |||
/* 神明选择标签组 */ | |||
.god-select-group { | |||
display: flex; | display: flex; | ||
gap: 10px; | gap: 8px; | ||
margin-bottom: 10px; | |||
flex-wrap: wrap; | flex-wrap: wrap; | ||
} | } | ||
.god- | .god-tab { | ||
padding: | padding: 6px 12px; | ||
border-radius: 4px; | border-radius: 4px; | ||
background: #e0e0e0; | |||
cursor: pointer; | cursor: pointer; | ||
font-size: 13px; | |||
transition: all 0.2s; | transition: all 0.2s; | ||
user-select: none; | |||
} | } | ||
.god- | .god-tab:hover { | ||
background: #d0d0d0; | |||
} | } | ||
.god- | .god-tab.active { | ||
background: #4a90e2; | |||
background: # | color: white; | ||
} | } | ||
/* | /* 默认信息区 */ | ||
. | .default-info-section { | ||
background: #fff3e0; | |||
padding: 15px; | |||
border-radius: 6px; | |||
margin-bottom: 20px; | |||
border-left: 4px solid #ff9800; | |||
} | } | ||
. | /* 变体编辑区 */ | ||
.variant-edit-section { | |||
padding: | background: #f3e5f5; | ||
padding: 15px; | |||
border-radius: | border-radius: 6px; | ||
margin-top: 20px; | |||
border-left: 4px solid #9c27b0; | |||
} | } | ||
. | /* 列表容器 */ | ||
.list-container { | |||
margin-bottom: 20px; | |||
} | } | ||
. | .list-header { | ||
display: flex; | 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 { | |||
color: | position: fixed; | ||
padding: 20px; | top: 50%; | ||
font- | 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; | |||
} | } | ||
/* | /* 复选框样式 */ | ||
. | .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; | background: white; | ||
transition: all 0.2s; | |||
} | } | ||
. | .checkbox.checked { | ||
background: #4a90e2; | |||
} | } | ||
. | .checkbox.checked::after { | ||
content: "✓"; | |||
color: white; | |||
font-size: 14px; | |||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
. | /* 滚动条美化 */ | ||
.card-input-section::-webkit-scrollbar, | |||
.card-list-section::-webkit-scrollbar, | |||
.card-preview-section::-webkit-scrollbar, | |||
.code-preview::-webkit-scrollbar, | |||
.dropdown-menu::-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, | |||
.dropdown-menu::-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, | |||
.dropdown-menu::-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, | |||
.dropdown-menu::-webkit-scrollbar-thumb:hover { | |||
background: #555; | |||
background: # | |||
} | } | ||
. | /* 响应式设计 */ | ||
@media (max-width: 1400px) { | |||
.card-manager { | |||
flex-direction: column; | |||
} | |||
.card-input-section, | |||
.card-list-section, | |||
.card-preview-section { | |||
flex: 1; | |||
max-height: none; | |||
} | |||
} | } | ||
@media (max-width: 768px) { | |||
.card-manager { | |||
padding: 10px; | |||
gap: 10px; | |||
} | |||
padding: | |||
.card-input-section, | |||
.card-list-section, | |||
.card-preview-section { | |||
padding: 15px; | |||
} | |||
.button-group { | |||
flex-direction: column; | |||
} | |||
.btn { | |||
width: 100%; | |||
} | |||
} | } | ||
2025年10月24日 (五) 14:36的最新版本
/* 卡牌管理器容器 */
.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;
user-select: none;
}
.btn:hover {
background: #f0f0f0;
transform: translateY(-1px);
}
.btn:active {
transform: translateY(0);
}
.btn-blue {
background: #e3f2fd;
border-color: #2196f3;
color: #1976d2;
}
.btn-blue:hover {
background: #bbdefb;
}
.btn-green {
background: #e8f5e9;
border-color: #4caf50;
color: #388e3c;
}
.btn-green:hover {
background: #c8e6c9;
}
.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;
border-width: 2px;
padding: 11px; /* 补偿边框宽度 */
}
.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 - 150px);
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;
}
/* 简化的灵光/神光列表项 */
.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;
padding: 9px 11px; /* 补偿边框宽度 */
}
.inspiration-item-name {
font-weight: bold;
color: #9c27b0;
margin-bottom: 4px;
font-size: 13px;
}
.inspiration-item-info {
font-size: 12px;
color: #666;
}
/* 神明选择标签组 */
.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;
user-select: none;
}
.god-tab:hover {
background: #d0d0d0;
}
.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;
}
/* 变体编辑区 */
.variant-edit-section {
background: #f3e5f5;
padding: 15px;
border-radius: 6px;
margin-top: 20px;
border-left: 4px solid #9c27b0;
}
/* 列表容器 */
.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;
}
/* 复选框样式 */
.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;
}
/* 滚动条美化 */
.card-input-section::-webkit-scrollbar,
.card-list-section::-webkit-scrollbar,
.card-preview-section::-webkit-scrollbar,
.code-preview::-webkit-scrollbar,
.dropdown-menu::-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,
.dropdown-menu::-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,
.dropdown-menu::-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,
.dropdown-menu::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* 响应式设计 */
@media (max-width: 1400px) {
.card-manager {
flex-direction: column;
}
.card-input-section,
.card-list-section,
.card-preview-section {
flex: 1;
max-height: none;
}
}
@media (max-width: 768px) {
.card-manager {
padding: 10px;
gap: 10px;
}
.card-input-section,
.card-list-section,
.card-preview-section {
padding: 15px;
}
.button-group {
flex-direction: column;
}
.btn {
width: 100%;
}
}