mirror of
https://github.com/vale981/quickdocs-server
synced 2025-03-06 01:31: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;
|
margin: 30px 0;
|
||||||
}
|
}
|
||||||
.api code.symbol-name {
|
.api code.symbol-name {
|
||||||
font-weight: bold;
|
font-weight: normal;
|
||||||
color: #444;
|
color: #444;
|
||||||
font-size: 120%;
|
font-size: 120%;
|
||||||
}
|
}
|
||||||
|
@ -465,7 +465,8 @@ ul {
|
||||||
color: #777;
|
color: #777;
|
||||||
font-size: 95%;
|
font-size: 95%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 8px;
|
margin: 0 0 0 8px;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
.api .initial-value.unbound {
|
.api .initial-value.unbound {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
@ -485,15 +486,13 @@ ul {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.api .symbol-type {
|
.api .symbol-type {
|
||||||
position: absolute;
|
margin-right: 5px;
|
||||||
left: -80px;
|
|
||||||
display: inline-block;
|
|
||||||
padding-right: 10px;
|
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
text-align: right;
|
font-weight: bold;
|
||||||
width: 60px;
|
border-bottom: 3px solid;
|
||||||
border-right: 3px solid;
|
position: relative;
|
||||||
|
top: -3px;
|
||||||
}
|
}
|
||||||
.api .symbol-type.class {
|
.api .symbol-type.class {
|
||||||
border-color: rgba(224, 153, 82, 0.7);
|
border-color: rgba(224, 153, 82, 0.7);
|
||||||
|
@ -520,10 +519,19 @@ ul {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: #555;
|
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 {
|
.api .docstring {
|
||||||
margin: 5px 0 10px;
|
margin: 10px 0 0 5px;
|
||||||
font-size: 90%;
|
color: #333;
|
||||||
color: #666;
|
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
.api .docstring pre {
|
.api .docstring pre {
|
||||||
|
@ -559,8 +567,8 @@ section {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
#content h3 {
|
#content h3 {
|
||||||
font-size: 32px;
|
margin: 17px 0 10px;
|
||||||
margin: 10px 0 20px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Header
|
* Header
|
||||||
|
|
|
@ -59,13 +59,13 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if symbol.superclasses %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% if symbol.include-structs %}
|
{% if symbol.include-structs %}
|
||||||
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 | lower }}</span>
|
<pre class="initial-value">{{ symbol.initial-value | lower }}</pre>
|
||||||
{% 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" %}
|
||||||
|
@ -75,19 +75,19 @@
|
||||||
<dt>
|
<dt>
|
||||||
<code class="symbol-name">{{ slot.name | symbol }}</code>
|
<code class="symbol-name">{{ slot.name | symbol }}</code>
|
||||||
{% if slot.accessors %}
|
{% if slot.accessors %}
|
||||||
<span class="label">Accessor</span>:
|
<span class="label">Accessor</span>:
|
||||||
{% for accessor in slot.accessors %}
|
{% for accessor in slot.accessors %}
|
||||||
<code class="symbol-name">{{ accessor | symbol }}</code>{% if not forloop.last %}, {% endif %}
|
<code class="symbol-name">{{ accessor | symbol }}</code>{% if not forloop.last %}, {% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if slot.readers %}
|
{% if slot.readers %}
|
||||||
<span class="label">Reader</span>:
|
<span class="label">Reader</span>:
|
||||||
{% for reader in slot.readers %}
|
{% for reader in slot.readers %}
|
||||||
<code class="symbol-name">{{ reader | symbol }}</code>{% if not forloop.last %}, {% endif %}
|
<code class="symbol-name">{{ reader | symbol }}</code>{% if not forloop.last %}, {% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if slot.writers %}
|
{% if slot.writers %}
|
||||||
<span class="label">Writer</span>:
|
<span class="label">Writer</span>:
|
||||||
{% for writer in slot.writer %}
|
{% for writer in slot.writer %}
|
||||||
<code class="symbol-name">{{ writer | symbol }}</code>{% if not forloop.last %}, {% endif %}
|
<code class="symbol-name">{{ writer | symbol }}</code>{% if not forloop.last %}, {% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue