generated from fastn-stack/fastn-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidenote.ftd
121 lines (78 loc) · 2.8 KB
/
sidenote.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
-- import: fifthtry.github.io/package-doc/doc as pd
-- ftd.type copy-tight-medium-desktop:
line-height.px: 20
size.px: 16
letter-spacing.fixed.px: 0
-- ftd.responsive-type copy-tight-medium:
desktop: $copy-tight-medium-desktop
mobile: $copy-tight-medium-desktop
weight: 600
-- ftd.type copy-tight-bold-desktop:
line-height.px: 20
size.px: 16
letter-spacing.fixed.px: 0
weight: 700
-- ftd.responsive-type copy-tight-bold:
desktop: $copy-tight-bold-desktop
mobile: $copy-tight-bold-desktop
-- bling.page: `sidenote` and it's Usage
`-- sidenote` can be used as part of blog posts.
-- pd.package: `sidenote` and it's Usage
name: fifthtry.github.io/bling
`sidenote` is a new conversation experience via using `FTD` lang:
To use `sidenote` on your web package, add below into `FASTN.ftd` file:
-- cb.code:
lang: ftd
\-- fastn.dependency: fifthtry.github.io/bling as bling
\-- fastn.auto-import: bling/sidenote as sidenote
-- tf.markdown:
Once you add above lines into your web package, add `sidenote` into your `.ftd`
files:
-- cb.code: Example code for `-- sidenote`
lang: ftd
\-- sidenote.sidenote:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut
-- tf.h3: Output of above basic example:
-- sidenote:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut
-- tf.h3: Advanced usage example:
-- cb.code: Advanced example code for `-- sidenote`
lang: ftd
\-- sidenote.sidenote:
Lorem ipsum dolor sit ame, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud {bold: exercitation ullamco laboris nisi ut.}
-- tf.h3: Output of above advanced example:
-- sidenote:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud {bold: exercitation ullamco laboris nisi ut.}
-- end: bling.page
-- component sidenote:
optional body body:
optional ftd.color bordercolor: $inherited.colors.border-strong
optional ftd.color backgroundcolor: $inherited.colors.background.step-2
-- ftd.column:
padding-vertical.px: 16
padding-horizontal.px: 32
border-color: $sidenote.bordercolor
border-width.px: 1
background.solid: $sidenote.backgroundcolor
border-radius.px: 8
max-width.fixed.px: 800
width: auto
align-self: center
-- ftd.text: Sidenote:
role: $inherited.types.copy-small
color: $inherited.colors.text-strong
-- ftd.text:
role: $inherited.types.copy-small
color: $inherited.colors.text
text-align: justify
$sidenote.body
-- end: ftd.column
-- end: sidenote