Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search box CSS doesn't look great on OS X Safari #701

Closed
simonw opened this issue Mar 18, 2020 · 3 comments
Closed

Search box CSS doesn't look great on OS X Safari #701

simonw opened this issue Mar 18, 2020 · 3 comments
Labels

Comments

@simonw
Copy link
Owner

simonw commented Mar 18, 2020

twitter__tweets__68_773_rows_where_sorted_by_id_descending_and_twitter__tweets__955_rows

@simonw simonw added the css label Mar 18, 2020
@simonw simonw added this to the Datasette 0.39 milestone Mar 24, 2020
@simonw
Copy link
Owner Author

simonw commented Mar 24, 2020

https://css-tricks.com/webkit-html5-search-inputs/ talks about this.

@simonw
Copy link
Owner Author

simonw commented Mar 24, 2020

It looks like the problem is that the padding: 9px 4px rule is being ignored.

@simonw
Copy link
Owner Author

simonw commented Mar 24, 2020

From the comments on that css-tricks article, this appears to work:

input[type=search] {
    -webkit-appearance: textfield;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant