improved theme selection mechanism: don't force display:block on every themable element.

This commit is contained in:
Miguel Freitas 2014-09-25 22:50:17 -03:00
parent 20c078fb38
commit f3b82534e4
2 changed files with 3 additions and 3 deletions

View File

@ -472,7 +472,7 @@
<!-- ÁREA DE POSTS INIT -->
<div class="postboard">
<h2>
<span class="selectable_theme theme_original">Posts</span>
<span class="selectable_theme theme_original theme_calm">Posts</span>
<!-- o botão de novas postagens deve ser ocultado quando o usuário clicá-lo via javascript -->
<button class="postboard-news" style="display:none;"></button>
</h2>

View File

@ -1232,8 +1232,8 @@ function changeStyle() {
}
$('#stylecss').attr('href', style);
$('#profilecss').attr('href', profile);
$("<style type='text/css'> .selectable_theme{display:none!important;}\n" +
".theme_" + theme + "{display:block!important;}</style>").appendTo("head");
$("<style type='text/css'> .selectable_theme:not(.theme_" + theme + ")" +
"{display:none!important;}\n</style>").appendTo("head");
setTimeout(function(){$(menu).removeAttr('style')}, 0);
}