##// END OF EJS Templates
refactor to improve cell switching in edit mode...
refactor to improve cell switching in edit mode This code was repeated in both CodeCell and TextCell, both of which are extensions of Cell, so this just unifies the logic in Cell. TextCell had logic here to check if the cell was rendered or not, but I don't believe it is possible to end up triggering such a code path. (Should that be required, I can always just add back these methods to TextCell, performing the .rendered==True check, and calling the Cell prior to this, code mirror at_top would only return true on if the cursor was at the first character of the top line. Now, pressing up arrow on any character on the top line will take you to the cell above. The same applies for the bottom line. Pressing down arrow would only go to the next cell if the cursor was at a location *after* the last character (something that is only possible to achieve in vim mode if the last line is empty, for example). Now, down arrow on any character of the last line will go to the next cell.

File last commit:

r14874:763c3086
r15754:d60e793e
Show More
notebook.less
67 lines | 1.2 KiB | text/x-less | LessCssLexer
Matthias BUSSONNIER
fix tooltip
r9367
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 body {
Brian E. Granger
More tabs to spaces on less files.
r13696 background-color: @bodyBackground;
Brian Granger
Fixes to notebook scrolling and layout....
r4311 }
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778
Matthias BUSSONNIER
fix body overflow on dashboard
r9290 body.notebook_app {
overflow: hidden;
}
Brian Granger
Fixes to notebook scrolling and layout....
r4311
Brian Granger
Improved notebook renaming....
r5859 span#notebook_name {
height: 1em;
line-height: 1em;
padding: 3px;
border: none;
font-size: 146.5%;
}
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 div#notebook_panel {
Brian E. Granger
Left panel is now working.
r4363 margin: 0px 0px 0px 0px;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 padding: 0px;
MinRK
menubar not full-width...
r10970 .box-shadow(0 -1px 10px rgba(0,0,0,.1));
Brian E. Granger
Starting to refactor the notebook layout
r4355 }
div#notebook {
overflow-y: scroll;
overflow-x: auto;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 width: 100%;
Brian E. Granger
Reducing/adjusting the padding of cells to make the notebook more...
r4525 /* This spaces the cell away from the edge of the notebook area */
Brian E. Granger
More changes to the heading spacing. Good first draft...
r14874 padding: 1em 0 1em 0;
MinRK
third attempt at scrolled long output...
r7362 margin: 0px;
MinRK
menubar not full-width...
r10970 border-top: 1px solid @border_color;
Brian E. Granger
Binding to notebook div not document.
r14018 outline: none;
Brian E. Granger
Removing manual focusing of notebook div.
r14019 .border-box-sizing();
Brian Granger
General CSS cleanup....
r4331 }
Brian Granger
Fixes to notebook scrolling and layout....
r4311
mcelrath
Fix 1px jumping of cells and menus in Notebook.
r7300 div.ui-widget-content {
Matthias BUSSONNIER
start to migrate to variables
r9260 border: 1px solid @border_color;
mcelrath
Fix 1px jumping of cells and menus in Notebook.
r7300 outline: none;
}
MinRK
allow the notebook to run without MathJax...
r5547 pre.dialog {
Matthias BUSSONNIER
start to migrate to variables
r9260 background-color: @cell_background;
MinRK
allow the notebook to run without MathJax...
r5547 border: 1px solid #ddd;
Matthias BUSSONNIER
start mixins
r9261 .corner-all;
MinRK
allow the notebook to run without MathJax...
r5547 padding: 0.4em;
padding-left: 2em;
}
Brian Granger
Implemented menu based UI using Wijmo.
r5857 p.dialog {
MinRK
allow the notebook to run without MathJax...
r5547 padding : 0.2em;
}
Fernando Perez
Word-wrap output correctly in the notebook; prevents excessive scrolling....
r5256 /* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems
to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do.
*/
pre, code, kbd, samp { white-space: pre-wrap; }
mcelrath
Add bad font detection, and a dialog informing the user.
r7394
#fonttest {
Brian E. Granger
Fixing monospace style vars.
r10729 font-family: @monoFontFamily;
mcelrath
Add bad font detection, and a dialog informing the user.
r7394 }
MinRK
catch js errors when rendering markdown cells
r8052
Matthias BUSSONNIER
fix alignemtn
r9369 p {
Brian E. Granger
More tabs to spaces on less files.
r13696 margin-bottom:0;
Matthias BUSSONNIER
fix alignemtn
r9369 }
MinRK
add anchor and link to heading cells
r10005
MinRK
specify end-space height in less
r10938 .end_space {
Brian E. Granger
Cleaning up indentation and spacing of less files touched.
r13778 height: 200px;
MinRK
specify end-space height in less
r10938 }