-
Notifications
You must be signed in to change notification settings - Fork 698
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
Fix MOTD underline in Safari #1217
Conversation
client/css/style.css
Outdated
#settings abbr { | ||
text-decoration: none; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why not abbr
entirely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this could go into bootstrap.css
, imo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait no, I'd rather not patch Bootstrap any further...
FYI, this has been fixed in Normalize v4+ with the following: /**
* 1. Remove the bottom border in Chrome 57- and Firefox 39-.
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
} Unfortunately, our version of Bootstrap (v3.2.0) uses Normalize v3.0.1 and even latest Bootstrap (v3.3.7) uses Normalize v3.0.3. I think we should use the code pasted above. It could go into |
@astorije What if we included normalize.css and refactored bootstrap.css out? I believe we only require the grid layout from bootstrap, all the other styles do not seem to go used. |
That's a decent possibility, but way beyond the point of this PR though. |
Changed to just |
Hey @MaxLeiter, I stand by my comment above, I think we should definitely apply what Normalize.css does. @xPaw, you okay with that? |
@astorije well normalize's looks slightly different (although an improvement over the actual bug for sure). Which do you prefer? |
I get where you're going because in terms of styling, I do prefer That being said, when we do have Normalize only (i.e. no Bootstrap anymore), nothing prevents us to do this ourselves (though I'm sure we'll have forgotten). Thanks for your efforts anyway!! |
Use the normalize solution then. |
@MaxLeiter, do you think you'll manage to do that today? If so I can draft the 2.3.2 release this weekend 🎉 |
Done |
@MaxLeiter use tabs to fix stylelint. |
before: https://sr.ht/mdPx.png after: https://sr.ht/h45R.png Basically, safari's user agent CSS applies an underline to <abbr> tags, which bootstrap already does as well (but bootstrap doesn't use text-decoration so it's not overriden).
Fix MOTD underline in Safari
before:
after:
Basically, safari's user agent CSS applies an underline to tags, which bootstrap already does as well (but bootstrap doesn't use text-decoration so it's not overriden).