##// END OF EJS Templates
semantic names for kernel status indicator
Paul Ivanov -
Show More
@@ -86,12 +86,12 b' var IPython = (function (IPython) {'
86 // Kernel events
86 // Kernel events
87 $([IPython.events]).on('status_idle.Kernel',function () {
87 $([IPython.events]).on('status_idle.Kernel',function () {
88 IPython.save_widget.update_document_title();
88 IPython.save_widget.update_document_title();
89 $kernel_ind_icon.attr('class','icon-circle-blank').attr('title','Kernel Idle');
89 $kernel_ind_icon.attr('class','ipython-kernel-idle').attr('title','Kernel Idle');
90 });
90 });
91
91
92 $([IPython.events]).on('status_busy.Kernel',function () {
92 $([IPython.events]).on('status_busy.Kernel',function () {
93 window.document.title='(Busy) '+window.document.title;
93 window.document.title='(Busy) '+window.document.title;
94 $kernel_ind_icon.attr('class','icon-circle').attr('title','Kernel Busy');
94 $kernel_ind_icon.attr('class','ipython-kernel-busy').attr('title','Kernel Busy');
95 });
95 });
96
96
97 $([IPython.events]).on('status_restarting.Kernel',function () {
97 $([IPython.events]).on('status_restarting.Kernel',function () {
@@ -24,3 +24,12 b''
24 .icon(' ');
24 .icon(' ');
25 }
25 }
26
26
27 .ipython-kernel-idle:before {
28 .icon(@circle-blank);
29 }
30
31 .ipython-kernel-busy:before {
32 .icon(@circle);
33 }
34
35
@@ -1508,6 +1508,8 b' ul#help_menu li a{overflow:hidden;padding-right:2.2em}ul#help_menu li a i{margin'
1508 #kernel_indicator{margin-right:-16px}
1508 #kernel_indicator{margin-right:-16px}
1509 .ipython-edit-mode:before{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;content:"\f040"}
1509 .ipython-edit-mode:before{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;content:"\f040"}
1510 .ipython-command-mode:before{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;content:' '}
1510 .ipython-command-mode:before{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;content:' '}
1511 .ipython-kernel-idle:before{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;content:"\f10c"}
1512 .ipython-kernel-busy:before{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;content:"\f111"}
1511 .notification_widget{color:#777;padding:1px 12px;margin:2px 4px;z-index:10;border:1px solid #ccc;border-radius:4px;background:rgba(240,240,240,0.5)}.notification_widget.span{padding-right:2px}
1513 .notification_widget{color:#777;padding:1px 12px;margin:2px 4px;z-index:10;border:1px solid #ccc;border-radius:4px;background:rgba(240,240,240,0.5)}.notification_widget.span{padding-right:2px}
1512 div#pager_splitter{height:8px}
1514 div#pager_splitter{height:8px}
1513 #pager-container{position:relative;padding:15px 0}
1515 #pager-container{position:relative;padding:15px 0}
General Comments 0
You need to be logged in to leave comments. Login now