##// 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:

r11033:fa36e98f
r15754:d60e793e
Show More
tooltip.less
158 lines | 3.0 KiB | text/x-less | LessCssLexer
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 /**
* Primary styles
*
* Author: IPython Development Team
*/
/** WARNING IF YOU ARE EDITTING THIS FILE, if this is a .css file, It has a lot
* of chance of beeing generated from the ../less/[samename].less file, you can
* try to get back the less file by reverting somme commit in history
**/
/*
* We'll try to get something pretty, so we
* have some strange css to have the scroll bar on
* the left with fix button on the top right of the tooltip
*/
// double slash comment are remove by less compilation
// **
// * Less mixins
// **/
// Four color of the background
Matthias BUSSONNIER
use less for tooltip
r9263 @import "variables" ;
Matthias BUSSONNIER
Revert "remove less.css"...
r9262
.dropshadow(){
-moz-box-shadow: 0px 6px 10px -1px #adadad;
-webkit-box-shadow: 0px 6px 10px -1px #adadad;
box-shadow: 0px 6px 10px -1px #adadad;
}
// smoth height adaptation
Matthias BUSSONNIER
speedup transition adn use class instead of id
r9297 .smoothheight(@t:500ms) {
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 -webkit-transition-property: height;
Matthias BUSSONNIER
speedup transition adn use class instead of id
r9297 -webkit-transition-duration: @t;
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 -moz-transition-property: height;
Matthias BUSSONNIER
speedup transition adn use class instead of id
r9297 -moz-transition-duration: @t;
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 transition-property: height;
Matthias BUSSONNIER
speedup transition adn use class instead of id
r9297 transition-duration: @t;
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 }
@-moz-keyframes fadeOut {
from {opacity:1;}
to {opacity:0;}
}
@-webkit-keyframes fadeOut {
from {opacity:1;}
to {opacity:0;}
}
@-moz-keyframes fadeIn {
from {opacity:0;}
to {opacity:1;}
}
@-webkit-keyframes fadeIn {
from {opacity:0;}
to {opacity:1;}
}
/*properties of tooltip after "expand"*/
.bigtooltip {
overflow: auto;
height: 200px;
.smoothheight();
}
/*properties of tooltip before "expand"*/
.smalltooltip{
.smoothheight();
text-overflow: ellipsis;
overflow: hidden;
height:80px;
}
.tooltipbuttons
{
position: absolute;
padding-right : 15px;
top : 0px;
right:0px;
}
.tooltiptext
Matthias BUSSONNIER
remove trailing whitespace
r9284 {
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 /*avoid the button to overlap on some docstring*/
padding-right:30px
}
Matthias BUSSONNIER
fix tooltip
r9367 .ipython_tooltip {
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 max-width:700px;
/*fade-in animation when inserted*/
Matthias BUSSONNIER
fix tooltip
r9367 -webkit-animation: fadeOut 400ms;
-moz-animation: fadeOut 400ms;
animation: fadeOut 400ms;
-webkit-animation: fadeIn 400ms;
-moz-animation: fadeIn 400ms;
animation: fadeIn 400ms;
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 vertical-align: middle;
Matthias BUSSONNIER
use less for tooltip
r9263 background-color: @cell_background;
Matthias BUSSONNIER
remove trailing whitespace
r9284
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 overflow : visible;
Brian E. Granger
Fixing less variable names to use_the_right_convention.
r10715 border: @border_color @border_width solid;
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 outline: none;
padding: 3px;
margin: 0px;
padding-left:7px;
Brian E. Granger
Fixing monospace style vars.
r10729 font-family: @monoFontFamily;
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 min-height:50px;
Matthias BUSSONNIER
use less for tooltip
r9263
.dropshadow;
.corner-all;
a {
float:right;
Matthias BUSSONNIER
fix tooltip
r9367 };
position: absolute;
Matthias BUSSONNIER
use less for tooltip
r9263
Brian E. Granger
Updating tooltip.less for CM3 behavior.
r10412 z-index: 2;
Brian E. Granger
Turing style of tooltip.
r10728
.tooltiptext {
pre {
border: 0;
.border-radius(0);
Brian E. Granger
Fixing monospace style vars.
r10729 font-size: 100%;
Brian E. Granger
Turing style of tooltip.
r10728 background-color: @cell_background;
}
}
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 }
.pretooltiparrow {
left: 0px;
margin: 0px;
top: -16px;
width: 40px;
height: 16px;
overflow: hidden;
position: absolute;
}
.pretooltiparrow:before {
Matthias BUSSONNIER
use less for tooltip
r9263 background-color : @cell_background;
Brian E. Granger
Fixing less variable names to use_the_right_convention.
r10715 border : @border_width @border_color solid;
Matthias BUSSONNIER
Revert "remove less.css"...
r9262 z-index:11;
content: "";
position: absolute;
left: 15px;
top: 10px;
width: 25px;
height: 25px;
@theta : 45deg;
-webkit-transform: rotate(@theta);
-moz-transform: rotate(@theta);
-ms-transform: rotate(@theta);
-o-transform: rotate(@theta);
}