chore: improve styling of deprecated badge

This commit is contained in:
Roman Hotsiy 2017-07-04 10:45:12 +03:00
parent 2748aac024
commit 5d067d8f45
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<div class="operation" *ngIf="operation">
<div class="operation-content">
<h2 class="operation-header sharable-header" [ngClass]="{deprecated: operation.deprecated}">
<h2 class="operation-header sharable-header" [class.deprecated]="operation.deprecated">
<a class="share-link" href="#{{operation.anchor}}"></a>{{operation.summary}}
</h2>
<endpoint-link *ngIf="pathInMiddlePanel"

View File

@ -20,12 +20,14 @@
&.deprecated {
&:after {
content: 'Deprecated';
color: $black;
background: $yellow;
padding: 3px 10px;
text-transform: uppercase;
display: inline-block;
padding: 0 5px;
margin: 0;
background-color: $yellow;
color: white;
font-weight: bold;
font-size: 13px;
vertical-align: text-top;
}
}
}