Skip to content

Commit

Permalink
fix: make sure no overflow on small screens
Browse files Browse the repository at this point in the history
Signed-off-by: Rustin170506 <[email protected]>
  • Loading branch information
Rustin170506 committed Nov 19, 2024
1 parent 20c73a1 commit 97b93c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 0 additions & 4 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ <h2>An installer for the systems programming language <a href="https://www.rust-
</div>

<!-- duplicate the default cross-platform instructions -->
<div>
<p>If you are running Unix,<br/>run the following in your terminal, then follow the onscreen instructions.</p>
<div class="copy-container">
<pre class="rustup-command">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
Expand All @@ -142,7 +141,6 @@ <h2>An installer for the systems programming language <a href="https://www.rust-
<div id="copy-status-message-unknown" class="copy-button-text">Copied!</div>
</button>
</div>
</div>

<hr/>

Expand Down Expand Up @@ -177,7 +175,6 @@ <h2>An installer for the systems programming language <a href="https://www.rust-
</div>

<div id="platform-instructions-default" class="instructions">
<div>
<p>To install Rust, if you are running Unix,<br/>run the following
in your terminal, then follow the onscreen instructions.</p>
<div class="copy-container">
Expand All @@ -191,7 +188,6 @@ <h2>An installer for the systems programming language <a href="https://www.rust-
<div id="copy-status-message-default" class="copy-button-text">Copied!</div>
</button>
</div>
</div>

<hr/>

Expand Down
7 changes: 4 additions & 3 deletions www/rustup.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ body#idx p.other-platforms-help {
}

.instructions > * {
width: 45rem;
margin-left: auto;
margin-right: auto;
}
Expand All @@ -131,7 +130,7 @@ hr {
#platform-instructions-win-arm64 > p,
#platform-instructions-default > p,
#platform-instructions-unknown > p {
width: 40rem;
width: 80%;
}

.rustup-command::before {
Expand All @@ -143,7 +142,6 @@ hr {
.rustup-command {
color: black;
padding: 1rem 1rem 1rem 0;
width: 45rem;
height: auto;
text-align: center;
border-radius: 3px 0 0 3px;
Expand All @@ -153,6 +151,7 @@ hr {
white-space: nowrap;
height: 26px;
line-height: 26px;
overflow-x: auto;
}

#platform-instructions-unix div.copy-container,
Expand All @@ -163,6 +162,8 @@ hr {
#platform-instructions-unknown div.copy-container {
display: flex;
align-items: center;
width: 90%;
justify-content: center;
}

#platform-instructions-unix button.copy-button,
Expand Down

0 comments on commit 97b93c4

Please sign in to comment.