mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-31 15:57:30 +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; |   display: inline-block; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .param-type-file { | ||||||
|  |   font-weight: bold; | ||||||
|  |   text-transform: capitalize; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| /* tree */ | /* tree */ | ||||||
| 
 | 
 | ||||||
| // Bullet | // Bullet | ||||||
|  |  | ||||||
|  | @ -1,10 +1,14 @@ | ||||||
| <span *ngIf="schema.isFile" class="param-wrap"> | <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"> |   <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> | ||||||
|   <div *ngIf="schema._consumes && isRequestSchema" class="file consume"> |   <div *ngIf="schema._consumes && isRequestSchema" class="file consume"> | ||||||
|     Consumes: {{ schema._consumes | json }} |     <ul> | ||||||
|  |       <li *ngFor="let type of schema._consumes">{{type}}</li> | ||||||
|  |     </ul> | ||||||
|   </div> |   </div> | ||||||
| </span> | </span> | ||||||
| <span *ngIf="schema.isTrivial && !schema.isFile" class="param-wrap"> | <span *ngIf="schema.isTrivial && !schema.isFile" class="param-wrap"> | ||||||
|  |  | ||||||
|  | @ -180,31 +180,16 @@ $array-marker-line-height: 1.5; | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| ul { | ul, li { | ||||||
|   text-align: left; |  | ||||||
|   margin: 0; |   margin: 0; | ||||||
|   padding: 0; |  | ||||||
|   display: block; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| li { | ul { | ||||||
|   margin: 0.5em 0.3em 0.2em 0; |   list-style: none; | ||||||
|   font-family: $headers-font, $headers-font-family; |   padding-left: 1em; | ||||||
|   font-size: .929em; | } | ||||||
|   line-height: .929em; | 
 | ||||||
|   border: 0; | li:before { | ||||||
|   color: white; |   content: "- "; | ||||||
|   padding: 2px 8px 4px 8px; |   font-weight: bold; | ||||||
|   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; |  | ||||||
|   } |  | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user