mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 13:20:19 +03:00
Change styling of deprecated operation header
This commit is contained in:
parent
7bb0785841
commit
901178e48b
|
@ -1,13 +1,10 @@
|
|||
<div class="operation" *ngIf="operation">
|
||||
<div class="operation-content">
|
||||
<h2 class="operation-header sharable-header">
|
||||
<h2 class="operation-header sharable-header" [ngClass]="{deprecated: operation.deprecated}">
|
||||
<a class="share-link" href="#{{operation.anchor}}"></a>{{operation.summary}}
|
||||
</h2>
|
||||
<endpoint-link *ngIf="pathInMiddlePanel"
|
||||
[verb]="operation.verb" [path]="operation.path"> </endpoint-link>
|
||||
<div class="operation-deprecated" *ngIf="operation.deprecated">
|
||||
Warning: Deprecated
|
||||
</div>
|
||||
<div class="operation-tags" *ngIf="operation.info.tags.length">
|
||||
<a *ngFor="let tag of operation.info.tags" attr.href="#tag/{{tag}}"> {{tag}} </a>
|
||||
</div>
|
||||
|
|
|
@ -16,10 +16,18 @@
|
|||
|
||||
.operation-header {
|
||||
margin-bottom: calc(1em - 6px);
|
||||
}
|
||||
|
||||
.operation-deprecated {
|
||||
font-weight: bold;
|
||||
&.deprecated {
|
||||
&:after {
|
||||
content: 'Deprecated';
|
||||
color: $black;
|
||||
background: $yellow;
|
||||
padding: 3px 10px;
|
||||
text-transform: uppercase;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.operation-tags {
|
||||
|
|
Loading…
Reference in New Issue
Block a user