Merge pull request #673 from dart-lang/consistent-const
show const below name, like other places
diff --git a/lib/resources/styles.css b/lib/resources/styles.css
index 99b528b..2042448 100644
--- a/lib/resources/styles.css
+++ b/lib/resources/styles.css
@@ -238,6 +238,10 @@
font-style: italic;
}
+.is-const {
+ font-style: italic;
+}
+
.deprecated {
text-decoration: line-through;
}
diff --git a/lib/templates/_constant.html b/lib/templates/_constant.html
index 84174bd..0a61f0c 100644
--- a/lib/templates/_constant.html
+++ b/lib/templates/_constant.html
@@ -1,9 +1,12 @@
<dt id="{{htmlId}}" class="constant">
- <span class="top-level-variable-type">const {{{ linkedReturnType }}}</span>
+ <span class="top-level-variable-type">{{{ linkedReturnType }}}</span>
<span class="name {{#isDeprecated}}deprecated{{/isDeprecated}}">{{{ linkedName }}}</span>
=
<span class="constant-value">{{{ constantValue }}}</span>
</dt>
<dd>
+ <div class="is-const">
+ const
+ </div>
{{{ oneLineDoc }}}
-</dd>
\ No newline at end of file
+</dd>