Skip to content

Commit 0752727

Browse files
authored
Quick start module fixes (#96)
- font size for links in command row - links on separate line in command row - wider quick start model on landing page
1 parent ec57bfd commit 0752727

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

_includes/quick_start_module.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="container-fluid quick-start-module quick-starts">
22
<div class="container">
33
<div class="row">
4-
<div class="col-md-6 start-locally-col">
4+
<div class="col-md-8 start-locally-col">
55

66
<h3>Quick Start
77
<br />Locally</h3>
@@ -11,7 +11,7 @@ <h3>Quick Start
1111
<br/><a href="{{ site.baseurl }}/get-started/previous-versions">Previous versions of PyTorch</a>
1212
</div>
1313

14-
<div class="col-md-4 offset-md-2 cloud-options-col">
14+
<div class="col-md-3 offset-md-1 cloud-options-col">
1515
<h3>Quick Start With<br />Cloud Partners</h3>
1616

1717
<p>Get up and running with PyTorch quickly through popular cloud platforms and machine learning services.</p>

_sass/quick-start-module.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@
140140
word-wrap: break-word;
141141
display: table-cell;
142142
vertical-align: middle;
143+
144+
a {
145+
font-size: 125%;
146+
147+
@include desktop {
148+
&:hover {
149+
color: $orange;
150+
}
151+
}
152+
}
143153
}
144154

145155
.command-container {

assets/quick-start-module.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -782,19 +782,19 @@ function commandMessage(key) {
782782
"# Preview Build Not Yet Available on Windows.",
783783

784784
"preview,libtorch,linux,cudanone,cplusplus":
785-
"Download here: <a href='https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip'>https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip</a>",
785+
"Download here: <br/><a href='https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip'>https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip</a>",
786786

787787
"preview,libtorch,linux,cuda8,cplusplus":
788-
"Download here: <a href='https://download.pytorch.org/libtorch/nightly/cu80/libtorch-shared-with-deps-latest.zip'>https://download.pytorch.org/libtorch/nightly/cu80/libtorch-shared-with-deps-latest.zip</a>",
788+
"Download here: <br/><a href='https://download.pytorch.org/libtorch/nightly/cu80/libtorch-shared-with-deps-latest.zip'>https://download.pytorch.org/libtorch/nightly/cu80/libtorch-shared-with-deps-latest.zip</a>",
789789

790790
"preview,libtorch,linux,cuda9.0,cplusplus":
791-
"Download here: <a href='https://download.pytorch.org/libtorch/nightly/cu90/libtorch-shared-with-deps-latest.zip'>https://download.pytorch.org/libtorch/nightly/cu90/libtorch-shared-with-deps-latest.zip</a>",
791+
"Download here: <br/><a href='https://download.pytorch.org/libtorch/nightly/cu90/libtorch-shared-with-deps-latest.zip'>https://download.pytorch.org/libtorch/nightly/cu90/libtorch-shared-with-deps-latest.zip</a>",
792792

793793
"preview,libtorch,linux,cuda9.2,cplusplus":
794-
"Download here: <a href='https://download.pytorch.org/libtorch/nightly/cu9.2/libtorch-shared-with-deps-latest.zip'>https://download.pytorch.org/libtorch/nightly/cu9.2/libtorch-shared-with-deps-latest.zip</a>",
794+
"Download here: <br/><a href='https://download.pytorch.org/libtorch/nightly/cu9.2/libtorch-shared-with-deps-latest.zip'>https://download.pytorch.org/libtorch/nightly/cu9.2/libtorch-shared-with-deps-latest.zip</a>",
795795

796796
"preview,libtorch,macos,cudanone,cplusplus":
797-
"Download here: <a href='https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip'>https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip</a>",
797+
"Download here: <br/><a href='https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip'>https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip</a>",
798798

799799
"preview,libtorch,macos,cuda8,cplusplus":
800800
"# Currently only available CPU-only / no CUDA.",

0 commit comments

Comments
 (0)