mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-08-20 04:42:05 +02:00
editor "active" class feature
This commit is contained in:
@@ -113,6 +113,9 @@ layout: default
|
|||||||
.on('click', '.js-icon', function (e) {
|
.on('click', '.js-icon', function (e) {
|
||||||
var icon = $(this).attr('data-icon');
|
var icon = $(this).attr('data-icon');
|
||||||
|
|
||||||
|
$('.js-icon').removeClass('active');
|
||||||
|
$(this).addClass('active');
|
||||||
|
|
||||||
$('.js-icon-name').html(icon);
|
$('.js-icon-name').html(icon);
|
||||||
localStorage.setItem('icon', icon);
|
localStorage.setItem('icon', icon);
|
||||||
|
|
||||||
|
@@ -179,6 +179,10 @@ a {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
background: #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
@at-root a#{&}:hover {
|
@at-root a#{&}:hover {
|
||||||
opacity: .75;
|
opacity: .75;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user