mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-28 01:21:13 +01:00
theme selection buttons
This commit is contained in:
@@ -43,6 +43,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
[data-theme].selected .mdl-button {
|
||||
color: black;
|
||||
}
|
||||
|
||||
[data-type="bootswatch"] {
|
||||
.mdl-card__title {
|
||||
height: 198px;
|
||||
|
||||
@@ -63,8 +63,19 @@ define('admin/appearance/skins', function() {
|
||||
};
|
||||
|
||||
function highlightSelectedTheme(themeId) {
|
||||
$('.themes li[data-theme]').removeClass('selected').find('[data-action="use"]').html('Use Theme').removeClass('btn-success').addClass('btn-primary');
|
||||
$('.themes li[data-theme="' + themeId + '"]').addClass('selected').find('[data-action="use"]').html('Current Theme').removeClass('btn-primary').addClass('btn-success');
|
||||
$('[data-theme]')
|
||||
.removeClass('selected')
|
||||
.find('[data-action="use"]')
|
||||
.html('Select Theme')
|
||||
.removeClass('btn-success')
|
||||
.addClass('btn-primary');
|
||||
|
||||
$('[data-theme="' + themeId + '"]')
|
||||
.addClass('selected')
|
||||
.find('[data-action="use"]')
|
||||
.html('Current Theme')
|
||||
.removeClass('btn-primary')
|
||||
.addClass('btn-success');
|
||||
}
|
||||
|
||||
return Skins;
|
||||
|
||||
@@ -84,8 +84,19 @@ define('admin/appearance/themes', function() {
|
||||
};
|
||||
|
||||
function highlightSelectedTheme(themeId) {
|
||||
$('.themes li[data-theme]').removeClass('selected');
|
||||
$('.themes li[data-theme="' + themeId + '"]').addClass('selected');
|
||||
$('[data-theme]')
|
||||
.removeClass('selected')
|
||||
.find('[data-action="use"]')
|
||||
.html('Select Theme')
|
||||
.removeClass('btn-success')
|
||||
.addClass('btn-primary');
|
||||
|
||||
$('[data-theme="' + themeId + '"]')
|
||||
.addClass('selected')
|
||||
.find('[data-action="use"]')
|
||||
.html('Current Theme')
|
||||
.removeClass('btn-primary')
|
||||
.addClass('btn-success');
|
||||
}
|
||||
|
||||
return Themes;
|
||||
|
||||
Reference in New Issue
Block a user