Skip to content

Rebrand the top links, add Scastie #1360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions _data/nav-header.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
- title: Documentation
- title: Learn
url: https://docs.scala-lang.org
- title: Download
- title: Install
url: /download/
- title: Playground
url: https://scastie.scala-lang.org
- title: Find a Library
url: https://index.scala-lang.org
- title: Community
url: /community/
- title: Libraries
url: https://index.scala-lang.org
- title: Blog
url: /blog/
6 changes: 3 additions & 3 deletions _layouts/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>{{page.title}}</h1>
<div class="wrap">
<div class="inner-box download">
<div class="main-download">
<h2>Download or Upgrade Scala</h2>
<h2>Install or Upgrade Scala</h2>
<div class="install-steps">
<div class="download-options">
<div class="download-left">
Expand All @@ -44,8 +44,8 @@ <h2>Download or Upgrade Scala</h2>
<img src="/resources/img/download/arrow-right.png" alt="">
<p>Best if you have an advanced use case.</p>
</div>
<a href="{{ site.baseurl }}/download/all.html" class="btn-plain-download">
<i class="fa fa-download"></i>
<a href="{{ site.baseurl }}/download/all.html" class="btn-download dl-find-all">
<i class="fa fa-list-ul"></i>
<span>Pick a Specific Release</span>
</a>
<ul>
Expand Down
22 changes: 12 additions & 10 deletions _sass/layout/download.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,6 @@
margin-top: 38px;
}

.btn-plain-download {
background: $gray-lighter;
display: block;
text-align: center;
text-transform: uppercase;
padding: 16px 0;
border-radius: 100px;
margin-bottom: 34px;
}

.btn-download {
background: $brand-primary;
display: block;
Expand Down Expand Up @@ -207,6 +197,18 @@
}
}

.btn-download.dl-find-all {
background: $gray-lighter;
font-weight: 500;
color: $std-link;
&:active,
&:focus,
&:hover {
text-decoration: none;
background: darken($gray-lighter, 10%);
}
}

.download-left,
.download-right {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion _sass/utils/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $gray-li: #244E58;
$gray-light: #E5EAEA;
$gray-lighter: #F0F3F3;
$apple-blue: #6dccf5;

$std-link: #23aad1;

//-------------------------------------------------
$headings-font-color: $gray-dark;
Expand Down
3 changes: 2 additions & 1 deletion download/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
layout: download
title: Download
title: Install
redirect_from:
- /install/
- /download/scala2.html
- /download/scala3.html

Expand Down