Merge pull request #9324 from rburing/css_self_links

Style self-links to make them appear only on hover
This commit is contained in:
Max Hilbrunner
2024-05-30 17:02:00 +02:00
committed by GitHub

View File

@@ -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. */