Skip to content

Commit 0ce4a2c

Browse files
committed
Homepage fixes after Sebastians feedback
1 parent 78d7cb1 commit 0ce4a2c

File tree

6 files changed

+37
-83
lines changed

6 files changed

+37
-83
lines changed

preview-src/docs-hub.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ Write and execute Cypher queries and visualize the results in nodes and relation
3636
link:{docs-home}/browser-manual/[Neo4j Browser] +
3737
link:{docs-home}/aura/preview/query/introduction/[Query (Aura)]
3838

39+
=== Neo4j Browser/Query
40+
41+
[.icon]
42+
image:icons/ndl/icon-scientist.svg[]
43+
44+
[.description]
45+
Write and execute Cypher queries and visualize the results in nodes and relationships.
46+
47+
[.link]
48+
link:{docs-home}/browser-manual/[Neo4j Browser] +
49+
link:{docs-home}/aura/preview/query/introduction/[Query (Aura)]
50+
3951
[.display.card.selectable]
4052

4153
=== Neo4j Data Importer

src/css/doc.css

Lines changed: 3 additions & 4 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: 2rem 0 1rem;
35+
margin: 17px 0 8px;
3636
}
3737

3838
.doc h1 {
@@ -191,7 +191,7 @@ body {
191191
}
192192

193193
.doc a:visited {
194-
color: var(--link_visited-font-color);
194+
color: var(--link-font-color);
195195
}
196196

197197
.doc code a {
@@ -640,7 +640,7 @@ body {
640640

641641
.doc .olist li,
642642
.doc .ulist li {
643-
margin-bottom: 0.5rem;
643+
margin-bottom: 0rem;
644644
}
645645

646646
.doc .olist li > div:first-of-type,
@@ -1261,7 +1261,6 @@ body {
12611261
margin: 0 0.2rem;
12621262
content: "→";
12631263
color: var(--link-font-color);
1264-
transform: rotate(-45deg);
12651264
transition: all 0.2s linear;
12661265
top: 0;
12671266
}

src/css/docs-ndl.css

Lines changed: 20 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ body.docs-ndl.hub aside.toc.sidebar {
144144
flex-basis: 0;
145145
}
146146

147-
body.docs-ndl .toolbar.is-home {
148-
background: rgba(var(--colors-neutral-15));
149-
box-shadow: none;
150-
}
151-
152147
body.docs-ndl.hub main > .content {
153148
/* align-items: center; */
154149
flex-direction: column;
@@ -409,7 +404,7 @@ body.docs-ndl .paragraph.footer-link {
409404

410405
body.docs-ndl .banner .paragraph {
411406
display: flex;
412-
width: 100%;
407+
width: fit-content;
413408
padding: 0;
414409
margin: 1rem;
415410
color: var(--color-white);
@@ -464,30 +459,14 @@ body.docs-ndl .banner .icon img {
464459
margin: 0;
465460
}
466461

467-
body.docs-ndl .banner .button {
462+
body.docs-ndl .banner .button a {
468463
border-radius: 0.25rem;
469464
padding: 0.5em 1.5em;
470465
font-weight: 400;
471466
text-align: center;
472467
/* margin-left: 24px; */
473468
}
474469

475-
@media screen and (max-width: 1240px) {
476-
body.docs-ndl .widget.banner .sectionbody {
477-
background-image: none !important;
478-
}
479-
480-
body.docs-ndl .widget.banner .sectionbody > div.openblock {
481-
flex: 0 0 100%;
482-
}
483-
}
484-
485-
@media screen and (min-width: 1024px) {
486-
.banner .banner-item.button-cta {
487-
padding-right: 0 1rem 0;
488-
}
489-
}
490-
491470
.banner .button:hover {
492471
background: rgba(var(--banner-background-color));
493472
color: var(--colors-baltic-25);
@@ -521,19 +500,19 @@ body.docs-ndl .highlights .caption {
521500
padding-left: 0;
522501
}
523502

524-
body.docs-ndl .highlights .list ul li {
525-
border-bottom: 1px solid rgba(var(--colors-neutral-20));
526-
padding-bottom: 0.5rem;
503+
body.docs-ndl .highlights .list a {
504+
padding: 8px;
505+
text-decoration: none;
527506
}
528507

529-
body.docs-ndl .highlights .list2 {
530-
padding: 0;
508+
body.docs-ndl .highlights .list a:hover,
509+
body.docs-ndl .highlights .list a:focus {
510+
text-decoration: none;
511+
background-color: var(--toc_hover-background-color);
531512
}
532513

533-
body.docs-ndl .highlights .list2 ul li {
514+
body.docs-ndl .highlights .list ul li {
534515
border-bottom: 1px solid rgba(var(--colors-neutral-20));
535-
padding-bottom: 0.5rem;
536-
list-style-type: none;
537516
}
538517

539518
body.docs-ndl .widget.highlights .footer-link {
@@ -599,7 +578,6 @@ body.docs-ndl.explainer .sectionbody > div.sect2 {
599578
}
600579

601580
body.docs-ndl .cards .sect2 > a,
602-
body.docs-ndl .cards .sect2.not-selectable,
603581
body.docs-ndl .cards:not(.selectable) .sect2,
604582
body.docs-ndl .lists .sect2 {
605583
overflow: hidden;
@@ -609,10 +587,9 @@ body.docs-ndl .lists .sect2 {
609587
align-items: flex-start;
610588
flex: 1;
611589
/* justify-content: space-between; */
612-
gap: 1rem;
590+
gap: 8px;
613591
/* min-width: 30%; */
614592
padding: 1rem;
615-
/* margin: 0 1rem 1rem 0; */
616593
background: var(--color-white);
617594
}
618595

@@ -649,7 +626,6 @@ body.docs-ndl .header-label-container > div.labels {
649626
}
650627

651628
body.docs-ndl .cards .sect2 > a,
652-
body.docs-ndl .cards .sect2.not-selectable,
653629
body.docs-ndl .cards:not(.selectable) .sect2,
654630
body.docs-ndl .widget:not(.video) {
655631
/* box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06); */
@@ -744,6 +720,7 @@ body.docs-ndl body.docs-ndl .cards .sect2 .icon img {
744720
body.docs-ndl .cards.icon-l .sect2 .icon img {
745721
width: 6rem;
746722
height: 6rem;
723+
margin-bottom: 9px;
747724
}
748725

749726
body.docs-ndl .lists .sect2 .icon img,
@@ -793,7 +770,14 @@ body.docs-ndl .cards .sect2.selectable .paragraph.link {
793770
}
794771

795772
body.docs-ndl .cards:not(.selectable) .sect2 .paragraph.link {
796-
margin-top: auto;
773+
box-sizing: border-box;
774+
margin-top: 30px;
775+
margin-bottom: 9px;
776+
}
777+
778+
body.docs-ndl .bottom-cards:not(.selectable) .sect2 .paragraph.link {
779+
margin-top: 8px;
780+
margin-bottom: 9px;
797781
}
798782

799783
body.docs-ndl .cards:not(.selectable) .sect2 .paragraph.link a {
@@ -852,18 +836,6 @@ body.docs-ndl .cards .sect2 .ulist ul li {
852836
margin: 0.5rem 0 0;
853837
}
854838

855-
@media screen and (min-width: 1024px) {
856-
body.docs-ndl .toolbar {
857-
background-color: rgba(var(--colors-neutral-10));
858-
}
859-
}
860-
861-
@media screen and (max-width: 1023px) {
862-
body.docs-ndl .doc {
863-
margin: 0 1rem;
864-
}
865-
}
866-
867839
@media screen and (max-width: 1439px) {
868840
body.docs-ndl .toolbar {
869841
top: 0;

src/css/themes.css

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,33 +53,19 @@ body.docs .navbar-burger span {
5353
background: var(--color-docs);
5454
}
5555

56-
body.docs .doc .button {
56+
body.docs .doc .button a {
5757
background: var(--color-docs);
5858
color: var(--color-white);
5959
}
6060

61-
body.docs .doc .button:hover {
62-
background: rgba(var(--colors-baltic-60));
63-
color: var(--color-white);
64-
}
65-
66-
body.docs .banner .button {
61+
body.docs .banner .button a {
6762
display: flex;
6863
width: fit-content;
6964
background: var(--banner-background-color);
7065
border: 1px solid var(--banner-background-color);
7166
color: var(--colors-baltic-60);
7267
}
7368

74-
body.docs .banner .button:hover {
75-
background: rgba(var(--banner-background-color));
76-
border: 1px solid var(--banner-hover-color);
77-
}
78-
79-
body.docs .banner .button:hover a {
80-
color: var(--banner-hover-color);
81-
}
82-
8369
body.docs .nav-item .nav-item::before,
8470
body.docs .toc-menu li a::before {
8571
color: rgba(var(--colors-baltic-30));

src/css/toolbar.css

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
.toolbar {
2-
color: var(--toolbar-font-color);
3-
align-items: center;
4-
background-color: var(--toolbar-background);
5-
box-shadow: 0 1px 0 var(--toolbar-border-color);
6-
display: flex;
7-
font-size: calc(15 / var(--rem-base) * 1rem);
8-
height: var(--toolbar-height);
9-
justify-content: flex-start;
10-
position: sticky;
11-
top: var(--navbar-height);
12-
z-index: var(--z-index-toolbar);
13-
}
14-
151
body.has-banner .toolbar {
162
top: calc(var(--navbar-height) + var(--banner-height));
173
}

src/css/vars.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@
312312
/* links */
313313
--link-font-color: rgba(var(--colors-baltic-50));
314314
--link_hover-font-color: rgba(var(--colors-baltic-55));
315-
--link_visited-font-color: var(--palette-categorical-8);
316315
--link_unresolved-font-color: var(--important-color);
317316

318317
/* abstract */

0 commit comments

Comments
 (0)