mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-13 08:27:51 +00:00
improved theme selection mechanism: don't force display:block on every themable element.
This commit is contained in:
parent
20c078fb38
commit
f3b82534e4
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user