feat(@vben/web-antd): add finance cost management pages
This commit is contained in:
146
apps/web-antd/src/views/finance/cost/styles/analysis.less
Normal file
146
apps/web-antd/src/views/finance/cost/styles/analysis.less
Normal file
@@ -0,0 +1,146 @@
|
||||
/**
|
||||
* 文件职责:成本分析区域样式。
|
||||
*/
|
||||
.fc-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.fc-stat-card {
|
||||
padding: 16px;
|
||||
background: #fff;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 8px rgb(15 23 42 / 5%);
|
||||
}
|
||||
|
||||
.fc-stat-label {
|
||||
margin-bottom: 8px;
|
||||
font-size: 12px;
|
||||
color: rgb(0 0 0 / 45%);
|
||||
}
|
||||
|
||||
.fc-stat-value {
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
|
||||
&.is-up {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
&.is-down {
|
||||
color: #16a34a;
|
||||
}
|
||||
|
||||
&.is-flat {
|
||||
color: rgb(0 0 0 / 65%);
|
||||
}
|
||||
}
|
||||
|
||||
.fc-section-title {
|
||||
padding-left: 10px;
|
||||
margin-bottom: 14px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
border-left: 3px solid #1677ff;
|
||||
}
|
||||
|
||||
.fc-chart-card,
|
||||
.fc-composition-card,
|
||||
.fc-table-card {
|
||||
padding: 18px;
|
||||
background: #fff;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 8px rgb(15 23 42 / 5%);
|
||||
}
|
||||
|
||||
.fc-trend-chart {
|
||||
height: 260px;
|
||||
}
|
||||
|
||||
.fc-composition-body {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.fc-composition-chart-wrap {
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
width: 220px;
|
||||
height: 220px;
|
||||
}
|
||||
|
||||
.fc-composition-chart {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.fc-composition-center {
|
||||
position: absolute;
|
||||
inset: 71px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.fc-composition-center-value {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
}
|
||||
|
||||
.fc-composition-center-label {
|
||||
font-size: 11px;
|
||||
color: rgb(0 0 0 / 45%);
|
||||
}
|
||||
|
||||
.fc-composition-legend {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.fc-composition-legend-item {
|
||||
display: grid;
|
||||
grid-template-columns: 10px 1fr auto auto;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.fc-composition-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.fc-composition-name {
|
||||
color: rgb(0 0 0 / 88%);
|
||||
}
|
||||
|
||||
.fc-composition-amount {
|
||||
min-width: 88px;
|
||||
color: rgb(0 0 0 / 65%);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.fc-composition-percent {
|
||||
min-width: 54px;
|
||||
font-weight: 600;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.fc-total-amount {
|
||||
font-weight: 700;
|
||||
color: #1677ff;
|
||||
}
|
||||
Reference in New Issue
Block a user