1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-08-01 11:50:25 +02:00

editor "active" class feature

This commit is contained in:
codecalm
2020-03-21 12:20:38 +01:00
parent d6df9fa7c4
commit ae85645c5e
2 changed files with 7 additions and 0 deletions

View File

@@ -113,6 +113,9 @@ layout: default
.on('click', '.js-icon', function (e) {
var icon = $(this).attr('data-icon');
$('.js-icon').removeClass('active');
$(this).addClass('active');
$('.js-icon-name').html(icon);
localStorage.setItem('icon', icon);

View File

@@ -179,6 +179,10 @@ a {
justify-content: center;
border: 1px solid transparent;
&.active {
background: #f0f0f0;
}
@at-root a#{&}:hover {
opacity: .75;
}