Skip to content

Adjust spacing between spec items#822

Merged
jonludlam merged 5 commits intoocaml:masterfrom
jonludlam:styling-fixes
Feb 7, 2022
Merged

Adjust spacing between spec items#822
jonludlam merged 5 commits intoocaml:masterfrom
jonludlam:styling-fixes

Conversation

@jonludlam
Copy link
Copy Markdown
Member

A small style fix: Make sure that the content is more obviously associated with the correct signature item.

Before:
Screenshot 2022-02-04 at 19 10 54

After:
Screenshot 2022-02-04 at 19 12 04


div.spec, .def-doc {
margin-bottom: 20px;
margin-bottom: 10px;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The margin for .spec is useless. It is slightly bigger than the margin-top of the documentation, but this should be changed instead. It is lower than the margin for .odoc-spec so won't have any effect there either.
I've adjusted a bit: jonludlam#42

Julow added 4 commits February 7, 2022 14:09
+ Use the default margin for paragraph
+ Remove unecessary margin rule
+ Define margin in em
The more custom margin has no effect in most cases but when it does, it
results in inconsistent spacing, for example between two pre blocks.
Reduce a bit the margin between the include summary and the expansion to
highlight that they are different. Otherwise they are too close, which
feels slighly off.
@jonludlam
Copy link
Copy Markdown
Member Author

Thanks @Julow ! In it goes.

@jonludlam jonludlam merged commit 51e65ed into ocaml:master Feb 7, 2022
jonludlam added a commit to jonludlam/opam-repository that referenced this pull request Feb 8, 2022
CHANGES:

Additions
- New subcommand to resolve references (@panglesd, @lubega-simon, ocaml/odoc#812)
- Improved rendering of long signatures (@panglesd, ocaml/odoc#782)
- Handle comments attached to open statement as floating comment, instead
  of dropping them (@panglesd, ocaml/odoc#797)
- Empty includes (containing entirely shadowed entries) are now hidden (@panglesd, ocaml/odoc#798)

Bugs fixed
- Fix a missing Result constructor during compile. This will cause some
  functor arguments to have different filenames (@jonludlam, ocaml/odoc#795)
- Better memory/disk space usage when handling module alias chains (@jonludlam, ocaml/odoc#799)
- Resolving class-type paths (ie., `val x : #c`) (@jonludlam, ocaml/odoc#809)
- Skip top-level attributes while extracting the top comment. Fix top-comment extraction with PPX preprocessing (@jorisgio, ocaml/odoc#819)
- Better handling of @canonical tags (@jonludlam, ocaml/odoc#820)
- css: improved layout (@jonludlam, @Julow, ocaml/odoc#822)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants