Skip to content

Commit 3530d89

Browse files
committed
Align crate icon with crate name in heading
The crate heading text (with name and version) are being aligned by baseline using flex, however the icon doesn't line up because it doesn't have baseline information. Manually pushing the icon down so aligns "correctly" with the crate name.
1 parent 437657d commit 3530d89

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/styles/crate.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
@include flex-direction(column);
2727
}
2828
}
29+
.crate-icon {
30+
// Icon doesn't align nicely with text (which is being
31+
// aligned by their baselines) so manual adjustment needed.
32+
position: relative;
33+
top: 4px;
34+
}
2935
h1 {
3036
padding-left: 10px;
3137
padding-right: 10px;

0 commit comments

Comments
 (0)