File tree 3 files changed +14
-0
lines changed
src/librustdoc/html/static
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1406,6 +1406,18 @@ pre.rust {
1406
1406
cursor : pointer;
1407
1407
}
1408
1408
1409
+ @keyframes rotating {
1410
+ from {
1411
+ transform : rotate (0deg );
1412
+ }
1413
+ to {
1414
+ transform : rotate (360deg );
1415
+ }
1416
+ }
1417
+ # settings-menu .rotate img {
1418
+ animation : rotating 2s linear infinite;
1419
+ }
1420
+
1409
1421
# help-button {
1410
1422
font-family : "Fira Sans" , Arial, sans-serif;
1411
1423
text-align : center;
Original file line number Diff line number Diff line change @@ -301,6 +301,7 @@ function loadCss(cssFileName) {
301
301
}
302
302
303
303
getSettingsButton ( ) . onclick = event => {
304
+ addClass ( getSettingsButton ( ) , "rotate" ) ;
304
305
event . preventDefault ( ) ;
305
306
loadScript ( window . settingsJS ) ;
306
307
} ;
Original file line number Diff line number Diff line change 274
274
if ( ! isSettingsPage ) {
275
275
switchDisplayedElement ( settingsMenu ) ;
276
276
}
277
+ removeClass ( getSettingsButton ( ) , "rotate" ) ;
277
278
} , 0 ) ;
278
279
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments