From da3f0338f20e6a1d188dffded93d86cf9fac253a Mon Sep 17 00:00:00 2001 From: Arpita Jaiswal Date: Tue, 9 May 2023 23:53:16 +0530 Subject: [PATCH] Update lib.ftd: Added `ftd.desktop` and `ftd.mobile` --- lib.ftd | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/lib.ftd b/lib.ftd index 00ff04e..6088a36 100644 --- a/lib.ftd +++ b/lib.ftd @@ -621,11 +621,11 @@ width: $metrics-card.width -- component features-card: -children fearures-wrap: +children features-wrap: integer width: $width -- lib3.features-card: -fearures-wrap: $features-card.fearures-wrap +features-wrap: $features-card.features-wrap width: $features-card.width -- end: features-card @@ -1518,16 +1518,22 @@ boolean is-active: -- ftd.column: +-- ftd.desktop: + -- subsections-links-desktop: $subsections-links.title -if: { ftd.device != "mobile" } item: $subsections-links.item url: $subsections-links.url is-active: $subsections-links.is-active +-- end: ftd.desktop + +-- ftd.mobile: + -- subsections-links-mobile: -if: { ftd.device == "mobile" } item: $subsections-links.item +-- end: ftd.mobile + -- end: ftd.column -- end: subsections-links @@ -1604,14 +1610,21 @@ pr.toc-item item: -- ftd.column: +-- ftd.desktop: + -- subsections-items-desktop: -if: { ftd.device != "mobile" } item: $subsections-items.item +-- end: ftd.desktop + + +-- ftd.mobile: + -- subsections-items-mobile: -if: { ftd.device == "mobile" } item: $subsections-items.item +-- end: ftd.mobile + -- end: ftd.column -- end: subsections-items