Show More
@@ -351,6 +351,9 b' define([' | |||||
351 | }; |
|
351 | }; | |
352 |
|
352 | |||
353 | HeadingCell.options_default = { |
|
353 | HeadingCell.options_default = { | |
|
354 | cm_config: { | |||
|
355 | theme: 'heading-1' | |||
|
356 | }, | |||
354 | placeholder: "Type Heading Here" |
|
357 | placeholder: "Type Heading Here" | |
355 | }; |
|
358 | }; | |
356 |
|
359 | |||
@@ -378,6 +381,8 b' define([' | |||||
378 | */ |
|
381 | */ | |
379 | HeadingCell.prototype.set_level = function (level) { |
|
382 | HeadingCell.prototype.set_level = function (level) { | |
380 | this.level = level; |
|
383 | this.level = level; | |
|
384 | this.code_mirror.setOption("theme", "heading-"+level); | |||
|
385 | ||||
381 | if (this.rendered) { |
|
386 | if (this.rendered) { | |
382 | this.rendered = false; |
|
387 | this.rendered = false; | |
383 | this.render(); |
|
388 | this.render(); |
@@ -34,3 +34,17 b' h1,h2,h3,h4,h5,h6 {' | |||||
34 | div.cell.text_cell.rendered { |
|
34 | div.cell.text_cell.rendered { | |
35 | padding: 0px; |
|
35 | padding: 0px; | |
36 | } |
|
36 | } | |
|
37 | ||||
|
38 | .cm-s-heading-1, | |||
|
39 | .cm-s-heading-2, | |||
|
40 | .cm-s-heading-3, | |||
|
41 | .cm-s-heading-4, | |||
|
42 | .cm-s-heading-5, | |||
|
43 | .cm-s-heading-6 { font-weight: bold;} | |||
|
44 | ||||
|
45 | .cm-s-heading-1 { font-size:150%; } | |||
|
46 | .cm-s-heading-2 { font-size: 130%; } | |||
|
47 | .cm-s-heading-3 { font-size: 120%; } | |||
|
48 | .cm-s-heading-4 { font-size: 110%; } | |||
|
49 | .cm-s-heading-5 { font-size: 100%; } | |||
|
50 | .cm-s-heading-6 { font-size: 90%; } |
@@ -1126,6 +1126,32 b' h6:hover .anchor-link {' | |||||
1126 | div.cell.text_cell.rendered { |
|
1126 | div.cell.text_cell.rendered { | |
1127 | padding: 0px; |
|
1127 | padding: 0px; | |
1128 | } |
|
1128 | } | |
|
1129 | .cm-s-heading-1, | |||
|
1130 | .cm-s-heading-2, | |||
|
1131 | .cm-s-heading-3, | |||
|
1132 | .cm-s-heading-4, | |||
|
1133 | .cm-s-heading-5, | |||
|
1134 | .cm-s-heading-6 { | |||
|
1135 | font-weight: bold; | |||
|
1136 | } | |||
|
1137 | .cm-s-heading-1 { | |||
|
1138 | font-size: 150%; | |||
|
1139 | } | |||
|
1140 | .cm-s-heading-2 { | |||
|
1141 | font-size: 130%; | |||
|
1142 | } | |||
|
1143 | .cm-s-heading-3 { | |||
|
1144 | font-size: 120%; | |||
|
1145 | } | |||
|
1146 | .cm-s-heading-4 { | |||
|
1147 | font-size: 110%; | |||
|
1148 | } | |||
|
1149 | .cm-s-heading-5 { | |||
|
1150 | font-size: 100%; | |||
|
1151 | } | |||
|
1152 | .cm-s-heading-6 { | |||
|
1153 | font-size: 90%; | |||
|
1154 | } | |||
1129 | .widget-area { |
|
1155 | .widget-area { | |
1130 | /* |
|
1156 | /* | |
1131 | LESS file that styles IPython notebook widgets and the area they sit in. |
|
1157 | LESS file that styles IPython notebook widgets and the area they sit in. |
@@ -8750,6 +8750,32 b' h6:hover .anchor-link {' | |||||
8750 | div.cell.text_cell.rendered { |
|
8750 | div.cell.text_cell.rendered { | |
8751 | padding: 0px; |
|
8751 | padding: 0px; | |
8752 | } |
|
8752 | } | |
|
8753 | .cm-s-heading-1, | |||
|
8754 | .cm-s-heading-2, | |||
|
8755 | .cm-s-heading-3, | |||
|
8756 | .cm-s-heading-4, | |||
|
8757 | .cm-s-heading-5, | |||
|
8758 | .cm-s-heading-6 { | |||
|
8759 | font-weight: bold; | |||
|
8760 | } | |||
|
8761 | .cm-s-heading-1 { | |||
|
8762 | font-size: 150%; | |||
|
8763 | } | |||
|
8764 | .cm-s-heading-2 { | |||
|
8765 | font-size: 130%; | |||
|
8766 | } | |||
|
8767 | .cm-s-heading-3 { | |||
|
8768 | font-size: 120%; | |||
|
8769 | } | |||
|
8770 | .cm-s-heading-4 { | |||
|
8771 | font-size: 110%; | |||
|
8772 | } | |||
|
8773 | .cm-s-heading-5 { | |||
|
8774 | font-size: 100%; | |||
|
8775 | } | |||
|
8776 | .cm-s-heading-6 { | |||
|
8777 | font-size: 90%; | |||
|
8778 | } | |||
8753 | .widget-area { |
|
8779 | .widget-area { | |
8754 | /* |
|
8780 | /* | |
8755 | LESS file that styles IPython notebook widgets and the area they sit in. |
|
8781 | LESS file that styles IPython notebook widgets and the area they sit in. |
General Comments 0
You need to be logged in to leave comments.
Login now