Skip to content

Commit

Permalink
fix: Tweak vertical spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
hidde committed Nov 29, 2023
1 parent fb1a29f commit 96703f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Guideline.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ p + .nlds-guideline {
box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
margin-block-end: 40px;
}
.nlds-guideline + .nlds-guideline {
margin-block-start: -20px;
}

.nlds-guideline__description {
padding: 24px;
Expand Down
5 changes: 5 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,11 @@ pre > code {
/* avoid double spacing */
}

ul + div[class*="language-"],
ul + .nlds-guideline_src-components-Guideline-module {
margin-block-start: var(--nlds-code-block-margin-inline-start, 1.5em);
}

pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
Expand Down

0 comments on commit 96703f2

Please sign in to comment.