Skip to content

Commit 370f23d

Browse files
committed
Settings::ApiTokens: Improve spacing
1 parent d53640d commit 370f23d

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

app/components/settings/api-tokens.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
</div>
1414
</div>
1515

16-
<p>
16+
<p local-class="explainer">
1717
You can use the API tokens on this page to run <a href="https://doc.rust-lang.org/cargo/">cargo</a>
1818
commands that need write access to crates.io. If you want to publish your own
1919
crates then this is required.
2020
</p>
2121

22-
<p>
22+
<p local-class="explainer">
2323
Run <a href="https://doc.rust-lang.org/cargo/commands/cargo-login.html"><code>cargo login</code></a>
2424
on the command line to save the API token that you will use for local
2525
development. For CI systems you can use the

app/components/settings/api-tokens.module.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,20 @@
1313
composes: yellow-button from '../../styles/shared/buttons.module.css';
1414
}
1515

16+
.explainer {
17+
line-height: 1.5;
18+
}
19+
1620
.token-list {
17-
margin: 0 0 24px;
21+
margin: 24px 0;
1822
padding: 0;
1923
list-style: none;
2024
border-radius: 5px;
2125
background-color: white;
2226
box-shadow: 0 2px 3px hsla(51, 50%, 44%, .35);
2327

2428
> * {
25-
padding: 16px;
29+
padding: 24px;
2630
}
2731

2832
> * + * {
@@ -45,11 +49,11 @@
4549
}
4650

4751
.new-token-form {
48-
padding: 16px;
52+
padding: 24px;
4953
border-radius: 6px;
5054
background-color: white;
5155
box-shadow: 0 2px 3px hsla(51, 50%, 44%, .35);
52-
margin-bottom: 24px;
56+
margin: 24px 0;
5357

5458
.input {
5559
padding: 8px;
@@ -129,7 +133,7 @@
129133
display: grid;
130134
place-items: center;
131135
align-content: center;
132-
margin: 0 0 24px;
136+
margin: 24px 0;
133137
padding: 64px;
134138
border: 2px black dashed;
135139
border-radius: 5px;
@@ -152,6 +156,7 @@
152156
display: grid;
153157
grid-template-columns: 1fr auto;
154158
align-items: center;
159+
padding: 16px 24px;
155160

156161
.input {
157162
padding: 8px;

0 commit comments

Comments
 (0)