Sfoglia il codice sorgente

Merge pull request #9324 from rburing/css_self_links

Style self-links to make them appear only on hover
Max Hilbrunner 1 anno fa
parent
commit
ab67eb8437
1 ha cambiato i file con 30 aggiunte e 0 eliminazioni
  1. 30 0
      _static/css/custom.css

+ 30 - 0
_static/css/custom.css

@@ -396,6 +396,36 @@ a.btn:hover {
     padding-right: 13px;
 }
 
+/* Style self-links to make them appear only on hover. */
+.classref-method > a[href*="-method-"].reference,
+.classref-property > a[href*="-property-"].reference,
+.classref-signal > a[href*="-signal-"].reference,
+.classref-annotation > a[href*="-annotation-"].reference,
+.classref-themeproperty > a[href*="-theme-"].reference,
+.classref-method > a[href*="-method-"].reference,
+.classref-constructor > a[href*="-constructor-"].reference,
+.classref-operator > a[href*="-operator-"].reference,
+.classref-constant > a[href*="-constant-"].reference,
+.classref-enumeration > a[href^="#enum-"].reference {
+    visibility: hidden;
+    padding-left: 20px;
+    padding-right: 20px;
+}
+.classref-method:hover > a[href*="-method-"].reference,
+.classref-property:hover > a[href*="-property-"].reference,
+.classref-signal:hover > a[href*="-signal-"].reference,
+.classref-annotation:hover > a[href*="-annotation-"].reference,
+.classref-themeproperty:hover > a[href*="-theme-"].reference,
+.classref-method:hover > a[href*="-method-"].reference,
+.classref-constructor:hover > a[href*="-constructor-"].reference,
+.classref-operator:hover > a[href*="-operator-"].reference,
+.classref-constant:hover > a[href*="-constant-"].reference,
+.classref-enumeration:hover > a[href^="#enum-"].reference {
+    visibility: visible;
+    padding-left: 20px;
+    padding-right: 20px;
+}
+
 /* Distinguish class reference page links from "user manual" page links with a class reference badge. */
 
 /* Remove text wrapping so that the badge is always on the same line as the anchor's text. */