Skip to content

Commit

Permalink
Remove custom webkit file input form styling
Browse files Browse the repository at this point in the history
Other browsers have pretty much followed the suit while having a sane
default.
  • Loading branch information
nanaya committed Nov 17, 2024
1 parent bfe4de7 commit cbded69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions app/javascript/application.less
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,6 @@ input {
padding: 0 0.3em;
}

/* Unlike just about every other browser, WebKit puts the filename of file input elements
* on the page background, instead of on a white box. We need to set it to a light color
* to make it visible, and we need to do this only on WebKit--if we set other browsers to
* white, it'll be unreadable on the white background. */
HTML.webkit input[type=file] {
color: #FFF;
}

input[type=text], input[type=password] {
background: #fff;
}
Expand Down
4 changes: 0 additions & 4 deletions app/javascript/src/legacy/common.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,3 @@ window.ReportError = (message, file, line, exc, info) ->
catch e
alert 'Error: ' + e
return

# Allow CSS styles for WebKit.
if navigator.userAgent.indexOf('AppleWebKit/') != -1
document.documentElement.className += ' webkit'

0 comments on commit cbded69

Please sign in to comment.