Skip to content

Commit ef4a9f8

Browse files
authored
Merge pull request #2089 from rust-lang/remo/ovrutmossqru
Make install command easier to select
2 parents c6189c1 + c7a310c commit ef4a9f8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/styles/app.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ code.code-header {
109109
margin: 0 0 3px 0;
110110
}
111111

112+
code.copyable {
113+
user-select: all;
114+
}
115+
112116
header h1,
113117
section h2 {
114118
z-index: 999999;

templates/components/tools/rustup.html.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="row">
22
<div id="platform-instructions-unix" class="instructions db">
33
<p>{{fluent "tools-rustup-unixy"}}</p>
4-
<pre><code class="db w-100">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code></pre>
4+
<pre><code class="db w-100 copyable">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code></pre>
55
</div>
66
<div id="platform-instructions-win" class="instructions dn">
77
<p>{{fluent "tools-rustup-windows-2"}}</p>
@@ -17,14 +17,14 @@
1717
</div>
1818
<h3 class="mt4">{{fluent "tools-rustup-wsl-heading"}}</h3>
1919
<p>{{fluent "tools-rustup-wsl"}}</p>
20-
<pre><code class="db w-100">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code></pre>
20+
<pre><code class="db w-100 copyable">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code></pre>
2121
</div>
2222
<div id="platform-instructions-default" class="instructions dn">
2323
<div>
2424
<p>
2525
{{fluent "tools-rustup-manual-default"}}
2626
</p>
27-
<pre><code class="db w-100">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code></pre>
27+
<pre><code class="db w-100 copyable">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code></pre>
2828
</div>
2929
<hr class="white-hr" />
3030
<div>

0 commit comments

Comments
 (0)