feat: style balance sheet comparison.

This commit is contained in:
elforjani13
2022-01-13 16:25:46 +02:00
parent 7a0d506395
commit 85a78b3809
2 changed files with 22 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import { Row, Col, FieldHint } from '../../../components';
*/ */
export default function BalanceSheetHeaderComparisonPanal() { export default function BalanceSheetHeaderComparisonPanal() {
return ( return (
<div> <BalanceSheetComparisonWrap>
{/*------------ Percentage -----------*/} {/*------------ Percentage -----------*/}
<Row> <Row>
<Col xs={3}> <Col xs={3}>
@@ -137,6 +137,24 @@ export default function BalanceSheetHeaderComparisonPanal() {
</FastField> </FastField>
</Col> </Col>
</Row> </Row>
</div> </BalanceSheetComparisonWrap>
); );
} }
const BalanceSheetComparisonWrap = styled.div`
.row {
display: flex;
flex-wrap: nowrap;
margin-left: -0.3rem;
margin-right: -0.3rem;
.col {
padding-left: 0.3rem;
padding-right: 0.3rem;
.bp3-form-group {
margin-bottom: 0;
}
}
}
`;

View File

@@ -6,8 +6,8 @@
.thead, .thead,
.tbody{ .tbody{
.tr .td.account_name ~ .td, .tr .td.name ~ .td,
.tr .th.account_name ~ .th{ .tr .th.name ~ .th{
text-align: right; text-align: right;
} }
} }