generated from fastn-stack/fastn-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ftd
1754 lines (1234 loc) · 36.2 KB
/
index.ftd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- import: fifthtry.github.io/package-doc/doc as pd
-- import: fastn
-- import: fastn/processors as pr
-- import: fifthtry.github.io/simple-header/assets
-- import: fifthtry.github.io/product-switcher as ps
-- import: fifthtry.github.io/package-doc/code-block as cb
-- ftd.image-src site-logo:
light: https://www.fifthtry.com/-/fifthtry.com/assets/images/logo-fifthtry-dark.svg
dark: https://www.fifthtry.com/-/fifthtry.com/assets/images/logo-fifthtry-dark.svg
-- $ps.current-product: 2
-- boolean login-button: false
-- boolean pricing-cta: false
-- string site-url: index.html
-- string site-name: Doc Site
-- pr.sitemap-data sitemap:
$processor$: pr.sitemap
-- pr.toc-item list sections:
-- pr.toc-item list sub-sections:
-- pr.toc-item list extra:
-- pr.toc-item list toc:
-- pr.toc-item list footer-toc:
-- pr.toc-item list footer-list:
$processor$: pr.toc
-- header:
login-button: $login-button
pricing-cta: $pricing-cta
login-btn-txt: Login
sign-in-txt: Sign-in
sections: $sitemap.sections
sub-sections: $sitemap.subsections
current-section: $sitemap.current-section
current-subsection: $sitemap.current-subsection
current-page: $sitemap.current-page
toc: $sitemap.toc
extra: $extra
site-logo: $site-logo
site-url: $site-url
site-name: $site-name
logo-height: 38
products: $ps.example-product
-- component header:
optional ftd.image-src site-logo:
optional ftd.image-src brand-site-logo:
string site-url: /
optional string site-name:
optional string brand-site-url:
optional string brand-site-name:
boolean parent-brand: false
boolean pricing-cta: false
ftd.image-src menu-icon: $assets.files.static.header.hamburger.svg
string current-url: /header3/
pr.toc-item list sections:
boolean $sidebar-open: false
pr.toc-item list sub-sections:
pr.toc-item list toc:
optional pr.toc-item current-section:
optional pr.toc-item current-subsection:
optional pr.toc-item current-page:
pr.toc-item list footer-nav:
boolean $show-section: false
pr.toc-item list extra:
ps.product-data list products:
integer logo-width: 120
integer logo-height: 44
string link-style: regular
ftd.color background: $inherited.colors.background.base
ftd.color text-color: $inherited.colors.text-strong
ftd.color active-text-color: $inherited.colors.text
ftd.color menu-bg: $inherited.colors.background.base
ftd.color menu-hover-bg: $inherited.colors.background.base
ftd.color menu-link: $inherited.colors.text
ftd.color menu-link-active: $inherited.colors.text
ftd.color menu-border: $inherited.colors.text
optional string nav-title:
optional string nav-title-url:
optional string nav-sub-title:
optional string nav-sub-title-url:
optional string nav-sub-section-title:
optional string nav-sub-section-title-url:
optional string login-btn-txt: Login
optional string sign-in-txt:
boolean login-button: false
string width: 100
boolean include-dark-mode-switcher: true
boolean include-language-switcher: true
optional string brand-caption:
optional integer max-width: 1400
optional boolean show-sections: true
-- ftd.column:
width: fill-container
-- ftd.column:
if: { header.sidebar-open }
width: fill-container
background.solid: $inherited.colors.background.overlay
height.fixed.calc: 100vh
z-index: 10
-- mobile-sidebar:
if: { header.sidebar-open }
$sidebar-open: $header.sidebar-open
-- end: ftd.column
-- menu-mobile:
if: { header.sidebar-open }
parent-brand: $header.parent-brand
site-logo: $header.site-logo
menu-icon: $header.menu-icon
brand-caption: $header.brand-caption
site-url: $header.site-url
site-name: $header.site-name
current-url: $header.current-url
sections: $header.sections
sub-sections: $header.sub-sections
footer-nav: $footer-list
logo-width: $header.logo-width
logo-height: $header.logo-height
link-style: $header.link-style
background: $header.background
text-color: $header.text-color
active-text-color: $header.active-text-color
menu-bg: $header.menu-bg
menu-hover-bg: $header.menu-hover-bg
menu-link: $header.menu-link
menu-link-active: $header.menu-link-active
menu-border: $header.menu-border
login-button: $header.login-button
login-btn-txt: $header.login-btn-txt
sign-in-txt: $header.sign-in-txt
products: $header.products
$show-section: $header.show-section
show-sections: $header.show-sections
-- ftd.desktop:
-- header-desktop:
site-logo: $header.site-logo
site-url: $header.site-url
site-name: $header.site-name
current-url: $header.current-url
parent-brand: $header.parent-brand
sections: $header.sections
brand-caption: $header.brand-caption
pricing-cta: $header.pricing-cta
current-section: $header.current-section
current-page: $header.current-page
current-subsection: $header.current-subsection
sub-sections: $header.sub-sections
include-dark-mode-switcher: $header.include-dark-mode-switcher
include-language-switcher: $header.include-language-switcher
logo-width: $header.logo-width
logo-height: $header.logo-height
link-style: $header.link-style
background: $header.background
extra: $header.extra
text-color: $header.text-color
active-text-color: $header.active-text-color
menu-bg: $header.menu-bg
menu-hover-bg: $header.menu-hover-bg
menu-link: $header.menu-link
menu-link-active: $header.menu-link-active
menu-border: $header.menu-border
login-button: $header.login-button
login-btn-txt: $header.login-btn-txt
sign-in-txt: $header.sign-in-txt
nav-title: $header.nav-title
nav-title-url: $header.nav-title-url
nav-sub-title: $header.nav-sub-title
nav-sub-title-url: $header.nav-sub-title-url
nav-sub-section-title: $header.nav-sub-section-title
nav-sub-section-title-url: $header.nav-sub-section-title
products: $header.products
max-width: $header.max-width
show-sections: $header.show-sections
-- end: ftd.desktop
-- ftd.mobile:
-- header-mobile:
site-logo: $header.site-logo
$sidebar-open: $header.sidebar-open
pricing-cta: $header.pricing-cta
brand-site-logo: $header.brand-site-logo
brand-site-name: $header.brand-site-name
brand-site-url: $header.brand-site-url
parent-brand: $header.parent-brand
menu-icon: $header.menu-icon
site-url: $header.site-url
site-name: $header.site-name
current-url: $header.current-url
sections: $header.sections
sub-sections: $header.sub-sections
toc: $header.toc
current-section: $header.current-section
current-page: $header.current-page
current-subsection: $header.current-subsection
include-dark-mode-switcher: $header.include-dark-mode-switcher
include-language-switcher: $header.include-language-switcher
menu-border: $header.menu-border
menu-bg: $header.menu-bg
menu-hover-bg: $header.menu-hover-bg
menu-link: $header.menu-link
menu-link-active: $header.menu-link-active
logo-width: $header.logo-width
logo-height: $header.logo-height
link-style: $header.link-style
background: $header.background
text-color: $header.text-color
active-text-color: $header.active-text-color
products: $header.products
$show-section: $header.show-section
show-sections: $header.show-sections
-- end: ftd.mobile
-- end: ftd.column
-- end: header
-- component mobile-sidebar:
boolean $sidebar-open:
-- ftd.column:
anchor: window
top.px: 0
bottom.px: 0
left.px: 0
right.px: 0
background.solid: $inherited.colors.background.overlay
z-index: 1
$on-click$: $ftd.toggle($a = $mobile-sidebar.sidebar-open)
-- ftd.image:
src: $assets.files.static.header.cross.svg
height.fixed.px: 24
width: hug-content
anchor: window
right.px: 16
top.px: 20
-- end: ftd.column
-- end: mobile-sidebar
-- component menu-mobile:
ps.product-data list products:
optional ftd.image-src site-logo:
ftd.image-src menu-icon:
string site-url:
string current-url:
optional string brand-caption:
optional string site-name:
boolean parent-brand:
pr.toc-item list sections:
boolean $show-section:
pr.toc-item list footer-nav:
pr.toc-item list sub-sections:
integer logo-width: 120
integer logo-height: 44
string link-style:
ftd.color background:
ftd.color text-color:
ftd.color active-text-color:
ftd.color menu-bg:
ftd.color menu-hover-bg:
ftd.color menu-link:
ftd.color menu-link-active:
ftd.color menu-border:
optional string font-family:
optional string login-btn-txt:
optional string sign-in-txt:
boolean login-button:
optional boolean show-sections:
-- ftd.column:
width.fixed.calc: 100% - 48px
height.fixed.calc: 100vh - 0px
anchor: window
left.px: 0
top.px: 0
overflow-y: auto
padding-top.px: 20
padding-horizontal.px: 24
background.solid: $inherited.colors.background.step-1
z-index: 14
-- ftd.row:
width: fill-container
-- ftd.column:
if: { !menu-mobile.parent-brand }
width: fill-container
border-bottom-width.px: 1
border-color: $inherited.colors.border
padding-bottom.px: 24
-- ftd.column:
if: { !menu-mobile.parent-brand }
-- ftd.text: $menu-mobile.brand-caption
if: { menu-mobile.brand-caption != NULL }
role: $inherited.types.fine-print
color: $inherited.colors.text-strong
padding-bottom.px: 8
-- ftd.image:
src: $menu-mobile.site-logo
link: $menu-mobile.site-url
-- end: ftd.column
-- ftd.row:
padding-top.px: 24
-- ps.switcher:
products: $menu-mobile.products
-- end: ftd.row
-- end: ftd.column
-- end: ftd.row
-- ftd.column:
if: { !ftd.is_empty(menu-mobile.sections) }
width: fill-container
border-bottom-width.px if { menu-mobile.login-button }: 1
border-color: $inherited.colors.border
padding-bottom.px: 24
-- header-item-mobile: $obj.title
$loop$: $menu-mobile.sections as $obj
children: $obj.children
is-active: $obj.is-active
link: $obj.url
$show-section: $menu-mobile.show-section
text-color: $menu-mobile.text-color
active-text-color: $menu-mobile.active-text-color
current-url: $menu-mobile.current-url
link-style: $menu-mobile.link-style
menu-hover-bg: $menu-mobile.menu-hover-bg
menu-bg: $menu-mobile.menu-bg
menu-link: $menu-mobile.menu-link
menu-link-active: $menu-mobile.menu-link-active
menu-border: $menu-mobile.menu-border
-- end: ftd.column
-- ftd.column:
width: fill-container
if: { menu-mobile.login-button }
border-bottom-width.px if { !menu-mobile.parent-brand }: 1
border-color: $inherited.colors.border
padding-vertical.px: 24
-- login-signup:
login: $menu-mobile.login-btn-txt
sign-in: $menu-mobile.sign-in-txt
-- end: ftd.column
-- ftd.column:
width: fill-container
padding-vertical.px: 24
if: { !menu-mobile.parent-brand }
-- footer:
url: $obj.url
title: $obj.title
$loop$: $footer-list as $obj
-- end: ftd.column
-- end: ftd.column
-- end: menu-mobile
-- component header-desktop:
ps.product-data list products:
optional ftd.image-src site-logo:
string site-url:
string current-url:
optional string site-name:
optional string brand-caption:
boolean parent-brand:
pr.toc-item list sections:
optional pr.toc-item current-subsection:
pr.toc-item list sub-sections:
boolean pricing-cta:
optional pr.toc-item current-section:
optional pr.toc-item current-page:
boolean include-dark-mode-switcher:
boolean include-language-switcher:
pr.toc-item list extra:
integer logo-width: 120
integer logo-height: 44
string link-style:
optional string login-btn-txt:
optional string sign-in-txt:
ftd.color background: $inherited.colors.background.base
ftd.color text-color:
ftd.color active-text-color:
ftd.color menu-bg:
ftd.color menu-hover-bg:
ftd.color menu-link:
ftd.color menu-link-active:
ftd.color menu-border:
boolean login-button:
optional string nav-title:
optional string nav-title-url:
optional string nav-sub-title:
optional string nav-sub-title-url:
optional string nav-sub-section-title:
optional string nav-sub-section-title-url:
optional integer max-width:
optional boolean show-sections: true
-- ftd.column:
width: fill-container
background.solid: $header-desktop.background
align-content: center
-- ftd.row:
width: fill-container
padding-vertical.px: 24
;;padding-horizontal.px: 48
max-width.fixed.px: $header-desktop.max-width
-- ftd.row:
align-self: start
width: fill-container
-- ftd.column:
if: { !header-desktop.parent-brand }
-- ftd.text:
if: { header-desktop.brand-caption != NULL }
text: $header-desktop.brand-caption
color: $inherited.colors.text-strong
role: $inherited.types.fine-print
-- end: ftd.column
-- ftd.row:
link: $header-desktop.site-url
-- ftd.image:
if: { header-desktop.site-logo != NULL }
src: $header-desktop.site-logo
width: auto
max-width.fixed.px: $header-desktop.logo-width
height.fixed.px: $header-desktop.logo-height
align-self: center
-- ftd.text: $header-desktop.site-name
if: { header-desktop.site-name != NULL }
role: $inherited.types.heading-medium
color: $inherited.colors.text-strong
margin-left.px if { header-desktop.site-logo != NULL }: 16
white-space: nowrap
margin-top.px: 10
-- fallback-title:
if: { header-desktop.site-logo == NULL }
site-name: $header-desktop.site-name
-- end: ftd.row
-- ftd.row:
width: fill-container
border-left-width.px: 1
padding-left.px: 20
margin-left.px: 20
border-color: $inherited.colors.border
-- ps.switcher:
products: $header-desktop.products
-- end: ftd.row
-- end: ftd.row
-- ftd.row:
align-self: center
padding-top.px: 6
-- header-item: $obj.title
$loop$: $header-desktop.sections as $obj
link: $obj.url
is-active: $obj.is-active
text-color: $header-desktop.text-color
active-text-color: $header-desktop.active-text-color
current-url: $header-desktop.current-url
menu-bg: $header-desktop.menu-bg
menu-hover-bg: $header-desktop.menu-hover-bg
menu-link: $header-desktop.menu-link
menu-link-active: $header-desktop.menu-link-active
menu-border: $header-desktop.menu-border
;;icon: $obj.font-icon -- TODO FTD 0.3
-- pricing-cta-text: Try for Free
if: { header-desktop.pricing-cta }
-- ftd.row:
if: { header-desktop.login-button }
-- login-signup:
login: $header-desktop.login-btn-txt
sign-in: $header-desktop.sign-in-txt
-- end: ftd.row
-- end: ftd.row
-- end: ftd.row
-- ftd.row:
width: fill-container
background.solid: $inherited.colors.background.step-1
padding-vertical.px: 24
;;padding-horizontal.px: 48
align-content: center
-- ftd.row:
width: fill-container
max-width.fixed.px: $header-desktop.max-width
-- ftd.row:
width: fill-container
align-self: center
-- ftd.column:
if: { header-desktop.show-sections }
width: fill-container
-- ftd.text: $header-desktop.current-section.title
if: { header-desktop.current-section != NULL }
role: $inherited.types.heading-small
color: $inherited.colors.text-strong
link: $header-desktop.current-section.url
padding-bottom.px: 8
-- ftd.row:
width: fill-container
-- ftd.text: $header-desktop.current-subsection.title
if: { header-desktop.current-subsection != NULL }
role: $inherited.types.label-small
color: $inherited.colors.text-strong
link: $header-desktop.current-subsection.url
white-space: nowrap
margin-right.px: 8
-- ftd.row:
if: { header-desktop.current-subsection != NULL }
-- ftd.row:
if: { header-desktop.current-page != NULL }
-- ftd.text: ->
role: $inherited.types.label-small
color: $inherited.colors.text-strong
white-space: nowrap
margin-right.px: 8
-- end: ftd.row
-- end: ftd.row
-- ftd.text: $header-desktop.current-page.title
if: { header-desktop.current-page != NULL }
role: $inherited.types.label-small
color: $inherited.colors.text-strong
link: $header-desktop.current-page.url
white-space: nowrap
margin-right.px: 8
-- end: ftd.row
-- end: ftd.column
-- end: ftd.row
-- ftd.row:
width: hug-content
align-self: center
-- ftd.row:
width: fill-container
align-self: end
-- header-item: $obj.title
$loop$: $header-desktop.sub-sections as $obj
is-active: $obj.is-active
link: $obj.url
text-color: $header-desktop.text-color
active-text-color: $header-desktop.active-text-color
current-url: $header-desktop.current-url
menu-bg: $header-desktop.menu-bg
menu-link: $header-desktop.menu-link
menu-link-active: $header-desktop.menu-link-active
menu-border: $header-desktop.menu-border
menu-hover-bg: $header-desktop.menu-hover-bg
;; icon: $obj.font-icon -- TODO FTD 0.3
-- end: ftd.row
-- end: ftd.row
-- end: ftd.row
-- end: ftd.row
-- end: ftd.column
-- end: header-desktop
-- component header-mobile:
ps.product-data list products:
ftd.image-src menu-icon:
boolean $sidebar-open: false
optional ftd.image-src site-logo:
optional ftd.image-src brand-site-logo:
optional string brand-site-name:
boolean parent-brand: false
string site-url:
string current-url:
boolean $show-section: false
optional string brand-site-url:
optional string site-name:
pr.toc-item list sections:
pr.toc-item list sub-sections:
pr.toc-item list toc:
optional pr.toc-item current-subsection:
optional pr.toc-item current-section:
optional pr.toc-item current-page:
boolean include-dark-mode-switcher:
boolean include-language-switcher:
integer logo-width: 120
integer logo-height: 44
string link-style:
ftd.color background:
ftd.color text-color:
ftd.color active-text-color:
ftd.color menu-hover-bg:
ftd.color menu-border:
ftd.color menu-bg:
ftd.color menu-link:
ftd.color menu-link-active:
boolean pricing-cta:
boolean show-sections:
-- ftd.column:
width: fill-container
background.solid: $header-mobile.menu-bg
$on-click-outside$: $ftd.set-bool($a = $header-mobile.show-section, v = false)
-- ftd.row:
padding-horizontal.px: 16
padding-vertical.px: 16
width: fill-container
-- ftd.column:
-- ftd.row:
width: fill-container
spacing.fixed.px: 16
-- ftd.image:
if: { header-mobile.site-logo != NULL }
src: $header-mobile.site-logo
width.fixed.px: $header-mobile.logo-width
height.fixed.px: $header-mobile.logo-height
link: $header-mobile.site-url
-- ftd.text: $header-mobile.site-name
if: { header-mobile.site-name != NULL }
role: $inherited.types.copy-large
color: $inherited.colors.text-strong
white-space: nowrap
align-self: center
link: $header-mobile.site-url
-- fallback-title:
if: { header-mobile.site-logo == NULL }
site-name: $header-mobile.site-name
-- ftd.row:
if: { !header-mobile.parent-brand }
spacing.fixed.px: 15
link: $header-mobile.brand-site-url
-- ftd.image:
if: { header-mobile.brand-site-logo != NULL }
src: $header-mobile.brand-site-logo
width: hug-content
height.fixed.px: 36
-- ftd.text: $header-mobile.brand-site-name
if: { header-mobile.brand-site-name != NULL }
role: $inherited.types.copy-regular
color: $inherited.colors.text-strong
-- fallback-title:
if: { header-mobile.brand-site-name != NULL }
site-name: $header-mobile.brand-site-name
-- end: ftd.row
-- ftd.row:
margin-top.px: 8
-- pricing-cta-text: Try for Free
if: { header-mobile.pricing-cta }
-- end: ftd.row
-- end: ftd.row
-- ftd.image:
if: { header-mobile.menu-icon != NULL }
src: $header-mobile.menu-icon
width.fixed.px: 24
align-self: center
$on-click$: $ftd.toggle($a = $header-mobile.sidebar-open)
-- end: ftd.row
-- ftd.row:
width: fill-container
background.solid: $inherited.colors.background.step-1
-- ftd.row:
if: { !header-mobile.show-sections }
width: fill-container
background.solid: $inherited.colors.background.step-1
min-height.fixed.px: 50
-- end: ftd.row
-- ftd.row:
if: { header-mobile.show-sections }
width: fill-container
-- ftd.row:
align-self: start
-- ftd.text: $header-mobile.current-section.title
if: { header-mobile.current-section != NULL }
role: $inherited.types.label-small
color: $inherited.colors.text-strong
link: $header-mobile.current-section.url
background.solid: $inherited.colors.background.step-1
padding-vertical.px: 12
padding-horizontal.px: 22
width: fill-container
white-space: nowrap
-- end: ftd.row
-- ftd.row:
width: fill-container
spacing.fixed.px: 12
padding-top.px: 12
overflow-x: auto
-- header-item-mobile-view: $obj.title
$loop$: $header-mobile.sub-sections as $obj
children: $obj.children
is-active: $obj.is-active
link: $obj.url
text-color: $header-mobile.text-color
active-text-color: $header-mobile.active-text-color
current-url: $header-mobile.current-url
menu-bg: $header-mobile.menu-bg
menu-link: $header-mobile.menu-link
menu-link-active: $header-mobile.menu-link-active
menu-border: $header-mobile.menu-border
menu-hover-bg: $header-mobile.menu-hover-bg
-- end: ftd.row
-- end: ftd.row
-- ftd.row:
width: fill-container
background.solid: $inherited.colors.background.step-1
padding-vertical.px: 20
padding-horizontal.px: 20
if: { header-mobile.show-sections }
$on-click$: $ftd.toggle($a = $header-mobile.show-section, v=true)
-- ftd.row:
width: fill-container
spacing.fixed.px: 4
-- ftd.text: $header-mobile.current-subsection.title
if: { header-mobile.current-subsection != NULL }
role: $inherited.types.label-small
color: $inherited.colors.text-strong
white-space: nowrap
-- ftd.row:
if: { header-mobile.current-subsection != NULL }
-- ftd.row:
if: { header-mobile.current-page != NULL }
-- ftd.text: ->
role: $inherited.types.label-small
color: $inherited.colors.text-strong
white-space: nowrap
-- end: ftd.row
-- end: ftd.row
-- ftd.text: $header-mobile.current-page.title
if: { header-mobile.current-page != NULL }
role: $inherited.types.label-small
color: $inherited.colors.text-strong
white-space: nowrap
-- end: ftd.row
-- ftd.row:
align-self: end
height: fill-container
-- ftd.row:
align-self: center
width: fill-container
-- ftd.image:
if: { !header-mobile.show-section }
src: $assets.files.static.down-arrow-dark.svg
height: hug-content
width.fixed.px: 12
-- ftd.image:
if: { header-mobile.show-section }
src: $assets.files.static.up-arrow-dark.svg
width.fixed.px: 12
-- end: ftd.row
-- end: ftd.row
-- ftd.column:
if: { header-mobile.show-section }
width: fill-container
anchor: parent
background.solid: $inherited.colors.background.step-1
top.px: 48
left.px: 0
z-index: 999
max-height.fixed.px: 300
overflow-y: auto
border-bottom-width.px: 1
border-color: $inherited.colors.border-strong
-- ftd.column:
width: fill-container
spacing.fixed.px: 8
padding-vertical.px: 12
padding-horizontal.px: 24
overflow-x: auto
-- header-toc-item-mobile-view: $obj.title
$loop$: $header-mobile.toc as $obj
children: $obj.children
is-active: $obj.is-active
link: $obj.url
text-color: $header-mobile.text-color
active-text-color: $header-mobile.active-text-color
current-url: $header-mobile.current-url
;; icon: $obj.font-icon -- TODO FTD 0.3
menu-bg: $header-mobile.menu-bg
menu-link: $header-mobile.menu-link
menu-link-active: $header-mobile.menu-link-active
menu-border: $header-mobile.menu-border
menu-hover-bg: $header-mobile.menu-hover-bg
-- end: ftd.column
-- end: ftd.column
-- end: ftd.row
-- end: ftd.column
-- end: header-mobile
-- component site-url:
caption title:
-- ftd.text: $site-url.title
role: $inherited.types.copy-regular
align-self: center
white-space: nowrap
-- end: site-url
-- component fallback-title:
optional string site-name:
-- ftd.row:
-- ftd.text: LOGO