From 8cefbea96e6cc08b08f012aa859d358a39575d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Tue, 18 Sep 2018 02:32:07 -0400 Subject: [PATCH] Fix double underline on abbreviations and extract into a shared file --- _docs/index.md | 2 +- _guides/authoring-themes.md | 2 ++ _guides/custom-css.md | 2 ++ _guides/upgrade-to-v3.md | 5 +---- _guides/url-overrides.md | 2 ++ _includes/abbreviations.md | 7 +++++++ css/bootstrap.css | 9 ++++++++- 7 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 _includes/abbreviations.md diff --git a/_docs/index.md b/_docs/index.md index 29c83a23..72727ddd 100644 --- a/_docs/index.md +++ b/_docs/index.md @@ -32,4 +32,4 @@ and thank him very much for his work! Enjoy The Lounge, and make sure to join us on our **official Freenode channel `#thelounge`**! -*[IRC]: Internet Relay Chat +{% include abbreviations.md %} diff --git a/_guides/authoring-themes.md b/_guides/authoring-themes.md index c3eb13f4..3e09139e 100644 --- a/_guides/authoring-themes.md +++ b/_guides/authoring-themes.md @@ -57,3 +57,5 @@ module.exports = { } }; ``` + +{% include abbreviations.md %} diff --git a/_guides/custom-css.md b/_guides/custom-css.md index bad9074b..17802310 100644 --- a/_guides/custom-css.md +++ b/_guides/custom-css.md @@ -270,3 +270,5 @@ div.preview[data-url*="github.com"] { white-space: initial; } ``` + +{% include abbreviations.md %} diff --git a/_guides/upgrade-to-v3.md b/_guides/upgrade-to-v3.md index 9d0ff3db..5c4b9266 100644 --- a/_guides/upgrade-to-v3.md +++ b/_guides/upgrade-to-v3.md @@ -54,7 +54,4 @@ In addition to the items listed in this guide, you may want to enable or configu - To navigate through windows in the channel list from your keyboard, you must now use alt+ / alt+ in lieu of ctrl+ / ctrl+, more often used in other chat clients. - We have updated our build pipeline to better reflect our browser support. The Lounge now supports [browsers released less than a year ago](http://browserl.ist/?q=last+1+year%2C+firefox+esr) (and [Firefox ESR](https://www.mozilla.org/en-US/firefox/organizations/)), while we used to support the [last 2 versions of all browsers](http://browserl.ist/?q=last+2+versions). In practice, this drops support for some of the least used browsers on mobile (QQ browser, UC browser, Android Browser, Baidu Browser, Blackberry Browser, IE Mobile, Opera Mini, and Opera Mobile), and IE 10/11 on desktop. It however gives slightly more support flexibility for earlier versions of Chrome (62+), Firefox (56+ and ESR), and Opera (48+). -*[CLI]: Command Line Interface -*[ESR]: Extended Support Release -*[LTS]: Long-Term Support -*[TLS]: Transport Layer Security +{% include abbreviations.md %} diff --git a/_guides/url-overrides.md b/_guides/url-overrides.md index 78dd99ff..f66a4548 100644 --- a/_guides/url-overrides.md +++ b/_guides/url-overrides.md @@ -34,3 +34,5 @@ When using the comma-separated `join` or `channels` keys, alphanumeric sequences `#foo`.
If you need to explicitly use a `#` character, you must use `%23` instead. For example, `?join=%23%23bar` fills the form field with `##bar`.
Similarly, you must use `%26` for `&`-prefixed channels. + +{% include abbreviations.md %} diff --git a/_includes/abbreviations.md b/_includes/abbreviations.md new file mode 100644 index 00000000..e1c43dca --- /dev/null +++ b/_includes/abbreviations.md @@ -0,0 +1,7 @@ +*[CSS]: Cascading Style Sheets +*[CLI]: Command Line Interface +*[ESR]: Extended Support Release +*[IRC]: Internet Relay Chat +*[LTS]: Long-Term Support +*[TLS]: Transport Layer Security +*[URL]: Uniform Resource Locator diff --git a/css/bootstrap.css b/css/bootstrap.css index f05b73f8..4a6d9a17 100644 --- a/css/bootstrap.css +++ b/css/bootstrap.css @@ -53,8 +53,15 @@ a:active, a:hover { outline: 0; } +/** + * From Normalize. See https://github.com/thelounge/lounge/pull/1217 + * 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: 1px dotted; + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ } b, strong {