File tree 2 files changed +14
-12
lines changed
2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -6,28 +6,28 @@ hr.about {
6
6
text-align : center;
7
7
}
8
8
9
- i .tool-icon ::before {
10
- font-size : 300% ;
11
- opacity : 1 ;
12
- }
13
-
14
- i .tool-icon : not (.colored )::before {
15
- color : # 696969 ;
16
- opacity : 0.5 !important ;
17
- }
18
-
19
9
a .tool {
20
10
display : inline-block;
21
11
padding : 0.5rem ;
22
12
border-bottom : unset !important ;
23
13
transition : transform 0.2s ;
24
14
}
25
15
26
- a .tool : hover {
16
+ a .tool . hovered {
27
17
transform : scale (1.5 );
28
18
transition : transform 0.2s ;
29
19
}
30
20
31
21
a .tool .disabled {
32
22
cursor : default;
33
23
}
24
+
25
+ i .tool-icon ::before {
26
+ font-size : 300% ;
27
+ opacity : 1 ;
28
+ }
29
+
30
+ i .tool-icon : not (.colored )::before {
31
+ color : # 696969 ;
32
+ opacity : 0.5 !important ;
33
+ }
Original file line number Diff line number Diff line change @@ -121,15 +121,17 @@ document.querySelectorAll('.tool-icon').forEach((ti) => {
121
121
event ,
122
122
( ) => {
123
123
ti . classList . add ( 'colored' ) ;
124
+ ti . parentElement . classList . add ( 'hovered' ) ;
124
125
} ,
125
126
{ passive : true }
126
127
)
127
128
) ;
128
- [ 'mouseleave' , 'touchend' ] . forEach ( ( event ) =>
129
+ [ 'mouseleave' , 'touchend' , 'touchcancel' ] . forEach ( ( event ) =>
129
130
ti . addEventListener (
130
131
event ,
131
132
( ) => {
132
133
ti . classList . remove ( 'colored' ) ;
134
+ ti . parentElement . classList . remove ( 'hovered' ) ;
133
135
} ,
134
136
{ passive : true }
135
137
)
You can’t perform that action at this time.
0 commit comments