Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less gaps in css #1143

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/html_support_files/odoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ body.odoc {
display: grid;
grid-template-columns: min-content 1fr;
column-gap: 4ex;
row-gap: 2ex;
row-gap: ex;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not valid css and likely a leftover?

Suggested change
row-gap: ex;

}

body.odoc-src {
Expand All @@ -318,10 +318,6 @@ body.odoc-src {
margin-top: 0;
}

header {
margin-bottom: 30px;
}

header.odoc-preamble {
grid-column: 2;
grid-row: 3;
Expand Down Expand Up @@ -478,12 +474,19 @@ h1, h2, h3, h4, h5, h6, .h7, .h8, .h9, .h10 {
padding-top: 0.1em;
line-height: 1.2;
overflow-wrap: break-word;
margin-top:0;
margin-bottom: 0.5em;
}

.odoc-preamble h1 {
margin-top: 10px;
}

p {
margin-top: 0;
margin-bottom: 1em;
}

h1 {
font-weight: 500;
font-size: 2.441em;
Expand Down Expand Up @@ -600,6 +603,7 @@ p a > code, li a > code {
border-left: 4px solid var(--spec-summary-border-color);
border-right: 5px solid transparent;
padding: 0.35em 0.5em;
margin-bottom: 0.25em;
}

.spec .label, .spec .optlabel {
Expand All @@ -612,7 +616,7 @@ li:not(:last-child) > .def-doc {

/* Spacing between items */
div.odoc-spec,.odoc-include {
margin-bottom: 2em;
margin-bottom: 1em;
}

.spec.type .variant p, .spec.type .record p {
Expand Down
Loading