Skip to content

Commit

Permalink
Design: 숫자 + 단위 계산/계산 x 스타일 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
YuuRiLee committed Apr 15, 2021
1 parent a6be072 commit 418990f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/plugins/unitDecorator/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { palette } from 'themes/palatte';

export const CustomInline = {
NOT_CALCULATE: 'NOT_CALCULATE',
};

export const UnitDecoratorStyleMap = {
NOT_CALCULATE: {
background: 'transparent',
margin: '0',
padding: '0',
background: palette.action.disabledBackground,
color: palette.text.primary,
},
};
10 changes: 8 additions & 2 deletions src/plugins/unitDecorator/unitDecorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,17 @@ export interface UnitDecoratorProps {

const DecoratorWrapper = styled.span`
> span {
background: ${palette.grey[400]};
background: ${palette.primary.main};
margin: ${theme.spacing(0, 0.5)};
padding: ${theme.spacing(0.5, 1)};
border-radius: ${theme.spacing(1)};
border-radius: ${theme.spacing(0.5)};
color: ${theme.palette.background.paper};
box-shadow: ${theme.shadows[2]};
cursor: pointer;
&:hover {
box-shadow: ${theme.shadows[4]};
}
}
`;

Expand Down

0 comments on commit 418990f

Please sign in to comment.