Skip to content

Commit eef74c2

Browse files
knownasilyatoddjordan
authored andcommitted
styles: parameter and return type tweaks (#323)
* feat: add classes to parameter and return types Will be used for styling the type for clarity * fix: change style of all types, return and parameter * fix: remove extra styles
1 parent 73c5701 commit eef74c2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/styles/components/_class-field-desc.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
font-size: $base-font-size;
1818
}
1919

20-
.return-type {
20+
.class-field-description--link .return-type,
21+
.return .return-type,
22+
.parameter .parameter-type {
2123
color: $medium-gray;
2224
font-style: italic;
2325
font-weight: normal;
2426
font-size: $base-font-size;
27+
margin-right: 5px;
2528
}
2629

2730
.access {

app/templates/components/class-field-description.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
{{#each field.params as |param|}}
3737
<div class="parameter">
3838
<dt>{{param.name}}</dt>
39-
<dd>{{param.type}}</dd>
39+
<dd class="parameter-type">{{param.type}}</dd>
4040
<dd>{{param.description}}</dd>
4141
</div>
4242
{{/each}}
4343
{{#if field.return}}
4444
<div class="return">
4545
<dt>returns</dt>
46-
<dd>{{field.return.type}}</dd>
46+
<dd class="return-type">{{field.return.type}}</dd>
4747
<dd>{{field.return.description}}</dd>
4848
</div>
4949
{{/if}}

0 commit comments

Comments
 (0)