fixed safari mobile header issue
This commit is contained in:
parent
29accf73d0
commit
050fb6adc1
@ -56,4 +56,7 @@ window.addEventListener('scroll', function(event) {
|
||||
}
|
||||
|
||||
lastScrollPosition = scrollPosition;
|
||||
});
|
||||
});
|
||||
|
||||
const navItems = document.querySelectorAll('.st-header-icon-bar__item');
|
||||
|
||||
|
30
style.css
30
style.css
@ -21,6 +21,7 @@ body {
|
||||
font-family: "Rubik", sans-serif;
|
||||
line-height: 1.6;
|
||||
overflow-anchor: none;
|
||||
/* min-width: 320px; */
|
||||
}
|
||||
|
||||
input, button, textarea, select {
|
||||
@ -219,6 +220,10 @@ SECTIONS
|
||||
margin-left: calc((100% - (4 * 47px)) / (4 - 1));
|
||||
}
|
||||
|
||||
.st-header-icon-bar__item .safari {
|
||||
margin-left: calc((100% - (4 * 62px)) / (4 - 1));
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.st-header-icon-bar__item {
|
||||
transition: margin 300ms;
|
||||
@ -226,6 +231,31 @@ SECTIONS
|
||||
}
|
||||
}
|
||||
|
||||
/** Safari */
|
||||
@supports (-webkit-touch-callout: none) {
|
||||
.st-header-icon-bar__item {
|
||||
transition: margin 300ms;
|
||||
margin-left: calc((100% - (4 * 62px)) / (4 - 1));
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.st-header-icon-bar__item {
|
||||
transition: margin 300ms;
|
||||
margin-left: calc((100% - (4 * 62px)) / (4 - 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* @media not all and (min-resolution:.001dpcm)
|
||||
{
|
||||
@supports (-webkit-appearance:none) and (stroke-color:transparent) {
|
||||
.st-header-icon-bar__item {
|
||||
transition: margin 300ms;
|
||||
margin-left: calc((100% - (4 * 62px)) / (4 - 1));
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
.st-icon-bar-sticky .st-header-icon-bar__item {
|
||||
margin-left: .75em;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user