##// END OF EJS Templates
play with tooltip growing css...
Matthias Bussonnier -
Show More
@@ -27,14 +27,6 b''
27 opacity: 0;
27 opacity: 0;
28 }
28 }
29 }
29 }
30 @keyframes fadeOut {
31 from {
32 opacity: 1;
33 }
34 to {
35 opacity: 0;
36 }
37 }
38 @-moz-keyframes fadeIn {
30 @-moz-keyframes fadeIn {
39 from {
31 from {
40 opacity: 0;
32 opacity: 0;
@@ -51,37 +43,26 b''
51 opacity: 1;
43 opacity: 1;
52 }
44 }
53 }
45 }
54 @keyframes fadeIn {
55 from {
56 opacity: 0;
57 }
58 to {
59 opacity: 1;
60 }
61 }
62 .tooltip a {
46 .tooltip a {
63 float: right;
47 float: right;
64 }
48 }
65 /*properties of tooltip after "expand"*/
49 /*properties of tooltip after "expand"*/
66 .bigtooltip {
50 .bigtooltip {
67 height: 30%;
51 overflow: auto;
52 height: 200px;
68 }
53 }
69 /*properties of tooltip before "expand"*/
54 /*properties of tooltip before "expand"*/
70 .smalltooltip {
55 .smalltooltip {
71 text-overflow: ellipsis;
56 text-overflow: ellipsis;
72 overflow: hidden;
57 overflow: hidden;
73 height: 20px;
58 height: 80px;
74 }
59 }
75 .tooltipbuttons {
60 .tooltipbuttons {
76 position: absolute;
61 position: absolute;
62 padding-right: 15px;
77 top: 0px;
63 top: 0px;
78 right: 0px;
64 right: 0px;
79 }
65 }
80 .tooltiptext {
81 height: 200px;
82 overflow: auto;
83 padding-right: -10px;
84 }
85 .tooltip {
66 .tooltip {
86 -webkit-transition: all 0.2s ease;
67 -webkit-transition: all 0.2s ease;
87 -moz-transition: all 0.2s ease;
68 -moz-transition: all 0.2s ease;
@@ -123,7 +104,6 b''
123 padding-left: 7px;
104 padding-left: 7px;
124 font-family: monospace;
105 font-family: monospace;
125 min-height: 50px;
106 min-height: 50px;
126 max-height: 70%;
127 position: absolute;
107 position: absolute;
128 }
108 }
129 .pretooltiparrow {
109 .pretooltiparrow {
@@ -34,28 +34,29 b' var IPython = (function (IPython) {'
34 // build the buttons menu on the upper right
34 // build the buttons menu on the upper right
35
35
36 // expand the tooltip to see more
36 // expand the tooltip to see more
37 var expandspan=$('<span/>').text('Expand')
38 .addClass('ui-icon')
39 .addClass('ui-icon-plus');
40 var expandlink=$('<a/>').attr('href',"#")
37 var expandlink=$('<a/>').attr('href',"#")
41 .addClass("ui-corner-all") //rounded corner
38 .addClass("ui-corner-all") //rounded corner
42 .attr('role',"button")
39 .attr('role',"button")
43 .attr('id','expanbutton')
40 .attr('id','expanbutton')
44 .append(expandspan)
45 .click(function(){
41 .click(function(){
46 text.removeClass('smalltooltip');
42 text.removeClass('smalltooltip');
47 text.addClass('bigtooltip');
43 text.addClass('bigtooltip');
48 $('#expanbutton').remove();
44 $('#expanbutton').remove();
49 //setTimeout(function(){that.code_mirror.focus();}, 50);
45 //setTimeout(function(){that.code_mirror.focus();}, 50);
50 });
46 })
47 .append(
48 $('<span/>').text('Expand')
49 .addClass('ui-icon')
50 .addClass('ui-icon-plus')
51 );
51
52
52 // open in pager
53 // open in pager
53 var morelink=$('<a/>').attr('href',"#");
54 var morelink=$('<a/>').attr('href',"#")
54 morelink.attr('role',"button");
55 .attr('role',"button")
55 morelink.addClass('ui-button');
56 .addClass('ui-button');
56 var morespan=$('<span/>').text('Open in Pager');
57 var morespan=$('<span/>').text('Open in Pager')
57 morespan.addClass('ui-icon');
58 .addClass('ui-icon')
58 morespan.addClass('ui-icon-arrowstop-l-n');
59 .addClass('ui-icon-arrowstop-l-n');
59 morelink.append(morespan);
60 morelink.append(morespan);
60 morelink.click(function(){
61 morelink.click(function(){
61 var msg_id = IPython.notebook.kernel.execute(name+"?");
62 var msg_id = IPython.notebook.kernel.execute(name+"?");
@@ -35,10 +35,10 b''
35 to {opacity:0;}
35 to {opacity:0;}
36 }
36 }
37
37
38 @keyframes fadeOut {
38 //@keyframes fadeOut {
39 from {opacity:1;}
39 // from {opacity:1;}
40 to {opacity:0;}
40 // to {opacity:0;}
41 }
41 //}
42
42
43 @-moz-keyframes fadeIn {
43 @-moz-keyframes fadeIn {
44 from {opacity:0;}
44 from {opacity:0;}
@@ -50,10 +50,10 b''
50 to {opacity:1;}
50 to {opacity:1;}
51 }
51 }
52
52
53 @keyframes fadeIn {
53 //@keyframes fadeIn {
54 from {opacity:0;}
54 // from {opacity:0;}
55 to {opacity:1;}
55 // to {opacity:1;}
56 }
56 //}
57
57
58 .linearGradient(@stop1:0, @color1:#ccc, @stop2:33%, @color2:#ddd, @stop3:66%, @color3:#ccc, @stop4:100%, @color4:#ddd){
58 .linearGradient(@stop1:0, @color1:#ccc, @stop2:33%, @color2:#ddd, @stop3:66%, @color3:#ccc, @stop4:100%, @color4:#ddd){
59 background-color:@color4;
59 background-color:@color4;
@@ -80,26 +80,25 b''
80
80
81 /*properties of tooltip after "expand"*/
81 /*properties of tooltip after "expand"*/
82 .bigtooltip {
82 .bigtooltip {
83 height:30%;
83 overflow: auto;
84 height: 200px;
84 }
85 }
85
86
86 /*properties of tooltip before "expand"*/
87 /*properties of tooltip before "expand"*/
87 .smalltooltip{
88 .smalltooltip{
88 text-overflow: ellipsis;
89 text-overflow: ellipsis;
89 overflow: hidden;
90 overflow: hidden;
90 height:20px;
91 height:80px;
91 }
92 }
92 .tooltipbuttons
93 .tooltipbuttons
93 {
94 {
94 position: absolute;
95 position: absolute;
96 padding-right : 15px;
95 top : 0px;
97 top : 0px;
96 right:0px;
98 right:0px;
97 }
99 }
98 .tooltiptext
100 .tooltiptext
99 {
101 {
100 height: 200px;
101 overflow : auto;
102 padding-right: -10px;
103 }
102 }
104
103
105 .tooltip {
104 .tooltip {
@@ -136,7 +135,6 b''
136 padding-left:7px;
135 padding-left:7px;
137 font-family: monospace;
136 font-family: monospace;
138 min-height:50px;
137 min-height:50px;
139 max-height : 70%;
140 position: absolute;
138 position: absolute;
141 }
139 }
142
140
General Comments 0
You need to be logged in to leave comments. Login now