Skip to content

Commit d512f27

Browse files
committed
added tooltip and modify
1 parent a8d335f commit d512f27

39 files changed

+2174
-1848
lines changed

0.6.7/_static/default.css

Lines changed: 158 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
@import url("basic.css");
7+
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700,600);
78

89
/* -- page layout ----------------------------------------------------------- */
910

@@ -216,4 +217,160 @@ tt {
216217

217218
th {
218219
background-color: #ede;
219-
}
220+
}
221+
222+
223+
#popupmenu {
224+
position: relative;
225+
margin: 0;
226+
font-family: 'Open Sans';
227+
line-height: 1;
228+
width: 100%;
229+
}
230+
.align-right {
231+
float: right;
232+
}
233+
#popupmenu ul {
234+
margin: 0;
235+
padding: 0;
236+
list-style: none;
237+
display: block;
238+
}
239+
#popupmenu ul li {
240+
position: relative;
241+
margin: 0;
242+
padding: 0;
243+
}
244+
#popupmenu ul li a {
245+
text-decoration: none;
246+
cursor: pointer;
247+
}
248+
#popupmenu > ul > li > a {
249+
color: #dddddd;
250+
display: block;
251+
padding: 20px;
252+
border-top: 1px solid #000000;
253+
border-left: 1px solid #000000;
254+
border-right: 1px solid #000000;
255+
background: #2d7d9f;
256+
letter-spacing: 1px;
257+
font-size: 16px;
258+
font-weight: 400;
259+
position: relative;
260+
}
261+
#popupmenu > ul > li:first-child > a {
262+
border-top-left-radius: 3px;
263+
border-top-right-radius: 3px;
264+
}
265+
#popupmenu > ul > li:last-child > a {
266+
border-bottom-left-radius: 3px;
267+
border-bottom-right-radius: 3px;
268+
border-bottom: 1px solid #000000;
269+
}
270+
#popupmenu > ul > li:hover > a,
271+
#popupmenu > ul > li.open > a,
272+
#popupmenu > ul > li.active > a {
273+
background: #276d8b;
274+
color: #ffffff;
275+
}
276+
#popupmenu ul > ul > li.has-sub > a::after {
277+
content: "";
278+
position: absolute;
279+
display: block;
280+
}
281+
#popupmenu ul > li.has-sub > a::before {
282+
content: "";
283+
position: absolute;
284+
display: block;
285+
}
286+
#popupmenu ul > li.has-sub::after {
287+
content: "";
288+
display: visible;
289+
position: absolute;
290+
border: 7px solid transparent;
291+
border-top-color: #dddddd;
292+
right: 20px;
293+
top: 24.5px;
294+
}
295+
#popupmenu ul > li:hover::after,
296+
#popupmenu ul > li.active::after,
297+
#popupmenu ul > li.open::after {
298+
border-top-color: #ffffff;
299+
}
300+
#popupmenu ul > li.has-sub.open > a::after {
301+
opacity: 1;
302+
bottom: -13px;
303+
}
304+
#popupmenu ul > li.has-sub.open > a::before {
305+
opacity: 1;
306+
bottom: -12px;
307+
}
308+
#popupmenu ul ul {
309+
display: none;
310+
}
311+
#popupmenu ul ul li {
312+
border-left: 1px solid #ccc;
313+
border-right: 1px solid #ccc;
314+
}
315+
#popupmenu ul ul li a {
316+
background: #f1f1f1;
317+
display: block;
318+
position: relative;
319+
font-size: 15px;
320+
padding: 14px 20px;
321+
border-bottom: 1px solid #dddddd;
322+
color: #777777;
323+
font-weight: 300;
324+
}
325+
#popupmenu ul ul li:first-child > a {
326+
padding-top: 18px;
327+
}
328+
#popupmenu ul ul li:hover > a,
329+
#popupmenu ul ul li.open > a,
330+
#popupmenu ul ul li.active > a {
331+
background: #e4e4e4;
332+
color: #666666;
333+
}
334+
#popupmenu ul ul > li.has-sub > a::after {
335+
border-top: 13px solid #dddddd;
336+
}
337+
#popupmenu ul ul > li.has-sub > a::before {
338+
border-top: 13px solid #e4e4e4;
339+
}
340+
#popupmenu ul ul > li.has-sub::after {
341+
top: 18.5px;
342+
border-width: 6px;
343+
border-top-color: #777777;
344+
}
345+
#popupmenu ul ul > li:hover::after,
346+
#popupmenu ul ul > li.active::after,
347+
#popupmenu ul ul > li.open::after {
348+
border-top-color: #666666;
349+
}
350+
351+
@-webkit-keyframes changeColor {
352+
0% { background-color: #60b0d2; }
353+
50% { background-color: #389cc7; }
354+
51% { background-color: #2d7d9f; }
355+
100% { background-color: #225e77; }
356+
}
357+
358+
div.tooltip {
359+
color: White;
360+
position: absolute;
361+
left: 35%;
362+
top: -25%;
363+
z-index: 1000000;
364+
width: 65%;
365+
border-radius: 5px;
366+
border-style: solid;
367+
border-color: #1c4e63;
368+
border-width: 0.5%;
369+
-webkit-animation-name: changeColor;
370+
-webkit-animation-iteration-count: infinite;
371+
-webkit-animation-duration: 2s;
372+
}
373+
div.tooltip p {
374+
margin: 10px;
375+
color: White;
376+
}

0.6.7/_static/popupmenu.css

Lines changed: 0 additions & 133 deletions
This file was deleted.

0.6.7/index.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<title>Welcome to SymPy’s documentation! &mdash; SymPy v0.6.7 documentation</title>
99
<link rel="stylesheet" href="_static/default.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
11-
<link rel="stylesheet" href="_static/popupmenu.css" type="text/css" />
1211
<script type="text/javascript">
1312
var DOCUMENTATION_OPTIONS = {
1413
URL_ROOT: '',
@@ -30,19 +29,25 @@
3029
if (elem != ""){
3130
var res = elem.split(":");
3231
if(n == (lines.length - 2)){
33-
$("#version-list").prepend("<li><a style='font-size:100%;' href="+"../latest/index.html"+"><span>Latest</span></a></li>");
32+
$("#version-list").prepend("<li><a class='latestversion' style='font-size:100%;' href="+"../latest/index.html"+"><span>Latest</span></a></li>");
3433
}
3534
else if(res[0] == 'dev'){
3635
$("#version-list").prepend("<li><a style='font-size: 100%;' href="+"../" + res[0] + "/index.html"+"><span>Dev</span></a></li>");
3736
}
3837
else{
39-
$("#bottom-list").append("<li><a style='font-size: 100%;' href="+"../" + res[0] + "/index.html"+"><span>"+ res[1] +"</span></a></li>");
38+
$("#bottom-list").prepend("<li><a style='font-size: 100%;' href="+"../" + res[0] + "/index.html"+"><span>"+ res[1] +"</span></a></li>");
4039
}
4140
}
4241
});
4342
}
4443
});
45-
$( document ).ready(function() {
44+
45+
$("#bottom-list").hover(function () {
46+
$('#version-list li a.latestversion').append('<div class="tooltip"><p>Latest version</p></div>');
47+
}, function () {
48+
$('#version-list li a.latestversion div').remove();
49+
});
50+
4651
$('#popupmenu li.has-sub').live('click', function(){
4752
if ($('li.has-sub').hasClass('open')) {
4853
$('li.has-sub').removeClass('open');
@@ -57,7 +62,6 @@
5762
});
5863
}
5964
});
60-
});
6165
});
6266
</script>
6367
<link rel="top" title="SymPy v0.6.7 documentation" href="" />
@@ -194,9 +198,6 @@ <h1>Welcome to SymPy&#8217;s documentation!<a class="headerlink" href="#welcome-
194198
<img class="logo" src="_static/sympylogo.png" alt="Logo"/>
195199
</a></p>
196200
<div id='popupmenu'>
197-
<ul>
198-
<li><a href='#' id='version-title'>SYMPY VERSIONS</a></li>
199-
</ul>
200201
<ul id = "version-list">
201202
<li class='active has-sub'><a href='#'><span>Other</span></a>
202203
<ul id = "bottom-list">

0 commit comments

Comments
 (0)