remove kernel logo text placeholder

This commit is contained in:
Min RK 2014-12-12 15:20:50 -08:00
parent da88bff678
commit 9f9714e11f
4 changed files with 1 additions and 19 deletions

View File

@ -127,7 +127,6 @@ define([
that.current_selection = data.name;
$("#kernel_indicator").find('.kernel_indicator_name').text(data.display_name);
that.element.find("img.current_kernel_logo").attr("src", that.notebook.base_url + "kernelspecs/" + data.name + "/logo-64x64.png");
that.element.find("div.current_kernel_logo").text(data.display_name.slice(0,1).toUpperCase());
});
this.events.on('kernel_created.Session', function(event, data) {
@ -141,14 +140,11 @@ define([
});
var logo_img = this.element.find("img.current_kernel_logo");
var logo_div = this.element.find("div.current_kernel_logo");
logo_img.on("load", function() {
logo_div.hide();
logo_img.show();
});
logo_img.on("error", function() {
logo_img.hide();
logo_div.show();
});
};

View File

@ -8,11 +8,4 @@
width: 32px;
height: 32px;
}
div.current_kernel_logo {
background-color: darken(@navbar-default-bg, 10%);
font-size: 24px;
text-align: center;
text-decoration: bold;
}
}

View File

@ -9684,12 +9684,6 @@ select[multiple].celltoolbar select {
width: 32px;
height: 32px;
}
#kernel_logo_widget div.current_kernel_logo {
background-color: #dfdfdf;
font-size: 24px;
text-align: center;
text-decoration: bold;
}
#menubar {
box-sizing: border-box;
-moz-box-sizing: border-box;

View File

@ -43,8 +43,7 @@ class="notebook_app"
</span>
<span id="kernel_logo_widget">
<img class="current_kernel_logo"/>
<div class="current_kernel_logo"></div>
<img class="current_kernel_logo" src=""/>
</span>
{% endblock headercontainer %}