Skip to content

Commit 5c47c75

Browse files
committed
Beauty changes for install command
1 parent 0f92b07 commit 5c47c75

File tree

2 files changed

+27
-17
lines changed

2 files changed

+27
-17
lines changed

www/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<div id="platform-instructions-unix" class="instructions display-none">
2929
<p>Run the following in your terminal, then follow the onscreen instructions.</p>
3030
<div class="copy-container">
31-
<pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
31+
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
3232
<button id="copy-button-unix" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button">
3333
<div class="copy-icon">
3434
<svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">
@@ -49,7 +49,7 @@
4949
</p>
5050
<p>If you're a Windows Subsystem for Linux user run the following in your terminal, then follow the onscreen instructions to install Rust.</p>
5151
<div class="copy-container">
52-
<pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
52+
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
5353
<button id="copy-button-win32" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button">
5454
<div class="copy-icon">
5555
<svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">
@@ -70,7 +70,7 @@
7070
</p>
7171
<p>If you're a Windows Subsystem for Linux user run the following in your terminal, then follow the onscreen instructions to install Rust.</p>
7272
<div class="copy-container">
73-
<pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
73+
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
7474
<button id="copy-button-win64" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button">
7575
<div class="copy-icon">
7676
<svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">
@@ -104,7 +104,7 @@
104104
<div>
105105
<p>If you are running Unix,<br/>run the following in your terminal, then follow the onscreen instructions.</p>
106106
<div class="copy-container">
107-
<pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
107+
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
108108
<button id="copy-button-unknown" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button">
109109
<div class="copy-icon">
110110
<svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">
@@ -143,7 +143,7 @@
143143
<p>To install Rust, if you are running Unix,<br/>run the following
144144
in your terminal, then follow the onscreen instructions.</p>
145145
<div class="copy-container">
146-
<pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
146+
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
147147
<button id="copy-button-default" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button">
148148
<div class="copy-icon">
149149
<svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">

www/rustup.css

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ body#idx p.other-platforms-help {
9595
}
9696

9797
.instructions > * {
98-
width: 40rem;
98+
width: 45rem;
9999
margin-left: auto;
100100
margin-right: auto;
101101
}
@@ -105,23 +105,33 @@ hr {
105105
margin-bottom: 2em;
106106
}
107107

108-
#platform-instructions-unix > div > pre,
109-
#platform-instructions-win32 > div > pre,
110-
#platform-instructions-win64 > div > pre,
111-
#platform-instructions-default > div > div > pre,
112-
#platform-instructions-unknown > div > div > pre {
108+
#platform-instructions-unix > p,
109+
#platform-instructions-win32 > p,
110+
#platform-instructions-win64 > p,
111+
#platform-instructions-default > p,
112+
#platform-instructions-unknown > p {
113+
width: 40rem;
114+
}
115+
116+
.rustup-command::before {
117+
color: #999;
118+
content: " $ ";
119+
margin-left: 15px;
120+
}
121+
122+
.rustup-command {
113123
background-color: #515151;
114124
color: white;
115-
margin-left: auto;
116-
margin-right: auto;
117-
padding: 1rem;
125+
padding: 1rem 1rem 1rem 0;
118126
width: 45rem;
119127
text-align: center;
120128
border-radius: 3px;
121129
box-shadow: inset 0px 0px 20px 0px #333333;
122-
overflow-x: scroll;
130+
overflow: auto;
123131
font-size: 0.6em;
124-
height: 27px;
132+
white-space: nowrap;
133+
height: 26px;
134+
line-height: 26px;
125135
}
126136

127137
#platform-instructions-unix div.copy-container,
@@ -138,7 +148,7 @@ hr {
138148
#platform-instructions-win64 button.copy-button,
139149
#platform-instructions-default button.copy-button,
140150
#platform-instructions-unknown button.copy-button {
141-
height: 60px;
151+
height: 58px;
142152
margin: 1px;
143153
padding-right: 5px;
144154
border-radius: 3px;

0 commit comments

Comments
 (0)