fix some font-awesoem 4 icons

This commit is contained in:
Matthias BUSSONNIER 2014-07-27 15:33:09 +02:00
parent 01dec53cf9
commit 36e3f20d5e
7 changed files with 954 additions and 2433 deletions

View File

@ -93,3 +93,8 @@ span#login_widget {
}
}
// less mixin to be sure to add the right class to get icons with font awesome.
.icon(@ico){
.fa();
content: @ico;
}

View File

@ -35,7 +35,7 @@ define([
{
id : 'save_b',
label : 'Save and Checkpoint',
icon : 'fa fa-save',
icon : 'fa-save',
callback : function () {
that.notebook.save_checkpoint();
}
@ -46,7 +46,7 @@ define([
{
id : 'insert_below_b',
label : 'Insert Cell Below',
icon : 'fa fa-plus',
icon : 'fa-plus',
callback : function () {
that.notebook.insert_cell_below('code');
that.notebook.select_next();
@ -59,7 +59,7 @@ define([
{
id : 'cut_b',
label : 'Cut Cell',
icon : 'fa fa-cut',
icon : 'fa-cut',
callback : function () {
that.notebook.cut_cell();
}
@ -67,7 +67,7 @@ define([
{
id : 'copy_b',
label : 'Copy Cell',
icon : 'fa fa-copy',
icon : 'fa-copy',
callback : function () {
that.notebook.copy_cell();
}
@ -75,7 +75,7 @@ define([
{
id : 'paste_b',
label : 'Paste Cell Below',
icon : 'fa fa-paste',
icon : 'fa-paste',
callback : function () {
that.notebook.paste_cell_below();
}
@ -86,7 +86,7 @@ define([
{
id : 'move_up_b',
label : 'Move Cell Up',
icon : 'fa fa-arrow-up',
icon : 'fa-arrow-up',
callback : function () {
that.notebook.move_cell_up();
}
@ -94,7 +94,7 @@ define([
{
id : 'move_down_b',
label : 'Move Cell Down',
icon : 'fa fa-arrow-down',
icon : 'fa-arrow-down',
callback : function () {
that.notebook.move_cell_down();
}
@ -106,7 +106,7 @@ define([
{
id : 'run_b',
label : 'Run Cell',
icon : 'fa fa-play',
icon : 'fa-play',
callback : function () {
// emulate default shift-enter behavior
that.notebook.execute_cell_and_select_below();
@ -115,7 +115,7 @@ define([
{
id : 'interrupt_b',
label : 'Interrupt',
icon : 'fa fa-stop',
icon : 'fa-stop',
callback : function () {
that.notebook.session.interrupt_kernel();
}
@ -123,7 +123,7 @@ define([
{
id : 'repeat_b',
label : 'Restart Kernel',
icon : 'fa fa-repeat',
icon : 'fa-repeat',
callback : function () {
that.notebook.restart_kernel();
}

View File

@ -66,7 +66,7 @@ define([
.addClass('btn btn-default')
.attr("title", el.label)
.append(
$("<i/>").addClass(el.icon)
$("<i/>").addClass(el.icon).addClass('fa')
);
var id = el.id;
if( id !== undefined )

View File

@ -28,19 +28,19 @@
}
.edit_mode_icon:before {
content: @fa-var-pencil;
.icon(@fa-var-pencil)
}
.command_mode_icon:before {
content: ' ';
.icon(' ');
}
.kernel_idle_icon:before {
content: @fa-var-circle-o;
.icon(@fa-var-circle-o);
}
.kernel_busy_icon:before {
content: @fa-var-circle;
.icon(@fa-var-circle);
}

File diff suppressed because one or more lines are too long

View File

@ -141,9 +141,9 @@ input.engine_num_input {
}
.folder_icon:before {
content: @fa-var-folder-o
.icon(@fa-var-folder-o)
}
.notebook_icon:before {
content: @fa-var-book
.icon(@fa-var-book)
}

View File

@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:344aa301a0ce679ebf87e2d1dd206cf3784854cde5fedc34109f38710aef680c"
"signature": "sha256:a52ac3735e5881fe8fe68f88d0113c3b1dca40cb809955db692fedb89b66a7fa"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -46,7 +46,7 @@
"};\n",
"</script>\n",
"\n",
"Run a code cell using `shift-enter` or pressing the <button><i class=\"icon-play\"></i></button> button in the <a href=\"#\" onMouseover=\"hl('#maintoolbar-container', 1)\" onMouseout=\"hl('#maintoolbar-container', 0)\">toolbar</a> above:"
"Run a code cell using `shift-enter` or pressing the <button class='btn btn-default btn-xs'><i class=\"icon-play fa fa-play\"></i></button> button in the <a href=\"#\" onMouseover=\"hl('#maintoolbar-container', 1)\" onMouseout=\"hl('#maintoolbar-container', 0)\">toolbar</a> above:"
]
},
{
@ -91,7 +91,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Code is run in a separate process called the IPython Kernel. The Kernel can be interrupted or restarted. Try running the following cell and then hit the <button><i class='icon-stop'></i></button> button in the <a href=\"#\" onMouseover=\"hl('#maintoolbar-container', 1)\" onMouseout=\"hl('#maintoolbar-container', 0)\">toolbar</a> above."
"Code is run in a separate process called the IPython Kernel. The Kernel can be interrupted or restarted. Try running the following cell and then hit the <button class='btn btn-default btn-xs'><i class='icon-stop fa fa-stop'></i></button> button in the <a href=\"#\" onMouseover=\"hl('#maintoolbar-container', 1)\" onMouseout=\"hl('#maintoolbar-container', 0)\">toolbar</a> above."
]
},
{