fix(docs-infra): Add crossed through styling (#28111)

PR Close #28111
This commit is contained in:
WilliamKoza 2019-01-14 16:31:04 +01:00 committed by Andrew Kushnir
parent 72f2428cd8
commit 4c0104c846
2 changed files with 4 additions and 11 deletions

View File

@ -7,9 +7,3 @@
.cli-option-syntax {
white-space: pre;
}
.cli-deprecated {
background-color: $brightred;;
padding: 2px 10px;
margin-right: 10px;
}

View File

@ -53,15 +53,14 @@
{% for option in options %}
<tr class="cli-option">
<td>
<code class="cli-option-syntax no-auto-link">{$ renderOption(option.name, option.type, option.default, option.enum) $}</code>
<code class="cli-option-syntax no-auto-link{% if option.deprecated %} deprecated-api-item{% endif %}">{$ renderOption(option.name, option.type, option.default, option.enum) $}</code>
</td>
<td>
{% if option.deprecated %}
{% if option.deprecated !== true %}
{$ ('**Deprecated:** ' + option.deprecated) | marked $}
{% endif %}
{% if option.deprecated === true %}
{$ ('**Deprecated**') | marked $}
<p><strong>Deprecated</strong></p>
{% else %}
{$ ('**Deprecated:** ' + option.deprecated) | marked $}
{% endif %}
{% endif %}
{$ option.description | marked $}