Skip to content

Commit b48de42

Browse files
committed
Better styling
1 parent b7c98a1 commit b48de42

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,19 @@ <h4>Properties:</h4>
149149
</ul>
150150

151151
<h4>Functions:</h4>
152-
<ul class="functions inner-block">
153152
{%if not functions.length%}
153+
<ul class="functions inner-block">
154154
<li>No functions available.</li>
155+
</ul>
155156
{%endif%}
156157
{%each functions as function%}
158+
<ul class="functions inner-block">
157159
<li id="{{jsClassName}}/function/{{function.jsFunctionName}}">
158-
<strong class="{%if not function.ignore%}is{%else%}not{%endif%} added">{{jsClassName}}#</strong><strong class="method">{{function.jsFunctionName}}</strong>
159160
{%if function.isConstructorMethod%}
161+
<strong class="cName">{{jsClassName}}.</strong><strong class="name">{{function.jsFunctionName}}</strong>
160162
<pre class="function language-javascript"><code>{{ jsClassName }}.{{ function.jsFunctionName }}({%each function.args|realArgs as arg%}{{arg.name|addComma arg i}}{%endeach%});</code></pre>
161163
{%else%}
164+
<strong class="cName">{{jsClassName}}#</strong><strong class="name">{{function.jsFunctionName}}</strong>
162165
<pre class="function language-javascript">
163166
<code>var {{ jsClassName|toCamelCase }} = new {{ jsClassName }}();
164167
{{ jsClassName|toCamelCase }}.{{ function.jsFunctionName }}({%each function.args|realArgs as arg%}{{arg.name|addComma arg i }}{%endeach%});
@@ -209,8 +212,8 @@ <h4>Returns:</h4>
209212
{%endif%}
210213
</div>
211214
</li>
212-
{%endeach%}
213215
</ul>
216+
{%endeach%}
214217
</li>
215218
</ul>
216219
</div>

styles/api.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,19 @@ ul.api-contents table h3 {
140140
list-style: none;
141141
}
142142

143+
.api-content .inner-block strong.cName,
144+
.api-content .inner-block strong.name {
145+
font-size: 22px;
146+
display: inline-block;
147+
padding-bottom: 15px;
148+
color: #3D3D3D;
149+
}
150+
151+
.api-content .inner-block strong.cName {
152+
color: #C9C9C9;
153+
font-weight: normal;
154+
}
155+
143156
.api-content .inner-block h3 {
144157
margin-top: 0px;
145158
}

0 commit comments

Comments
 (0)