Skip to content

Commit b303a6a

Browse files
authored
UI fixes afer homepage updates (#289)
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
1 parent 306e28f commit b303a6a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/css/doc.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ body {
3232
font-weight: var(--heading-font-weight);
3333
hyphens: none;
3434
line-height: calc((var(--doc-line-height) + 1) / 2);
35-
margin: 17px 0 8px;
35+
margin: 2rem 0 1rem;
3636
}
3737

3838
.doc h1 {
@@ -78,8 +78,8 @@ body {
7878
}
7979

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

src/css/docs-ndl.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
}
55

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

1212
@media screen and (min-width: 769px) {
13-
.doc > .sect-header > h1.page:first-child {
13+
body.docs-ndl .doc > .sect-header > h1.page:first-child {
1414
margin-top: 0;
1515
}
1616
}

src/css/labels.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ h2 > .flex-label {
8484

8585
.label {
8686
display: inline-block;
87-
height: 24px;
87+
/* height: 24px; */
8888
padding: 0.2rem 0.8rem;
89-
justify-content: center;
90-
align-items: center;
89+
/* justify-content: center; */
90+
/* align-items: center; */
9191
flex-shrink: 0;
9292
border-radius: 9999px;
9393
background: rgba(var(--colors-baltic-50));

src/css/neo4j-docs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ span.fabric::after {
118118
font-size: 0.7rem;
119119
line-height: var(--doc-line-height);
120120
padding: 0.2rem 0.8rem;
121-
border-radius: 0.25rem;
121+
border-radius: 9999px;
122122
position: relative;
123123
bottom: 2px;
124124
margin-left: 0.5rem;

0 commit comments

Comments
 (0)