Change styling of deprecated operation header

This commit is contained in:
Peter Golm 2017-07-04 07:32:04 +02:00
parent 7bb0785841
commit 901178e48b
2 changed files with 12 additions and 7 deletions

View File

@ -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>

View File

@ -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 {