Skip to content

Commit 0817d05

Browse files
committed
Shrink page header height
1 parent 14b0db1 commit 0817d05

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

app/styles/application.module.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,23 @@ noscript {
7777
display: grid;
7878
grid-template-columns: auto auto 1fr auto;
7979
align-items: center;
80+
padding: 10px;
8081
color: white;
8182

8283
a {
8384
color: white; text-decoration: none;
8485
&:hover { color: darken(white, 15%); }
8586
}
87+
88+
h1 {
89+
font-size: 24px;
90+
margin: 0.67em 0 0.67em 10px;
91+
}
8692
}
8793

88-
.subtitle {
89-
display: block;
90-
font-size: x-small;
94+
.logo {
95+
width: 60px;
96+
height: auto;
9197
}
9298

9399
.desktop-search-form {

app/templates/application.hbs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44

55
<header local-class="header">
66
<LinkTo @route="index" @tabindex="-1">
7-
<img src="/assets/Cargo-Logo-Small.png" height="100" width="100" alt="Cargo Logo">
7+
<img src="/assets/Cargo-Logo-Small.png" alt="Cargo Logo" local-class="logo">
88
</LinkTo>
99
<LinkTo @route="index">
10-
<h1>
11-
crates.io
12-
<span local-class="subtitle">Rust Package Registry</span>
13-
</h1>
10+
<h1>crates.io</h1>
1411
</LinkTo>
1512

1613
<form local-class="desktop-search-form" action='/search' {{ action "search" on="submit" }} data-test-search-form>

0 commit comments

Comments
 (0)