api docs: Cleaned up CSS for parameter classes.

Deduplicated CSS classes of data types of response and
request parameters in API Documentation to use a single
class.
This commit is contained in:
Suyash Vardhan Mathur
2021-02-06 02:50:28 +05:30
committed by Tim Abbott
parent 9d74c7001d
commit c9c40d4fd2
3 changed files with 10 additions and 11 deletions

View File

@@ -92,7 +92,7 @@ class APIArgumentsTablePreprocessor(Preprocessor):
table = []
argument_template = """
<div class="api-argument" id="parameter-{argument}">
<p class="api-argument-name"><strong>{argument}</strong> <span class="api-argument-datatype">{type}</span> {required} {deprecated} <a href="#parameter-{argument}" class="api-argument-hover-link"><i class="fa fa-chain"></i></a></p>
<p class="api-argument-name"><strong>{argument}</strong> <span class="api-field-type">{type}</span> {required} {deprecated} <a href="#parameter-{argument}" class="api-argument-hover-link"><i class="fa fa-chain"></i></a></p>
<div class="api-example">
<span class="api-argument-example-label">Example</span>: <code>{example}</code>
</div>