Skip to content

Commit 5ee556e

Browse files
authored
minor tweaks (#132)
1 parent 5bcb1b7 commit 5ee556e

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

_includes/api.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1>{{ ref.info.brief }}</h1>
1212
{%- if functions.size > 0 -%}
1313
<table class="compact">
1414
<tr>
15-
<th>FUNCTION</th>
15+
<th>FUNCTIONS</th>
1616
<th></th>
1717
</tr>
1818
{%- for function in functions -%}
@@ -27,7 +27,7 @@ <h1>{{ ref.info.brief }}</h1>
2727
{%- if variables.size > 0 -%}
2828
<table class="compact">
2929
<tr>
30-
<th>CONSTANT</th>
30+
<th>CONSTANTS</th>
3131
<th></th>
3232
</tr>
3333
{%- for variable in variables -%}
@@ -57,7 +57,7 @@ <h1>{{ ref.info.brief }}</h1>
5757
{%- if messages.size > 0 -%}
5858
<table class="compact">
5959
<tr>
60-
<th>MESSAGE</th>
60+
<th>MESSAGES</th>
6161
<th></th>
6262
</tr>
6363
{%- for message in messages -%}
@@ -142,14 +142,14 @@ <h4>{{ function.name }}()<a href="#{% include ref_anchorlink.html element=functi
142142
<h2>Constants</h2>
143143
{%- for variable in variables -%}
144144
{% include ref_anchor_target.html element=variable %}
145-
<h4>{{ variable.name }}<a href="#{% include ref_anchorlink.html element=variable %}" class="anchor-link"/></a></h4>
146-
<p>{{ variable.description }}</p>
145+
<h5 class="compact">{{ variable.name }}<a href="#{% include ref_anchorlink.html element=variable %}" class="anchor-link"/></a></h5 class="compact">
146+
<p class="compact">{{ variable.description }}</p>
147147

148148
{%- if variable.parameters.size > 0 -%}
149149
{% include api_parameters.html parameters=variable.parameters %}
150150
{%- endif -%}
151-
152-
<hr/>
151+
152+
{% if forloop.last == false %}<hr class="compact"/>{% else %}<hr/>{% endif %}
153153
{%- endfor -%}
154154
{%- endif -%}
155155

_scss/defold.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,19 @@ mark {
403403
margin-block-end: 0;
404404
}
405405

406+
hr.compact {
407+
margin-top: 1rem;
408+
margin-bottom: 1.5rem;
409+
}
410+
411+
h5.compact {
412+
margin-bottom: 5px;
413+
}
414+
415+
p.compact {
416+
margin-bottom: 1.5rem;
417+
}
418+
406419
/*******************************************************************************
407420
* Page setup (to keep footer always at the bottom)
408421
* Used in _layouts/base.html

0 commit comments

Comments
 (0)