mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 21:21:18 -06:00
rebuild pages at 9d60b73
This commit is contained in:
@@ -37,7 +37,7 @@ table thead td {
|
||||
font-weight: 700;
|
||||
}
|
||||
.sidebar {
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
@@ -99,7 +99,6 @@ table thead td {
|
||||
}
|
||||
.page-wrapper {
|
||||
position: absolute;
|
||||
overflow-y: auto;
|
||||
left: 315px;
|
||||
right: 0;
|
||||
top: 0;
|
||||
@@ -134,7 +133,14 @@ table thead td {
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
padding-right: 15px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
@media only screen and (max-width: 400px) {
|
||||
.page {
|
||||
/* Only prevent horizontal scrolling on screens with less than 100px for the content
|
||||
A better way would be to somehow prevent horizontal scrolling all the time, but this causes scrolling problems on iOS Safari.
|
||||
Also, would be better to only enable horizontal scrolling when it is needed (content does not fit on page) but I have no idea how to do that. */
|
||||
overflow-x: hidden;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
margin-left: auto;
|
||||
@@ -205,7 +211,7 @@ table thead td {
|
||||
font-size: 2.5em;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 50px /* Height of menu-bar */;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
@@ -244,7 +250,13 @@ table thead td {
|
||||
.nav-chapters:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.previous {
|
||||
.sidebar-hidden .previous {
|
||||
left: 0;
|
||||
}
|
||||
.sidebar-visible .nav-chapters .previous {
|
||||
left: 300px;
|
||||
}
|
||||
.sidebar-visible .mobile-nav-chapters .previous {
|
||||
left: 0;
|
||||
}
|
||||
.next {
|
||||
|
||||
@@ -136,8 +136,8 @@ space in between.</p>
|
||||
<pre><code class="language-rust"> println!("Hello, world!");
|
||||
</code></pre>
|
||||
<p>This line does all of the work in this little program: it prints text to the
|
||||
screen. There are a number of details that are important here. The first is
|
||||
that it’s indented with four spaces, not a tab.</p>
|
||||
screen. There are a number of details to notice here. The first is that Rust
|
||||
style is to indent with four spaces, not a tab.</p>
|
||||
<p>The second important part is <code>println!</code>. This is calling a Rust <em>macro</em>,
|
||||
which is how metaprogramming is done in Rust. If it were calling a function
|
||||
instead, it would look like this: <code>println</code> (without the <code>!</code>). We'll discuss
|
||||
|
||||
+2
-2
@@ -219,8 +219,8 @@ space in between.</p>
|
||||
<pre><code class="language-rust"> println!("Hello, world!");
|
||||
</code></pre>
|
||||
<p>This line does all of the work in this little program: it prints text to the
|
||||
screen. There are a number of details that are important here. The first is
|
||||
that it’s indented with four spaces, not a tab.</p>
|
||||
screen. There are a number of details to notice here. The first is that Rust
|
||||
style is to indent with four spaces, not a tab.</p>
|
||||
<p>The second important part is <code>println!</code>. This is calling a Rust <em>macro</em>,
|
||||
which is how metaprogramming is done in Rust. If it were calling a function
|
||||
instead, it would look like this: <code>println</code> (without the <code>!</code>). We'll discuss
|
||||
|
||||
Reference in New Issue
Block a user