Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74b4250

Browse files
committed
replace inherit section arrow icon with CSS triangle
The "inherited from" sections in a class documentation are hidden by default. A small arrow icon indicates that the user can interact with the given text and expand the items that are hidden behind it. The icon is an image by default, which comes with two downsides: 1. It's not a vector graphic and looks oldschool on hdpi monitors 2. It cannot be matched exactly to the theme colors This is why it was replaced by a CSS triangle that comes with a nice open/close animation as a small bonus! 😊
1 parent 51a8ce0 commit 74b4250

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

doxygen-awesome.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,7 @@ table.fieldtable tr:last-child td:last-child {
16771677

16781678
table.memberdecls {
16791679
display: block;
1680+
-webkit-tap-highlight-color: transparent;
16801681
}
16811682

16821683
table.memberdecls tr[class^='memitem'] {
@@ -1767,6 +1768,26 @@ table.memberdecls .inherit_header td {
17671768
color: var(--page-secondary-foreground-color);
17681769
}
17691770

1771+
table.memberdecls img[src="closed.png"], table.memberdecls img[src="open.png"] {
1772+
width: 0;
1773+
height: 0;
1774+
border-left: 4px solid transparent;
1775+
border-right: 4px solid transparent;
1776+
border-top: 7px solid var(--primary-color);
1777+
margin-top: 8px;
1778+
display: block;
1779+
float: left;
1780+
margin-right: var(--spacing-small);
1781+
margin-left: -10px;
1782+
margin-right: 10px;
1783+
transition: transform 0.25s ease-out;
1784+
}
1785+
1786+
table.memberdecls img[src="closed.png"] {
1787+
transform: rotate(-90deg);
1788+
1789+
}
1790+
17701791
@media screen and (max-width: 767px) {
17711792

17721793
table.memberdecls .memItemLeft,

0 commit comments

Comments
 (0)