##// END OF EJS Templates
Major refactoring of the Notebook, Kernel and CodeCell JavaScript....
Major refactoring of the Notebook, Kernel and CodeCell JavaScript. * Kernel doesn't depend on Notebook or CodeCell. * CodeCell doesn't depend on Notebook, only Kernel. * All of the kernel management logic has been moved out of the Notebook into the Kernel. * Public methods of the Kernel (execute, complete, etc) take a callbacks object that registers the callbacks for that msg. (rebased, cherrypicked, by Bussonnier Matthias <bussonniermatthias@gmail.com>) (and tabs removed) Conflicts: IPython/frontend/html/notebook/static/js/codecell.js IPython/frontend/html/notebook/static/js/completer.js IPython/frontend/html/notebook/static/js/tooltip.js

File last commit:

r7158:edff13c4
r7168:cf831228
Show More
tooltip.less
186 lines | 4.3 KiB | text/x-less | LessCssLexer
Matthias BUSSONNIER
change new tooltip appearence...
r7148 /**
* 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
* ../css/[samename].less file, it might not stay a less file forever,
* but as until now it is convenient to developp using less
*
* it it's a less file, don't forget to recompile it
*/
Matthias BUSSONNIER
almost all logic in tooltip.js, padding right button
r7158 /*
* We'll try to get something prety, so we
* have some strange ccs to have the scroll bar on
* the left of the left with fix button on the top right of the tooltip
*/
Matthias BUSSONNIER
change new tooltip appearence...
r7148
Matthias BUSSONNIER
almost all logic in tooltip.js, padding right button
r7158 // double slash comment are remove by less compilation
Matthias BUSSONNIER
change new tooltip appearence...
r7148 // **
// * Less mixins
// **/
// Four color of the background
@c1 : rgb(215,215,215);
@c2 : rgb(210,210,210);
@c3 : rgb(227,227,227);
@c4 : rgb(247,247,247);
@bordercolor : #BBB;
Matthias BUSSONNIER
move arow with tooltip positoin
r7155 @borderwidth : 1px;
Matthias BUSSONNIER
change new tooltip appearence...
r7148 @textColor : #000;
Matthias BUSSONNIER
call tooltip by cell reference
r7156 // smoth height adaptation
.smoothheight(@t:1s) {
-webkit-transition-property: height;
-webkit-transition-duration: 1s;
-moz-transition-property: height;
-moz-transition-duration: 1s;
transition-property: height;
transition-duration: 1s;
}
Matthias BUSSONNIER
change new tooltip appearence...
r7148 @-moz-keyframes fadeOut {
from {opacity:1;}
to {opacity:0;}
}
@-webkit-keyframes fadeOut {
from {opacity:1;}
to {opacity:0;}
}
Matthias Bussonnier
play with tooltip growing css...
r7150 //@keyframes fadeOut {
// from {opacity:1;}
// to {opacity:0;}
//}
Matthias BUSSONNIER
change new tooltip appearence...
r7148
@-moz-keyframes fadeIn {
from {opacity:0;}
to {opacity:1;}
}
@-webkit-keyframes fadeIn {
from {opacity:0;}
to {opacity:1;}
}
Matthias Bussonnier
play with tooltip growing css...
r7150 //@keyframes fadeIn {
// from {opacity:0;}
// to {opacity:1;}
//}
Matthias BUSSONNIER
change new tooltip appearence...
r7148
.linearGradient(@stop1:0, @color1:#ccc, @stop2:33%, @color2:#ddd, @stop3:66%, @color3:#ccc, @stop4:100%, @color4:#ddd){
background-color:@color4;
background-image: -webkit-linear-gradient(center bottom, @color1 @stop1, @color2 @stop2, @color3 @stop3, @color4 @stop4);
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(@stop1, @color1),
color-stop(@stop2, @color2),
color-stop(@stop3, @color3),
color-stop(@stop4, @color4)
);
background-image:-moz-linear-gradient(center bottom, @color1 @stop1, @color2 @stop2, @color3 @stop3, @color4 @stop4);
background-image:-ms-linear-gradient(center bottom, @color1 @stop1, @color2 @stop2, @color3 @stop3, @color4 @stop4);
background-image:-o-linear-gradient(center bottom, @color1 @stop1, @color2 @stop2, @color3 @stop3, @color4 @stop4);
background-image:linear-gradient(center bottom, @color1 @stop1, @color2 @stop2, @color3 @stop3, @color4 @stop4);
}
.tooltip a {
float:right;
}
/*properties of tooltip after "expand"*/
.bigtooltip {
Matthias Bussonnier
play with tooltip growing css...
r7150 overflow: auto;
height: 200px;
Matthias BUSSONNIER
call tooltip by cell reference
r7156 .smoothheight();
Matthias BUSSONNIER
change new tooltip appearence...
r7148 }
/*properties of tooltip before "expand"*/
.smalltooltip{
Matthias BUSSONNIER
call tooltip by cell reference
r7156 .smoothheight();
Matthias BUSSONNIER
change new tooltip appearence...
r7148 text-overflow: ellipsis;
overflow: hidden;
Matthias Bussonnier
play with tooltip growing css...
r7150 height:80px;
Matthias BUSSONNIER
change new tooltip appearence...
r7148 }
.tooltipbuttons
{
position: absolute;
Matthias Bussonnier
play with tooltip growing css...
r7150 padding-right : 15px;
Matthias BUSSONNIER
change new tooltip appearence...
r7148 top : 0px;
right:0px;
}
.tooltiptext
Matthias BUSSONNIER
almost all logic in tooltip.js, padding right button
r7158 {
/*avoid the button to overlap on some docstring*/
padding-right:30px
Matthias BUSSONNIER
change new tooltip appearence...
r7148 }
.tooltip {
max-width:700px;
border-radius: 10px 10px 10px 10px;
box-shadow: 3px 3px 5px #999;
/*fade-in animation when inserted*/
Matthias Bussonnier
animate tooltip position
r7152 -webkit-animation: fadeOut 800ms;
-moz-animation: fadeOut 800ms;
animation: fadeOut 800ms;
-webkit-animation: fadeIn 800ms;
-moz-animation: fadeIn 800ms;
animation: fadeIn 800ms;
Matthias BUSSONNIER
change new tooltip appearence...
r7148 vertical-align: middle;
.linearGradient(13%,@c1, 39%, @c2 , 56%,@c3, 91% , @c4) ;
overflow : visible;
color: @textColor;
Matthias BUSSONNIER
move arow with tooltip positoin
r7155 border: @bordercolor @borderwidth solid;
Matthias BUSSONNIER
change new tooltip appearence...
r7148 outline: none;
padding: 3px;
margin: 0px;
padding-left:7px;
font-family: monospace;
min-height:50px;
position: absolute;
}
.pretooltiparrow {
left: 0px;
Matthias BUSSONNIER
move arow with tooltip positoin
r7155 margin: 0px;
Matthias BUSSONNIER
change new tooltip appearence...
r7148 top: -16px;
Matthias BUSSONNIER
move arow with tooltip positoin
r7155 width: 40px;
Matthias BUSSONNIER
change new tooltip appearence...
r7148 height: 16px;
overflow: hidden;
position: absolute;
}
.pretooltiparrow:before {
background-color : @c4;
Matthias BUSSONNIER
move arow with tooltip positoin
r7155 border : @borderwidth @bordercolor solid;
Matthias BUSSONNIER
shorten prearrow
r7154 z-index:11;
Matthias BUSSONNIER
change new tooltip appearence...
r7148 content: "";
position: absolute;
Matthias BUSSONNIER
shorten prearrow
r7154 left: 15px;
Matthias BUSSONNIER
change new tooltip appearence...
r7148 top: 10px;
width: 25px;
height: 25px;
@theta : 45deg;
-webkit-transform: rotate(@theta);
-moz-transform: rotate(@theta);
-ms-transform: rotate(@theta);
-o-transform: rotate(@theta);
}
.tooltip.hide
{
Matthias Bussonnier
animate tooltip position
r7152 -webkit-animation: fadeOut 800ms;
-moz-animation: fadeOut 800ms;
animation: fadeOut 800ms;
Matthias BUSSONNIER
change new tooltip appearence...
r7148 opacity : 0;
}