Skip to content

Commit 5cc6e4a

Browse files
committed
Merge remote-tracking branch 'lampepfl/wip-twitter'
2 parents daeaa9c + 3361208 commit 5cc6e4a

File tree

6 files changed

+185
-74
lines changed

6 files changed

+185
-74
lines changed

_layouts/downloadpage.html

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,18 @@
22
layout: page
33
---
44

5-
<div>
6-
You can download Scala {{ page.release_version }} for <span id="os_name"></span> below.
7-
</div>
8-
9-
<br/>
5+
<p class="center">
6+
Download the current Scala version for your system (<a href="">All downloads).
7+
</p>
108

119
<div class="download-wrapper">
12-
13-
<div id="download-space" class="download">
14-
</div>
15-
10+
<a id="download-button">
11+
<span class="slider">Download</span>
12+
<span class="icon"></span>
13+
<span class="version">Scala {{ page.release_version }}</span>
14+
</a>
1615
</div>
1716

18-
<br/>
19-
<br/>
20-
2117
<h3>Software Requirements</h3>
2218

2319
{{ page.requirements }}
@@ -68,5 +64,15 @@ <h3 hidden>Other resources</h3>
6864

6965
{{ content }}
7066

71-
<br/>
67+
<div id="getting-started-popup">
68+
<div class="popup">
69+
<p class="header">Your download will begin shortly</p>
70+
<p>You can now jump to the next steps:</p>
71+
<ul>
72+
<li><a href="#">Read the getting started guide</a></li>
73+
<li><a href="#">Read the full documentation</a></li>
74+
<li><a href="#">Configure your IDE</a></li>
75+
</ul>
76+
</div>
77+
</div>
7278

_layouts/maindownloadpage.html

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,13 @@ <h3>Additional information</h3>
1111
To see a detailed list of changes for each version of Scala please refer to the <a href="{{ site.baseurl }}/download/changelog.html">changelog</a>.
1212
Note that the different major releases of Scala (e.g. Scala 2.9.3 and Scala 2.10.1) are not binary compatible.
1313

14-
<table>
15-
14+
<ul>
1615
{% for release in page.other_releases %}
17-
18-
<tr>
19-
<td><a href="/download/{{ release[2] }}.html" class="btn small" style="width: 400px;">{{ release[1] }} - Scala {{ release[2] }}</a></td>
20-
</tr>
21-
16+
<li><a href="/download/{{ release[2] }}.html">{{ release[1] }} - Scala {{ release[2] }}</a></li>
2217
{% endfor %}
23-
24-
</table>
25-
<table><tbody>
26-
<tr>
27-
<td><a href="changelog.html" class="btn small" style="width: 100px;">Changelog</a></td>
28-
<td><a href="all.html" class="btn small" style="width: 256px;">All previous Scala Releases</a></td>
29-
</tr>
30-
</tbody></table>
18+
<li><a href="changelog.html">Changelog</a></li>
19+
<li><a href="all.html">All previous Scala Releases</a></li>
20+
</ul>
3121

3222
<br/>
3323

resources/css/main.css

Lines changed: 143 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
---
2-
---
31
/* ==========================================================================
42
Custom styles, overrides bootstrap
53
========================================================================== */
@@ -213,6 +211,127 @@ a.brand {
213211
margin-top: -36px;
214212
}
215213

214+
#download-button {
215+
display: block;
216+
position: relative;
217+
width: 175px;
218+
height: 40px;
219+
line-height: 40px;
220+
overflow: hidden;
221+
background-color: #dc322f;
222+
color: white;
223+
border-radius: 25px;
224+
white-space: nowrap;
225+
font-size: 20px;
226+
font-weight: 700;
227+
margin: 30px auto 50px;
228+
}
229+
#download-button span {
230+
display: inline-block;
231+
position: relative;
232+
width: 111px;
233+
height: inherit;
234+
vertical-align: 6px;
235+
text-align: left;
236+
-webkit-transition: all 300ms cubic-bezier(.6, 0, .6, 1);
237+
-moz-transition: all 300ms cubic-bezier(.6, 0, .6, 1);
238+
-ms-transition: all 300ms cubic-bezier(.6, 0, .6, 1);
239+
-o-transition: all 300ms cubic-bezier(.6, 0, .6, 1);
240+
transition: all 300ms cubic-bezier(.6, 0, .6, 1);
241+
-webkit-transform: translateX(-115px);
242+
-moz-transform: translateX(-115px);
243+
-ms-transform: translateX(-115px);
244+
-o-transform: translateX(-115px);
245+
transform: translateX(-115px);
246+
}
247+
#download-button:hover .slider {
248+
padding-left: 20px;
249+
}
250+
#download-button .icon {
251+
width: 26px;
252+
height: 26px;
253+
margin: 7px;
254+
border-radius: 20px;
255+
padding: 0;
256+
background: url(/resources/img/download.png) 0 0 no-repeat;
257+
box-shadow: 1px 1px 0 rgba(0,0,0,.3);
258+
vertical-align: -7px;
259+
}
260+
#download-button:hover span {
261+
-webkit-transform: translateX(0);
262+
-moz-transform: translateX(0);
263+
-ms-transform: translateX(0);
264+
-o-transform: translateX(0);
265+
transform: translateX(0);
266+
}
267+
#download-button:hover .icon {
268+
background-position-y: -26px;
269+
}
270+
#download-button:hover .slider {
271+
margin-right: 0;
272+
}
273+
#download-button.windows .icon {
274+
background-position-x: -26px;
275+
}
276+
#download-button.unix .icon {
277+
background-position-x: -52px;
278+
}
279+
280+
#getting-started-popup {
281+
position: fixed;
282+
top: 0;
283+
left: 0;
284+
right: 0;
285+
height: 1px;
286+
background: rgba(0,0,0,.2);
287+
opacity: 0;
288+
overflow: hidden;
289+
z-index: 9999;
290+
-webkit-transition: height 1ms linear 500ms, opacity 500ms cubic-bezier(0, 0.5, 0.5, 1);
291+
-moz-transition: height 1ms linear 500ms, opacity 500ms cubic-bezier(0, 0.5, 0.5, 1);
292+
transition: height 1ms linear 500ms, opacity 500ms cubic-bezier(0, 0.5, 0.5, 1);
293+
}
294+
#getting-started-popup.open {
295+
height: 100%;
296+
opacity: 1;
297+
-webkit-transition: height 1ms linear, opacity 500ms cubic-bezier(0, 0.5, 0.5, 1);
298+
-moz-transition: height 1ms linear 500ms, opacity 500ms cubic-bezier(0, 0.5, 0.5, 1);
299+
transition: height 1ms linear, opacity 500ms cubic-bezier(0, 0.5, 0.5, 1);
300+
}
301+
302+
#getting-started-popup .popup {
303+
position: absolute;
304+
top: 50%;
305+
left: 50%;
306+
width: 400px;
307+
max-width: 100%;
308+
background: white;
309+
padding: 40px;
310+
box-shadow: 0 2px 5px rgba(0,0,0,.2);
311+
opacity: 0;
312+
transform: translate(-49%, -99%);
313+
transform: translate(calc(-49%), calc(-99%));
314+
-moz-transform: translate(-50%, -50%);
315+
-webkit-transform: translate(-webkit-calc(-49%), -webkit-calc(-99%));
316+
-webkit-transition: -webkit-transform 400ms cubic-bezier(1, 0, 0.5, 1), top 1ms linear 1000ms, opacity 400ms cubic-bezier(1, 0, 0.5, 1);
317+
-moz-transition: -moz-transform 400ms cubic-bezier(1, 0, 0.5, 1), top 1ms linear 1000ms, opacity 400ms cubic-bezier(1, 0, 0.5, 1);
318+
transition: transform 400ms cubic-bezier(1, 0, 0.5, 1), top 1ms linear 1000ms, opacity 400ms cubic-bezier(1, 0, 0.5, 1);
319+
}
320+
#getting-started-popup.open .popup {
321+
opacity: 1;
322+
transform: translate(calc(-49%), calc(-49%));
323+
-moz-transform: translate(-50%, -50%);
324+
-webkit-transform: translate(-webkit-calc(-49%), -webkit-calc(-49%));
325+
-webkit-transition: -webkit-transform 400ms cubic-bezier(0, 0.5, 0.5, 1) 400ms, top 1ms linear, opacity 400ms cubic-bezier(0, 0.5, 0.5, 1) 400ms;
326+
-moz-transition: -moz-transform 400ms cubic-bezier(0, 0.5, 0.5, 1) 400ms, top 1ms linear, opacity 400ms cubic-bezier(0, 0.5, 0.5, 1) 400ms;
327+
transition: transform 400ms cubic-bezier(0, 0.5, 0.5, 1) 400ms, top 1ms linear, opacity 400ms cubic-bezier(0, 0.5, 0.5, 1) 400ms;
328+
}
329+
330+
#getting-started-popup .header {
331+
font-size: 24px;
332+
color: #DC322F;
333+
}
334+
216335
#download-btn {
217336
padding: 0 31px;
218337
background: #DC322F;
@@ -350,7 +469,7 @@ a.brand {
350469
/*text-transform: uppercase;*/
351470
margin-bottom: 12px;
352471
margin-top: 0px;
353-
background: url({{ site.baseurl }}/resources/img/gray-line.png) center repeat-x;
472+
background: url(/resources/img/gray-line.png) center repeat-x;
354473
}
355474

356475
.upcoming-events > h2 > span {
@@ -502,7 +621,7 @@ a.brand {
502621
/*text-transform: uppercase;*/
503622
/*margin-bottom: 12px;*/
504623
margin-top: 0px;
505-
background: url({{ site.baseurl }}/resources/img/white-line.png) center repeat-x;
624+
background: url(/resources/img/white-line.png) center repeat-x;
506625
}
507626

508627
.upcoming-training > h2 > span {
@@ -749,7 +868,7 @@ h2.twitterhdr {
749868
font-style: italic;
750869
text-align: center;
751870
margin-bottom: 10px;
752-
background: url({{ site.baseurl }}/resources/img/white-line.png) center repeat-x;
871+
background: url(/resources/img/white-line.png) center repeat-x;
753872
}
754873

755874
h2.twitterhdr > span {
@@ -835,7 +954,7 @@ h2.twitterhdr > span {
835954
}
836955

837956
.epfl-picture-box {
838-
background: url({{ site.baseurl }}/resources/img/epfl-bc.jpg) no-repeat center;
957+
background: url(/resources/img/epfl-bc.jpg) no-repeat center;
839958
-webkit-background-size: cover;
840959
-moz-background-size: cover;
841960
-o-background-size: cover;
@@ -894,7 +1013,7 @@ h2.twitterhdr > span {
8941013
font-weight: normal;
8951014
font-style: italic;
8961015
margin-bottom: 0px;
897-
background: url({{ site.baseurl }}/resources/img/gray-line.png) center repeat-x;
1016+
background: url(/resources/img/gray-line.png) center repeat-x;
8981017
}
8991018

9001019
.bullet-point > h2 > span {
@@ -1300,14 +1419,19 @@ h2.twitterhdr > span {
13001419
float: right;
13011420
}
13021421

1303-
.tweets { position: relative; }
1422+
.tweets { position: relative; zoom: 1; }
1423+
.tweets:after {
1424+
content: " ";
1425+
display: block;
1426+
clear: both;
1427+
}
13041428

13051429
.tweet-container {
13061430
position: relative;
13071431
float: left;
1308-
width: 220px;
1432+
width: 215px;
13091433
height: 230px;
1310-
margin-right: 20px;
1434+
margin: 0 10px;
13111435
vertical-align: bottom;
13121436
}
13131437

@@ -1340,12 +1464,12 @@ h2.twitterhdr > span {
13401464
.original-tweet { font-family: "museo-slab", serif; font-size: 13px; padding-top: 8px; color: #fff;}
13411465
.original-tweet > a { color: #fff; /*color: #839496;*/ font-weight: normal; text-decoration: none; border: none; }
13421466
.original-tweet > a:hover { color: #DC322F; }
1343-
.tweet-username { position: relative; top: 10px; left: -10px; color: #839496; white-space: nowrap; line-height: 1em;}
1467+
.tweet-username { color: rgb(131, 148, 150); white-space: nowrap; line-height: 1em; display: inline-block; padding-left: .5em; }
13441468
.tweet-username > a { color: #fff; /*color: #657B83;*/ font-weight: bold; text-decoration: none; border: none; }
13451469
.tweet-username > a:hover { color: #DC322F; border: none; }
13461470
.triangle { position: relative; bottom: 9px; left: 40px; height: 0px; width: 1px; margin-left: auto; margin-right: auto; border-top: 16px solid rgba(0, 30, 30, 0.7); border-left: none; border-right: 16px solid transparent; border-bottom: none; }
13471471
.bottom-anchored { position: absolute; bottom: 0px; }
1348-
.lh1em { line-height: 1em; }
1472+
.avatar-wrapper { border-radius: 40px; overflow: hidden; width: 50px; height: 50px; display: inline-block; margin-left: 12px; }
13491473

13501474
.caret-container{ position: absolute; bottom: 60px; }
13511475
.caret-divider{ position:absolute;top:0;left:28px;width:16px;height:8px}
@@ -1507,11 +1631,11 @@ h2.twitterhdr > span {
15071631
height: 32px;
15081632
display: inline-block;
15091633
line-height: 35px;
1510-
-moz-border-image: url({{ site.baseurl }}/resources/img/diamond.png) 0 34 repeat;
1511-
-webkit-border-image: url({{ site.baseurl }}/resources/img/diamond.png) 0 34 repeat;
1512-
-webkit-border-image: url({{ site.baseurl }}/resources/img/diamond.png) 0 34 repeat;
1513-
-o-border-image: url({{ site.baseurl }}/resources/img/diamond.png) 0 34 repeat;
1514-
border-image: url({{ site.baseurl }}/resources/img/diamond.png) 0 34 repeat;
1634+
-moz-border-image: url(/resources/img/diamond.png) 0 34 repeat;
1635+
-webkit-border-image: url(/resources/img/diamond.png) 0 34 repeat;
1636+
-webkit-border-image: url(/resources/img/diamond.png) 0 34 repeat;
1637+
-o-border-image: url(/resources/img/diamond.png) 0 34 repeat;
1638+
border-image: url(/resources/img/diamond.png) 0 34 repeat;
15151639
background-color: #191a1a;
15161640
padding: 0 10px;
15171641
}
@@ -1537,10 +1661,10 @@ h2.twitterhdr > span {
15371661
/*color: #96938C;*/
15381662
}
15391663

1540-
div.download-wrapper {
1664+
/*div.download-wrapper {
15411665
width: 400px;
15421666
text-align: center;
1543-
}
1667+
}*/
15441668

15451669
div.download {
15461670
margin-top: 10px;

resources/css/prettify.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
.prettyprint { background-color: #073642; }
3-
.prettyprint code { color: #839496; white-space: nowrap; overflow: auto; }
3+
.prettyprint code { color: #839496; overflow: auto; }
44
.prettyprint .pln { color: inherit; }
55
.prettyprint .str, .prettyprint .atv { color: #2aa198; }
66
.prettyprint .lit { color: #D33682;}

resources/img/download.png

2.42 KB
Loading

0 commit comments

Comments
 (0)