File tree Expand file tree Collapse file tree 2 files changed +6
-39
lines changed Expand file tree Collapse file tree 2 files changed +6
-39
lines changed Original file line number Diff line number Diff line change @@ -47,20 +47,12 @@ export function FooterImpl() {
47
47
) }
48
48
</ div >
49
49
50
- < style
51
- dangerouslySetInnerHTML = { {
52
- __html : socialLinks . map ( ( action ) => (
53
- `.social-link-footer-${ action . name } {}
54
- .social-link-footer-${ action . name } :hover { color: ${ action . color } ; }
55
- `
56
- ) ) . join ( '\n' )
57
- } }
58
- />
59
-
60
50
< div className = { styles . social } >
61
51
{ socialLinks . map ( ( action ) => (
62
52
< a
63
- className = { cs ( styles [ action . name ] , `social-link-footer-${ action . name } ` ) }
53
+ key = { action . name }
54
+ style = { { '--hover-color' : action . color } as React . CSSProperties }
55
+ className = { styles [ action . name ] }
64
56
href = { action . href }
65
57
title = { action . title }
66
58
target = '_blank'
Original file line number Diff line number Diff line change 85
85
.social a : hover {
86
86
transition : color 50ms ease-out;
87
87
}
88
-
89
- .toggleDarkMode : hover {
90
- color : # 2795e9 ;
88
+ .social a : hover {
89
+ color : var (--hover-color );
91
90
}
92
91
93
- .twitter : hover {
92
+ .toggleDarkMode : hover {
94
93
color : # 2795e9 ;
95
94
}
96
95
97
- .mastodon : hover {
98
- color : # 5a4be1 ;
99
- }
100
-
101
- .zhihu : hover {
102
- color : # 0066ff ;
103
- }
104
-
105
- .github : hover {
106
- color : # c9510c ;
107
- }
108
-
109
- .youtube : hover {
110
- color : # ff0000 ;
111
- }
112
-
113
- .linkedin : hover {
114
- color : # 0077b5 ;
115
- }
116
-
117
- .newsletter : hover {
118
- color : # 777777 ;
119
- }
120
-
121
96
.comments {
122
97
width : 100% ;
123
98
margin-top : 2em ;
You can’t perform that action at this time.
0 commit comments