Tweak styles of API reference.

This commit is contained in:
Eitaro Fukamachi 2015-07-22 16:53:59 +09:00
parent e9124fd969
commit 0ddb01dfc4
2 changed files with 13 additions and 16 deletions

View file

@ -397,6 +397,10 @@ ul {
padding-bottom: 40px; padding-bottom: 40px;
border-top: 1px dotted #CCC; border-top: 1px dotted #CCC;
} }
.system header .description {
margin: 15px 0 10px 10px !important;
color: #666;
}
.toc { .toc {
position: absolute; position: absolute;
left: 10px; left: 10px;
@ -443,8 +447,9 @@ ul {
} }
.api .lambda-list { .api .lambda-list {
display: inline-block; display: inline-block;
margin-left: 8px; margin-left: 4px;
color: #555; color: #555;
font-family: Consolas, "Liberation Mono", Courier, monospace;
} }
.api .lambda-list .symbol-name { .api .lambda-list .symbol-name {
font-size: 95%; font-size: 95%;
@ -453,7 +458,7 @@ ul {
.api .lambda-list .keyword { .api .lambda-list .keyword {
color: #777; color: #777;
font-style: italic; font-style: italic;
font-size: 90%; font-size: 100%;
} }
.api .initial-value { .api .initial-value {
color: #777; color: #777;
@ -480,9 +485,10 @@ ul {
} }
.api .symbol-type { .api .symbol-type {
position: absolute; position: absolute;
left: -78px; left: -80px;
display: inline-block; display: inline-block;
padding-right: 10px; padding-right: 10px;
font-style: italic;
font-size: 85%; font-size: 85%;
text-align: right; text-align: right;
width: 60px; width: 60px;
@ -516,7 +522,7 @@ ul {
.api .docstring { .api .docstring {
margin: 5px 0 10px; margin: 5px 0 10px;
font-size: 90%; font-size: 90%;
color: #333; color: #666;
line-height: 1.5; line-height: 1.5;
} }
.api .docstring pre { .api .docstring pre {
@ -524,9 +530,6 @@ ul {
margin: 0; margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
} }
.api .description {
margin: 15px 0 10px 10px !important;
}
.error { .error {
margin-bottom: 20px; margin-bottom: 20px;
padding: 15px; padding: 15px;

View file

@ -43,7 +43,7 @@
<div class="api"> <div class="api">
{% for package in system.packages %} {% for package in system.packages %}
<section class="package"> <section class="package">
<h2 id="package-{{ package.name }}">{{ package.name }}</h2> <h2 id="package-{{ package.name }}"><a href="#package-{{ package.name }}">{{ package.name }}</a></h2>
{% if package.docstring %} {% if package.docstring %}
<div class="docstring"><pre>{{ package.docstring }}</pre></div> <div class="docstring"><pre>{{ package.docstring }}</pre></div>
{% endif %} {% endif %}
@ -52,13 +52,7 @@
{% if symbol.externalp %} {% if symbol.externalp %}
<li class="symbol"> <li class="symbol">
<span class="symbol-type label {{ symbol.type }}">{{ symbol.type | capfirst }}</span> <span class="symbol-type label {{ symbol.type }}">{{ symbol.type | capfirst }}</span>
<code class="symbol-name"> <code class="symbol-name">{% if symbol.setfp %}(setf {{ symbol.name }}){% else %}{{ symbol.name }}{% endif %}</code>
{% if symbol.setfp %}
(setf {{ symbol.name }})
{% else %}
{{ symbol.name }}
{% endif %}
</code>
{% if symbol.lambda-list %} {% if symbol.lambda-list %}
<span class="lambda-list"> <span class="lambda-list">
{{ symbol.lambda-list | lambda-list | safe }} {{ symbol.lambda-list | lambda-list | safe }}
@ -71,7 +65,7 @@
includes ({% for include in symbol.include-structs %}<code class="symbol-name">{{ include | symbol }}</code>{% if not forloop.last %}, {% endif %}{% endfor %}) includes ({% for include in symbol.include-structs %}<code class="symbol-name">{{ include | symbol }}</code>{% if not forloop.last %}, {% endif %}{% endfor %})
{% endif %} {% endif %}
{% if symbol.initial-value %} {% if symbol.initial-value %}
<span class="initial-value">{{ symbol.initial-value }}</span> <span class="initial-value">{{ symbol.initial-value | lower }}</span>
{% endif %} {% endif %}
<div class="docstring">{{ symbol.docstring }}</div> <div class="docstring">{{ symbol.docstring }}</div>
{% if symbol.type == "class" or symbol.type == "struct" %} {% if symbol.type == "class" or symbol.type == "struct" %}