Twenty Seventeen: Correct issues with hidden overflow and height on site header

In -r39124, some additional issues were introduced:

* The 'overflow: hidden' on the `.site-header;` was added to prevent a side-scrolling issue, but it ended up cutting off the menu. It looks like the cause of the side-scroll was related to how the scroll down icon was rotated, so it's addressed by rotating the icon and not the `<a>`.
* Also, `min-height` doesn't play well with `display: table;` in Firefox. So it's addressed with just `height`.

Props laurelfulford, sami.keijonen.

See #38543.


git-svn-id: https://develop.svn.wordpress.org/trunk@39129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
David A. Kennedy 2016-11-03 22:01:46 +00:00
parent bd52f81e87
commit 119c36b0bd

View File

@ -1542,7 +1542,6 @@ body {
.site-header {
background-color: #fafafa;
position: relative;
overflow: hidden;
}
/* Site branding */
@ -1636,9 +1635,8 @@ body:not(.title-tagline-hidden) .site-branding-text {
.has-header-image.twentyseventeen-front-page .custom-header,
.has-header-image.home.blog .custom-header {
display: table;
height: 100%;
min-height: 300px;
min-height: 75vh;
height: 300px;
height: 75vh;
width: 100%;
}
@ -3257,7 +3255,7 @@ object {
.has-header-image.twentyseventeen-front-page .custom-header,
.has-header-image.home.blog .custom-header {
display: block;
min-height: 0;
height: auto;
}
.custom-header-image {
@ -3521,6 +3519,9 @@ object {
padding: 1em;
position: absolute;
right: 0;
}
.site-header .menu-scroll-down .icon {
-webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
-ms-transform: rotate(90deg); /* IE 9 */
transform: rotate(90deg);