Skip to content

Improve white space in headings #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions src/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ header h1 {
margin-top: 0;
}

header {
padding: 30px 0 60px 0;
}

header .button.button-primary.button-download {
background-color: $yellow;
border-color: $yellow;
Expand Down Expand Up @@ -85,6 +81,17 @@ h2.subtitle {

section {
padding: 30px 0 60px 0;

header {
padding: 30px 0 60px 0;
display: inline-block;

h2 {
margin: 0;
padding: 0;
letter-spacing: 1px;
}
}
}

ul {
Expand Down Expand Up @@ -267,20 +274,10 @@ h3 {
border-bottom: 1px dotted white;
}

section header {
display: inline-block;
}

header h1 {
letter-spacing: 1px;
}

section header h2 {
margin: 0;
padding: 0;
letter-spacing: 1px;
}

.highlight {
height: 30px;
position: relative;
Expand Down Expand Up @@ -575,6 +572,13 @@ blockquote::before {
margin-top: 20px;
}
}

section header {
padding: {
top: 10px;
bottom: 30px;
}
}
}

.team {
Expand Down
2 changes: 1 addition & 1 deletion templates/community/index.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Community</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/governance/group.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>{{ data.info[0].name }}</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/governance/index.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Governance</h1>
<h2 class="subtitle">How Rust is built by its community</h2>
Expand Down
4 changes: 2 additions & 2 deletions templates/index.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#*inline "page"}}
<header class="mb6-ns">
<header class="mt3 mt0-ns mb6-ns">
<div class="container flex flex-column flex-row-l justify-between-l">
<div class="mw8-l">
<h1>Rust</h1>
Expand All @@ -8,7 +8,7 @@
systems programmer.
</h2>
</div>
<div class="mt4 mt0-l">
<div>
<a class="button button-primary button-download ph4 mt0" href="/learn/get-started">
Get started
</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/learn/get-started.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Getting started</h1>
<h2 class="subtitle">Quickly set up a Rust development environment and write a small app!</h2>
Expand Down
2 changes: 1 addition & 1 deletion templates/learn/index.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Learn Rust</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/policies/code-of-conduct.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Code of conduct</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/policies/index.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Policies</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/policies/licenses.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Licenses</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/policies/media-guide.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#* inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Media guide</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/policies/security.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Security policy</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/production/index.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Production</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/production/users.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Users</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/tools/index.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Tools</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/tools/install.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Install Rust</h1>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/tools/rustup.hbs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<div class="row">
<div id="platform-instructions-unix" class="instructions" style="display: block;">
<p>It looks like you’re running macOS, Linux, or another Unix-like OS. To download Rustup and install Rust, run the following in your terminal, then follow the on-screen instructions.</p>
<code>curl https://sh.rustup.rs -sSf | sh</code>
<pre><code>curl https://sh.rustup.rs -sSf | sh</code></pre>
</div>
<div id="platform-instructions-win" class="instructions" style="display: none;">
<p>It looks like you’re running Windows. To install Rust, download and run</p>
<a href="https://win.rustup.rs" class="button button-secondary">rustup‑init.exe</a>
<p>...then follow the onscreen instructions.</p>
<p><b>Windows Subsystem for Linux</b></p>
<p>If you’re a Windows Subsystem for Linux user run the following in your terminal, then follow the on-screen instructions to install Rust.</p>
<code>curl https://sh.rustup.rs -sSf | sh</code>
<pre><code>curl https://sh.rustup.rs -sSf | sh</code></pre>
</div>
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
<!-- unrecognized platform: ask for help -->
Expand Down
2 changes: 1 addition & 1 deletion templates/what/cli.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Command-line apps</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/what/embedded.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Embedded devices</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/what/index.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>What</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/what/networking.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Networking</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/what/wasm.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "page"}}

<header>
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>Web&shy;Assembly</h1>
</div>
Expand Down