Skip to content

Commit

Permalink
CSS bugs Fixed
Browse files Browse the repository at this point in the history
Changelog :

Improved bottom & flat code
Fixed Watch logger's Collapsing.
Fixed Sidebar overview position.
  • Loading branch information
hmrserver committed Apr 22, 2017
1 parent 2397987 commit 9eb25fc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
13 changes: 13 additions & 0 deletions themes/Flat/bottom.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<script>
(function() {
var nodes = document.getElementById('submenu_0').getElementsByTagName('span');
for(var i=0; i<nodes.length; i++) {
iconPath = nodes[i].getAttribute("data-icon_path");
if(typeof iconPath != "undefined" && iconPath != "")
{
nodes[i].style.background = "url("+iconPath+") 0% 50% / 16px 16px no-repeat scroll transparent";
nodes[i].style.padding = "5px 0 5px 25px";
}
}
})();
</script>
<div id="bottomWrapper">
<div class="image" style="padding-top:20px"> Crafted with <i class="fa fa-heart pulse_heart" original-title="Love"></i> by <a href="http://community.mybb.com/user-98457.html" style="color: rgb(23, 108, 235);">HMR</a>
%footer%
Expand Down
15 changes: 2 additions & 13 deletions themes/Flat/js/Flat.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,9 @@ $(".slider").click(function() {
}
}); //treeview.each end.
$.sidebarMenu($('.menu'));

$(".copied > a > span").css("background", "");
$(".copied > a > span").css("padding", "");
$(".copied > a > span").css("padding", "");
if(window.location.href.indexOf("home.php?m=") > -1) {
$(".menu").prepend('<div class="avatar-cover"><span class="avatar-username"></span><span class="avatar-status"><i class="fa fa-circle"></i>Online</span><label class="edit_avatar"><i class="fa fa-camera"></i><input class="avatarinput" type="file" /></label><span id="remove_avatar"><i class="fa fa-trash"></i></span></div>');
$(".avatar-username").text($("li.treeview > a.user_menu_link span.username").text());
Expand All @@ -210,18 +211,6 @@ $(".slider").click(function() {
$("#avatar").attr('style', 'border-radius: 100%;width: 64px;height: 64px;');
} //href index of end.

var nodes = document.getElementById('submenu_0').getElementsByTagName('span');

for(var i=0; i<nodes.length; i++) {
iconPath = nodes[i].getAttribute("data-icon_path");
if(typeof iconPath != "undefined" && iconPath != "") {
nodes[i].style.background = "url("+iconPath+") 0% 50% / 16px 16px no-repeat scroll transparent";
nodes[i].style.padding = "5px 0 5px 25px";
}
}



//You might want to do if check to see if localstorage set for theImage here

$('body').on('click', '#remove_avatar',function(){
Expand Down
4 changes: 3 additions & 1 deletion themes/Flat/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ hr {
.menu>ul li>ul>li>a>.fastdl:before {
content: "\f019"
}

.menu > ul li > ul > li > a > .fast_download:before {
content: "\f019"
}
.menu>ul li>ul>li>a>.user_admin:before,
.menu ul>li>a>span.subusers:before {
content: "\f234"
Expand Down

0 comments on commit 9eb25fc

Please sign in to comment.