Files
python_script/flask-dev-api/static/style.css
2026-06-16 03:30:57 +08:00

105 lines
1.9 KiB
CSS

/* 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: #f5f5f5;
color: #333;
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: #333;
font-size: 24px;
}
.page-header p {
margin: 4px 0;
color: #666;
font-size: 14px;
}
.container {
display: flex;
width: 90%;
max-width: 1600px;
gap: 20px;
}
.panel {
flex: 1;
display: flex;
flex-direction: column;
background-color: #fff;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
border: 1px solid #e0e0e0;
overflow: hidden;
}
.panel h2 {
margin: 0;
padding: 12px 16px;
font-size: 16px;
font-weight: 600;
background-color: #f5f5f5;
border-bottom: 1px solid #e0e0e0;
color: #666;
}
textarea {
flex: 1;
padding: 16px;
border: none;
resize: none;
font-size: 14px;
line-height: 1.5;
background-color: #fff;
color: #333;
outline: none;
font-family: inherit;
min-height: 500px;
max-height: calc(100vh - 200px);
height: 60vh;
}
.controls {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 12px 16px;
background-color: #f5f5f5;
border-top: 1px solid #e0e0e0;
}
button {
padding: 6px 12px;
font-size: 12px;
font-weight: 500;
color: #666;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s ease;
}
button:hover {
background-color: #f0f0f0;
color: #333;
}
button:active {
background-color: #e5e5e5;
}