Show More
@@ -33,6 +33,14 b' div.prompt {' | |||
|
33 | 33 | line-height: @code_line_height; |
|
34 | 34 | } |
|
35 | 35 | |
|
36 | @media (max-width: 480px) { | |
|
37 | // prompts are in the main column on small screens, | |
|
38 | // so text should be left-aligned | |
|
39 | div.prompt { | |
|
40 | text-align: left; | |
|
41 | } | |
|
42 | } | |
|
43 | ||
|
36 | 44 | div.inner_cell { |
|
37 | 45 | .vbox(); |
|
38 | 46 | .box-flex1(); |
@@ -10,13 +10,19 b' div.input {' | |||
|
10 | 10 | .hbox(); |
|
11 | 11 | } |
|
12 | 12 | |
|
13 | @media (max-width: 480px) { | |
|
14 | // move prompts above code on small screens | |
|
15 | div.input { | |
|
16 | .vbox(); | |
|
17 | } | |
|
18 | } | |
|
19 | ||
|
13 | 20 | /* input_area and input_prompt must match in top border and margin for alignment */ |
|
14 | 21 | div.input_prompt { |
|
15 | 22 | color: navy; |
|
16 | 23 | border-top: 1px solid transparent; |
|
17 | 24 | } |
|
18 | 25 | |
|
19 | ||
|
20 | 26 | // The styles related to div.highlight are for nbconvert HTML output only. This works |
|
21 | 27 | // because the .highlight div isn't present in the live notebook. We could put this into |
|
22 | 28 | // nbconvert, but it easily falls out of sync, can't use our less variables and doesn't |
@@ -7,6 +7,14 b' body.notebook_app {' | |||
|
7 | 7 | overflow: hidden; |
|
8 | 8 | } |
|
9 | 9 | |
|
10 | @media (max-width: 767px) { | |
|
11 | // remove bootstrap-responsive's body padding on small screens | |
|
12 | body.notebook_app { | |
|
13 | padding-left: 0px; | |
|
14 | padding-right: 0px; | |
|
15 | } | |
|
16 | } | |
|
17 | ||
|
10 | 18 | span#notebook_name { |
|
11 | 19 | height: 1em; |
|
12 | 20 | line-height: 1em; |
@@ -72,6 +72,13 b' div.output_area {' | |||
|
72 | 72 | .vbox(); |
|
73 | 73 | } |
|
74 | 74 | |
|
75 | @media (max-width: 480px) { | |
|
76 | // move prompts above output on small screens | |
|
77 | div.output_area { | |
|
78 | .vbox(); | |
|
79 | } | |
|
80 | } | |
|
81 | ||
|
75 | 82 | div.output_area pre { |
|
76 | 83 | margin: 0; |
|
77 | 84 | padding: 0; |
@@ -2,6 +2,12 b' div.text_cell {' | |||
|
2 | 2 | padding: 5px 5px 5px 0px; |
|
3 | 3 | .hbox(); |
|
4 | 4 | } |
|
5 | @media (max-width: 480px) { | |
|
6 | // remove prompt indentation on small screens | |
|
7 | div.text_cell > div.prompt { | |
|
8 | display: none; | |
|
9 | } | |
|
10 | } | |
|
5 | 11 | |
|
6 | 12 | div.text_cell_render { |
|
7 | 13 | /*font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;*/ |
@@ -73,11 +73,11 b' div.cell{border:1px solid transparent;display:-webkit-box;-webkit-box-orient:ver' | |||
|
73 | 73 | div.cell.edit_mode{border-radius:4px;border:thin #008000 solid} |
|
74 | 74 | div.cell{width:100%;padding:5px 5px 5px 0;margin:0;outline:none} |
|
75 | 75 | div.prompt{min-width:11ex;padding:.4em;margin:0;font-family:monospace;text-align:right;line-height:1.21429em} |
|
76 | div.inner_cell{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;display:flex;flex-direction:column;align-items:stretch;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;flex:1} | |
|
76 | @media (max-width:480px){div.prompt{text-align:left}}div.inner_cell{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;display:flex;flex-direction:column;align-items:stretch;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;flex:1} | |
|
77 | 77 | div.input_area{border:1px solid #cfcfcf;border-radius:4px;background:#f7f7f7} |
|
78 | 78 | div.prompt:empty{padding-top:0;padding-bottom:0} |
|
79 | 79 | div.input{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;display:flex;flex-direction:row;align-items:stretch} |
|
80 | div.input_prompt{color:#000080;border-top:1px solid transparent} | |
|
80 | @media (max-width:480px){div.input{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;display:flex;flex-direction:column;align-items:stretch}}div.input_prompt{color:#000080;border-top:1px solid transparent} | |
|
81 | 81 | div.input_area>div.highlight{margin:.4em;border:none;padding:0;background-color:transparent} |
|
82 | 82 | div.input_area>div.highlight>pre{margin:0;border:0;padding:0;background-color:transparent;font-size:14px;line-height:1.21429em} |
|
83 | 83 | .CodeMirror{line-height:1.21429em;height:auto;background:none;} |
@@ -117,7 +117,7 b' div.output_area{padding:0;page-break-inside:avoid;display:-webkit-box;-webkit-bo' | |||
|
117 | 117 | div.output_area .rendered_html table{margin-left:0;margin-right:0} |
|
118 | 118 | div.output_area .rendered_html img{margin-left:0;margin-right:0} |
|
119 | 119 | .output{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;display:flex;flex-direction:column;align-items:stretch} |
|
120 | div.output_area pre{margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;color:#000;background-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;line-height:inherit} | |
|
120 | @media (max-width:480px){div.output_area{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;display:flex;flex-direction:column;align-items:stretch}}div.output_area pre{margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;color:#000;background-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;line-height:inherit} | |
|
121 | 121 | div.output_subarea{padding:.4em .4em 0 .4em;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;flex:1} |
|
122 | 122 | div.output_text{text-align:left;color:#000;line-height:1.21429em} |
|
123 | 123 | div.output_stderr{background:#fdd;} |
@@ -170,7 +170,7 b' p.p-space{margin-bottom:10px}' | |||
|
170 | 170 | .rendered_html img{display:block;margin-left:auto;margin-right:auto} |
|
171 | 171 | .rendered_html *+img{margin-top:1em} |
|
172 | 172 | div.text_cell{padding:5px 5px 5px 0;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;display:flex;flex-direction:row;align-items:stretch} |
|
173 | div.text_cell_render{outline:none;resize:none;width:inherit;border-style:none;padding:.5em .5em .5em .4em;color:#000} | |
|
173 | @media (max-width:480px){div.text_cell>div.prompt{display:none}}div.text_cell_render{outline:none;resize:none;width:inherit;border-style:none;padding:.5em .5em .5em .4em;color:#000} | |
|
174 | 174 | a.anchor-link:link{text-decoration:none;padding:0 20px;visibility:hidden} |
|
175 | 175 | h1:hover .anchor-link,h2:hover .anchor-link,h3:hover .anchor-link,h4:hover .anchor-link,h5:hover .anchor-link,h6:hover .anchor-link{visibility:visible} |
|
176 | 176 | div.cell.text_cell.rendered{padding:0} |
@@ -1350,11 +1350,11 b' div.cell{border:1px solid transparent;display:-webkit-box;-webkit-box-orient:ver' | |||
|
1350 | 1350 | div.cell.edit_mode{border-radius:4px;border:thin #008000 solid} |
|
1351 | 1351 | div.cell{width:100%;padding:5px 5px 5px 0;margin:0;outline:none} |
|
1352 | 1352 | div.prompt{min-width:11ex;padding:.4em;margin:0;font-family:monospace;text-align:right;line-height:1.21429em} |
|
1353 | div.inner_cell{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;display:flex;flex-direction:column;align-items:stretch;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;flex:1} | |
|
1353 | @media (max-width:480px){div.prompt{text-align:left}}div.inner_cell{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;display:flex;flex-direction:column;align-items:stretch;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;flex:1} | |
|
1354 | 1354 | div.input_area{border:1px solid #cfcfcf;border-radius:4px;background:#f7f7f7} |
|
1355 | 1355 | div.prompt:empty{padding-top:0;padding-bottom:0} |
|
1356 | 1356 | div.input{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;display:flex;flex-direction:row;align-items:stretch} |
|
1357 | div.input_prompt{color:#000080;border-top:1px solid transparent} | |
|
1357 | @media (max-width:480px){div.input{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;display:flex;flex-direction:column;align-items:stretch}}div.input_prompt{color:#000080;border-top:1px solid transparent} | |
|
1358 | 1358 | div.input_area>div.highlight{margin:.4em;border:none;padding:0;background-color:transparent} |
|
1359 | 1359 | div.input_area>div.highlight>pre{margin:0;border:0;padding:0;background-color:transparent;font-size:14px;line-height:1.21429em} |
|
1360 | 1360 | .CodeMirror{line-height:1.21429em;height:auto;background:none;} |
@@ -1394,7 +1394,7 b' div.output_area{padding:0;page-break-inside:avoid;display:-webkit-box;-webkit-bo' | |||
|
1394 | 1394 | div.output_area .rendered_html table{margin-left:0;margin-right:0} |
|
1395 | 1395 | div.output_area .rendered_html img{margin-left:0;margin-right:0} |
|
1396 | 1396 | .output{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;display:flex;flex-direction:column;align-items:stretch} |
|
1397 | div.output_area pre{margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;color:#000;background-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;line-height:inherit} | |
|
1397 | @media (max-width:480px){div.output_area{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;display:flex;flex-direction:column;align-items:stretch}}div.output_area pre{margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;color:#000;background-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;line-height:inherit} | |
|
1398 | 1398 | div.output_subarea{padding:.4em .4em 0 .4em;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;flex:1} |
|
1399 | 1399 | div.output_text{text-align:left;color:#000;line-height:1.21429em} |
|
1400 | 1400 | div.output_stderr{background:#fdd;} |
@@ -1447,7 +1447,7 b' p.p-space{margin-bottom:10px}' | |||
|
1447 | 1447 | .rendered_html img{display:block;margin-left:auto;margin-right:auto} |
|
1448 | 1448 | .rendered_html *+img{margin-top:1em} |
|
1449 | 1449 | div.text_cell{padding:5px 5px 5px 0;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;display:flex;flex-direction:row;align-items:stretch} |
|
1450 | div.text_cell_render{outline:none;resize:none;width:inherit;border-style:none;padding:.5em .5em .5em .4em;color:#000} | |
|
1450 | @media (max-width:480px){div.text_cell>div.prompt{display:none}}div.text_cell_render{outline:none;resize:none;width:inherit;border-style:none;padding:.5em .5em .5em .4em;color:#000} | |
|
1451 | 1451 | a.anchor-link:link{text-decoration:none;padding:0 20px;visibility:hidden} |
|
1452 | 1452 | h1:hover .anchor-link,h2:hover .anchor-link,h3:hover .anchor-link,h4:hover .anchor-link,h5:hover .anchor-link,h6:hover .anchor-link{visibility:visible} |
|
1453 | 1453 | div.cell.text_cell.rendered{padding:0} |
@@ -1476,7 +1476,7 b' div.cell.text_cell.rendered{padding:0}' | |||
|
1476 | 1476 | .docked-widget-modal{overflow:hidden;position:relative !important;top:0 !important;left:0 !important;margin-left:0 !important} |
|
1477 | 1477 | body{background-color:#fff} |
|
1478 | 1478 | body.notebook_app{overflow:hidden} |
|
1479 | span#notebook_name{height:1em;line-height:1em;padding:3px;border:none;font-size:146.5%} | |
|
1479 | @media (max-width:767px){body.notebook_app{padding-left:0;padding-right:0}}span#notebook_name{height:1em;line-height:1em;padding:3px;border:none;font-size:146.5%} | |
|
1480 | 1480 | div#notebook_panel{margin:0 0 0 0;padding:0;-webkit-box-shadow:0 -1px 10px rgba(0,0,0,0.1);-moz-box-shadow:0 -1px 10px rgba(0,0,0,0.1);box-shadow:0 -1px 10px rgba(0,0,0,0.1)} |
|
1481 | 1481 | div#notebook{font-size:14px;line-height:20px;overflow-y:scroll;overflow-x:auto;width:100%;padding:1em 0 1em 0;margin:0;border-top:1px solid #ababab;outline:none;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box} |
|
1482 | 1482 | div.ui-widget-content{border:1px solid #ababab;outline:none} |
General Comments 0
You need to be logged in to leave comments.
Login now