Show More
@@ -397,7 +397,7 b' define([' | |||||
397 | return function(div, cell, celltoolbar) { |
|
397 | return function(div, cell, celltoolbar) { | |
398 | var button_container = $(div); |
|
398 | var button_container = $(div); | |
399 | var lbl = $("<label/>").append($('<span/>').text(label)); |
|
399 | var lbl = $("<label/>").append($('<span/>').text(label)); | |
400 |
var select = $('<select/>') |
|
400 | var select = $('<select/>'); | |
401 | for(var i=0; i < list_list.length; i++){ |
|
401 | for(var i=0; i < list_list.length; i++){ | |
402 | var opt = $('<option/>') |
|
402 | var opt = $('<option/>') | |
403 | .attr('value', list_list[i][1]) |
|
403 | .attr('value', list_list[i][1]) |
@@ -136,7 +136,6 b' define([' | |||||
136 | .append($('<select/>') |
|
136 | .append($('<select/>') | |
137 | .attr('id','cell_type') |
|
137 | .attr('id','cell_type') | |
138 | .addClass('form-control select-xs') |
|
138 | .addClass('form-control select-xs') | |
139 | // .addClass('ui-widget-content') |
|
|||
140 | .append($('<option/>').attr('value','code').text('Code')) |
|
139 | .append($('<option/>').attr('value','code').text('Code')) | |
141 | .append($('<option/>').attr('value','markdown').text('Markdown')) |
|
140 | .append($('<option/>').attr('value','markdown').text('Markdown')) | |
142 | .append($('<option/>').attr('value','raw').text('Raw NBConvert')) |
|
141 | .append($('<option/>').attr('value','raw').text('Raw NBConvert')) | |
@@ -153,7 +152,6 b' define([' | |||||
153 | MainToolBar.prototype.add_celltoolbar_list = function () { |
|
152 | MainToolBar.prototype.add_celltoolbar_list = function () { | |
154 | var label = $('<span/>').addClass("navbar-text").text('Cell Toolbar:'); |
|
153 | var label = $('<span/>').addClass("navbar-text").text('Cell Toolbar:'); | |
155 | var select = $('<select/>') |
|
154 | var select = $('<select/>') | |
156 | // .addClass('ui-widget-content') |
|
|||
157 | .attr('id', 'ctb_select') |
|
155 | .attr('id', 'ctb_select') | |
158 | .addClass('form-control select-xs') |
|
156 | .addClass('form-control select-xs') | |
159 | .append($('<option/>').attr('value', '').text('None')); |
|
157 | .append($('<option/>').attr('value', '').text('None')); |
@@ -33,8 +33,6 b' define([' | |||||
33 | }; |
|
33 | }; | |
34 |
|
34 | |||
35 | NotificationArea.prototype.temp_message = function (msg, timeout, css_class) { |
|
35 | NotificationArea.prototype.temp_message = function (msg, timeout, css_class) { | |
36 | if( css_class == 'danger') {css_class = 'ui-state-error';} |
|
|||
37 | if( css_class == 'warning') {css_class = 'ui-state-highlight';} |
|
|||
38 | var tdiv = $('<div>') |
|
36 | var tdiv = $('<div>') | |
39 | .addClass('notification_widget') |
|
37 | .addClass('notification_widget') | |
40 | .addClass(css_class) |
|
38 | .addClass(css_class) |
@@ -30,11 +30,6 b' define([' | |||||
30 | this.element.find('span#notebook_name').click(function () { |
|
30 | this.element.find('span#notebook_name').click(function () { | |
31 | that.rename_notebook(); |
|
31 | that.rename_notebook(); | |
32 | }); |
|
32 | }); | |
33 | this.element.find('span#notebook_name').hover(function () { |
|
|||
34 | $(this).addClass("ui-state-hover"); |
|
|||
35 | }, function () { |
|
|||
36 | $(this).removeClass("ui-state-hover"); |
|
|||
37 | }); |
|
|||
38 | this.events.on('notebook_loaded.Notebook', function () { |
|
33 | this.events.on('notebook_loaded.Notebook', function () { | |
39 | that.update_notebook_name(); |
|
34 | that.update_notebook_name(); | |
40 | that.update_document_title(); |
|
35 | that.update_document_title(); |
@@ -39,8 +39,13 b'' | |||||
39 | } |
|
39 | } | |
40 |
|
40 | |||
41 | .celltoolbar select { |
|
41 | .celltoolbar select { | |
|
42 | .form-control(); | |||
|
43 | .input-sm(); | |||
|
44 | width: inherit; | |||
42 | font-size: 87%; |
|
45 | font-size: 87%; | |
43 | height: 22px; |
|
46 | height: 22px; | |
|
47 | display: inline-block; | |||
|
48 | ||||
44 | } |
|
49 | } | |
45 |
|
50 | |||
46 | .celltoolbar label { |
|
51 | .celltoolbar label { |
@@ -25,6 +25,12 b' span#notebook_name {' | |||||
25 | padding: 3px; |
|
25 | padding: 3px; | |
26 | border: none; |
|
26 | border: none; | |
27 | font-size: 146.5%; |
|
27 | font-size: 146.5%; | |
|
28 | &:hover{ | |||
|
29 | // ensure body is lighter on dark palette, | |||
|
30 | // and vice versa | |||
|
31 | background-color:contrast(@body-bg, lighten(@body-bg,30%), darken(@body-bg,10%)); | |||
|
32 | } | |||
|
33 | .corner-all; | |||
28 | } |
|
34 | } | |
29 |
|
35 | |||
30 | div#notebook_panel { |
|
36 | div#notebook_panel { |
@@ -9637,6 +9637,10 b' span#notebook_name {' | |||||
9637 | padding: 3px; |
|
9637 | padding: 3px; | |
9638 | border: none; |
|
9638 | border: none; | |
9639 | font-size: 146.5%; |
|
9639 | font-size: 146.5%; | |
|
9640 | border-radius: 4px; | |||
|
9641 | } | |||
|
9642 | span#notebook_name:hover { | |||
|
9643 | background-color: #e6e6e6; | |||
9640 | } |
|
9644 | } | |
9641 | div#notebook_panel { |
|
9645 | div#notebook_panel { | |
9642 | margin: 0px 0px 0px 0px; |
|
9646 | margin: 0px 0px 0px 0px; | |
@@ -9751,8 +9755,64 b' p {' | |||||
9751 | padding-top: 3px; |
|
9755 | padding-top: 3px; | |
9752 | } |
|
9756 | } | |
9753 | .celltoolbar select { |
|
9757 | .celltoolbar select { | |
|
9758 | display: block; | |||
|
9759 | width: 100%; | |||
|
9760 | height: 32px; | |||
|
9761 | padding: 6px 12px; | |||
|
9762 | font-size: 13px; | |||
|
9763 | line-height: 1.42857143; | |||
|
9764 | color: #555555; | |||
|
9765 | background-color: #ffffff; | |||
|
9766 | background-image: none; | |||
|
9767 | border: 1px solid #cccccc; | |||
|
9768 | border-radius: 4px; | |||
|
9769 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | |||
|
9770 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | |||
|
9771 | -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; | |||
|
9772 | transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; | |||
|
9773 | height: 30px; | |||
|
9774 | padding: 5px 10px; | |||
|
9775 | font-size: 12px; | |||
|
9776 | line-height: 1.5; | |||
|
9777 | border-radius: 3px; | |||
|
9778 | width: inherit; | |||
9754 | font-size: 87%; |
|
9779 | font-size: 87%; | |
9755 | height: 22px; |
|
9780 | height: 22px; | |
|
9781 | display: inline-block; | |||
|
9782 | } | |||
|
9783 | .celltoolbar select:focus { | |||
|
9784 | border-color: #66afe9; | |||
|
9785 | outline: 0; | |||
|
9786 | -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); | |||
|
9787 | box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); | |||
|
9788 | } | |||
|
9789 | .celltoolbar select::-moz-placeholder { | |||
|
9790 | color: #999999; | |||
|
9791 | opacity: 1; | |||
|
9792 | } | |||
|
9793 | .celltoolbar select:-ms-input-placeholder { | |||
|
9794 | color: #999999; | |||
|
9795 | } | |||
|
9796 | .celltoolbar select::-webkit-input-placeholder { | |||
|
9797 | color: #999999; | |||
|
9798 | } | |||
|
9799 | .celltoolbar select[disabled], | |||
|
9800 | .celltoolbar select[readonly], | |||
|
9801 | fieldset[disabled] .celltoolbar select { | |||
|
9802 | cursor: not-allowed; | |||
|
9803 | background-color: #eeeeee; | |||
|
9804 | opacity: 1; | |||
|
9805 | } | |||
|
9806 | textarea.celltoolbar select { | |||
|
9807 | height: auto; | |||
|
9808 | } | |||
|
9809 | select.celltoolbar select { | |||
|
9810 | height: 30px; | |||
|
9811 | line-height: 30px; | |||
|
9812 | } | |||
|
9813 | textarea.celltoolbar select, | |||
|
9814 | select[multiple].celltoolbar select { | |||
|
9815 | height: auto; | |||
9756 | } |
|
9816 | } | |
9757 | .celltoolbar label { |
|
9817 | .celltoolbar label { | |
9758 | margin-left: 5px; |
|
9818 | margin-left: 5px; |
General Comments 0
You need to be logged in to leave comments.
Login now