feat: bootstrap personal stock agent
This commit is contained in:
332
web/src/client/styles.css
Normal file
332
web/src/client/styles.css
Normal file
@@ -0,0 +1,332 @@
|
||||
:root {
|
||||
color: #18202c;
|
||||
background: #eef1f4;
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-width: 320px;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.shell {
|
||||
width: min(1180px, calc(100% - 32px));
|
||||
margin: 0 auto;
|
||||
padding: 28px 0 40px;
|
||||
}
|
||||
|
||||
.topbar,
|
||||
.layout,
|
||||
.metrics,
|
||||
.reportGrid,
|
||||
.itemTitle,
|
||||
.panelHeader,
|
||||
.watchItem,
|
||||
.quoteLine {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
grid-template-columns: 1fr auto;
|
||||
align-items: center;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 4px;
|
||||
color: #596579;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(30px, 4vw, 48px);
|
||||
line-height: 1.05;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 18px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.iconText {
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: #184c8f;
|
||||
color: #fff;
|
||||
min-height: 42px;
|
||||
padding: 0 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.iconText {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.iconButton,
|
||||
.ghostIcon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.iconButton {
|
||||
border: 0;
|
||||
background: #1f7a5c;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.ghostIcon {
|
||||
border: 1px solid #d6dce5;
|
||||
background: #fff;
|
||||
color: #596579;
|
||||
}
|
||||
|
||||
.alert {
|
||||
border-left: 4px solid #bd3b3b;
|
||||
background: #fff;
|
||||
color: #8f2020;
|
||||
padding: 12px 14px;
|
||||
margin-bottom: 18px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.metrics {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.metric,
|
||||
.panel,
|
||||
.report,
|
||||
.reportItem {
|
||||
background: #fff;
|
||||
border: 1px solid #dfe4ea;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.metric {
|
||||
min-height: 104px;
|
||||
padding: 18px;
|
||||
display: grid;
|
||||
align-content: space-between;
|
||||
}
|
||||
|
||||
.metric svg {
|
||||
color: #b45f24;
|
||||
}
|
||||
|
||||
.metric span {
|
||||
color: #667085;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.metric strong {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.layout {
|
||||
grid-template-columns: 1.15fr 0.85fr;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.panel,
|
||||
.report {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.panelHeader {
|
||||
grid-template-columns: 1fr auto;
|
||||
align-items: start;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.panelHeader p,
|
||||
.panelHeader span,
|
||||
.reason,
|
||||
.empty,
|
||||
.detailRows,
|
||||
.watchItem span {
|
||||
color: #667085;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.stockForm {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr auto;
|
||||
gap: 10px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.configRows {
|
||||
display: grid;
|
||||
grid-template-columns: 92px minmax(0, 1fr);
|
||||
gap: 10px 12px;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.configRows span {
|
||||
color: #465366;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.configRows strong {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
min-height: 42px;
|
||||
border: 1px solid #cad2dd;
|
||||
border-radius: 8px;
|
||||
padding: 0 12px;
|
||||
color: #18202c;
|
||||
background: #f9fafb;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
outline: 2px solid #8bb8e8;
|
||||
border-color: #184c8f;
|
||||
}
|
||||
|
||||
.watchlist {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.watchItem {
|
||||
grid-template-columns: 1fr auto;
|
||||
align-items: center;
|
||||
padding: 10px 0;
|
||||
border-top: 1px solid #edf0f3;
|
||||
}
|
||||
|
||||
.watchItem div,
|
||||
.itemTitle div {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.reportGrid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.reportItem {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.itemTitle {
|
||||
grid-template-columns: 1fr auto;
|
||||
align-items: center;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.badge {
|
||||
border-radius: 999px;
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.buy_watch {
|
||||
color: #0f5c43;
|
||||
background: #dff4eb;
|
||||
}
|
||||
|
||||
.hold {
|
||||
color: #684513;
|
||||
background: #f8ead2;
|
||||
}
|
||||
|
||||
.avoid {
|
||||
color: #8f2020;
|
||||
background: #f7dddd;
|
||||
}
|
||||
|
||||
.quoteLine {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.quoteLine span {
|
||||
border-radius: 8px;
|
||||
background: #f2f5f8;
|
||||
min-height: 34px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.reason {
|
||||
min-height: 38px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.detailRows {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.news {
|
||||
display: block;
|
||||
color: #184c8f;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.shell {
|
||||
width: min(100% - 20px, 720px);
|
||||
padding-top: 18px;
|
||||
}
|
||||
|
||||
.topbar,
|
||||
.layout,
|
||||
.reportGrid,
|
||||
.metrics {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.stockForm {
|
||||
grid-template-columns: 1fr auto;
|
||||
}
|
||||
|
||||
.stockForm input:first-child {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user