diff --git a/css/public.css b/css/public.css
index dec5f67..aa34751 100755
--- a/css/public.css
+++ b/css/public.css
@@ -5,43 +5,39 @@
* Created-Time: 16:21
* Since: 1.0
*/
-
-/* Version: 2.5.4
-
-Last modified: 2021-02-12T1709+0100
+/*
-@see
-*/
+/**
+ * Optional hard links: anchors with scroll offset
+ *
+ * - Adding: Referrers and backlinks: optional hard links for AMP compatibility, thanks to @psykonevro bug report, thanks to @martinneumannat code contribution.
+ *
+ * @since 2.3.0
+ * @contributor @martinneumannat
+ * @link https://wordpress.org/support/topic/making-it-amp-compatible/
+ * @reporter @psychonevro
+ * @link https://wordpress.org/support/topic/footnotes-is-not-amp-compatible/
+ *
+ * Although often skipped as unstraightforward, or believed impossible,
+ * an offset hard link anchor can be coded out of a fragment identifier
+ * span with absolute position nested in a span with relative position.
+ */
.footnote_item_base,
.footnote_referrer_base {
@@ -163,21 +165,16 @@ Anchors with scroll offset
position: relative;
}
-/*****************************************************
-Footnote referrers and tooltips
-
-Templates:
-templates/public/footnote.html
-templates/public/footnote-alternative.html
-
-Classes:
-.footnote_referrer = enclosing
-.footnote_plugin_tooltip_text = inner
-.footnote_tooltip = inner
-
-@since 2.1.1 Referrers: line height 0 to fix superscript, thanks to @cwbayer bug report
-@see
-*/
+/**
+ * Footnote referrers and tooltips
+ *
+ * @see templates/public/footnote.html
+ * @see templates/public/footnote-alternative.html
+ *
+ * .footnote_referrer = enclosing
+ * .footnote_plugin_tooltip_text = inner
+ * .footnote_tooltip = inner
+ */
.footnote_referrer,
.footnote_referrer:link,
@@ -200,17 +197,37 @@ Classes:
box-shadow: none !important;
}
+/**
+ * Footnote referrer (not “tooltip text”)
+ *
+ * - Bugfix: Referrers: line height 0 to fix superscript, thanks to @cwbayer bug report.
+ *
+ * @since 2.1.1
+ * @reporter @cwbayer
+ * @link https://wordpress.org/support/topic/footnote-number-in-text-superscript-disrupts-leading/
+ *
+ * - Bugfix: Tooltips: fix jQuery positioning bug moving tooltips out of view and affecting (TablePress tables in) some themes, thanks to @wisenilesh bug report.
+ *
+ * @since 2.5.4
+ * @reporter @wisenilesh
+ * @link https://wordpress.org/support/topic/footnotes-not-working-properly-inside-the-tables-of-tablepress-plugin/
+ */
+
.footnote_plugin_tooltip_text {
- line-height: 0;
+ line-height: 0;
+ position: relative !important;
cursor: pointer;
}
-/*
-tooltips
-
-@since 2.1.6 set z-index to maximum 2147483647 to address display issues with overlay content, thanks to @russianicons bug report
-@see
-*/
+/**
+ * Tooltips
+ *
+ * - Bugfix: Tooltips: set z-index to maximum 2147483647 to address display issues with overlay content, thanks to @russianicons bug report.
+ *
+ * @since 2.1.6
+ * @reporter @russianicons
+ * @link https://wordpress.org/support/topic/counter-styles-not-working/#post-13767299
+ */
.footnote_tooltip {
display: none;
@@ -223,9 +240,11 @@ tooltips
font-style: normal;
}
-/*
-alternative tooltip implementation
-*/
+/**
+ * Alternative tooltips
+ *
+ * These default position values may be overridden by internal CSS.
+ */
.footnote_referrer.relative {
position: relative;
diff --git a/readme.txt b/readme.txt
index b7a6260..f34e092 100755
--- a/readme.txt
+++ b/readme.txt
@@ -81,6 +81,7 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
= 2.5.4 =
- Bugfix: Referrers: optional fixes to vertical alignment, font size and position (static) for in-theme consistency and cross-theme stability, thanks to @tomturowski bug report.
+- Bugfix: Tooltips: fix jQuery positioning bug moving tooltips out of view and affecting (TablePress tables in) some themes, thanks to @wisenilesh bug report.
- Bugfix: Reference container, tooltips: URL wrap: enable the 'word-wrap: anywhere' rule, thanks to @rebelc0de bug report.
- Bugfix: Reference container, tooltips: URL wrap: account for leading space in value, thanks to @karolszakiel example provision.
- Bugfix: Dashboard: Tooltip dimensions: move from 'Tooltip position' to a dedicated metabox, thanks to @codldmac issue report.
diff --git a/templates/dashboard/customize-superscript.html b/templates/dashboard/customize-superscript.html
index e3a0333..a29313a 100644
--- a/templates/dashboard/customize-superscript.html
+++ b/templates/dashboard/customize-superscript.html
@@ -4,6 +4,10 @@
[[label-superscript]] |
[[superscript]] |
+
+ [[label-normalize]] |
+ [[normalize]] |
+
[[label-before]] |
[[before]] |
@@ -16,9 +20,5 @@
[[label-link]] |
|
-
- [[label-normalize]] |
- [[normalize]] |
-