From c134d7b0466c958972f934a97472e86df174787c Mon Sep 17 00:00:00 2001 From: lidiazuin Date: Thu, 27 Feb 2025 13:15:09 +0100 Subject: [PATCH 1/4] Making all card styles clickable --- preview-src/docs-ndl.adoc | 2 +- preview-src/ux-banner.svg | 6 ++++++ src/css/docs-ndl.css | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 preview-src/ux-banner.svg diff --git a/preview-src/docs-ndl.adoc b/preview-src/docs-ndl.adoc index 3204c4e6..5cb9683e 100644 --- a/preview-src/docs-ndl.adoc +++ b/preview-src/docs-ndl.adoc @@ -24,7 +24,7 @@ Learn more about graph databases and start working with your data using Neo4j to xref:tutorials:index.adoc[Get started] -- -[.cards.selectable] +[.cards] == CTA cards [role=label--featured] diff --git a/preview-src/ux-banner.svg b/preview-src/ux-banner.svg new file mode 100644 index 00000000..7b65782c --- /dev/null +++ b/preview-src/ux-banner.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/css/docs-ndl.css b/src/css/docs-ndl.css index 4ff62173..35b0f090 100644 --- a/src/css/docs-ndl.css +++ b/src/css/docs-ndl.css @@ -651,6 +651,7 @@ body.docs-ndl .lists .sect2 { line-height: 2rem; } +body.docs-ndl .cards .sect2:hover, body.docs-ndl .cards.selectable .sect2:hover, body.docs-ndl .cards .sect2.selectable:hover { transition: 0.1s linear; From 7103bd8966118fe6fbcd4de758154be200a2b52c Mon Sep 17 00:00:00 2001 From: lidiazuin Date: Thu, 27 Feb 2025 13:15:56 +0100 Subject: [PATCH 2/4] remove unrelated file --- preview-src/ux-banner.svg | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 preview-src/ux-banner.svg diff --git a/preview-src/ux-banner.svg b/preview-src/ux-banner.svg deleted file mode 100644 index 7b65782c..00000000 --- a/preview-src/ux-banner.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - From 70d2088e21f0a39dc56adda4a6d470b6b1e122db Mon Sep 17 00:00:00 2001 From: lidiazuin Date: Wed, 5 Mar 2025 10:58:37 +0100 Subject: [PATCH 3/4] adding link class for homepage --- preview-src/docs-ndl.adoc | 14 +++++++------- src/css/docs-ndl.css | 5 ++++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/preview-src/docs-ndl.adoc b/preview-src/docs-ndl.adoc index 5cb9683e..f58bd804 100644 --- a/preview-src/docs-ndl.adoc +++ b/preview-src/docs-ndl.adoc @@ -24,7 +24,7 @@ Learn more about graph databases and start working with your data using Neo4j to xref:tutorials:index.adoc[Get started] -- -[.cards] +[.cards.selectable] == CTA cards [role=label--featured] @@ -36,7 +36,7 @@ image:icons/ndl/deployment-options.svg[] [.description] Choose from self-managed local and cloud deployments, or fully-managed options. -[.link] +[.link.display] link:https://www.neo4j.com/docs/deployment-options[Get a Neo4j instance] === Cypher @@ -47,7 +47,7 @@ image:icons/ndl/cypher-manual.svg[] [.description] Learn how to write Cypher, Neo4j's declarative query language. -[.link] +[.link.display] link:https://www.neo4j.com/docs/cypher-manual/[Query your data] === Neo4j Tools @@ -58,7 +58,7 @@ image:icons/ndl/neo4j-tools.svg[] [.description] Use Neo4j's tools to explore, visualize, manage, monitor, and import data to your graph. -[.link] +[.link.display] link:https://www.neo4j.com/docs/tools[Discover the products] === Graph Data Science @@ -69,7 +69,7 @@ image:icons/ndl/data-science.svg[] [.description] Run graph algorithms and machine learning models to analyze your data at scale. -[.link] +[.link.display] xref:gds:index.adoc[Unlock insights from data] === Create applications @@ -80,7 +80,7 @@ image:icons/ndl/create-applications.svg[] [.description] Discover the client libraries and APIs to develop applications with Neo4j and AuraDB. -[.link] +[.link.display] xref:create-applications:index.adoc[Start developing] === Connect data sources @@ -91,7 +91,7 @@ image:icons/ndl/connectors.svg[] [.description] Learn how to use connectors and other tools to connect Neo4j with other data sources. -[.link] +[.link.display] xref:connectors:index.adoc[Connect to Neo4j] diff --git a/src/css/docs-ndl.css b/src/css/docs-ndl.css index 35b0f090..83371c07 100644 --- a/src/css/docs-ndl.css +++ b/src/css/docs-ndl.css @@ -651,7 +651,6 @@ body.docs-ndl .lists .sect2 { line-height: 2rem; } -body.docs-ndl .cards .sect2:hover, body.docs-ndl .cards.selectable .sect2:hover, body.docs-ndl .cards .sect2.selectable:hover { transition: 0.1s linear; @@ -830,6 +829,10 @@ body.docs-ndl .cards .sect2.selectable .paragraph.link { display: none; } +body.docs-ndl .cards .sect2.selectable .paragraph.link.display { + display: flex; +} + body.docs-ndl .cards.selectable .sect2 .paragraph.link, body.docs-ndl .cards:not(.selectable) .sect2 .paragraph.link { box-sizing: border-box; From 0894948ebb2dbdf3c99f46897370a90b0ea37187 Mon Sep 17 00:00:00 2001 From: lidiazuin Date: Wed, 5 Mar 2025 11:45:06 +0100 Subject: [PATCH 4/4] update after review --- src/css/docs-ndl.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/docs-ndl.css b/src/css/docs-ndl.css index 83371c07..c37f2da8 100644 --- a/src/css/docs-ndl.css +++ b/src/css/docs-ndl.css @@ -825,7 +825,7 @@ body.docs-ndl .cards .sect2 .paragraph:not(.icon) { /* flex-grow: 1; */ } -body.docs-ndl .cards .sect2.selectable .paragraph.link { +body.docs-ndl .cards .sect2.selectable .paragraph.link:not(.display) { display: none; }