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:
@@ -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);
|
||||
|
||||
|
@@ -179,6 +179,10 @@ a {
|
||||
justify-content: center;
|
||||
border: 1px solid transparent;
|
||||
|
||||
&.active {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
@at-root a#{&}:hover {
|
||||
opacity: .75;
|
||||
}
|
||||
|
Reference in New Issue
Block a user