@@ -21,6 +21,8 @@ import ArchivedIcon from '@/icons/article/Archived'
2121
2222import CollectionIcon from '@/icons/CollectionBookmark'
2323import ShareIcon from '@/icons/Share'
24+ import MoreLIcon from '@/icons/MoreL'
25+ import MoreIcon from '@/icons/More'
2426
2527// import CloseCross from '@/icons/CloseCross'
2628// import AirBalloon from '@/icons/AirBalloon'
@@ -37,14 +39,37 @@ const AirBalloon = dynamic(() => import('@/icons/AirBalloon'), {
3739
3840type TWrapper = Omit < TIconButtonProps , 'path' >
3941export const Wrapper = styled . div < TWrapper > `
42+ position: relative;
43+ ${ ( { size } ) => css . size ( size ) }
4044 ${ css . flex ( 'align-both' ) } ;
41- width: ${ ( { size } ) => `${ size } px` } ;
42- height: ${ ( { size } ) => `${ size } px` } ;
4345
4446 margin-left: ${ ( { mLeft } ) => `${ mLeft } px` } ;
4547 margin-right: ${ ( { mRight } ) => `${ mRight } px` } ;
4648 margin-top: ${ ( { mTop } ) => `${ mTop } px` } ;
4749 margin-bottom: ${ ( { mBottom } ) => `${ mBottom } px` } ;
50+
51+ /* &:before {
52+ content: '';
53+ ${ ( { size } ) => css . circle ( size + 2 ) } ;
54+ background: ${ theme ( 'hoverBg' ) } ;
55+ } */
56+ `
57+ export const Content = styled . div `
58+ z-index: 2;
59+ `
60+ export const HoverBg = styled . div < { size : number } > `
61+ position: absolute;
62+ ${ ( { size } ) => css . circle ( size + 4 ) } ;
63+ left: -2px;
64+ top: -2px;
65+ background: ${ theme ( 'hoverBg' ) } ;
66+ opacity: 0;
67+
68+ ${ Wrapper } :hover & {
69+ opacity: 1;
70+ }
71+
72+ transition: 0.25s;
4873`
4974type TIcon = { size : number ; $dimWhenIdle : boolean } & TSpace & TActive
5075export const Icon = styled ( Img ) < TIcon > `
@@ -116,7 +141,12 @@ export const getIcon = (type: string): FC<TIcon> => {
116141 case SVG . COMMENT : {
117142 return getStyledIcon ( CommentIcon )
118143 }
119-
144+ case SVG . MOREL : {
145+ return getStyledIcon ( MoreLIcon )
146+ }
147+ case SVG . MORE : {
148+ return getStyledIcon ( MoreIcon )
149+ }
120150 default : {
121151 return getStyledIcon ( UpvoteIcon )
122152 }
0 commit comments