Skip to content

Commit e48ea8d

Browse files
committed
Merge pull request #801 from dart-lang/members
Members
2 parents 4612975 + 6d9e484 commit e48ea8d

File tree

8 files changed

+36
-28
lines changed

8 files changed

+36
-28
lines changed

lib/resources/styles.css

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,15 @@ dt {
201201
}
202202

203203
dd {
204-
margin-bottom: 16px;
205-
color: #727272;
204+
color: #212121;
205+
}
206+
207+
dd.callable, dd.constant, dd.property {
208+
margin-bottom: 24px;
209+
}
210+
211+
dd p {
212+
margin-top: 4px;
206213
}
207214

208215
section.summary h2 {
@@ -225,6 +232,7 @@ dl.dl-horizontal dt {
225232

226233
dt .name {
227234
font-size: 17px;
235+
font-weight: 500;
228236
}
229237

230238
dl dt.callable .name {
@@ -236,8 +244,13 @@ dl dt.callable .name {
236244
white-space: nowrap;
237245
}
238246

247+
.signature {
248+
color: #727272;
249+
}
250+
239251
.signature a {
240-
color: rgb(51, 51, 51);
252+
/* 50% mix of default-primary-color and primary-text-color. */
253+
color: #4674a2;
241254
}
242255

243256
.optional {
@@ -337,9 +350,12 @@ footer .container-fluid {
337350
margin: 0;
338351
}
339352

340-
.is-inherited {
341-
color: #727272;
353+
/* The little slug line under a declaration for things like "const",
354+
"read-only", etc. */
355+
.features {
356+
font-size: 14px;
342357
font-style: italic;
358+
color: #727272;
343359
}
344360

345361
.multi-line-signature {
@@ -413,10 +429,6 @@ nav .self-name {
413429
font-style: italic;
414430
}
415431

416-
.readable-writable {
417-
font-style: italic;
418-
}
419-
420432
section.multi-line-signature div.parameters {
421433
margin-left: 24px;
422434
}

lib/templates/_callable.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
</dt>
77
<dd>
88
{{#isInherited}}
9-
<div>
10-
<span class="is-inherited">inherited</span>
11-
</div>
9+
<div class="features">inherited</div>
1210
{{/isInherited}}
13-
{{{ oneLineDoc }}}
11+
<p>{{{ oneLineDoc }}}</p>
1412
</dd>

lib/templates/_constant.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<dt id="{{htmlId}}" class="constant">
22
<span class="top-level-variable-type">{{{ linkedReturnType }}}</span>
33
<span class="name {{#isDeprecated}}deprecated{{/isDeprecated}}">{{{ linkedName }}}</span>
4-
=
5-
<span class="constant-value">{{{ constantValue }}}</span>
4+
<span class="signature">= {{{ constantValue }}}</span>
65
</dt>
76
<dd>
8-
<div class="is-const">
9-
const
10-
</div>
11-
{{{ oneLineDoc }}}
7+
<div class="features">const</div>
8+
<p>{{{ oneLineDoc }}}</p>
129
</dd>

lib/templates/_property.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<dt id="{{htmlId}}" class="property">
2-
{{#isInherited}}{{>name_summary}}{{/isInherited}}{{^isInherited}}{{{linkedName}}}{{/isInherited}}
2+
{{#isInherited}}{{>name_summary}}{{/isInherited}}
3+
{{^isInherited}}<span class="name">{{{linkedName}}}</span>{{/isInherited}}
34
<span class="signature">&#8594; {{{ linkedReturnType }}}</span>
45
</dt>
56
<dd>
67
{{>readable_writable}}
7-
{{{ oneLineDoc }}}
8+
<p>{{{ oneLineDoc }}}</p>
89
</dd>

lib/templates/_readable_writable.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<div class="readable-writable">
2-
{{#readOnly}}read-only{{/readOnly}}{{#writeOnly}}write-only{{/writeOnly}}{{#readWrite}}read / write{{/readWrite}}{{#isInherited}}, <span class="is-inherited">inherited</span>{{/isInherited}}
1+
<div class="features">
2+
{{#readOnly}}read-only{{/readOnly}}{{#writeOnly}}write-only{{/writeOnly}}{{#readWrite}}read / write{{/readWrite}}{{#isInherited}}, inherited{{/isInherited}}
33
</div>

lib/templates/class.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ <h2>Constructors</h2>
131131
const
132132
</div>
133133
{{/isConst}}
134-
{{{ oneLineDoc }}}
134+
<p>{{{ oneLineDoc }}}</p>
135135
</dd>
136136
{{/clazz.constructors}}
137137
</dl>

lib/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h2>Libraries</h2>
1515
</dt>
1616
<dd>
1717
{{#isNotDocumented}}<span class="undocumented">Library not documented.</span>{{/isNotDocumented}}
18-
{{{ oneLineDoc }}}
18+
<p>{{{ oneLineDoc }}}</p>
1919
</dd>
2020
{{/package.libraries}}
2121
</dl>

lib/templates/library.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h2>Enums</h2>
7777
{{{linkedName}}}
7878
</dt>
7979
<dd>
80-
{{{ oneLineDoc }}}
80+
<p>{{{ oneLineDoc }}}</p>
8181
</dd>
8282
{{/library.enums}}
8383
</dl>
@@ -94,7 +94,7 @@ <h2>Classes</h2>
9494
<span class="name {{#isDeprecated}}deprecated{{/isDeprecated}}">{{{linkedName}}}</span>
9595
</dt>
9696
<dd>
97-
{{{ oneLineDoc }}}
97+
<p>{{{ oneLineDoc }}}</p>
9898
</dd>
9999
{{/library.classes}}
100100
</dl>
@@ -111,7 +111,7 @@ <h2>Exceptions / Errors</h2>
111111
<span class="name {{#isDeprecated}}deprecated{{/isDeprecated}}">{{{linkedName}}}</span>
112112
</dt>
113113
<dd>
114-
{{{ oneLineDoc }}}
114+
<p>{{{ oneLineDoc }}}</p>
115115
</dd>
116116
{{/library.exceptions}}
117117
</dl>

0 commit comments

Comments
 (0)