From c2ac0447bcb472550259385b711d7548977c5756 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: May 09 2015 23:44:29 +0000 Subject: Sync more font-awesome changes from 3.1.0 --- diff --git a/ipython-2.4.1-fontawesome4.patch b/ipython-2.4.1-fontawesome4.patch index 789515e..01cf433 100644 --- a/ipython-2.4.1-fontawesome4.patch +++ b/ipython-2.4.1-fontawesome4.patch @@ -1,6 +1,18 @@ +diff -up ipython-2.4.1/IPython/html/static/base/less/page.less.fontawesome4 ipython-2.4.1/IPython/html/static/base/less/page.less +--- ipython-2.4.1/IPython/html/static/base/less/page.less.fontawesome4 2015-02-09 15:59:57.000000000 -0700 ++++ ipython-2.4.1/IPython/html/static/base/less/page.less 2015-05-09 16:17:39.812771635 -0600 +@@ -95,3 +95,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; ++} diff -up ipython-2.4.1/IPython/html/static/notebook/js/maintoolbar.js.fontawesome4 ipython-2.4.1/IPython/html/static/notebook/js/maintoolbar.js --- ipython-2.4.1/IPython/html/static/notebook/js/maintoolbar.js.fontawesome4 2015-02-09 15:59:57.000000000 -0700 -+++ ipython-2.4.1/IPython/html/static/notebook/js/maintoolbar.js 2015-05-09 14:00:47.090072312 -0600 ++++ ipython-2.4.1/IPython/html/static/notebook/js/maintoolbar.js 2015-05-09 16:17:39.809771565 -0600 @@ -27,7 +27,7 @@ var IPython = (function (IPython) { { id : 'save_b', @@ -91,9 +103,21 @@ diff -up ipython-2.4.1/IPython/html/static/notebook/js/maintoolbar.js.fontawesom callback : function () { IPython.notebook.restart_kernel(); } +diff -up ipython-2.4.1/IPython/html/static/notebook/js/toolbar.js.fontawesome4 ipython-2.4.1/IPython/html/static/notebook/js/toolbar.js +--- ipython-2.4.1/IPython/html/static/notebook/js/toolbar.js.fontawesome4 2015-02-09 15:59:57.000000000 -0700 ++++ ipython-2.4.1/IPython/html/static/notebook/js/toolbar.js 2015-05-09 16:17:39.809771565 -0600 +@@ -75,7 +75,7 @@ var IPython = (function (IPython) { + .addClass('btn') + .attr("title", el.label) + .append( +- $("").addClass(el.icon) ++ $("").addClass(el.icon).addClass('fa') + ); + var id = el.id; + if( id !== undefined ) diff -up ipython-2.4.1/IPython/html/static/notebook/js/tour.js.fontawesome4 ipython-2.4.1/IPython/html/static/notebook/js/tour.js --- ipython-2.4.1/IPython/html/static/notebook/js/tour.js.fontawesome4 2015-02-09 15:59:57.000000000 -0700 -+++ ipython-2.4.1/IPython/html/static/notebook/js/tour.js 2015-05-09 14:09:31.136108557 -0600 ++++ ipython-2.4.1/IPython/html/static/notebook/js/tour.js 2015-05-09 16:17:39.810771588 -0600 @@ -89,7 +89,7 @@ var tour_steps = [ onShow: function(tour) { $([IPython.events]).trigger('status_busy.Kernel'); }, content: "The Kernel indicator looks like this when the Kernel is busy.", @@ -117,16 +141,16 @@ diff -up ipython-2.4.1/IPython/html/static/notebook/js/tour.js.fontawesome4 ipyt
\
\ -
\ -+ \ ++ \

\
\
\ - \ - \ - \ -+ \ -+ \ -+ \ ++ \ ++ \ ++ \
\ "; @@ -138,34 +162,33 @@ diff -up ipython-2.4.1/IPython/html/static/notebook/js/tour.js.fontawesome4 ipyt IPython.notebook.edit_mode(); diff -up ipython-2.4.1/IPython/html/static/notebook/less/notificationarea.less.fontawesome4 ipython-2.4.1/IPython/html/static/notebook/less/notificationarea.less --- ipython-2.4.1/IPython/html/static/notebook/less/notificationarea.less.fontawesome4 2015-02-09 15:59:57.000000000 -0700 -+++ ipython-2.4.1/IPython/html/static/notebook/less/notificationarea.less 2015-05-09 14:00:47.090072312 -0600 -@@ -17,19 +17,19 @@ ++++ ipython-2.4.1/IPython/html/static/notebook/less/notificationarea.less 2015-05-09 16:17:49.372995963 -0600 +@@ -17,7 +17,7 @@ } .edit_mode_icon:before { - .icon(@pencil); -+ content: @fa-var-pencil; ++ .icon(@fa-var-pencil); } .command_mode_icon:before { -- .icon(' '); -+ content: ' '; +@@ -25,11 +25,11 @@ } .kernel_idle_icon:before { - .icon(@circle-blank); -+ content: @fa-var-circle-o; ++ .icon(@fa-var-circle-o); } .kernel_busy_icon:before { - .icon(@circle); -+ content: @fa-var-circle; ++ .icon(@fa-var-circle); } diff -up ipython-2.4.1/IPython/html/static/style/style.less.fontawesome4 ipython-2.4.1/IPython/html/static/style/style.less --- ipython-2.4.1/IPython/html/static/style/style.less.fontawesome4 2015-02-09 15:59:57.000000000 -0700 -+++ ipython-2.4.1/IPython/html/static/style/style.less 2015-05-09 14:00:47.091072338 -0600 ++++ ipython-2.4.1/IPython/html/static/style/style.less 2015-05-09 16:17:39.810771588 -0600 @@ -4,7 +4,7 @@ // Font-Awesome @@ -177,7 +200,7 @@ diff -up ipython-2.4.1/IPython/html/static/style/style.less.fontawesome4 ipython @import "../base/less/style.less"; diff -up ipython-2.4.1/IPython/html/static/tree/less/tree.less.fontawesome4 ipython-2.4.1/IPython/html/static/tree/less/tree.less --- ipython-2.4.1/IPython/html/static/tree/less/tree.less.fontawesome4 2015-02-09 15:59:57.000000000 -0700 -+++ ipython-2.4.1/IPython/html/static/tree/less/tree.less 2015-05-09 14:00:47.091072338 -0600 ++++ ipython-2.4.1/IPython/html/static/tree/less/tree.less 2015-05-09 16:17:50.019011122 -0600 @@ -26,7 +26,7 @@ ul.breadcrumb { a:focus, a:hover { text-decoration: none; @@ -192,22 +215,22 @@ diff -up ipython-2.4.1/IPython/html/static/tree/less/tree.less.fontawesome4 ipyt .folder_icon:before { - .icon(@folder-close-alt) -+ content: @fa-var-folder-o ++ .icon(@fa-var-folder-o) } .notebook_icon:before { - .icon(@book) -+ content: @fa-var-book ++ .icon(@fa-var-book) } diff -up ipython-2.4.1/IPython/html/static/widgets/js/widget_container.js.fontawesome4 ipython-2.4.1/IPython/html/static/widgets/js/widget_container.js --- ipython-2.4.1/IPython/html/static/widgets/js/widget_container.js.fontawesome4 2015-02-09 15:59:57.000000000 -0700 -+++ ipython-2.4.1/IPython/html/static/widgets/js/widget_container.js 2015-05-09 14:05:18.867928088 -0600 ++++ ipython-2.4.1/IPython/html/static/widgets/js/widget_container.js 2015-05-09 16:17:39.811771611 -0600 @@ -90,7 +90,7 @@ define(["widgets/js/widget"], function(W that.bring_to_front(); }); this.$close = $(' - -+ ++ @@ -269,7 +292,7 @@ diff -up ipython-2.4.1/IPython/html/templates/tree.html.fontawesome4 ipython-2.4
@@ -287,7 +310,38 @@ diff -up ipython-2.4.1/IPython/html/templates/tree.html.fontawesome4 ipython-2.4
- -+ ++
+diff -up ipython-2.4.1/IPython/nbconvert/templates/html/slides_reveal.tpl.fontawesome4 ipython-2.4.1/IPython/nbconvert/templates/html/slides_reveal.tpl +--- ipython-2.4.1/IPython/nbconvert/templates/html/slides_reveal.tpl.fontawesome4 2015-02-09 15:59:57.000000000 -0700 ++++ ipython-2.4.1/IPython/nbconvert/templates/html/slides_reveal.tpl 2015-05-09 16:17:39.812771635 -0600 +@@ -72,7 +72,7 @@ if( window.location.search.match( /print + + + +- ++ + + {% for css in resources.inlining.css -%} +