Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit f2281f8

Browse files
author
Cristian Ungureanu
committed
#426 - keep current outline style
1 parent de1fa05 commit f2281f8

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

js/zerif.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,8 @@ jQuery(window).load(function() {
2424
jQuery( this ).parents().toggleClass( 'link-focus' );
2525
});
2626

27-
jQuery( '#carousel-homepage-latestnews' ).find('.carousel-control').on( 'keyup', function(e) {
28-
var code = e.keyCode || e.which;
29-
jQuery( '.carousel-control' ).removeClass('link-focus');
30-
if (code == '9') {
31-
jQuery( this ).toggleClass( 'link-focus' );
32-
return false;
33-
}
27+
jQuery('.carousel-control').click(function() {
28+
this.blur();
3429
});
3530

3631
});

style.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,11 +1783,15 @@ ul.nav > li.current_page_item.current > a:before {
17831783
background: none;
17841784
}
17851785

1786-
.carousel-control.link-focus:focus {
1786+
.carousel-control:focus {
17871787
outline: thin dotted #cb4332;
17881788
outline-offset: 0;
17891789
}
17901790

1791+
.carousel-control:active {
1792+
outline: 0;
1793+
}
1794+
17911795
.carousel-control.left {
17921796
margin-left: -45px;
17931797
}

0 commit comments

Comments
 (0)