Skip to content

Commit

Permalink
chore: update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyouxin committed Sep 18, 2023
1 parent 6630178 commit 7c746da
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/components/DecimalCapacity/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import classNames from 'classnames'
import i18n from '../../utils/i18n'
import { DecimalPanel, DecimalPartPanel, DecimalZerosPanel } from './styled'
import styles from './styles.module.scss'

export default ({
value,
Expand Down Expand Up @@ -34,7 +36,7 @@ export default ({

return (
<DecimalPanel>
<span className={balanceChangeTypeClass}>{integer}</span>
<span className={classNames(balanceChangeTypeClass, styles.intergerPart)}>{integer}</span>
<DecimalPartPanel
className={`monospace ${balanceChangeTypeClass}`}
fontSize={fontSize}
Expand Down
4 changes: 2 additions & 2 deletions src/components/DecimalCapacity/styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const DecimalPanel = styled.div`
export const DecimalPartPanel = styled.div`
margin-bottom: ${(props: { marginBottom: string }) => (props.marginBottom ? props.marginBottom : '1px')};
font-size: ${(props: { fontSize?: string; color?: string; marginBottom: string }) =>
props.fontSize ? props.fontSize : '12px'};
props.fontSize ? props.fontSize : '14px'};
color: ${(props: { color?: string }) => (props.color ? props.color : '#999999')};
@media (max-width: 1000px) {
Expand All @@ -40,7 +40,7 @@ export const DecimalPartPanel = styled.div`
export const DecimalZerosPanel = styled.div`
margin-bottom: ${(props: { marginBottom: string }) => (props.marginBottom ? props.marginBottom : '1px')};
font-size: ${(props: { fontSize?: string; color?: string; marginBottom: string }) =>
props.fontSize ? props.fontSize : '12px'};
props.fontSize ? props.fontSize : '14px'};
color: ${(props: { color?: string }) => (props.color ? props.color : '#999999')};
@media (max-width: 1000px) {
Expand Down
3 changes: 3 additions & 0 deletions src/components/DecimalCapacity/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.intergerPart {
font-size: 16px;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.transactionBadge {
font-size: 12px;
padding: 1px 8px;
height: 24px;
line-height: 24px;
padding: 0 8px;

border-radius: 4px;
border: 1px solid #b0cbfc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@

&:first-child {
text-align: left;
font-size: 16px;
color: #333;
}

Expand Down

0 comments on commit 7c746da

Please sign in to comment.