Fix paragraph spacing inconsistencies in lua docs
This commit is contained in:
@@ -349,19 +349,30 @@ article h1 {
|
|||||||
article h2 {
|
article h2 {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-top: 12px;
|
margin-top: calc(var(--padding-tiny) + 2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
article h3 {
|
article h3 {
|
||||||
color: var(--color-good);
|
color: var(--color-good);
|
||||||
margin-top: var(--padding-tiny);
|
margin-top: calc(var(--padding-tiny) + 2px);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
article p {
|
article p {
|
||||||
|
line-height: calc(var(--font-normal) + 4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
article p + p,
|
||||||
|
article h2 + p,
|
||||||
|
article pre + p {
|
||||||
margin-top: var(--padding-small);
|
margin-top: var(--padding-small);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article h3 + p,
|
||||||
|
article h4 + p {
|
||||||
|
margin-top: var(--padding-tiny);
|
||||||
|
}
|
||||||
|
|
||||||
article p a,
|
article p a,
|
||||||
article ul li a,
|
article ul li a,
|
||||||
article h1 a,
|
article h1 a,
|
||||||
@@ -420,7 +431,7 @@ a.reference {
|
|||||||
letter-spacing: 2px;
|
letter-spacing: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice p {
|
.notice .body {
|
||||||
color: var(--color-notice-text);
|
color: var(--color-notice-text);
|
||||||
|
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
@@ -466,7 +477,7 @@ a.reference {
|
|||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.method header p:first-of-type {
|
.method header p.description:first-of-type {
|
||||||
margin-top: var(--padding-tiny);
|
margin-top: var(--padding-tiny);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Submodule luacs-docs/lua/libs/ldoc updated: d1d4e3700a...a98391f04a
@@ -23,24 +23,30 @@
|
|||||||
{% if item.tags.deprecated then %}
|
{% if item.tags.deprecated then %}
|
||||||
<div class="notice warning">
|
<div class="notice warning">
|
||||||
<div class="title">Deprecated</div>
|
<div class="title">Deprecated</div>
|
||||||
<p>This API is deprecated and shouldn't be used anymore.</p>
|
<div class="body">
|
||||||
|
<p>This API is deprecated and shouldn't be used anymore.</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% if (item.tags.internal) then %}
|
{% if (item.tags.internal) then %}
|
||||||
<div class="notice error">
|
<div class="notice error">
|
||||||
<div class="title">Internal</div>
|
<div class="title">Internal</div>
|
||||||
<p>This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.</p>
|
<div class="body">
|
||||||
|
<p>This is an internal function! You are able to use it, but you risk unintended side effects if used incorrectly.</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% if (ldoc.descript(item):len() == 0) then %}
|
{% if (ldoc.descript(item):len() == 0) then %}
|
||||||
<div class="notice warning">
|
<div class="notice warning">
|
||||||
<div class="title">Incomplete</div>
|
<div class="title">Incomplete</div>
|
||||||
<p>Documentation for this section is incomplete and needs expanding.</p>
|
<div class="body">
|
||||||
|
<p>Documentation for this section is incomplete and needs expanding.</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>{* ldoc.markup(ldoc.descript(item)) *}</p>
|
<p class="description">{* ldoc.markup(ldoc.descript(item)) *}</p>
|
||||||
{% end %}
|
{% end %}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user