Skip to content

Commit 9fc1068

Browse files
committed
Increases the spacing between buttons on the Learn Rust page to better match the original layout. Adds some temporary classes to prevent Skeleton classes interfering with Tachyon only styles due to shared class names.
1 parent d6a1c82 commit 9fc1068

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

src/styles/app.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ button {
7171
font-size: 0.8em;
7272
}
7373

74+
.button.button-secondary--no-skeleton {
75+
margin-bottom: 0;
76+
}
77+
7478
code.code-header {
7579
background-color: rgba(127, 127, 127, 0.25);
7680
font-size: 2rem;

templates/learn/index.hbs

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -57,50 +57,52 @@
5757
<code>rustup doc</code> command, which will open up these resources for
5858
you in your browser without requiring a network connection!</p>
5959

60+
{{!-- TODO: Remove button-secondary--no-skeleton once Skeleton is completely removed. --}}
61+
6062
<section class="flex flex-column">
61-
<div class="pt3 flex flex-column flex-row-l items-center-l mb2-l">
63+
<div class="pt3 flex flex-column flex-row-l items-center-l mb4-l">
6264
<a href="https://doc.rust-lang.org/std/index.html"
63-
class="button button-secondary mw6-l w-100">The standard library</a>
65+
class="button button-secondary button-secondary--no-skeleton mw6-l w-100">The standard library</a>
6466
<p class="pl4-l ma0-l mt1 mb3">
6567
Comprehensive guide to the Rust standard library APIs.
6668
</p>
6769
</div>
6870

69-
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb2-l">
71+
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb4-l">
7072
<a href="https://doc.rust-lang.org/edition-guide/index.html"
71-
class="button button-secondary mw6-l w-100">Edition Guide</a>
73+
class="button button-secondary button-secondary--no-skeleton mw6-l w-100">Edition Guide</a>
7274
<p class="pl4-l ma0-l mt1 mb3">
7375
Guide to the Rust editions.
7476
</p>
7577
</div>
7678

77-
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb2-l">
79+
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb4-l">
7880
<a href="https://doc.rust-lang.org/cargo/index.html"
79-
class="button button-secondary mw6-l w-100">Cargo Book</a>
81+
class="button button-secondary button-secondary--no-skeleton mw6-l w-100">Cargo Book</a>
8082
<p class="pl4-l ma0-l mt1 mb3">
8183
A book on Rust’s package manager and build system.
8284
</p>
8385
</div>
8486

85-
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb2-l">
87+
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb4-l">
8688
<a href="https://doc.rust-lang.org/rustdoc/index.html"
87-
class="button button-secondary mw6-l w-100">rustdoc Book</a>
89+
class="button button-secondary button-secondary--no-skeleton mw6-l w-100">rustdoc Book</a>
8890
<p class="pl4-l ma0-l mt1 mb3">
8991
Learn how to make awesome documentation for your crate.
9092
</p>
9193
</div>
9294

93-
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb2-l">
95+
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb4-l">
9496
<a href="https://doc.rust-lang.org/rustc/index.html"
95-
class="button button-secondary mw6-l w-100">rustc Book</a>
97+
class="button button-secondary button-secondary--no-skeleton mw6-l w-100">rustc Book</a>
9698
<p class="pl4-l ma0-l mt1 mb3">
9799
Familiarize yourself with the knobs available in the Rust compiler.
98100
</p>
99101
</div>
100102

101-
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb2-l">
103+
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb4-l">
102104
<a href="https://doc.rust-lang.org/error-index.html"
103-
class="button button-secondary mw6-l w-100">Compiler Error Index</a>
105+
class="button button-secondary button-secondary--no-skeleton mw6-l w-100">Compiler Error Index</a>
104106
<p class="pl4-l mb0 mt1 ma0-l">
105107
In-depth explanations of the errors you may see from the Rust
106108
compiler.
@@ -112,29 +114,29 @@
112114
<div class="row black">
113115
<h3>Build your skills in an application domain</h3>
114116
<section class="flex flex-column">
115-
<div class="pt3 flex flex-column flex-row-l items-center-l mb2-l">
117+
<div class="pt3 flex flex-column flex-row-l items-center-l mb4-l">
116118
<a href="https://rust-lang-nursery.github.io/cli-wg/"
117-
class="button button-secondary mw6-l w-100">
119+
class="button button-secondary button-secondary--no-skeleton mw6-l w-100">
118120
Command Line Book
119121
</a>
120122
<p class="pl4-l ma0-l mt1 mb3">
121123
Learn how to build effective command line applications in Rust.
122124
</p>
123125
</div>
124126

125-
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb2-l">
127+
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb4-l">
126128
<a href="https://rustwasm.github.io/docs/book/"
127-
class="button button-secondary mw6-l w-100">
129+
class="button button-secondary button-secondary--no-skeleton mw6-l w-100">
128130
WebAssembly Book
129131
</a>
130132
<p class="pl4-l ma0-l mt1 mb3">
131133
Use Rust to build browser-native libraries through WebAssembly.
132134
</p>
133135
</div>
134136

135-
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb2-l">
137+
<div class="pt4 pt3-l flex flex-column flex-row-l items-center-l mb4-l">
136138
<a href="https://rust-embedded.github.io/book/"
137-
class="button button-secondary mw6-l w-100">
139+
class="button button-secondary button-secondary--no-skeleton mw6-l w-100">
138140
Embedded Book
139141
</a>
140142
<p class="pl4-l mb0 mt1 ma0-l">

0 commit comments

Comments
 (0)