Skip to content

Commit b6de909

Browse files
committed
updates after discussion
1 parent b22bb0c commit b6de909

File tree

4 files changed

+203
-52
lines changed

4 files changed

+203
-52
lines changed

preview-src/docs-ndl.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
:page-toclevels: -1
88

99

10-
[.widget2.banner]
10+
[.widget.banner.start]
1111
== Getting started
1212

13-
[.icon]
14-
image:icons/ndl/start.svg[]
13+
// [.icon]
14+
// image:icons/ndl/start.svg[]
1515

1616
--
17-
[.caption2]
17+
[.caption]
1818
Get started with Neo4j
1919

20-
[.description2]
20+
[.description]
2121
Learn more about graph databases and start working with your data using Neo4j tools.
2222

23-
[.banner.button]
23+
[.button]
2424
xref:tutorials:index.adoc[Get started]
2525
--
2626

@@ -177,17 +177,17 @@ Tutorials & How-to guides
177177
xref:tutorials:index.adoc[All tutorials]
178178
--
179179

180-
[.widget3.highlights]
180+
[.widget.highlights]
181181
== GraphAcademy courses
182182

183-
[.icon2]
183+
[.icon]
184184
image:icons/ndl/ga-home.png[]
185185

186186
--
187-
[.caption3]
187+
[.caption]
188188
GraphAcademy courses
189189

190-
[.list2]
190+
[.list]
191191
* link:{docs-home}/genai/tutorials/embeddings-vector-indexes/[Embedding & Vector Indexes Tutorial]
192192
* xref:{docs-home}/getting-started/tutorials/import-relational/[Import data from a relational database into Neo4j]
193193
* xref:{docs-home}/getting-started/tutorials/recommendation-engine/[Build a Cypher recommendation engine]

src/css/docs-ndl.css

Lines changed: 53 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,22 @@ body.docs-ndl .widget .sectionbody {
211211
column-gap: 0;
212212
}
213213

214-
body.docs-ndl .widget2 .sectionbody {
214+
body.docs-ndl .widget.banner .sectionbody {
215215
background: rgba(var(--colors-baltic-60));
216+
background-repeat: no-repeat;
217+
background-position: right;
218+
background-size: contain;
216219
border-radius: 1rem;
217220
border: none;
218-
padding: 0;
221+
padding: 2rem;
219222
row-gap: 0;
220223
column-gap: 0;
221224
}
222225

226+
body.docs-ndl .widget.banner.start .sectionbody {
227+
background-image: url(../img/start.svg);
228+
}
229+
223230
body.docs-ndl .widget3 .sectionbody {
224231
background: rgba(var(--colors-neutral-10));
225232
border-radius: 1rem;
@@ -237,7 +244,7 @@ body.docs-ndl.sub .widget .sectionbody {
237244
column-gap: 1rem;
238245
}
239246

240-
body.docs-ndl.sub .widget2 .sectionbody {
247+
body.docs-ndl.sub .widget.banner .sectionbody {
241248
background: transparent;
242249
padding: 0;
243250
justify-content: flex-start;
@@ -391,6 +398,9 @@ body.docs-ndl .paragraph.caption {
391398
padding: 1rem;
392399
margin: 0;
393400
color: var(--neutral-color);
401+
font-family: var(--header-font-family);
402+
font-size: var(--doc-font-size-h2);
403+
font-weight: var(--font-weight-normal);
394404
}
395405

396406
body.docs-ndl .paragraph.footer-link {
@@ -399,26 +409,20 @@ body.docs-ndl .paragraph.footer-link {
399409
padding: 0;
400410
margin: 0;
401411
color: var(--neutral-color);
412+
justify-content: flex-end;
413+
padding-right: 0;
402414
}
403415

404-
body.docs-ndl .paragraph.caption {
405-
font-family: var(--header-font-family);
406-
font-size: var(--doc-font-size-h2);
407-
font-weight: var(--font-weight-normal);
408-
}
409-
410-
body.docs-ndl .paragraph.caption2 {
416+
body.docs-ndl .banner .paragraph {
411417
display: flex;
412418
width: 100%;
413419
padding: 0;
414-
margin: 12px 24px 0;
420+
margin: 1rem;
415421
color: var(--color-white);
416422
}
417423

418-
body.docs-ndl .paragraph.caption2 {
419-
font-family: var(--header-font-family);
420-
font-size: var(--doc-font-size-h2);
421-
font-weight: var(--font-weight-normal);
424+
body.docs-ndl .banner .paragraph.description {
425+
padding-right: 2rem;
422426
}
423427

424428
body.docs-ndl .paragraph.caption3 {
@@ -427,19 +431,11 @@ body.docs-ndl .paragraph.caption3 {
427431
padding: 12px 30px 12px;
428432
margin: 0;
429433
color: var(--neutral-color);
430-
}
431-
432-
body.docs-ndl .paragraph.caption3 {
433434
font-family: var(--header-font-family);
434435
font-size: var(--doc-font-size-h2);
435436
font-weight: var(--font-weight-normal);
436437
}
437438

438-
body.docs-ndl .paragraph.footer-link {
439-
justify-content: flex-end;
440-
padding-right: 0;
441-
}
442-
443439
/* selectable cards */
444440

445441
body.docs-ndl .cards .sect2.selectable {
@@ -462,11 +458,13 @@ body.docs-ndl .cards .sect2.selectable:hover div.description {
462458

463459
/* banner */
464460

461+
body.docs-ndl.hub .banner .sectionbody,
462+
body.docs-ndl.explainer .banner .sectionbody {
463+
justify-content: space-between;
464+
}
465+
465466
body.docs-ndl .banner .sectionbody > div.openblock {
466467
flex: 0 0 50%;
467-
padding: 3px 3px 3px;
468-
border-bottom: 0;
469-
margin-bottom: 0;
470468
}
471469

472470
body.docs-ndl .banner .sectionbody > div.icon {
@@ -478,9 +476,8 @@ body.docs-ndl .banner .sectionbody > div.icon {
478476
}
479477

480478
body.docs-ndl .banner .icon img {
481-
width: 639px;
482-
height: 246px;
483-
padding: 0 6.7rem 0;
479+
height: 100%;
480+
padding: 0;
484481
margin: 0;
485482
}
486483

@@ -489,7 +486,17 @@ body.docs-ndl .banner .button {
489486
padding: 0.5em 1.5em;
490487
font-weight: 400;
491488
text-align: center;
492-
margin-left: 24px;
489+
/* margin-left: 24px; */
490+
}
491+
492+
@media screen and (max-width: 1240px) {
493+
body.docs-ndl .widget.banner .sectionbody {
494+
background-image: none !important;
495+
}
496+
497+
body.docs-ndl .widget.banner .sectionbody > div.openblock {
498+
flex: 0 0 100%;
499+
}
493500
}
494501

495502
@media screen and (min-width: 1024px) {
@@ -519,7 +526,7 @@ body.docs-ndl .highlights .sectionbody > div.openblock {
519526
}
520527

521528
body.docs-ndl .highlights .sectionbody > div.icon {
522-
flex: 0 1 40%;
529+
flex: 0 1 60%;
523530
padding-top: 1rem;
524531
padding-bottom: 1rem;
525532
padding-left: 8rem;
@@ -613,7 +620,7 @@ body.docs-ndl .sect2 {
613620
}
614621

615622
body.docs-ndl .cards .sectionbody > div.sect2 {
616-
flex: 0 1 29%;
623+
flex: 0 1 32%;
617624
/* margin-right: 1rem; */
618625
}
619626

@@ -718,14 +725,13 @@ body.docs-ndl .sect2 a > h3 {
718725

719726
body.docs-ndl .cards .sect2 .icon,
720727
body.docs-ndl .widget .icon {
721-
order: 1;
722728
padding: 0;
723729
margin: 0;
724730
width: 100%;
725731
}
726732

727733
body.docs-ndl .cards .sect2 .icon,
728-
body.docs-ndl .widget2 .icon {
734+
body.docs-ndl .widget.banner .icon {
729735
order: 1;
730736
padding: 0;
731737
margin: 0;
@@ -761,6 +767,16 @@ body.docs-ndl .widget.highlights .icon {
761767
padding: 2rem;
762768
}
763769

770+
/* For the 1st, 3rd etc highlights, move the image to the right */
771+
body.docs-ndl .widget.highlights:nth-of-type(odd) .icon {
772+
order: 1;
773+
}
774+
775+
/* We can use this rule to apply styles to the 2nd, 4th highlights etc widget */
776+
body.docs-ndl .widget.highlights:nth-of-type(even) .openblock {
777+
/* margin-right:40px; */
778+
}
779+
764780
body.docs-ndl .widget3.highlights .icon {
765781
padding: 2rem;
766782
}
@@ -920,14 +936,14 @@ body.docs-ndl .cards .sect2 .ulist ul li {
920936
justify-content: center;
921937
}
922938

923-
body.docs-ndl .widget2 .sectionbody {
939+
body.docs-ndl .widget.banner .sectionbody {
924940
row-gap: 2rem;
925941
}
926942

927-
body.docs-ndl .widget2 .sectionbody > div {
943+
/* body.docs-ndl .widget.banner .sectionbody > div {
928944
flex: 0 1 100%;
929945
justify-content: center;
930-
}
946+
} */
931947

932948
body.docs-ndl .widget3 .sectionbody {
933949
row-gap: 2rem;
@@ -947,11 +963,6 @@ body.docs-ndl .cards .sect2 .ulist ul li {
947963
flex: 0 0 48%;
948964
}
949965

950-
body.docs-ndl .widget2 .sectionbody .sect2,
951-
body.docs-ndl.sub .widget2 .sectionbody .sect2 {
952-
flex: 0 0 48%;
953-
}
954-
955966
body.docs-ndl .widget3 .sectionbody .sect2,
956967
body.docs-ndl.sub .widget3 .sectionbody .sect2 {
957968
flex: 0 0 48%;

src/css/themes.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,19 @@ body.docs .doc .button:hover {
6464
}
6565

6666
body.docs .banner .button {
67+
display: flex;
68+
width: fit-content;
6769
background: var(--banner-background-color);
70+
border: 1px solid var(--banner-background-color);
6871
color: var(--colors-baltic-60);
6972
}
7073

7174
body.docs .banner .button:hover {
7275
background: rgba(var(--banner-background-color));
76+
border: 1px solid var(--banner-hover-color);
77+
}
78+
79+
body.docs .banner .button:hover a {
7380
color: var(--banner-hover-color);
7481
}
7582

0 commit comments

Comments
 (0)