Skip to content

Commit

Permalink
UI fixes afer homepage updates (#289)
Browse files Browse the repository at this point in the history
This PR fixes a few issues across docs from recent home page updates:

- restores margin above the `.content` element and `h1` to preserve
whitespace between breadcrumbs and page content
- restores margins for all headers
- removes `height` property from labels to center-align text vertically
- comments out properties in labels that have no effect
- updates border-radius for pseudo-class labels to match other labels
  • Loading branch information
recrwplay authored Dec 18, 2024
1 parent 306e28f commit b303a6a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ body {
font-weight: var(--heading-font-weight);
hyphens: none;
line-height: calc((var(--doc-line-height) + 1) / 2);
margin: 17px 0 8px;
margin: 2rem 0 1rem;
}

.doc h1 {
Expand Down Expand Up @@ -78,8 +78,8 @@ body {
}

@media screen and (min-width: 769px) {
.doc > .sect-header > h1.page:first-child {
/* margin-top: 2.5rem; */
.has-banner .doc > .sect-header > h1.page:first-child {
margin-top: 2.5rem;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/css/docs-ndl.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
}

@media screen and (min-width: 1024px) {
body:not(.landing) main > .content {
body.docs-ndl:not(.explainer) main > .content {
margin-top: 0;
}
}

@media screen and (min-width: 769px) {
.doc > .sect-header > h1.page:first-child {
body.docs-ndl .doc > .sect-header > h1.page:first-child {
margin-top: 0;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/css/labels.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ h2 > .flex-label {

.label {
display: inline-block;
height: 24px;
/* height: 24px; */
padding: 0.2rem 0.8rem;
justify-content: center;
align-items: center;
/* justify-content: center; */
/* align-items: center; */
flex-shrink: 0;
border-radius: 9999px;
background: rgba(var(--colors-baltic-50));
Expand Down
2 changes: 1 addition & 1 deletion src/css/neo4j-docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ span.fabric::after {
font-size: 0.7rem;
line-height: var(--doc-line-height);
padding: 0.2rem 0.8rem;
border-radius: 0.25rem;
border-radius: 9999px;
position: relative;
bottom: 2px;
margin-left: 0.5rem;
Expand Down

0 comments on commit b303a6a

Please sign in to comment.