From d947334cfc4a18733102424610a6db988ee1ea5b Mon Sep 17 00:00:00 2001 From: Magnus Hoff Date: Thu, 26 Oct 2017 11:09:15 +0200 Subject: [PATCH] Opt out from styling-override in Safari --- assets/style.css | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/assets/style.css b/assets/style.css index b81c9e6..af7835d 100644 --- a/assets/style.css +++ b/assets/style.css @@ -326,13 +326,20 @@ article ul.search-results { position: relative; } -.search input { +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +input[type="search"] { + -webkit-appearance: textfield; + font-size: 18px; font: inherit; font-size: 18px; line-height: 32px; border-radius: 18px; padding: 0 16px; + margin: 0; border: 1px solid #ccc; transition: max-width 200ms; width: 100%; @@ -385,10 +392,10 @@ article ul.search-results { position: absolute; right: 8px; margin: 0 16px; - display: none; + max-height: 0px; } .search.focus .live-results { - display: block; + max-height: 500px; } }