Commit 128e780c authored by afc163's avatar afc163

Fix Chart Card field style

parent cdf711da
...@@ -4,8 +4,8 @@ import styles from './index.less'; ...@@ -4,8 +4,8 @@ import styles from './index.less';
const Field = ({ label, value, ...rest }) => ( const Field = ({ label, value, ...rest }) => (
<div className={styles.field} {...rest}> <div className={styles.field} {...rest}>
<span>{label}</span> <span className={styles.label}>{label}</span>
<span>{value}</span> <span className={styles.number}>{value}</span>
</div> </div>
); );
......
...@@ -5,12 +5,13 @@ ...@@ -5,12 +5,13 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
margin: 0; margin: 0;
span { .label,
.number {
font-size: @font-size-base; font-size: @font-size-base;
line-height: 22px; line-height: 22px;
} }
span:last-child { .number {
margin-left: 8px;
color: @heading-color; color: @heading-color;
margin-left: 8px;
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment