Show More
@@ -0,0 +1,3 b'' | |||||
|
1 | * Equations, images and tables are now centered in Markdown cells. | |||
|
2 | * Multiline equations are now centered in output areas; single line equations | |||
|
3 | remain left justified. No newline at end of file |
@@ -1,2 +1,2 b'' | |||||
1 |
@import " |
|
1 | @import "login.less"; | |
2 |
@import " |
|
2 | @import "logout.less"; No newline at end of file |
@@ -1,4 +1,4 b'' | |||||
1 |
@import " |
|
1 | @import "variables.less"; | |
2 |
@import " |
|
2 | @import "mixins.less"; | |
3 |
@import " |
|
3 | @import "flexbox.less"; | |
4 |
|
4 |
@@ -25,7 +25,9 b' IPython.mathjaxutils = (function (IPython) {' | |||||
25 | processEscapes: true, |
|
25 | processEscapes: true, | |
26 | processEnvironments: true |
|
26 | processEnvironments: true | |
27 | }, |
|
27 | }, | |
28 | displayAlign: 'left', // Change this to 'center' to center equations. |
|
28 | // Center justify equations in code and markdown cells. Elsewhere | |
|
29 | // we use CSS to left justify single line equations in code cells. | |||
|
30 | displayAlign: 'center', | |||
29 | "HTML-CSS": { |
|
31 | "HTML-CSS": { | |
30 | styles: {'.MathJax_Display': {"margin": 0}}, |
|
32 | styles: {'.MathJax_Display': {"margin": 0}}, | |
31 | linebreaks: { automatic: true } |
|
33 | linebreaks: { automatic: true } |
@@ -3,6 +3,24 b' div.output_area {' | |||||
3 | padding: 0px; |
|
3 | padding: 0px; | |
4 | page-break-inside: avoid; |
|
4 | page-break-inside: avoid; | |
5 | .hbox(); |
|
5 | .hbox(); | |
|
6 | ||||
|
7 | .MathJax_Display { | |||
|
8 | // Inside a CodeCell, elements are left justified | |||
|
9 | text-align: left !important; | |||
|
10 | } | |||
|
11 | ||||
|
12 | .rendered_html { | |||
|
13 | // Inside a CodeCell, elements are left justified | |||
|
14 | table { | |||
|
15 | margin-left: 0; | |||
|
16 | margin-right: 0; | |||
|
17 | } | |||
|
18 | ||||
|
19 | img { | |||
|
20 | margin-left: 0; | |||
|
21 | margin-right: 0; | |||
|
22 | } | |||
|
23 | } | |||
6 | } |
|
24 | } | |
7 |
|
25 | |||
8 |
|
26 |
@@ -1,4 +1,4 b'' | |||||
1 | .rendered_html{ |
|
1 | .rendered_html { | |
2 |
|
2 | |||
3 | color: black; |
|
3 | color: black; | |
4 | em {font-style: italic;} |
|
4 | em {font-style: italic;} | |
@@ -43,7 +43,15 b'' | |||||
43 | margin: 1em 2em; |
|
43 | margin: 1em 2em; | |
44 | } |
|
44 | } | |
45 |
|
45 | |||
46 |
table |
|
46 | table { | |
|
47 | // Center tables horizontally | |||
|
48 | margin-left: auto; | |||
|
49 | margin-right: auto; | |||
|
50 | border: 1px solid black; | |||
|
51 | border-collapse: collapse; | |||
|
52 | } | |||
|
53 | ||||
|
54 | tr, th, td { | |||
47 | border: 1px solid black; |
|
55 | border: 1px solid black; | |
48 | border-collapse: collapse; |
|
56 | border-collapse: collapse; | |
49 | margin: 1em 2em; |
|
57 | margin: 1em 2em; | |
@@ -63,7 +71,22 b'' | |||||
63 | text-align: justify; |
|
71 | text-align: justify; | |
64 | } |
|
72 | } | |
65 |
|
73 | |||
66 |
|
|
74 | img { | |
|
75 | display: block; | |||
|
76 | margin-left: auto; | |||
|
77 | margin-right: auto; | |||
|
78 | } | |||
|
79 | ||||
|
80 | * + p { | |||
67 | margin-top: 1em; |
|
81 | margin-top: 1em; | |
68 | } |
|
82 | } | |
|
83 | ||||
|
84 | * + table { | |||
|
85 | margin-top: 1em; | |||
|
86 | } | |||
|
87 | ||||
|
88 | * + img { | |||
|
89 | margin-top: 1em; | |||
|
90 | } | |||
|
91 | ||||
69 | } |
|
92 | } |
@@ -130,7 +130,9 b' p{margin-bottom:0;}' | |||||
130 | .end_space{height:200px;} |
|
130 | .end_space{height:200px;} | |
131 | #notification_area{z-index:10;} |
|
131 | #notification_area{z-index:10;} | |
132 | .notification_widget{color:#777777;padding:1px 12px;margin:2px 4px;z-index:10;border:1px solid #ccc;border-radius:4px;background:rgba(240, 240, 240, 0.5);} |
|
132 | .notification_widget{color:#777777;padding:1px 12px;margin:2px 4px;z-index:10;border:1px solid #ccc;border-radius:4px;background:rgba(240, 240, 240, 0.5);} | |
133 | div.output_area{padding:0px;page-break-inside:avoid;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:box;box-orient:horizontal;box-align:stretch;} |
|
133 | div.output_area{padding:0px;page-break-inside:avoid;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:box;box-orient:horizontal;box-align:stretch;}div.output_area .MathJax_Display{text-align:left !important;} | |
|
134 | div.output_area .rendered_html table{margin-left:0;margin-right:0;} | |||
|
135 | div.output_area .rendered_html img{margin-left:0;margin-right:0;} | |||
134 | div.output_area pre{font-family:monospace;margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;color:black;background-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;line-height:inherit;} |
|
136 | div.output_area pre{font-family:monospace;margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;color:black;background-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;line-height:inherit;} | |
135 | div.output_subarea{padding:0.44em 0.4em 0.4em 1px;margin-left:6px;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;} |
|
137 | div.output_subarea{padding:0.44em 0.4em 0.4em 1px;margin-left:6px;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;} | |
136 | div.output_text{text-align:left;color:#000000;font-family:monospace;line-height:1.231em;} |
|
138 | div.output_text{text-align:left;color:#000000;font-family:monospace;line-height:1.231em;} | |
@@ -171,11 +173,15 b' div.quickhelp{float:left;width:50%;}' | |||||
171 | .rendered_html pre{margin:1em 2em;} |
|
173 | .rendered_html pre{margin:1em 2em;} | |
172 | .rendered_html pre,.rendered_html code{border:0;background-color:#ffffff;color:#000000;font-size:100%;padding:0px;} |
|
174 | .rendered_html pre,.rendered_html code{border:0;background-color:#ffffff;color:#000000;font-size:100%;padding:0px;} | |
173 | .rendered_html blockquote{margin:1em 2em;} |
|
175 | .rendered_html blockquote{margin:1em 2em;} | |
174 |
.rendered_html table |
|
176 | .rendered_html table{margin-left:auto;margin-right:auto;border:1px solid black;border-collapse:collapse;} | |
|
177 | .rendered_html tr,.rendered_html th,.rendered_html td{border:1px solid black;border-collapse:collapse;margin:1em 2em;} | |||
175 | .rendered_html td,.rendered_html th{text-align:left;vertical-align:middle;padding:4px;} |
|
178 | .rendered_html td,.rendered_html th{text-align:left;vertical-align:middle;padding:4px;} | |
176 | .rendered_html th{font-weight:bold;} |
|
179 | .rendered_html th{font-weight:bold;} | |
177 | .rendered_html p{text-align:justify;} |
|
180 | .rendered_html p{text-align:justify;} | |
178 | .rendered_html p+p{margin-top:1em;} |
|
181 | .rendered_html img{display:block;margin-left:auto;margin-right:auto;} | |
|
182 | .rendered_html *+p{margin-top:1em;} | |||
|
183 | .rendered_html *+table{margin-top:1em;} | |||
|
184 | .rendered_html *+img{margin-top:1em;} | |||
179 | span#save_widget{padding:0px 5px;margin-top:12px;} |
|
185 | span#save_widget{padding:0px 5px;margin-top:12px;} | |
180 | span#checkpoint_status,span#autosave_status{font-size:small;} |
|
186 | span#checkpoint_status,span#autosave_status{font-size:small;} | |
181 | @media (max-width:767px){span#save_widget{font-size:small;} span#checkpoint_status,span#autosave_status{font-size:x-small;}}@media (max-width:767px){span#checkpoint_status,span#autosave_status{display:none;}}@media (min-width:768px) and (max-width:979px){span#checkpoint_status{display:none;} span#autosave_status{font-size:x-small;}}div.text_cell{padding:5px 5px 5px 5px;} |
|
187 | @media (max-width:767px){span#save_widget{font-size:small;} span#checkpoint_status,span#autosave_status{font-size:x-small;}}@media (max-width:767px){span#checkpoint_status,span#autosave_status{display:none;}}@media (min-width:768px) and (max-width:979px){span#checkpoint_status{display:none;} span#autosave_status{font-size:x-small;}}div.text_cell{padding:5px 5px 5px 5px;} |
@@ -1511,7 +1511,9 b' p{margin-bottom:0;}' | |||||
1511 | .end_space{height:200px;} |
|
1511 | .end_space{height:200px;} | |
1512 | #notification_area{z-index:10;} |
|
1512 | #notification_area{z-index:10;} | |
1513 | .notification_widget{color:#777777;padding:1px 12px;margin:2px 4px;z-index:10;border:1px solid #ccc;border-radius:4px;background:rgba(240, 240, 240, 0.5);} |
|
1513 | .notification_widget{color:#777777;padding:1px 12px;margin:2px 4px;z-index:10;border:1px solid #ccc;border-radius:4px;background:rgba(240, 240, 240, 0.5);} | |
1514 | div.output_area{padding:0px;page-break-inside:avoid;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:box;box-orient:horizontal;box-align:stretch;} |
|
1514 | div.output_area{padding:0px;page-break-inside:avoid;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:box;box-orient:horizontal;box-align:stretch;}div.output_area .MathJax_Display{text-align:left !important;} | |
|
1515 | div.output_area .rendered_html table{margin-left:0;margin-right:0;} | |||
|
1516 | div.output_area .rendered_html img{margin-left:0;margin-right:0;} | |||
1515 | div.output_area pre{font-family:monospace;margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;color:black;background-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;line-height:inherit;} |
|
1517 | div.output_area pre{font-family:monospace;margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;color:black;background-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;line-height:inherit;} | |
1516 | div.output_subarea{padding:0.44em 0.4em 0.4em 1px;margin-left:6px;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;} |
|
1518 | div.output_subarea{padding:0.44em 0.4em 0.4em 1px;margin-left:6px;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;} | |
1517 | div.output_text{text-align:left;color:#000000;font-family:monospace;line-height:1.231em;} |
|
1519 | div.output_text{text-align:left;color:#000000;font-family:monospace;line-height:1.231em;} | |
@@ -1552,11 +1554,15 b' div.quickhelp{float:left;width:50%;}' | |||||
1552 | .rendered_html pre{margin:1em 2em;} |
|
1554 | .rendered_html pre{margin:1em 2em;} | |
1553 | .rendered_html pre,.rendered_html code{border:0;background-color:#ffffff;color:#000000;font-size:100%;padding:0px;} |
|
1555 | .rendered_html pre,.rendered_html code{border:0;background-color:#ffffff;color:#000000;font-size:100%;padding:0px;} | |
1554 | .rendered_html blockquote{margin:1em 2em;} |
|
1556 | .rendered_html blockquote{margin:1em 2em;} | |
1555 |
.rendered_html table |
|
1557 | .rendered_html table{margin-left:auto;margin-right:auto;border:1px solid black;border-collapse:collapse;} | |
|
1558 | .rendered_html tr,.rendered_html th,.rendered_html td{border:1px solid black;border-collapse:collapse;margin:1em 2em;} | |||
1556 | .rendered_html td,.rendered_html th{text-align:left;vertical-align:middle;padding:4px;} |
|
1559 | .rendered_html td,.rendered_html th{text-align:left;vertical-align:middle;padding:4px;} | |
1557 | .rendered_html th{font-weight:bold;} |
|
1560 | .rendered_html th{font-weight:bold;} | |
1558 | .rendered_html p{text-align:justify;} |
|
1561 | .rendered_html p{text-align:justify;} | |
1559 | .rendered_html p+p{margin-top:1em;} |
|
1562 | .rendered_html img{display:block;margin-left:auto;margin-right:auto;} | |
|
1563 | .rendered_html *+p{margin-top:1em;} | |||
|
1564 | .rendered_html *+table{margin-top:1em;} | |||
|
1565 | .rendered_html *+img{margin-top:1em;} | |||
1560 | span#save_widget{padding:0px 5px;margin-top:12px;} |
|
1566 | span#save_widget{padding:0px 5px;margin-top:12px;} | |
1561 | span#checkpoint_status,span#autosave_status{font-size:small;} |
|
1567 | span#checkpoint_status,span#autosave_status{font-size:small;} | |
1562 | @media (max-width:767px){span#save_widget{font-size:small;} span#checkpoint_status,span#autosave_status{font-size:x-small;}}@media (max-width:767px){span#checkpoint_status,span#autosave_status{display:none;}}@media (min-width:768px) and (max-width:979px){span#checkpoint_status{display:none;} span#autosave_status{font-size:x-small;}}div.text_cell{padding:5px 5px 5px 5px;} |
|
1568 | @media (max-width:767px){span#save_widget{font-size:small;} span#checkpoint_status,span#autosave_status{font-size:x-small;}}@media (max-width:767px){span#checkpoint_status,span#autosave_status{display:none;}}@media (min-width:768px) and (max-width:979px){span#checkpoint_status{display:none;} span#autosave_status{font-size:x-small;}}div.text_cell{padding:5px 5px 5px 5px;} |
General Comments 0
You need to be logged in to leave comments.
Login now