Skip to content

Commit

Permalink
📚💄 Update rdoc attribute heading styles
Browse files Browse the repository at this point in the history
This styles attr accessor headings more similarly to method headers.

Additionally, since a background color has been applied, the link
underlines seemed to be too much.  So this disables attr/method header
link underlines too.
  • Loading branch information
nevans committed Jan 4, 2025
1 parent 61c35f7 commit 70742e8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,28 @@ main .method-detail {
justify-content: space-between;
}

main .method-header, main .method-controls {
main .method-header,
main .method-controls,
.attribute-method-heading {
padding: 0.5em;
/* border: 1px solid var(--highlight-color); */
background: var(--table-header-background-color);
line-height: 1.6;
}

.attribute-method-heading .attribute-access-type {
float: right;
}

main .method-header {
border-right: none;
border-radius: 4px 0 0 4px;
}

main .method-heading :any-link {
text-decoration: none;
}

main .method-controls {
border-left: none;
border-radius: 0 4px 4px 0;
Expand Down

0 comments on commit 70742e8

Please sign in to comment.