File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 55 cardBackgroundColor ,
66 cardBorderColor ,
77 textColor ,
8+ tagBackgroundColor ,
9+ tagTextColor ,
10+ tagHoverBackgroundColor ,
811} from '../utils/theme' ;
912
1013const PostListContainer = styled . div `
@@ -76,16 +79,16 @@ const PostTags = styled.div`
7679const PostTag = styled ( Link ) `
7780 font-size: 0.85rem;
7881 padding: 0.2rem 0.6rem;
79- background-color: ${ ( props ) =>
80- props . theme . mode === 'light' ? '#f5f5f5' : '#444' } ;
81- color: ${ ( props ) => ( props . theme . mode === 'light' ? '#666' : '#e0e0e0' ) } ;
82+ background-color: ${ tagBackgroundColor } ;
83+ color: ${ tagTextColor } ;
8284 border-radius: 3px;
8385 text-decoration: none;
8486 transition: all 0.2s ease;
87+ border: 1px solid
88+ ${ ( props ) => ( props . theme . mode === 'light' ? '#eee' : '#444' ) } ;
8589
8690 &:hover {
87- background-color: ${ ( props ) =>
88- props . theme . mode === 'light' ? '#3498db' : '#64b5f6' } ;
91+ background-color: ${ tagHoverBackgroundColor } ;
8992 color: white;
9093 }
9194` ;
You can’t perform that action at this time.
0 commit comments