Skip to content

Commit 8a6b131

Browse files
committed
fix multiline function definitions
1 parent bb427a5 commit 8a6b131

File tree

1 file changed

+16
-42
lines changed

1 file changed

+16
-42
lines changed

api-docs/cppdocs/binaryninja-docs.css

Lines changed: 16 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,10 @@ div.contents div.dyncontent {
709709
/* ============================================================================
710710
* TABLES
711711
* ============================================================================ */
712-
table {
712+
/* Only apply to content tables, not Doxygen structural tables */
713+
div.contents > table:not(.memberdecls):not(.mlabels):not(.memname):not(.params),
714+
div.contents p + table,
715+
div.textblock table:not(.memname):not(.params) {
713716
border-collapse: collapse;
714717
border-spacing: 0;
715718
width: 100%;
@@ -763,13 +766,13 @@ table.memberdecls .memItemLeft {
763766
white-space: normal;
764767
word-wrap: break-word;
765768
overflow-wrap: break-word;
766-
padding: 2px var(--spacing-small);
769+
padding: var(--spacing-small) var(--spacing-medium);
767770
border-bottom: 1px solid var(--border-color);
768771
width: 40%;
769772
}
770773

771774
table.memberdecls .memItemRight {
772-
padding: 2px var(--spacing-small);
775+
padding: var(--spacing-small) var(--spacing-medium);
773776
border-bottom: 1px solid var(--border-color);
774777
word-wrap: break-word;
775778
overflow-wrap: break-word;
@@ -814,6 +817,7 @@ table.markdownTable tr.markdownTableRowEven {
814817
/* Detail level labels (default, inline, virtual, etc.) */
815818
table.mlabels {
816819
border-spacing: 0;
820+
width: 100%;
817821
}
818822

819823
table.mlabels td.mlabels-left {
@@ -837,41 +841,18 @@ span.mlabel {
837841

838842
/* Function signature tables */
839843
table.memname {
840-
font-family: var(--font-family-monospace);
841-
color: var(--code-text);
842844
border-collapse: collapse;
843-
border-spacing: 0;
844-
width: auto;
845-
table-layout: auto;
846845
}
847846

848-
table.memname td {
849-
vertical-align: top;
847+
div.memproto table.memname {
850848
font-family: var(--font-family-monospace);
851-
padding: 0 5px 0 0;
852-
}
853-
854-
/* Keep function name on first column from wrapping */
855-
table.memname td.memname {
856-
white-space: nowrap;
857-
width: 1%;
858-
}
859-
860-
/* Constrain parameter type column width */
861-
table.memname td.paramtype {
862-
white-space: nowrap;
863-
width: 1%;
849+
color: var(--code-text);
864850
}
865851

866-
/* Parameter names should not wrap and stay compact */
867-
table.memname td.paramname {
868-
white-space: nowrap;
852+
.memname td {
853+
vertical-align: bottom;
869854
}
870855

871-
/* Empty cells (paramkey) should not take space */
872-
table.memname td.paramkey {
873-
width: 1%;
874-
}
875856

876857
/* Type/Namespace icons (C, N, S, etc.) */
877858
.icon {
@@ -898,14 +879,6 @@ table thead th {
898879
border-bottom: 1px solid var(--border-color);
899880
}
900881

901-
table tbody tr:nth-child(odd) {
902-
background-color: var(--table-row-odd);
903-
}
904-
905-
table tbody tr:nth-child(even) {
906-
background-color: var(--table-row-even);
907-
}
908-
909882
/* ============================================================================
910883
* CODE BLOCKS AND FRAGMENTS
911884
* ============================================================================ */
@@ -997,7 +970,7 @@ dl.bug {
997970
* MEMBER DOCUMENTATION
998971
* ============================================================================ */
999972
.memitem {
1000-
margin-bottom: var(--spacing-medium);
973+
margin-bottom: var(--spacing-large);
1001974
position: relative;
1002975
}
1003976

@@ -1019,18 +992,19 @@ dl.bug {
1019992
border: 1px solid var(--border-color);
1020993
border-top: none;
1021994
border-radius: 0 0 var(--border-radius-small) var(--border-radius-small);
1022-
padding: var(--spacing-small) var(--spacing-medium);
995+
padding: var(--spacing-medium);
1023996
background-color: var(--page-bg);
1024997
}
1025998

1026999
.memproto {
10271000
background-color: var(--fragment-bg);
10281001
border: 1px solid var(--border-color);
1029-
padding: 3px var(--spacing-small);
1002+
padding: var(--spacing-small) var(--spacing-medium);
10301003
border-radius: var(--border-radius-small);
10311004
}
10321005

1033-
.paramname {
1006+
.paramname em,
1007+
.paramname span.paramname {
10341008
color: var(--bn-red-light);
10351009
font-style: italic;
10361010
}

0 commit comments

Comments
 (0)