mirror of
https://github.com/vale981/quickdocs-server
synced 2025-03-05 09:11:38 -05:00
Tweak styles of API reference.
This commit is contained in:
parent
fa1c8f36fc
commit
1bc17523ac
2 changed files with 27 additions and 19 deletions
|
@ -442,7 +442,7 @@ ul {
|
|||
margin: 30px 0;
|
||||
}
|
||||
.api code.symbol-name {
|
||||
font-weight: bold;
|
||||
font-weight: normal;
|
||||
color: #444;
|
||||
font-size: 120%;
|
||||
}
|
||||
|
@ -465,7 +465,8 @@ ul {
|
|||
color: #777;
|
||||
font-size: 95%;
|
||||
display: inline-block;
|
||||
margin-left: 8px;
|
||||
margin: 0 0 0 8px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.api .initial-value.unbound {
|
||||
font-style: italic;
|
||||
|
@ -485,15 +486,13 @@ ul {
|
|||
position: relative;
|
||||
}
|
||||
.api .symbol-type {
|
||||
position: absolute;
|
||||
left: -80px;
|
||||
display: inline-block;
|
||||
padding-right: 10px;
|
||||
margin-right: 5px;
|
||||
font-style: italic;
|
||||
font-size: 85%;
|
||||
text-align: right;
|
||||
width: 60px;
|
||||
border-right: 3px solid;
|
||||
font-weight: bold;
|
||||
border-bottom: 3px solid;
|
||||
position: relative;
|
||||
top: -3px;
|
||||
}
|
||||
.api .symbol-type.class {
|
||||
border-color: rgba(224, 153, 82, 0.7);
|
||||
|
@ -520,10 +519,19 @@ ul {
|
|||
font-style: italic;
|
||||
color: #555;
|
||||
}
|
||||
.api .slot-list .symbol-name {
|
||||
font-weight: normal;
|
||||
display: inline-block;
|
||||
border-radius: 4px;
|
||||
background-color: #f4f4f4;
|
||||
padding: 0 4px;
|
||||
}
|
||||
.api .slot-list dd {
|
||||
margin: 0 0 8px 8px;
|
||||
}
|
||||
.api .docstring {
|
||||
margin: 5px 0 10px;
|
||||
font-size: 90%;
|
||||
color: #666;
|
||||
margin: 10px 0 0 5px;
|
||||
color: #333;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.api .docstring pre {
|
||||
|
@ -559,8 +567,8 @@ section {
|
|||
font-size: 20px;
|
||||
}
|
||||
#content h3 {
|
||||
font-size: 32px;
|
||||
margin: 10px 0 20px;
|
||||
margin: 17px 0 10px;
|
||||
font-size: 18px;
|
||||
}
|
||||
/**
|
||||
* Header
|
||||
|
|
|
@ -59,13 +59,13 @@
|
|||
</span>
|
||||
{% endif %}
|
||||
{% if symbol.superclasses %}
|
||||
inherits ({% for superclass in symbol.superclasses %}<code class="symbol-name">{{ superclass | symbol }}</code>{% if not forloop.last %}, {% endif %}{% endfor %})
|
||||
({% for superclass in symbol.superclasses %}<code class="symbol-name">{{ superclass | symbol }}</code>{% if not forloop.last %}, {% endif %}{% endfor %})
|
||||
{% endif %}
|
||||
{% if symbol.include-structs %}
|
||||
includes ({% for include in symbol.include-structs %}<code class="symbol-name">{{ include | symbol }}</code>{% if not forloop.last %}, {% endif %}{% endfor %})
|
||||
{% endif %}
|
||||
{% if symbol.initial-value %}
|
||||
<span class="initial-value">{{ symbol.initial-value | lower }}</span>
|
||||
<pre class="initial-value">{{ symbol.initial-value | lower }}</pre>
|
||||
{% endif %}
|
||||
<div class="docstring">{{ symbol.docstring }}</div>
|
||||
{% if symbol.type == "class" or symbol.type == "struct" %}
|
||||
|
@ -75,19 +75,19 @@
|
|||
<dt>
|
||||
<code class="symbol-name">{{ slot.name | symbol }}</code>
|
||||
{% if slot.accessors %}
|
||||
<span class="label">Accessor</span>:
|
||||
<span class="label">Accessor</span>:
|
||||
{% for accessor in slot.accessors %}
|
||||
<code class="symbol-name">{{ accessor | symbol }}</code>{% if not forloop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if slot.readers %}
|
||||
<span class="label">Reader</span>:
|
||||
<span class="label">Reader</span>:
|
||||
{% for reader in slot.readers %}
|
||||
<code class="symbol-name">{{ reader | symbol }}</code>{% if not forloop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if slot.writers %}
|
||||
<span class="label">Writer</span>:
|
||||
<span class="label">Writer</span>:
|
||||
{% for writer in slot.writer %}
|
||||
<code class="symbol-name">{{ writer | symbol }}</code>{% if not forloop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Reference in a new issue