Skip to content

Commit 2460342

Browse files
XhmikosRTrott
authored andcommitted
Specify image dimensions in the HTML. (#2393)
This avoids potential reflows since the HTML is parsed first. Also remove a few inherited properties in _header.styl.
1 parent 7bbb782 commit 2460342

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

layouts/css/page-modules/_header.styl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,10 @@ header
131131

132132
#logo
133133
display block
134-
border none
135134

136135
&:hover
137136
background-color transparent
138137
text-decoration underline
139138

140139
img
141-
display block
142140
margin 0.5em auto 0
143-
max-height 75px
144-
max-width 180px

layouts/partials/footer.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="linuxfoundation-footer">
77
<div class="issue-link-container">
88
<a class="linuxfoundation-logo" href="http://collabprojects.linuxfoundation.org">
9-
<img alt="Linux Foundation Collaborative Projects" src="/static/images/lfcp.png">
9+
<img alt="Linux Foundation Collaborative Projects" src="/static/images/lfcp.png" width="416" height="15">
1010
</a>
1111
<ul class="list-divider-pipe issue-link">
1212
<li><a href="https://github.com/nodejs/node/issues">{{site.reportNodeIssue}}</a></li>

layouts/partials/header.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="container">
33

44
<a href="/{{site.locale}}/" id="logo">
5-
<img src="/static/images/logo.svg" alt="node.js">
5+
<img src="/static/images/logo.svg" alt="node.js" width="180" height="75">
66
</a>
77

88
<nav>

0 commit comments

Comments
 (0)