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

Adjust margins in rendered endpoints #2081

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
26 changes: 19 additions & 7 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,19 @@ Custom SCSS for the Matrix spec
h2 {
font-weight: $font-weight-bold;
font-size: 1.3rem;
margin: 3rem 0 .5rem 0;
margin: 1.5rem 0 1rem 0;
}

h3 {
font-weight: $font-weight-bold;
font-size: 1.1rem;
margin: 1.5rem 0 .75rem 0;
margin: 1.5rem 0 1rem 0;

}

/* Reduce top margin of h3 if previous sibling is a h2 */
h2 + h3 {
margin-top: 1rem;
}

hr {
Expand Down Expand Up @@ -367,11 +373,6 @@ Custom SCSS for the Matrix spec
}
}

// add some space between two tables when they are right next to each other
& + table {
margin-top: 4rem;
}

caption {
caption-side: top;
color: $dark;
Expand Down Expand Up @@ -443,6 +444,17 @@ Custom SCSS for the Matrix spec
}
}

/* Have consistent spacing around tables and examples */
table, .highlight {
margin-top: 0;
margin-bottom: 2rem;

/* We don't need the margin on the last child of the .rendered-data block */
&:last-child {
margin-bottom: 0;
}
}

pre {
border: 0;
border-left: solid 5px $secondary;
Expand Down
1 change: 1 addition & 0 deletions changelogs/internal/newsfragments/2081.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adjust margins in rendered endpoints.