Skip to content

Commit 249ce87

Browse files
committed
DOC-204 style settings table
1 parent e7ffc7b commit 249ce87

File tree

2 files changed

+65
-27
lines changed

2 files changed

+65
-27
lines changed

src/_includes/content/destination-footer.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,21 @@ When you first create an audience, Personas sends an Identify call for every use
4444
## Settings
4545

4646
Segment lets you change these destination settings from the Segment app without having to touch any code.
47-
<table>
47+
<table class="settings">
48+
<thead>
4849
<tr>
49-
<th>Setting Name</th>
50+
<th>Setting</th>
5051
<th>Data Type</th>
5152
<th>Default</th>
5253
<th>Description</th>
5354
</tr>
55+
</thead>
5456
{% for item in currentIntegration.settings %}
5557
{% unless item.deprecated == true %}
5658
<tr>
57-
<td class="def" id="{{item.name | slugify}}" style="cursor:pointer">{{item.name}}</td>
59+
<td class="def" id="{{item.name | slugify}}"><code>{{item.name}}</code></td>
5860
<td>{{item.type}}</td>
59-
<td>{{item.defaultValue}}</td>
61+
<td><code>{{item.defaultValue}}</code></td>
6062
<td markdown="span">{{item.description}}</td>
6163
</tr>
6264

src/_sass/components/_markdown.scss

Lines changed: 59 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
.markdown {
2-
& > h1,
3-
& > h2,
4-
& > h3,
5-
& > h4,
6-
& > h5,
7-
& > h6 {
2+
3+
&>h1,
4+
&>h2,
5+
&>h3,
6+
&>h4,
7+
&>h5,
8+
&>h6 {
89
position: relative;
910
cursor: pointer;
1011
padding-left: 30px;
@@ -32,53 +33,53 @@
3233
}
3334
}
3435

35-
& > h1 {
36+
&>h1 {
3637
@include breakpoint(medium up) {
3738
margin-top: 32px;
3839
}
3940
}
4041

41-
& > h2 {
42+
&>h2 {
4243
margin-top: 32px;
4344

4445
@include breakpoint(medium up) {
4546
margin-top: 48px;
4647
}
4748
}
4849

49-
& > h3 {
50+
&>h3 {
5051
margin-top: 24px;
5152

5253
@include breakpoint(medium up) {
5354
margin-top: 48px;
5455
}
5556
}
5657

57-
& > h4 {
58+
&>h4 {
5859
margin-top: 16px;
5960

6061
@include breakpoint(medium up) {
6162
margin-top: 24px;
6263
}
6364
}
6465

65-
& > h5 {
66+
&>h5 {
6667
margin-top: 16px;
6768

6869
@include breakpoint(medium up) {
6970
margin-top: 24px;
7071
}
7172
}
7273

73-
& > h6 {
74+
&>h6 {
7475
margin-top: 8px;
7576

7677
@include breakpoint(medium up) {
7778
margin-top: 16px;
7879
}
7980
}
8081

81-
& > p {
82+
&>p {
8283
margin-top: 8px;
8384
overflow-wrap: break-word;
8485
line-height: 26px;
@@ -93,12 +94,12 @@
9394
overflow-y: auto;
9495
}
9596

96-
& > pre {
97+
&>pre {
9798
margin-top: 24px;
9899
margin-bottom: 24px;
99100
}
100101

101-
& > hr {
102+
&>hr {
102103
margin-top: 40px;
103104
margin-bottom: 40px;
104105

@@ -108,7 +109,7 @@
108109
}
109110
}
110111

111-
& > div {
112+
&>div {
112113
margin-top: 16px;
113114
}
114115

@@ -121,11 +122,13 @@
121122
border: 1px solid #ddd;
122123
display: block;
123124
margin: 24px auto;
124-
border-radius: 5px;;
125+
border-radius: 5px;
126+
;
125127
}
126128
}
127129

128-
ul, ol {
130+
ul,
131+
ol {
129132
padding-left: 25px;
130133
line-height: 26px;
131134
list-style-type: none;
@@ -142,14 +145,15 @@
142145
left: 0;
143146
}
144147

145-
& > ul, ol {
148+
&>ul,
149+
ol {
146150
margin-top: 0;
147151
}
148152
}
149153
}
150154

151155
ul {
152-
& > li {
156+
&>li {
153157
&::before {
154158
width: 8px;
155159
height: 8px;
@@ -163,7 +167,7 @@
163167
ol {
164168
counter-reset: list-items;
165169

166-
& > li {
170+
&>li {
167171
counter-increment: list-items;
168172

169173
&::before {
@@ -218,11 +222,43 @@
218222
}
219223
}
220224

221-
& > table {
225+
table.settings {
226+
width: 100%;
227+
table-layout: fixed;
228+
229+
th:first-of-type {
230+
width: 25%;
231+
}
232+
233+
th:nth-of-type(2n) {
234+
width: 15%
235+
}
236+
237+
th:nth-of-type(3n) {
238+
width: 15%
239+
}
240+
241+
th:nth-of-type(4n) {
242+
width: 45%
243+
}
244+
245+
td.def {
246+
font-size: 12px;
247+
cursor: pointer;
248+
code {
249+
max-width: 100%;
250+
word-break: break-all;
251+
}
252+
253+
254+
}
255+
}
256+
257+
&>table {
222258
margin-top: 24px;
223259
}
224260

225-
& > *:first-child {
261+
&>*:first-child {
226262
margin-top: 0;
227263
}
228264

0 commit comments

Comments
 (0)