MiniCPM5-Pi-Web-Agent / src /styles.css
Mike0021's picture
Deploy static pi web agent
21e6b9b verified
:root {
color: #172033;
background: #f3f6f9;
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
}
button,
input,
select,
textarea {
font: inherit;
}
#app {
min-height: 100vh;
padding: 18px;
}
.shell {
width: min(1280px, 100%);
margin: 0 auto;
}
.topbar {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
padding: 8px 0 18px;
border-bottom: 1px solid #c7d2df;
}
h1,
h2,
p {
margin: 0;
}
h1 {
font-size: 38px;
line-height: 1;
letter-spacing: 0;
}
h2 {
font-size: 15px;
line-height: 1.2;
color: #405064;
}
#model-label {
margin-top: 8px;
color: #5d6c7f;
overflow-wrap: anywhere;
}
.status-stack {
display: flex;
flex-wrap: wrap;
justify-content: end;
gap: 8px;
max-width: 620px;
}
.status {
min-height: 34px;
max-width: 260px;
padding: 7px 10px;
border: 1px solid #b7c4d3;
border-radius: 6px;
background: #ffffff;
color: #314155;
overflow-wrap: anywhere;
}
.controls {
display: grid;
grid-template-columns: 1.2fr 1fr 1fr 1fr;
gap: 12px;
margin: 18px 0 12px;
}
label {
display: grid;
gap: 6px;
color: #526173;
font-size: 14px;
font-weight: 650;
}
select,
input,
textarea {
width: 100%;
border: 1px solid #b8c5d4;
border-radius: 6px;
background: #ffffff;
color: #152033;
}
select,
input {
height: 42px;
padding: 0 10px;
}
.command-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 14px;
}
button {
min-width: 116px;
height: 42px;
padding: 0 16px;
border: 0;
border-radius: 6px;
background: #176b6c;
color: #ffffff;
font-weight: 750;
cursor: pointer;
}
button:nth-child(2) {
background: #4f5f73;
}
button:nth-child(3) {
background: #7a4d18;
}
button:disabled {
cursor: wait;
opacity: 0.64;
}
.workspace {
display: grid;
gap: 14px;
}
.prompt-pane {
display: grid;
gap: 10px;
}
textarea {
min-height: 116px;
resize: vertical;
padding: 13px;
line-height: 1.45;
}
#run {
width: fit-content;
}
.panes {
display: grid;
grid-template-columns: 1.35fr 0.9fr;
gap: 12px;
}
.pane {
display: grid;
gap: 8px;
min-width: 0;
}
.pane.wide {
grid-column: 1 / -1;
}
pre {
min-height: 220px;
max-height: 360px;
margin: 0;
padding: 14px;
border: 1px solid #b8c5d4;
border-radius: 6px;
background: #fbfcfd;
color: #162033;
line-height: 1.45;
white-space: pre-wrap;
overflow: auto;
overflow-wrap: anywhere;
}
#event-log {
min-height: 150px;
max-height: 220px;
}
@media (max-width: 780px) {
#app {
padding: 12px;
}
.topbar {
align-items: stretch;
flex-direction: column;
}
.status-stack {
justify-content: start;
}
.controls,
.panes {
grid-template-columns: 1fr;
}
}