Skip to content

Commit c2443fc

Browse files
devversionjelbourn
authored andcommitted
better styling for deprecated api items (angular#384)
* Adds a dotted underline to the `Deprecated` markers. Those can be hovered to see more information about the deprecation / deletion. * Fixes that the deprecation markers are too big and are not looking good in the API table * Adds a line through property names that are also deprecated. This makes it clear that this API is deprecated and also looks pretty good. References angular#9648
1 parent 81e8698 commit c2443fc

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

src/app/pages/component-viewer/component-api.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
line-height: 24px;
3535
}
3636

37-
.docs-api-class-deprecated-marker {
38-
font-weight: bold;
39-
}
40-
4137
.docs-api-property-type {
4238
font-weight: bold;
4339
font-size: 14px;

src/styles/_api.scss

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
}
5757

5858
.docs-api-input-marker,
59-
.docs-api-output-marker {
59+
.docs-api-output-marker,
60+
.docs-api-deprecated-marker {
6061
// Size corresponding to "caption"-style text in the spec.
6162
font-size: 12px;
6263
}
@@ -67,3 +68,19 @@
6768
font-family: 'Roboto Mono', monospace;
6869
padding: 3px;
6970
}
71+
72+
.docs-api-deprecated-marker,
73+
.docs-api-class-deprecated-marker,
74+
.docs-api-interface-deprecated-marker {
75+
display: inline-block;
76+
font-weight: bold;
77+
78+
&[title] {
79+
border-bottom: 1px dotted grey;
80+
cursor: help;
81+
}
82+
}
83+
84+
.docs-api-deprecated-marker + .docs-api-property-name {
85+
text-decoration: line-through;
86+
}

0 commit comments

Comments
 (0)