Files
DelLevin-Home f1b9f6a1d0 222
2026-01-30 22:43:35 +08:00

120 lines
2.6 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* static/style.css */
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
margin: 0;
padding: 20px;
background-color: #f6f8fa;
color: #24292f;
min-height: 100vh;
display: flex;
flex-direction: column; /* 改为列布局 */
align-items: center; /* 水平居中 */
}
.page-header {
text-align: center;
margin-bottom: 20px;
width: 100%; /* 确保标题占据全宽 */
}
.page-header h2 {
margin: 0 0 8px 0; /* 减少底部边距 */
color: #24292f;
font-size: 24px;
}
.page-header p {
margin: 4px 0;
color: #57606a;
font-size: 14px;
}
.container {
display: flex;
width: 90%;
max-width: 1600px; /* 增加最大宽度 */
gap: 20px; /* 面板间距 */
flex: 1; /* 容器占据剩余空间 */
height: 60vh; /* 调整容器高度,给标题留出空间 */
}
.panel {
flex: 1; /* 左右各占50% */
display: flex;
flex-direction: column;
background-color: #ffffff;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
overflow: hidden; /* 防止内容溢出圆角 */
}
.panel h2 {
margin: 0;
padding: 12px 16px;
font-size: 16px;
font-weight: 600;
background-color: #f6f8fa;
border-bottom: 1px solid #eaecef;
color: #57606a;
}
textarea {
flex: 1; /* 占据剩余空间 */
padding: 16px;
border: none;
resize: none; /* 禁用拖拽调整大小由JS控制 */
font-size: 14px;
line-height: 1.5;
background-color: #ffffff;
color: #24292f;
outline: none;
font-family: inherit;
min-height: 200px; /* 设置最小高度 */
}
textarea:focus {
/* Typecho 风格无明显焦点样式,保持简洁 */
}
.controls {
display: flex;
justify-content: flex-end; /* 按钮靠右 */
gap: 8px; /* 按钮间距 */
padding: 12px 16px;
background-color: #f6f8fa;
border-top: 1px solid #eaecef;
}
button {
padding: 6px 12px;
font-size: 12px;
font-weight: 500;
color: #24292f;
background-color: #f6f8fa;
border: 1px solid #d0d7de;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s ease;
}
button:hover {
background-color: #f3f4f6;
}
button:active {
background-color: #eaecef;
}
button[type="submit"] {
background-color: #238636; /* 绿色按钮 */
color: white;
border-color: #238636;
}
button[type="submit"]:hover {
background-color: #2ea043;
}
button[type="submit"]:active {
background-color: #3fb950;
}