Show More
@@ -0,0 +1,186 b'' | |||||
|
1 | /** | |||
|
2 | * Primary styles | |||
|
3 | * | |||
|
4 | * Author: IPython Development Team | |||
|
5 | */ | |||
|
6 | ||||
|
7 | /** | |||
|
8 | * WARNING IF YOU ARE EDITTING THIS FILE, | |||
|
9 | * if this is a .css file, It has a lot of chance of beeing generated from the | |||
|
10 | * ../css/[samename].less file, it might not stay a less file forever, | |||
|
11 | * but as until now it is convenient to developp using less | |||
|
12 | * | |||
|
13 | * it it's a less file, don't forget to recompile it | |||
|
14 | */ | |||
|
15 | /* | |||
|
16 | * We'll try to get something prety, so we | |||
|
17 | * have some strange ccs to have the scroll bar on | |||
|
18 | * the left of the left with fix button on the top right of the tooltip | |||
|
19 | */ | |||
|
20 | ||||
|
21 | // double slash comment are remove by less compilation | |||
|
22 | // ** | |||
|
23 | // * Less mixins | |||
|
24 | // **/ | |||
|
25 | ||||
|
26 | // Four color of the background | |||
|
27 | @c1 : rgb(215,215,215); | |||
|
28 | @c2 : rgb(210,210,210); | |||
|
29 | @c3 : rgb(227,227,227); | |||
|
30 | @c4 : rgb(247,247,247); | |||
|
31 | @bordercolor : #BBB; | |||
|
32 | @borderwidth : 1px; | |||
|
33 | @textColor : #000; | |||
|
34 | ||||
|
35 | // smoth height adaptation | |||
|
36 | .smoothheight(@t:1s) { | |||
|
37 | -webkit-transition-property: height; | |||
|
38 | -webkit-transition-duration: 1s; | |||
|
39 | -moz-transition-property: height; | |||
|
40 | -moz-transition-duration: 1s; | |||
|
41 | transition-property: height; | |||
|
42 | transition-duration: 1s; | |||
|
43 | } | |||
|
44 | ||||
|
45 | @-moz-keyframes fadeOut { | |||
|
46 | from {opacity:1;} | |||
|
47 | to {opacity:0;} | |||
|
48 | } | |||
|
49 | ||||
|
50 | @-webkit-keyframes fadeOut { | |||
|
51 | from {opacity:1;} | |||
|
52 | to {opacity:0;} | |||
|
53 | } | |||
|
54 | ||||
|
55 | //@keyframes fadeOut { | |||
|
56 | // from {opacity:1;} | |||
|
57 | // to {opacity:0;} | |||
|
58 | //} | |||
|
59 | ||||
|
60 | @-moz-keyframes fadeIn { | |||
|
61 | from {opacity:0;} | |||
|
62 | to {opacity:1;} | |||
|
63 | } | |||
|
64 | ||||
|
65 | @-webkit-keyframes fadeIn { | |||
|
66 | from {opacity:0;} | |||
|
67 | to {opacity:1;} | |||
|
68 | } | |||
|
69 | ||||
|
70 | //@keyframes fadeIn { | |||
|
71 | // from {opacity:0;} | |||
|
72 | // to {opacity:1;} | |||
|
73 | //} | |||
|
74 | ||||
|
75 | .linearGradient(@stop1:0, @color1:#ccc, @stop2:33%, @color2:#ddd, @stop3:66%, @color3:#ccc, @stop4:100%, @color4:#ddd){ | |||
|
76 | background-color:@color4; | |||
|
77 | background-image: -webkit-linear-gradient(center bottom, @color1 @stop1, @color2 @stop2, @color3 @stop3, @color4 @stop4); | |||
|
78 | background-image: -webkit-gradient( | |||
|
79 | linear, | |||
|
80 | left bottom, | |||
|
81 | left top, | |||
|
82 | color-stop(@stop1, @color1), | |||
|
83 | color-stop(@stop2, @color2), | |||
|
84 | color-stop(@stop3, @color3), | |||
|
85 | color-stop(@stop4, @color4) | |||
|
86 | ); | |||
|
87 | background-image:-moz-linear-gradient(center bottom, @color1 @stop1, @color2 @stop2, @color3 @stop3, @color4 @stop4); | |||
|
88 | background-image:-ms-linear-gradient(center bottom, @color1 @stop1, @color2 @stop2, @color3 @stop3, @color4 @stop4); | |||
|
89 | background-image:-o-linear-gradient(center bottom, @color1 @stop1, @color2 @stop2, @color3 @stop3, @color4 @stop4); | |||
|
90 | background-image:linear-gradient(center bottom, @color1 @stop1, @color2 @stop2, @color3 @stop3, @color4 @stop4); | |||
|
91 | ||||
|
92 | } | |||
|
93 | ||||
|
94 | .tooltip a { | |||
|
95 | float:right; | |||
|
96 | } | |||
|
97 | ||||
|
98 | /*properties of tooltip after "expand"*/ | |||
|
99 | .bigtooltip { | |||
|
100 | overflow: auto; | |||
|
101 | height: 200px; | |||
|
102 | .smoothheight(); | |||
|
103 | } | |||
|
104 | ||||
|
105 | /*properties of tooltip before "expand"*/ | |||
|
106 | .smalltooltip{ | |||
|
107 | .smoothheight(); | |||
|
108 | text-overflow: ellipsis; | |||
|
109 | overflow: hidden; | |||
|
110 | height:80px; | |||
|
111 | } | |||
|
112 | .tooltipbuttons | |||
|
113 | { | |||
|
114 | position: absolute; | |||
|
115 | padding-right : 15px; | |||
|
116 | top : 0px; | |||
|
117 | right:0px; | |||
|
118 | } | |||
|
119 | .tooltiptext | |||
|
120 | { | |||
|
121 | /*avoid the button to overlap on some docstring*/ | |||
|
122 | padding-right:30px | |||
|
123 | } | |||
|
124 | ||||
|
125 | .tooltip { | |||
|
126 | max-width:700px; | |||
|
127 | border-radius: 10px 10px 10px 10px; | |||
|
128 | box-shadow: 3px 3px 5px #999; | |||
|
129 | /*fade-in animation when inserted*/ | |||
|
130 | -webkit-animation: fadeOut 800ms; | |||
|
131 | -moz-animation: fadeOut 800ms; | |||
|
132 | animation: fadeOut 800ms; | |||
|
133 | -webkit-animation: fadeIn 800ms; | |||
|
134 | -moz-animation: fadeIn 800ms; | |||
|
135 | animation: fadeIn 800ms; | |||
|
136 | vertical-align: middle; | |||
|
137 | ||||
|
138 | .linearGradient(13%,@c1, 39%, @c2 , 56%,@c3, 91% , @c4) ; | |||
|
139 | overflow : visible; | |||
|
140 | color: @textColor; | |||
|
141 | border: @bordercolor @borderwidth solid; | |||
|
142 | outline: none; | |||
|
143 | padding: 3px; | |||
|
144 | margin: 0px; | |||
|
145 | padding-left:7px; | |||
|
146 | font-family: monospace; | |||
|
147 | min-height:50px; | |||
|
148 | position: absolute; | |||
|
149 | } | |||
|
150 | ||||
|
151 | ||||
|
152 | .pretooltiparrow { | |||
|
153 | left: 0px; | |||
|
154 | margin: 0px; | |||
|
155 | top: -16px; | |||
|
156 | width: 40px; | |||
|
157 | height: 16px; | |||
|
158 | overflow: hidden; | |||
|
159 | position: absolute; | |||
|
160 | ||||
|
161 | } | |||
|
162 | .pretooltiparrow:before { | |||
|
163 | background-color : @c4; | |||
|
164 | border : @borderwidth @bordercolor solid; | |||
|
165 | z-index:11; | |||
|
166 | content: ""; | |||
|
167 | position: absolute; | |||
|
168 | left: 15px; | |||
|
169 | top: 10px; | |||
|
170 | width: 25px; | |||
|
171 | height: 25px; | |||
|
172 | @theta : 45deg; | |||
|
173 | -webkit-transform: rotate(@theta); | |||
|
174 | -moz-transform: rotate(@theta); | |||
|
175 | -ms-transform: rotate(@theta); | |||
|
176 | -o-transform: rotate(@theta); | |||
|
177 | ||||
|
178 | } | |||
|
179 | ||||
|
180 | .tooltip.hide | |||
|
181 | { | |||
|
182 | -webkit-animation: fadeOut 800ms; | |||
|
183 | -moz-animation: fadeOut 800ms; | |||
|
184 | animation: fadeOut 800ms; | |||
|
185 | opacity : 0; | |||
|
186 | } |
@@ -2,7 +2,16 b'' | |||||
2 | * Primary styles |
|
2 | * Primary styles | |
3 | * |
|
3 | * | |
4 | * Author: IPython Development Team |
|
4 | * Author: IPython Development Team | |
5 | * |
|
5 | */ | |
|
6 | /** | |||
|
7 | * WARNING IF YOU ARE EDITTING THIS FILE, | |||
|
8 | * if this is a .css file, It has a lot of chance of beeing generated from the | |||
|
9 | * ../css/[samename].less file, it might not stay a less file forever, | |||
|
10 | * but as until now it is convenient to developp using less | |||
|
11 | * | |||
|
12 | * it it's a less file, don't forget to recompile it | |||
|
13 | */ | |||
|
14 | /* | |||
6 | * We'll try to get something prety, so we |
|
15 | * We'll try to get something prety, so we | |
7 | * have some strange ccs to have the scroll bar on |
|
16 | * have some strange ccs to have the scroll bar on | |
8 | * the left of the left with fix button on the top right of the tooltip |
|
17 | * the left of the left with fix button on the top right of the tooltip |
General Comments 0
You need to be logged in to leave comments.
Login now