MediaWiki:Card.css
来自卡厄思梦境WIKI
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 卡牌管理器主容器 */
.card-manager {
display: flex;
gap: 20px;
padding: 20px;
background: #f5f5f5;
min-height: 100vh;
}
/* 左侧输入区 */
.card-input-panel {
flex: 0 0 350px;
background: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
height: fit-content;
}
/* 中间列表区 */
.card-list-panel {
flex: 1;
background: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* 右侧预览区 */
.card-preview-panel {
flex: 0 0 400px;
background: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
max-height: 90vh;
overflow-y: auto;
}
/* 表单项 */
.form-group {
margin-bottom: 15px;
}
.form-label {
display: block;
font-weight: bold;
margin-bottom: 5px;
color: #333;
}
/* 自定义下拉框 */
.custom-select {
position: relative;
width: 100%;
}
.select-display {
width: 100%;
padding: 8px 30px 8px 10px;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
cursor: pointer;
user-select: none;
}
.select-display:hover {
border-color: #999;
}
.select-arrow {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
}
.select-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
border: 1px solid #ddd;
border-top: none;
border-radius: 0 0 4px 4px;
max-height: 200px;
overflow-y: auto;
display: none;
z-index: 1000;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.select-dropdown.active {
display: block;
}
.select-option {
padding: 8px 10px;
cursor: pointer;
}
.select-option:hover {
background: #f0f0f0;
}
.select-option.selected {
background: #e3f2fd;
color: #1976d2;
}
/* 自定义输入框 */
.custom-input {
width: 100%;
padding: 8px 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
}
.custom-input:focus {
outline: none;
border-color: #1976d2;
}
/* 自定义文本域 */
.custom-textarea {
width: 100%;
padding: 8px 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
min-height: 100px;
resize: vertical;
box-sizing: border-box;
font-family: monospace;
}
.custom-textarea:focus {
outline: none;
border-color: #1976d2;
}
/* 格式化按钮容器 */
.format-buttons {
display: flex;
gap: 5px;
margin-bottom: 10px;
flex-wrap: wrap;
}
.format-btn {
padding: 5px 10px;
border: 1px solid #ddd;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
background: white;
transition: all 0.2s;
}
.format-btn:hover {
background: #f0f0f0;
}
.format-btn.blue {
color: #1976d2;
border-color: #1976d2;
}
.format-btn.green {
color: #4caf50;
border-color: #4caf50;
}
/* 多选框 */
.checkbox-group {
display: flex;
align-items: center;
gap: 10px;
}
.custom-checkbox {
width: 20px;
height: 20px;
border: 2px solid #ddd;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.custom-checkbox:hover {
border-color: #1976d2;
}
.custom-checkbox.checked {
background: #1976d2;
border-color: #1976d2;
}
.custom-checkbox.checked::after {
content: "✓";
color: white;
font-weight: bold;
}
/* 卡牌列表 */
.card-list-item {
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 10px;
cursor: pointer;
transition: all 0.2s;
display: flex;
justify-content: space-between;
align-items: center;
}
.card-list-item:hover {
background: #f5f5f5;
border-color: #1976d2;
}
.card-list-item.active {
background: #e3f2fd;
border-color: #1976d2;
}
.card-list-item-name {
font-weight: bold;
}
.card-list-item-info {
font-size: 12px;
color: #666;
}
.delete-btn {
padding: 5px 10px;
background: #f44336;
color: white;
border-radius: 4px;
cursor: pointer;
border: none;
font-size: 12px;
}
.delete-btn:hover {
background: #d32f2f;
}
/* 按钮 */
.btn {
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: bold;
transition: all 0.2s;
text-align: center;
border: none;
}
.btn-primary {
background: #1976d2;
color: white;
}
.btn-primary:hover {
background: #1565c0;
}
.btn-success {
background: #4caf50;
color: white;
}
.btn-success:hover {
background: #45a049;
}
.btn-group {
display: flex;
gap: 10px;
margin-top: 20px;
}
/* 预览代码 */
.preview-code {
background: #f5f5f5;
padding: 15px;
border-radius: 4px;
font-family: monospace;
font-size: 12px;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 80vh;
overflow-y: auto;
}
/* 标题 */
.panel-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
color: #333;
border-bottom: 2px solid #1976d2;
padding-bottom: 10px;
}
.section-title {
font-size: 16px;
font-weight: bold;
margin: 20px 0 10px 0;
color: #1976d2;
}
/* 顶部信息区 */
.default-info-section {
background: #e3f2fd;
padding: 15px;
border-radius: 4px;
margin-bottom: 20px;
}
/* 稀有度选择 */
.rarity-options {
display: flex;
gap: 10px;
}
.rarity-option {
flex: 1;
padding: 8px;
border: 2px solid #ddd;
border-radius: 4px;
text-align: center;
cursor: pointer;
transition: all 0.2s;
}
.rarity-option:hover {
border-color: #1976d2;
}
.rarity-option.selected {
border-color: #1976d2;
background: #e3f2fd;
font-weight: bold;
}
/* 神明选择 */
.god-options {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.god-option {
padding: 8px 15px;
border: 2px solid #ddd;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.god-option:hover {
border-color: #1976d2;
}
.god-option.selected {
border-color: #1976d2;
background: #e3f2fd;
font-weight: bold;
}
/* 类型选择 */
.type-options {
display: flex;
gap: 10px;
}
.type-option {
flex: 1;
padding: 8px;
border: 2px solid #ddd;
border-radius: 4px;
text-align: center;
cursor: pointer;
transition: all 0.2s;
}
.type-option:hover {
border-color: #1976d2;
}
.type-option.selected {
border-color: #1976d2;
background: #e3f2fd;
font-weight: bold;
}
/* 分组选择 */
.group-options {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.group-option {
padding: 8px 15px;
border: 2px solid #ddd;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.group-option:hover {
border-color: #1976d2;
}
.group-option.selected {
border-color: #1976d2;
background: #e3f2fd;
font-weight: bold;
}
/* 列表容器 */
.list-container {
margin-bottom: 20px;
}
.list-empty {
text-align: center;
color: #999;
padding: 20px;
font-style: italic;
}