Skip to content

Commit

Permalink
Merge pull request ipython#6084 from tomspur/fontawesome4
Browse files Browse the repository at this point in the history
Update fontawesome to 4.1
  • Loading branch information
minrk committed Jul 28, 2014
2 parents c308453 + d2e61f9 commit 80344f1
Show file tree
Hide file tree
Showing 14 changed files with 841 additions and 731 deletions.
5 changes: 5 additions & 0 deletions IPython/html/static/base/less/page.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion IPython/html/static/components
20 changes: 10 additions & 10 deletions IPython/html/static/notebook/js/maintoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ define([
{
id : 'save_b',
label : 'Save and Checkpoint',
icon : 'icon-save',
icon : 'fa-save',
callback : function () {
that.notebook.save_checkpoint();
}
Expand All @@ -46,7 +46,7 @@ define([
{
id : 'insert_below_b',
label : 'Insert Cell Below',
icon : 'icon-plus-sign',
icon : 'fa-plus',
callback : function () {
that.notebook.insert_cell_below('code');
that.notebook.select_next();
Expand All @@ -59,23 +59,23 @@ define([
{
id : 'cut_b',
label : 'Cut Cell',
icon : 'icon-cut',
icon : 'fa-cut',
callback : function () {
that.notebook.cut_cell();
}
},
{
id : 'copy_b',
label : 'Copy Cell',
icon : 'icon-copy',
icon : 'fa-copy',
callback : function () {
that.notebook.copy_cell();
}
},
{
id : 'paste_b',
label : 'Paste Cell Below',
icon : 'icon-paste',
icon : 'fa-paste',
callback : function () {
that.notebook.paste_cell_below();
}
Expand All @@ -86,15 +86,15 @@ define([
{
id : 'move_up_b',
label : 'Move Cell Up',
icon : 'icon-arrow-up',
icon : 'fa-arrow-up',
callback : function () {
that.notebook.move_cell_up();
}
},
{
id : 'move_down_b',
label : 'Move Cell Down',
icon : 'icon-arrow-down',
icon : 'fa-arrow-down',
callback : function () {
that.notebook.move_cell_down();
}
Expand All @@ -106,7 +106,7 @@ define([
{
id : 'run_b',
label : 'Run Cell',
icon : 'icon-play',
icon : 'fa-play',
callback : function () {
// emulate default shift-enter behavior
that.notebook.execute_cell_and_select_below();
Expand All @@ -115,15 +115,15 @@ define([
{
id : 'interrupt_b',
label : 'Interrupt',
icon : 'icon-stop',
icon : 'fa-stop',
callback : function () {
that.notebook.session.interrupt_kernel();
}
},
{
id : 'repeat_b',
label : 'Restart Kernel',
icon : 'icon-repeat',
icon : 'fa-repeat',
callback : function () {
that.notebook.restart_kernel();
}
Expand Down
2 changes: 1 addition & 1 deletion IPython/html/static/notebook/js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
8 changes: 4 additions & 4 deletions IPython/html/static/notebook/less/notificationarea.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
}

.edit_mode_icon:before {
.icon(@pencil);
.icon(@fa-var-pencil)
}

.command_mode_icon:before {
.icon(' ');
.icon(' ');
}

.kernel_idle_icon:before {
.icon(@circle-blank);
.icon(@fa-var-circle-o);
}

.kernel_busy_icon:before {
.icon(@circle);
.icon(@fa-var-circle);
}


2 changes: 1 addition & 1 deletion IPython/html/static/style/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
*/
@import "../components/font-awesome/less/font-awesome.less";
@FontAwesomePath: "../components/font-awesome/font";
@fa-font-path: "../components/font-awesome/fonts";

// base
@import "../base/less/style.less";
Expand Down
Loading

0 comments on commit 80344f1

Please sign in to comment.