201 lines
3.5 KiB
CSS
201 lines
3.5 KiB
CSS
.cc-mobile-page {
|
|
min-height: 100vh;
|
|
background: #f5f7fa;
|
|
}
|
|
|
|
.cc-mobile-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 14px;
|
|
background: #fff;
|
|
border-bottom: 1px solid #e8ecf1;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.cc-mobile-content {
|
|
padding: 12px;
|
|
}
|
|
|
|
.cc-mobile-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
padding-bottom: 4px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.cc-mobile-actions::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.cc-mobile-action-btn {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
border-radius: 16px;
|
|
border: 1px solid #e2e8f0;
|
|
background: #fff;
|
|
color: #1677ff;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
min-height: 36px;
|
|
}
|
|
|
|
.cc-mobile-action-btn:active {
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
.cc-mobile-action-btn--danger {
|
|
color: #ef4444;
|
|
border-color: #fecaca;
|
|
}
|
|
|
|
.cc-mobile-select-area {
|
|
margin-bottom: 12px;
|
|
background: #fff;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid #e8ecf1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.cc-mobile-swap-row {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.cc-mobile-upload {
|
|
background: #fff;
|
|
border: 1px dashed #91caff;
|
|
border-radius: 8px;
|
|
padding: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
margin-bottom: 12px;
|
|
font-size: 13px;
|
|
color: #1677ff;
|
|
}
|
|
|
|
.cc-mobile-upload:active {
|
|
background: #e6f4ff;
|
|
}
|
|
|
|
.cc-mobile-textarea {
|
|
width: 100%;
|
|
min-height: 160px;
|
|
padding: 12px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
color: #1e293b;
|
|
font-family: "Fira Code", "Cascadia Code", "JetBrains Mono", monospace;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
resize: vertical;
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.cc-mobile-textarea:focus {
|
|
border-color: #1677ff;
|
|
}
|
|
|
|
.cc-mobile-output {
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
min-height: 120px;
|
|
max-height: 360px;
|
|
overflow: auto;
|
|
margin-top: 12px;
|
|
font-family: "Fira Code", "Cascadia Code", "JetBrains Mono", monospace;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
color: #1e293b;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
@media (max-width: 320px) {
|
|
.cc-mobile-action-btn {
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.cc-mobile-textarea {
|
|
font-size: 12px;
|
|
min-height: 120px;
|
|
}
|
|
|
|
.cc-mobile-output {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-page {
|
|
background: #0f172a;
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-header {
|
|
background: #1e293b;
|
|
border-bottom-color: #334155;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-action-btn {
|
|
border-color: #334155;
|
|
background: #1e293b;
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-action-btn:active {
|
|
background: #334155;
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-action-btn--danger {
|
|
border-color: #7f1d1d;
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-select-area {
|
|
background: #1e293b;
|
|
border-color: #334155;
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-upload {
|
|
background: #1e293b;
|
|
border-color: #334155;
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-upload:active {
|
|
background: #334155;
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-textarea {
|
|
border-color: #334155;
|
|
background: #1e293b;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-textarea:focus {
|
|
border-color: #1677ff;
|
|
}
|
|
|
|
[data-theme="dark"] .cc-mobile-output {
|
|
background: #1e293b;
|
|
border-color: #334155;
|
|
color: #f1f5f9;
|
|
}
|