Skip to content

Commit 1a219ab

Browse files
committed
New class .bottom-cards
1 parent 004206f commit 1a219ab

File tree

2 files changed

+47
-7
lines changed

2 files changed

+47
-7
lines changed

preview-src/docs-ndl.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ xref:tutorials:index.adoc[All tutorials]
199199
--
200200

201201

202-
[.cards.icon-s.align-center]
202+
[.bottom-cards]
203203
== Other resources
204204

205205
=== Join forums and discussions

src/css/docs-ndl.css

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ body.docs-ndl .next-steps .sectionbody ul li div.paragraph {
352352

353353
/* explainer */
354354

355-
body.docs-ndl .cards .sectionbody > div.paragraph {
355+
body.docs-ndl .bottom-cards .sectionbody > div.paragraph body.docs-ndl .cards .sectionbody > div.paragraph {
356356
display: flex;
357357
flex: 0 1 100%;
358358
}
@@ -415,20 +415,24 @@ body.docs-ndl .banner .paragraph.description {
415415

416416
/* selectable cards */
417417

418+
body.docs-ndl .bottom-cards .sect2.selectable,
418419
body.docs-ndl .cards .sect2.selectable {
419420
cursor: pointer;
420421
}
421422

423+
body.docs-ndl .bottom-cards .sect2.selectable a,
422424
body.docs-ndl .cards .sect2.selectable a {
423425
text-decoration: none;
424426
}
425427

428+
body.docs-ndl .bottom-cards .sect2.selectable a:hover,
426429
body.docs-ndl .cards .sect2.selectable a:hover {
427430
transform: scale(1.02);
428431
transition: 0.1s linear;
429432
box-shadow: 0 4px 8px 0 rgba(12, 26, 37, 0.08);
430433
}
431434

435+
body.docs-ndl .bottom-cards .sect2.selectable:hover div.description,
432436
body.docs-ndl .cards .sect2.selectable:hover div.description {
433437
text-decoration: underline;
434438
}
@@ -583,6 +587,11 @@ body.docs-ndl .sect2 {
583587
flex-direction: column;
584588
}
585589

590+
body.docs-ndl .bottom-cards .sectionbody > div.sect2 {
591+
flex: 0 1 49%;
592+
/* margin-right: 1rem; */
593+
}
594+
586595
body.docs-ndl .cards .sectionbody > div.sect2 {
587596
flex: 0 1 32%;
588597
/* margin-right: 1rem; */
@@ -592,6 +601,9 @@ body.docs-ndl.explainer .sectionbody > div.sect2 {
592601
flex: 0 1 49%;
593602
}
594603

604+
body.docs-ndl .bottom-cards .sect2 > a,
605+
body.docs-ndl .bottom-cards .sect2.not-selectable,
606+
body.docs-ndl .bottom-cards:not(.selectable) .sect2,
595607
body.docs-ndl .cards .sect2 > a,
596608
body.docs-ndl .cards .sect2.not-selectable,
597609
body.docs-ndl .cards:not(.selectable) .sect2,
@@ -642,6 +654,9 @@ body.docs-ndl .header-label-container > div.labels {
642654
margin-left: auto;
643655
}
644656

657+
body.docs-ndl .bottom-cards .sect2 > a,
658+
body.docs-ndl .bottom-cards .sect2.not-selectable,
659+
body.docs-ndl .bottom-cards:not(.selectable) .sect2,
645660
body.docs-ndl .cards .sect2 > a,
646661
body.docs-ndl .cards .sect2.not-selectable,
647662
body.docs-ndl .cards:not(.selectable) .sect2,
@@ -651,6 +666,7 @@ body.docs-ndl .widget:not(.video) {
651666
border-radius: 1rem;
652667
}
653668

669+
body.docs-ndl .bottom-cards .sect2 > a,
654670
body.docs-ndl .cards .sect2 > a {
655671
color: var(--neutral-color);
656672
font-weight: var(--font-weight-normal);
@@ -662,11 +678,14 @@ body.docs-ndl.color-docs .sect2 {
662678
background: var(--color-docs);
663679
}
664680

681+
body.docs-ndl.color-docs .bottom-cards .sect2 h3,
682+
body.docs-ndl.color-docs .bottom-cards .sect2 .description,
665683
body.docs-ndl.color-docs .cards .sect2 h3,
666684
body.docs-ndl.color-docs .cards .sect2 .description {
667685
color: rgba(var(--colors-neutral-10));
668686
}
669687

688+
body.docs-ndl .bottom-cards .sect2 .paragraph,
670689
body.docs-ndl .cards .sect2 .paragraph {
671690
margin: 0;
672691
}
@@ -675,6 +694,8 @@ body.docs-ndl .cards .sect2 .paragraph {
675694
min-height: 200px;
676695
} */
677696

697+
body.docs-ndl .bottom-cards .sect2 a > h3,
698+
body.docs-ndl .bottom-cards .sect2 a > div,
678699
body.docs-ndl .cards .sect2 a > h3,
679700
body.docs-ndl .cards .sect2 a > div {
680701
margin: 0;
@@ -687,13 +708,15 @@ body.docs-ndl .sect2 a > h3 {
687708
display: flex;
688709
}
689710

711+
body.docs-ndl .bottom-cards .sect2 .icon,
690712
body.docs-ndl .cards .sect2 .icon,
691713
body.docs-ndl .widget .icon {
692714
padding: 0;
693715
margin: 0;
694716
width: 100%;
695717
}
696718

719+
body.docs-ndl .bottom-cards .sect2 .icon,
697720
body.docs-ndl .cards .sect2 .icon,
698721
body.docs-ndl .widget.banner .icon {
699722
order: 1;
@@ -702,19 +725,22 @@ body.docs-ndl .widget.banner .icon {
702725
width: 100%;
703726
}
704727

728+
body.docs-ndl .bottom-cards .sect2 .icon p,
705729
body.docs-ndl .cards .sect2 .icon p {
706730
display: flex;
707731
width: -webkit-fill-available;
708732
justify-content: space-between;
709733
}
710734

735+
body.docs-ndl .bottom-cards .sect2 .icon p div.labels,
711736
body.docs-ndl .cards .sect2 .icon p div.labels {
712737
display: flex;
713738
flex-direction: row;
714739
gap: 0.25rem;
715740
height: min-content;
716741
}
717742

743+
body.docs-ndl .bottom-cards .icon span,
718744
body.docs-ndl .cards .icon span {
719745
display: flex;
720746
}
@@ -733,17 +759,14 @@ body.docs-ndl .widget.highlights:nth-of-type(even) .openblock {
733759
/* margin-right:40px; */
734760
}
735761

736-
/* For the bottom cards */
737-
body.docs-ndl .cards:nth-last-child(-n+2) .sectionbody>div.sect2 {
738-
flex: 0 0 49%;
739-
}
740-
762+
body.docs-ndl body.docs-ndl .bottom-cards .sect2 .icon img,
741763
body.docs-ndl body.docs-ndl .cards .sect2 .icon img {
742764
width: 4rem;
743765
height: 4rem;
744766
padding: 0;
745767
}
746768

769+
body.docs-ndl .bottom-cards.icon-l .sect2 .icon img,
747770
body.docs-ndl .cards.icon-l .sect2 .icon img {
748771
width: 6rem;
749772
height: 6rem;
@@ -761,6 +784,7 @@ body.docs-ndl .lists .sect2 .icon img path {
761784
fill: rgba(var(--colors-baltic-30));
762785
}
763786

787+
body.docs-ndl .bottom-cards .sect2 h3,
764788
body.docs-ndl .cards .sect2 h3,
765789
body.docs-ndl .lists .sect2 h3 {
766790
/* flex-grow: 1; */
@@ -770,10 +794,12 @@ body.docs-ndl .lists .sect2 h3 {
770794
width: -webkit-fill-available;
771795
}
772796

797+
body.docs-ndl .bottom-cards .sect2 h3 .anchor::before,
773798
body.docs-ndl .cards .sect2 h3 .anchor::before {
774799
display: none;
775800
}
776801

802+
body.docs-ndl .bottom-cards .sect2 .paragraph:not(.icon),
777803
body.docs-ndl .cards .sect2 .paragraph:not(.icon) {
778804
font-size: var(--font-size-body-medium);
779805
line-height: 1.5;
@@ -791,20 +817,24 @@ body.docs-ndl .cards .sect2 .paragraph:not(.icon) {
791817
/* flex-grow: 1; */
792818
}
793819

820+
body.docs-ndl .bottom-cards .sect2.selectable .paragraph.link,
794821
body.docs-ndl .cards .sect2.selectable .paragraph.link {
795822
display: none;
796823
}
797824

825+
body.docs-ndl .bottom-cards:not(.selectable) .sect2 .paragraph.link,
798826
body.docs-ndl .cards:not(.selectable) .sect2 .paragraph.link {
799827
margin-top: auto;
800828
}
801829

830+
body.docs-ndl .bottom-cards:not(.selectable) .sect2 .paragraph.link a,
802831
body.docs-ndl .cards:not(.selectable) .sect2 .paragraph.link a {
803832
font-weight: 500;
804833
margin-right: 1rem;
805834
/* text-decoration: none; */
806835
}
807836

837+
body.docs-ndl .bottom-cards .sect2 .paragraph.category,
808838
body.docs-ndl .cards .sect2 .paragraph.category {
809839
display: none;
810840
}
@@ -822,6 +852,7 @@ body.docs-ndl .highlights a {
822852
}
823853

824854
body.docs-ndl .highlights a::after,
855+
body.docs-ndl .bottom-cards .link a::after,
825856
body.docs-ndl .cards .link a::after {
826857
margin-left: 0.5rem;
827858
content: "→";
@@ -837,6 +868,7 @@ body.docs-ndl .highlights a::after {
837868
float: right;
838869
}
839870

871+
body.docs-ndl .bottom-cards .sect2 .ulist,
840872
body.docs-ndl .cards .sect2 .ulist {
841873
display: inline-flex;
842874
order: 4;
@@ -846,10 +878,12 @@ body.docs-ndl .cards .sect2 .ulist {
846878
text-align: left;
847879
}
848880

881+
body.docs-ndl .bottom-cards .sect2 .ulist ul,
849882
body.docs-ndl .cards .sect2 .ulist ul {
850883
padding: 0;
851884
}
852885

886+
body.docs-ndl .bottom-cards .sect2 .ulist ul li,
853887
body.docs-ndl .cards .sect2 .ulist ul li {
854888
list-style-type: none;
855889
margin: 0.5rem 0 0;
@@ -876,10 +910,12 @@ body.docs-ndl .cards .sect2 .ulist ul li {
876910
z-index: 30;
877911
}
878912

913+
body.docs-ndl .bottom-cards .sectionbody > div.sect2,
879914
body.docs-ndl .cards .sectionbody > div.sect2 {
880915
flex: 0 1 49%;
881916
}
882917

918+
body.docs-ndl.explainer .bottom-cards .sect2 h3,
883919
body.docs-ndl.explainer .cards .sect2 h3 {
884920
text-align: left;
885921
}
@@ -940,19 +976,23 @@ body.docs-ndl .cards .sect2 .ulist ul li {
940976
margin: 1rem auto;
941977
}
942978

979+
body.docs-ndl .bottom-cards .sect2 > a,
943980
body.docs-ndl .cards .sect2 > a {
944981
align-items: center;
945982
}
946983

984+
body.docs-ndl.explainer .bottom-cards .sect2 > a,
947985
body.docs-ndl.explainer .cards .sect2 > a {
948986
align-items: flex-start;
949987
padding: 1rem;
950988
}
951989

990+
body.docs-ndl.explainer .bottom-cards .sect2 .paragraph:not(.icon),
952991
body.docs-ndl.explainer .cards .sect2 .paragraph:not(.icon) {
953992
text-align: left;
954993
}
955994

995+
body.docs-ndl .bottom-cards .sectionbody > div.sect2,
956996
body.docs-ndl .cards .sectionbody > div.sect2 {
957997
/* min-width: 90%; */
958998
flex: 1 1 100%;

0 commit comments

Comments
 (0)