##// END OF EJS Templates
Correct documentation
Correct documentation

File last commit:

r20732:5a9ca308
r20925:e4158c31
Show More
outputarea.less
192 lines | 3.9 KiB | text/x-less | LessCssLexer
Brian E. Granger
Making the cell margin 0 all around....
r13681 div.output_wrapper {
/* this position must be relative to enable descendents to be absolute within it */
position: relative;
Min RK
set z-index on output_wrapper...
r20732 .vbox();
// avoid scrolled output overlaying input in some strange circumstances
z-index: 1;
Brian E. Granger
Making the cell margin 0 all around....
r13681 }
/* class for the output area when it should be height-limited */
div.output_scroll {
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778 /* 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%;
Brian E. Granger
Making the cell margin 0 all around....
r13681
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778 overflow: auto;
.corner-all;
.box-shadow(inset 0 2px 8px rgba(0, 0, 0, .8));
Jonathan Frederic
output_scroll can't be a vbox.
r15264 display: block;
Brian E. Granger
Making the cell margin 0 all around....
r13681 }
/* output div while it is collapsed */
div.output_collapsed {
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778 margin: 0px;
padding: 0px;
.vbox();
Brian E. Granger
Making the cell margin 0 all around....
r13681 }
div.out_prompt_overlay {
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778 height: 100%;
padding: 0px @code_padding;
position: absolute;
.corner-all;
Brian E. Granger
Making the cell margin 0 all around....
r13681 }
div.out_prompt_overlay:hover {
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778 /* 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);
Brian E. Granger
Making the cell margin 0 all around....
r13681 }
div.output_prompt {
Jason Grout
abstract hard-coded style values to be variables for different theming
r17292 color: @output_prompt_color;
Brian E. Granger
Making the cell margin 0 all around....
r13681 }
Brian E. Granger
Splitting notebook.less into separate files.
r10730 /* This class is the outer container of all output sections. */
div.output_area {
padding: 0px;
page-break-inside: avoid;
.hbox();
Brian E. Granger
Refactoring the center/left justify.
r12793
.MathJax_Display {
// Inside a CodeCell, elements are left justified
text-align: left !important;
}
.rendered_html {
// Inside a CodeCell, elements are left justified
table {
margin-left: 0;
margin-right: 0;
}
img {
margin-left: 0;
margin-right: 0;
}
}
Brian E. Granger
Splitting notebook.less into separate files.
r10730 }
/* This is needed to protect the pre formating from global settings such
as that of bootstrap */
Matthias BUSSONNIER
remove more hard coded layout
r13332 .output {
.vbox();
}
Matthias Bussonnier
rework css media-query...
r19953 @media (max-width: @screen-xs-min) {
MinRK
move prompts from margin to main column on small screens...
r15966 // move prompts above output on small screens
div.output_area {
.vbox();
}
}
MinRK
remove some redundant font-family: monospace...
r15829 div.output_area pre {
Brian E. Granger
Splitting notebook.less into separate files.
r10730 margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
Jason Grout
abstract hard-coded style values to be variables for different theming
r17292 color: @output_pre_color;
MinRK
don't hardcode output_area pre background...
r10745 background-color: transparent;
.border-radius(0);
Brian E. Granger
Splitting notebook.less into separate files.
r10730 }
/* This class is for the output subarea inside the output_area and after
the prompt div. */
div.output_subarea {
Peter Parente
Fix initial scroll overflow with padding (from @joelkim)
r20170 padding: @code_padding;
Brian E. Granger
Splitting notebook.less into separate files.
r10730 .box-flex1();
}
/* The rest of the output_* classes are for special styling of the different
output types */
/* all text output has this class: */
div.output_text {
text-align: left;
Jonathan Frederic
Get notebook running with Bootstrap3
r16912 color: @text-color;
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778 /* This has to match that of the the CodeMirror class line-height below */
MinRK
overriding baseLineHeight is not a good idea
r10886 line-height: @code_line_height;
Brian E. Granger
Splitting notebook.less into separate files.
r10730 }
MinRK
move pyout/execute_result and pyerr/error transforms to to/fromJSON...
r16589 /* stdout/stderr are 'text' as well as 'stream', but execute_result/error are *not* streams */
Brian E. Granger
Splitting notebook.less into separate files.
r10730 div.output_stream {
}
Brian E. Granger
Adjusting padding of output subareas and adding @code_padding.
r13687
Brian E. Granger
Splitting notebook.less into separate files.
r10730 div.output_stdout {
}
Brian E. Granger
Adjusting padding of output subareas and adding @code_padding.
r13687
Brian E. Granger
Splitting notebook.less into separate files.
r10730 div.output_stderr {
background: #fdd; /* very light red background for stderr */
}
div.output_latex {
text-align: left;
}
div.output_html {
}
div.output_png {
}
div.output_jpeg {
}
Brian E. Granger
Fixing various output related things:...
r13792 /* Empty output_javascript divs should have no height */
div.output_javascript:empty {
padding: 0;
}
Brian E. Granger
Splitting notebook.less into separate files.
r10730 .js-error {
color: darkred;
}
/* raw_input styles */
MinRK
simplify raw_input css...
r15826 div.raw_input_container {
Jonathan Frederic
Get notebook running with Bootstrap3
r16912 font-family: @font-family-monospace;
MinRK
fix raw_input CSS...
r15803 // for some reason, em padding doesn't compute the same for raw_input
// that is not the first input, but px does
padding-top: 5px;
Brian E. Granger
Splitting notebook.less into separate files.
r10730 }
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778
MinRK
simplify raw_input css...
r15826 span.raw_input_prompt {
/* nothing needed here */
Brian E. Granger
Splitting notebook.less into separate files.
r10730 }
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778
Brian E. Granger
Splitting notebook.less into separate files.
r10730 input.raw_input {
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778 font-family: inherit;
font-size: inherit;
color: inherit;
width: auto;
MinRK
simplify raw_input css...
r15826 /* make sure input baseline aligns with prompt */
vertical-align: baseline;
/* padding + margin = 0.5em between prompt and cursor */
padding: 0em 0.25em;
margin: 0em 0.25em;
Brian E. Granger
Splitting notebook.less into separate files.
r10730 }
MinRK
fix raw_input CSS...
r15803 input.raw_input:focus {
box-shadow: none;
Brian E. Granger
Splitting notebook.less into separate files.
r10730 }
p.p-space {
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778 margin-bottom: 10px;
Matthias BUSSONNIER
remove more hard coded layout
r13332 }
Min RK
Handle unrecognized outputs and cells from the future
r18999
div.output_unrecognized {
padding: 5px;
font-weight: bold;
color: red;
Min RK
Preserve nbformat_minor from the future...
r19107 // remove decoration from link
a {
color: inherit;
text-decoration: none;
&:hover {
color: inherit;
text-decoration: none;
}
}
Matthias Bussonnier
rework css media-query...
r19953 }