mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-17 02:10:39 +03:00
Update file produces/consumes look
This commit is contained in:
parent
6a8f1e6e21
commit
f0fe212c24
|
@ -87,6 +87,11 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin;
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
.param-type-file {
|
||||
font-weight: bold;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
/* tree */
|
||||
|
||||
// Bullet
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
<span *ngIf="schema.isFile" class="param-wrap">
|
||||
<span class="param-file">file</span>
|
||||
<span class="param-type-file">file</span>
|
||||
<div *ngIf="schema._produces && !isRequestSchema" class="file produces">
|
||||
Produces: {{ schema._produces | json }}
|
||||
<ul>
|
||||
<li *ngFor="let type of schema._produces">{{type}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div *ngIf="schema._consumes && isRequestSchema" class="file consume">
|
||||
Consumes: {{ schema._consumes | json }}
|
||||
<ul>
|
||||
<li *ngFor="let type of schema._consumes">{{type}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</span>
|
||||
<span *ngIf="schema.isTrivial && !schema.isFile" class="param-wrap">
|
||||
|
|
|
@ -180,31 +180,16 @@ $array-marker-line-height: 1.5;
|
|||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
text-align: left;
|
||||
ul, li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 0.5em 0.3em 0.2em 0;
|
||||
font-family: $headers-font, $headers-font-family;
|
||||
font-size: .929em;
|
||||
line-height: .929em;
|
||||
border: 0;
|
||||
color: white;
|
||||
padding: 2px 8px 4px 8px;
|
||||
border-radius: $border-radius;
|
||||
background-color: rgba($black, 0.3);
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
|
||||
&:last-of-type {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: $primary-color;
|
||||
}
|
||||
ul {
|
||||
list-style: none;
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
li:before {
|
||||
content: "- ";
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user