Skip to content

Commit 73c0a3f

Browse files
committed
Fixes to links alignment and clickable area of selectable cards
1 parent 378b2ae commit 73c0a3f

File tree

3 files changed

+31
-37
lines changed

3 files changed

+31
-37
lines changed

preview-src/docs-ndl.adoc

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,24 @@ Learn more about graph databases and start working with your data using Neo4j to
2424
xref:tutorials:index.adoc[Get started]
2525
--
2626

27-
[.cards.icon-l]
27+
[.cards.selectable]
2828
== CTA cards
2929

3030
[.featured.label--featured]
3131
=== Deployment options
3232

33-
[.icon]
33+
[.icon.icon-l]
3434
image:icons/ndl/deployment-options.svg[]
3535

3636
[.description]
37-
Choose from self-managed local and cloud deployments, or fully-managed options. See how to run Neo4j on Docker or Kubernetes.
37+
Choose from self-managed local and cloud deployments, or fully-managed options.
38+
39+
[.link]
40+
link:https://www.neo4j.com/docs/deployment-options[Get a Neo4j instance]
3841

3942
=== Cypher
4043

41-
[.icon]
44+
[.icon.icon-l]
4245
image:icons/ndl/cypher-manual.svg[]
4346

4447
[.description]
@@ -49,18 +52,18 @@ link:https://www.neo4j.com/docs/cypher-manual/[Query your data]
4952

5053
=== Neo4j Tools
5154

52-
[.icon]
55+
[.icon.icon-l]
5356
image:icons/ndl/neo4j-tools.svg[]
5457

5558
[.description]
5659
Use Neo4j's tools to explore, visualize, manage, monitor, and import data to your graph.
5760

5861
[.link]
59-
xref:tools:index.adoc[Discover the products]
62+
link:https://www.neo4j.com/docs/tools[Discover the products]
6063

6164
=== Graph Data Science
6265

63-
[.icon]
66+
[.icon.icon-l]
6467
image:icons/ndl/data-science.svg[]
6568

6669
[.description]
@@ -71,7 +74,7 @@ xref:gds:index.adoc[Unlock insights from data]
7174

7275
=== Create applications
7376

74-
[.icon]
77+
[.icon.icon-l]
7578
image:icons/ndl/create-applications.svg[]
7679

7780
[.description]
@@ -82,7 +85,7 @@ xref:create-applications:index.adoc[Start developing]
8285

8386
=== Connect data sources
8487

85-
[.icon]
88+
[.icon.icon-l]
8689
image:icons/ndl/connectors.svg[]
8790

8891
[.description]
@@ -217,7 +220,7 @@ link:https://discord.com/invite/neo4j[Discord]
217220
image:icons/ndl/icon-developercenter.svg[]
218221

219222
[.link]
220-
link:https://neo4j.com/developer-blog/[Developer blog] link:https://www.neo4.com/docs/reference/resources[Other resources]
223+
link:https://neo4j.com/developer-blog/[Developer blog] link:https://www.neo4j.com/docs/reference/resources[Other resources]
221224

222225

223226

src/css/doc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ body {
174174

175175
.doc a,
176176
.tooltip-body a {
177-
font-weight: 600;
177+
font-weight: 400;
178178
color: var(--link-font-color);
179179
}
180180

src/css/docs-ndl.css

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ body.docs-ndl .widget .sectionbody {
219219
row-gap: 0;
220220
justify-content: center;
221221
align-content: center;
222-
border: 1px solid var(--panel-border-color);
223222
}
224223

225224
body.docs-ndl .widget.lists .sectionbody {
@@ -405,6 +404,7 @@ body.docs-ndl .paragraph.caption {
405404
font-family: var(--header-font-family);
406405
font-size: var(--doc-font-size-h2);
407406
font-weight: var(--font-weight-normal);
407+
letter-spacing: 0.25px;
408408
}
409409

410410
body.docs-ndl .paragraph.footer-link {
@@ -435,18 +435,17 @@ body.docs-ndl .cards .sect2.selectable {
435435
cursor: pointer;
436436
}
437437

438-
body.docs-ndl .cards .sect2.selectable a {
439-
text-decoration: none;
438+
body.docs-ndl .cards .sect2.selectable .description {
439+
color: var(--doc-font-color);
440+
font-weight: 200;
440441
}
441442

442-
body.docs-ndl .cards .sect2.selectable a:hover {
443-
transition: 0.1s linear;
444-
border: 1px solid var(--page-version-missing-font-color);
445-
box-shadow: 0 1px 2px 0 rgba(26, 27, 29, 0.18);
443+
body.docs-ndl .cards .sect2.selectable a {
444+
text-decoration: solid;
446445
}
447446

448447
body.docs-ndl .cards .sect2.selectable:hover div.description {
449-
text-decoration: underline;
448+
text-decoration: none;
450449
}
451450

452451
/* banner */
@@ -609,22 +608,12 @@ body.docs-ndl .lists .sect2 {
609608
/* justify-content: space-between; */
610609
gap: 8px;
611610
/* min-width: 30%; */
612-
padding: 1rem;
611+
padding: 24px;
613612
background: var(--color-white);
614613
line-height: 2rem;
615614
}
616615

617-
body.docs-ndl .cards .sect2 a::before,
618-
body.docs-ndl .cards:not(.selectable) .sect2 a::before {
619-
content: "";
620-
position: absolute;
621-
top: 0;
622-
right: 0;
623-
bottom: 0;
624-
left: 0;
625-
}
626-
627-
body.docs-ndl .cards:not(.selectable) .sect2:hover {
616+
body.docs-ndl .cards.selectable .sect2:hover {
628617
transition: 0.1s linear;
629618
border: 1px solid var(--page-version-missing-font-color);
630619
box-shadow: 0 1px 2px 0 rgba(26, 27, 29, 0.18);
@@ -651,11 +640,12 @@ body.docs-ndl .cards .sectionbody > div.sect2.labs:not(.selectable) {
651640
}
652641

653642
body.docs-ndl .cards .sectionbody > div.sect2.featured > a,
643+
body.docs-ndl .cards .sectionbody > div.sect2.featured,
644+
body.docs-ndl .cards.selectable .sectionbody > div.sect2.featured,
654645
body.docs-ndl .cards .sectionbody > div.sect2.featured:not(.selectable) {
655646
border: 1px solid var(--success-color);
656647
box-shadow: 0 2px 4px 0 rgba(63, 120, 36, 0.5), 0 1px 2px 0 rgba(63, 120, 36, 0.2);
657648
}
658-
659649
/* add a labs label to a title in a card */
660650
body.docs-ndl .header-label-container > div.labels {
661651
display: inline-flex;
@@ -754,7 +744,7 @@ body.docs-ndl body.docs-ndl .cards .sect2 .icon img {
754744
padding: 0;
755745
}
756746

757-
body.docs-ndl .cards.icon-l .sect2 .icon img {
747+
body.docs-ndl .cards .sect2 .icon.icon-l img {
758748
width: 6rem;
759749
height: 6rem;
760750
margin-bottom: 9px;
@@ -803,13 +793,14 @@ body.docs-ndl .cards .sect2 .paragraph:not(.icon) {
803793
}
804794

805795
body.docs-ndl .cards .sect2.selectable .paragraph.link {
806-
display: none;
796+
display: flex;
807797
}
808798

799+
body.docs-ndl .cards.selectable .sect2 .paragraph.link,
809800
body.docs-ndl .cards:not(.selectable) .sect2 .paragraph.link {
810801
box-sizing: border-box;
811-
margin-top: 30px;
812-
margin-bottom: 9px;
802+
padding-top: 30px;
803+
margin-top: auto;
813804
}
814805

815806
body.docs-ndl .bottom-cards:not(.selectable) .sect2 .paragraph.link {
@@ -818,7 +809,7 @@ body.docs-ndl .bottom-cards:not(.selectable) .sect2 .paragraph.link {
818809
}
819810

820811
body.docs-ndl .cards .sect2 .paragraph.category {
821-
display: none;
812+
display: flex;
822813
}
823814

824815
body.docs-ndl .plain-links a.external::after {

0 commit comments

Comments
 (0)