fix(aio): prevent heading misplacement while styles load (#21695)
During the initial load of the page (probably until the icon styles are loaded and/or applied), the `.header-link` element is wider, pushing the heading text slightly to the right (for a brief moment). This commit prevents this slight shift by explicitly setting the width for the `.header-link` element. PR Close #21695
This commit is contained in:
parent
eb3bfc25be
commit
e3e7044d06
|
@ -6,6 +6,7 @@
|
|||
}
|
||||
|
||||
.header-link {
|
||||
box-sizing: border-box;
|
||||
color: $mediumgray;
|
||||
display: inline-block;
|
||||
margin-left: -42px;
|
||||
|
@ -13,6 +14,7 @@
|
|||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
visibility: hidden;
|
||||
width: 40px;
|
||||
|
||||
@media (max-width: 600px) {
|
||||
float: right;
|
||||
|
|
Loading…
Reference in New Issue