mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Making the cell margin 0 all around.
Also moves some css/less code to the outputarea.less.
This commit is contained in:
parent
06e23487cc
commit
010becd987
@ -9,7 +9,7 @@ div.cell {
|
||||
width: 100%;
|
||||
padding: 5px 5px 5px 0px;
|
||||
/* This acts as a spacer between cells, that is outside the border */
|
||||
margin: 2px 0px 2px 7px;
|
||||
margin: 0px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
@ -22,46 +22,3 @@ div.input_prompt {
|
||||
border-top: 1px solid transparent;
|
||||
}
|
||||
|
||||
div.output_wrapper {
|
||||
/* This is a spacer between the input and output of each cell */
|
||||
margin-top: 5px;
|
||||
/* this position must be relative to enable descendents to be absolute within it */
|
||||
position: relative;
|
||||
.vbox()
|
||||
}
|
||||
|
||||
/* class for the output area when it should be height-limited */
|
||||
div.output_scroll {
|
||||
/* ideally, this would be max-height, but FF barfs all over that */
|
||||
height: 24em;
|
||||
/* FF needs this *and the wrapper* to specify full width, or it will shrinkwrap */
|
||||
width: 100%;
|
||||
|
||||
overflow: auto;
|
||||
.corner-all;
|
||||
.box-shadow(inset 0 2px 8px rgba(0, 0, 0, .8));
|
||||
}
|
||||
|
||||
/* output div while it is collapsed */
|
||||
div.output_collapsed {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
.vbox();
|
||||
}
|
||||
|
||||
div.out_prompt_overlay {
|
||||
height: 100%;
|
||||
padding: 0px 0.4em;
|
||||
position: absolute;
|
||||
.corner-all;
|
||||
}
|
||||
|
||||
div.out_prompt_overlay:hover {
|
||||
/* use inner shadow to get border that is computed the same on WebKit/FF */
|
||||
.box-shadow(inset 0 0 1px #000);
|
||||
background: rgba(240, 240, 240, 0.5);
|
||||
}
|
||||
|
||||
div.output_prompt {
|
||||
color: darkred;
|
||||
}
|
||||
|
@ -1,3 +1,47 @@
|
||||
div.output_wrapper {
|
||||
/* This is a spacer between the input and output of each cell */
|
||||
margin-top: 5px;
|
||||
/* this position must be relative to enable descendents to be absolute within it */
|
||||
position: relative;
|
||||
.vbox()
|
||||
}
|
||||
|
||||
/* class for the output area when it should be height-limited */
|
||||
div.output_scroll {
|
||||
/* ideally, this would be max-height, but FF barfs all over that */
|
||||
height: 24em;
|
||||
/* FF needs this *and the wrapper* to specify full width, or it will shrinkwrap */
|
||||
width: 100%;
|
||||
|
||||
overflow: auto;
|
||||
.corner-all;
|
||||
.box-shadow(inset 0 2px 8px rgba(0, 0, 0, .8));
|
||||
}
|
||||
|
||||
/* output div while it is collapsed */
|
||||
div.output_collapsed {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
.vbox();
|
||||
}
|
||||
|
||||
div.out_prompt_overlay {
|
||||
height: 100%;
|
||||
padding: 0px 0.4em;
|
||||
position: absolute;
|
||||
.corner-all;
|
||||
}
|
||||
|
||||
div.out_prompt_overlay:hover {
|
||||
/* use inner shadow to get border that is computed the same on WebKit/FF */
|
||||
.box-shadow(inset 0 0 1px #000);
|
||||
background: rgba(240, 240, 240, 0.5);
|
||||
}
|
||||
|
||||
div.output_prompt {
|
||||
color: darkred;
|
||||
}
|
||||
|
||||
/* This class is the outer container of all output sections. */
|
||||
div.output_area {
|
||||
padding: 0px;
|
||||
@ -23,7 +67,6 @@ div.output_area {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* This is needed to protect the pre formating from global settings such
|
||||
as that of bootstrap */
|
||||
.output {
|
||||
|
15
IPython/html/static/style/ipython.min.css
vendored
15
IPython/html/static/style/ipython.min.css
vendored
@ -54,17 +54,11 @@ input.engine_num_input{height:20px;margin-bottom:2px;padding-top:0;padding-botto
|
||||
.ansibgpurple{background-color:magenta;}
|
||||
.ansibgcyan{background-color:cyan;}
|
||||
.ansibggray{background-color:gray;}
|
||||
div.cell{border:1px solid transparent;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%;padding:5px 5px 5px 0px;margin:2px 0px 2px 7px;outline:none;}div.cell.selected{border-radius:4px;border:thin #ababab solid;}
|
||||
div.cell{border:1px solid transparent;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%;padding:5px 5px 5px 0px;margin:0px;outline:none;}div.cell.selected{border-radius:4px;border:thin #ababab solid;}
|
||||
div.prompt{min-width:11ex;padding:0.4em;margin:0px;font-family:monospace;text-align:right;line-height:1.231em;}
|
||||
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;}
|
||||
div.input_area{border:1px solid #cfcfcf;border-radius:4px;background:#f7f7f7;}
|
||||
div.input_prompt{color:navy;border-top:1px solid transparent;}
|
||||
div.output_wrapper{margin-top:5px;position:relative;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%;}
|
||||
div.output_scroll{height:24em;width:100%;overflow:auto;border-radius:4px;-webkit-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);-moz-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);}
|
||||
div.output_collapsed{margin:0px;padding:0px;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%;}
|
||||
div.out_prompt_overlay{height:100%;padding:0px 0.4em;position:absolute;border-radius:4px;}
|
||||
div.out_prompt_overlay:hover{-webkit-box-shadow:inset 0 0 1px #000000;-moz-box-shadow:inset 0 0 1px #000000;box-shadow:inset 0 0 1px #000000;background:rgba(240, 240, 240, 0.5);}
|
||||
div.output_prompt{color:darkred;}
|
||||
.CodeMirror{line-height:1.231em;height:auto;background:none;}
|
||||
.CodeMirror-scroll{overflow-y:hidden;overflow-x:auto;}
|
||||
@-moz-document url-prefix(){.CodeMirror-scroll{overflow-x:hidden;}}.CodeMirror-lines{padding:0.4em;}
|
||||
@ -92,6 +86,13 @@ pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .j
|
||||
.cm-s-ipython span.cm-operator{color:#AA22FF;font-weight:bold;}
|
||||
.cm-s-ipython span.cm-meta{color:#AA22FF;}
|
||||
.cm-s-ipython span.cm-tab{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=);background-position:right;background-repeat:no-repeat;}
|
||||
div.output_wrapper{margin-top:5px;position:relative;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%;}
|
||||
div.output_wrapper div.output:empty{margin-top:0px;}
|
||||
div.output_scroll{height:24em;width:100%;overflow:auto;border-radius:4px;-webkit-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);-moz-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);}
|
||||
div.output_collapsed{margin:0px;padding:0px;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%;}
|
||||
div.out_prompt_overlay{height:100%;padding:0px 0.4em;position:absolute;border-radius:4px;}
|
||||
div.out_prompt_overlay:hover{-webkit-box-shadow:inset 0 0 1px #000000;-moz-box-shadow:inset 0 0 1px #000000;box-shadow:inset 0 0 1px #000000;background:rgba(240, 240, 240, 0.5);}
|
||||
div.output_prompt{color:darkred;}
|
||||
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;}
|
||||
div.output_area .rendered_html table{margin-left:0;margin-right:0;}
|
||||
div.output_area .rendered_html img{margin-left:0;margin-right:0;}
|
||||
|
15
IPython/html/static/style/style.min.css
vendored
15
IPython/html/static/style/style.min.css
vendored
@ -1435,17 +1435,11 @@ input.engine_num_input{height:20px;margin-bottom:2px;padding-top:0;padding-botto
|
||||
.ansibgpurple{background-color:magenta;}
|
||||
.ansibgcyan{background-color:cyan;}
|
||||
.ansibggray{background-color:gray;}
|
||||
div.cell{border:1px solid transparent;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%;padding:5px 5px 5px 0px;margin:2px 0px 2px 7px;outline:none;}div.cell.selected{border-radius:4px;border:thin #ababab solid;}
|
||||
div.cell{border:1px solid transparent;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%;padding:5px 5px 5px 0px;margin:0px;outline:none;}div.cell.selected{border-radius:4px;border:thin #ababab solid;}
|
||||
div.prompt{min-width:11ex;padding:0.4em;margin:0px;font-family:monospace;text-align:right;line-height:1.231em;}
|
||||
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;}
|
||||
div.input_area{border:1px solid #cfcfcf;border-radius:4px;background:#f7f7f7;}
|
||||
div.input_prompt{color:navy;border-top:1px solid transparent;}
|
||||
div.output_wrapper{margin-top:5px;position:relative;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%;}
|
||||
div.output_scroll{height:24em;width:100%;overflow:auto;border-radius:4px;-webkit-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);-moz-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);}
|
||||
div.output_collapsed{margin:0px;padding:0px;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%;}
|
||||
div.out_prompt_overlay{height:100%;padding:0px 0.4em;position:absolute;border-radius:4px;}
|
||||
div.out_prompt_overlay:hover{-webkit-box-shadow:inset 0 0 1px #000000;-moz-box-shadow:inset 0 0 1px #000000;box-shadow:inset 0 0 1px #000000;background:rgba(240, 240, 240, 0.5);}
|
||||
div.output_prompt{color:darkred;}
|
||||
.CodeMirror{line-height:1.231em;height:auto;background:none;}
|
||||
.CodeMirror-scroll{overflow-y:hidden;overflow-x:auto;}
|
||||
@-moz-document url-prefix(){.CodeMirror-scroll{overflow-x:hidden;}}.CodeMirror-lines{padding:0.4em;}
|
||||
@ -1473,6 +1467,13 @@ pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .j
|
||||
.cm-s-ipython span.cm-operator{color:#AA22FF;font-weight:bold;}
|
||||
.cm-s-ipython span.cm-meta{color:#AA22FF;}
|
||||
.cm-s-ipython span.cm-tab{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=);background-position:right;background-repeat:no-repeat;}
|
||||
div.output_wrapper{margin-top:5px;position:relative;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%;}
|
||||
div.output_wrapper div.output:empty{margin-top:0px;}
|
||||
div.output_scroll{height:24em;width:100%;overflow:auto;border-radius:4px;-webkit-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);-moz-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);}
|
||||
div.output_collapsed{margin:0px;padding:0px;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%;}
|
||||
div.out_prompt_overlay{height:100%;padding:0px 0.4em;position:absolute;border-radius:4px;}
|
||||
div.out_prompt_overlay:hover{-webkit-box-shadow:inset 0 0 1px #000000;-moz-box-shadow:inset 0 0 1px #000000;box-shadow:inset 0 0 1px #000000;background:rgba(240, 240, 240, 0.5);}
|
||||
div.output_prompt{color:darkred;}
|
||||
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;}
|
||||
div.output_area .rendered_html table{margin-left:0;margin-right:0;}
|
||||
div.output_area .rendered_html img{margin-left:0;margin-right:0;}
|
||||
|
Loading…
Reference in New Issue
Block a user