fix(search): fix layout on Safari/Webkit

Fix #825
This commit is contained in:
George Cushen committed 2018-11-29 00:01:51 +00:00
1 parent cd05bec3be
commit ddd8e9ad5d
2 files changed
+18 -4

No files matched your search

+17 -3
View File
@@ -241,6 +241,7 @@ small,
.search-results {
transform: scale(0);
-webkit-transform: scale(0);
background-color: {{ .Get "background" }};
bottom: 0;
left: 0;
@@ -262,6 +263,7 @@ small,
.searching .search-results {
transform: scale(1);
-webkit-transform: scale(1);
visibility: visible;
z-index: 11; /* Second highest index, after navbar. */
}
@@ -271,15 +273,27 @@ small,
}
.search-results > .container {
padding-top: calc(70px + 2rem); /* Max responsive navbar height plus padding. */
padding-top: 70px; /* Navbar height. */
}
@media screen and (max-width: 1200px) {
.search-results > .container {
padding-top: 50px; /* Navbar height. */
}
}
.search-header {
background-color: {{ .Get "background" }};
position: -webkit-sticky;
position: sticky;
top: calc(70px + 2rem); /* Max responsive navbar height plus padding. */
top: 70px; /* Navbar height. */
background-color: {{ .Get "background" }};
padding-top: 2rem;
padding-bottom: 1rem;
}
@media screen and (max-width: 1200px) {
.search-header {
top: 50px; /* Navbar height. */
}
}
.dark .search-header {
background-color: rgb(40, 42, 54);
+1 -1
View File
@@ -1,6 +1,6 @@
<aside class="search-results" id="search">
<div class="container">
<section class="search-header fixed-top">
<section class="search-header">
<div class="row no-gutters justify-content-between mb-3">
<div class="col-6">