aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLysxia2020-04-20 10:58:01 -0400
committerLysxia2020-04-20 10:58:01 -0400
commit1a607cd9ff831e5393ec7eff8317ca4161161453 (patch)
tree26b5990e82e8b313ab01179ca970704b18f96ade
parent078e6c6d27bc3a13bb9e7ac6c9c5b8e05450af80 (diff)
parent4ddf8ca29dea849e1400fdadd5973a65418d75aa (diff)
Merge PR #12091: Adding highlighting of the target of a internal link in default coqdoc CSS
Reviewed-by: Lysxia
-rw-r--r--doc/changelog/08-tools/12091-master+coqdoc-css-target.rst4
-rw-r--r--tools/coqdoc/coqdoc.css5
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/changelog/08-tools/12091-master+coqdoc-css-target.rst b/doc/changelog/08-tools/12091-master+coqdoc-css-target.rst
new file mode 100644
index 0000000000..f6af5d40e8
--- /dev/null
+++ b/doc/changelog/08-tools/12091-master+coqdoc-css-target.rst
@@ -0,0 +1,4 @@
+- **Added:**
+ ``Coqdoc``: Highlighting of the exact position of the target of links
+ (`#12091 <https://github.com/coq/coq/pull/12091>`_,
+ by Hugo Herbelin).
diff --git a/tools/coqdoc/coqdoc.css b/tools/coqdoc/coqdoc.css
index 2c2bd98541..48096e555a 100644
--- a/tools/coqdoc/coqdoc.css
+++ b/tools/coqdoc/coqdoc.css
@@ -331,3 +331,8 @@ ul.doclist {
margin-top: 0em;
margin-bottom: 0em;
}
+
+.code :target {
+ border: 2px solid #D4D4D4;
+ background-color: #e5eecc;
+}