Mercurial Hosting > luan
changeset 1926:4206242c7a13 default tip
better css
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 23 Apr 2025 15:34:48 -0600 |
parents | 0156fe64a610 |
children | |
files | website/src/manual.html.luan website/src/site.css |
diffstat | 2 files changed, 25 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/website/src/manual.html.luan Mon Apr 21 13:06:14 2025 -0600 +++ b/website/src/manual.html.luan Wed Apr 23 15:34:48 2025 -0600 @@ -1286,7 +1286,7 @@ <code>(f(x,y,z))</code> is always a single value, even if <code>f</code> returns several values. (The value of <code>(f(x,y,z))</code> is the first value returned by <code>f</code> -or <b>nil</b> if <code>f</code> does not return any values.) +or <code>nil</code> if <code>f</code> does not return any values.) </p> <% end @@ -1300,14 +1300,14 @@ </p> <ul> -<li><b><code>+</code>: </b>addition</li> -<li><b><code>-</code>: </b>subtraction</li> -<li><b><code>*</code>: </b>multiplication</li> -<li><b><code>/</code>: </b>float division</li> -<li><b><code>//</code>: </b>floor division</li> -<li><b><code>%</code>: </b>modulo</li> -<li><b><code>^</code>: </b>exponentiation</li> -<li><b><code>-</code>: </b>unary minus</li> +<li><b>+</b>: addition</li> +<li><b>-</b>: subtraction</li> +<li><b>*</b>: multiplication</li> +<li><b>/</b>: float division</li> +<li><b>//</b>: floor division</li> +<li><b>%</b>: modulo</li> +<li><b>^</b>: exponentiation</li> +<li><b>-</b>: unary minus</li> </ul> <p> @@ -1350,21 +1350,21 @@ </p> <ul> - <li><b><code>==</code>: </b>equality</li> - <li><b><code>~=</code>: </b>inequality</li> - <li><b><code><</code>: </b>less than</li> - <li><b><code>></code>: </b>greater than</li> - <li><b><code><=</code>: </b>less or equal</li> - <li><b><code>>=</code>: </b>greater or equal</li> + <li><b>==</b>: equality</li> + <li><b>~=</b>: inequality</li> + <li><b><</b>: less than</li> + <li><b>></b>: greater than</li> + <li><b><=</b>: less or equal</li> + <li><b>>=</b>: greater or equal</li> </ul> <p> -These operators always result in <b>false</b> or <b>true</b>. +These operators always result in <code>false</code> or <code>true</code>. </p> <p> Equality (<code>==</code>) first compares the type of its operands. -If the types are different, then the result is <b>false</b>. +If the types are different, then the result is <code>false</code>. Otherwise, the values of the operands are compared. Strings, numbers, and binary values are compared in the obvious way (by value). </p> @@ -1390,7 +1390,7 @@ <p> Equality comparisons do not convert strings to numbers or vice versa. -Thus, <code>"0"==0</code> evaluates to <b>false</b>, +Thus, <code>"0"==0</code> evaluates to <code>false</code>, and <code>t[0]</code> and <code>t["0"]</code> denote different entries in a table. </p>
--- a/website/src/site.css Mon Apr 21 13:06:14 2025 -0600 +++ b/website/src/site.css Wed Apr 23 15:34:48 2025 -0600 @@ -76,16 +76,12 @@ } code { - font-size: 16px; - font-weight: bold; + background-color: #DDD; + white-space: pre-wrap; + word-wrap: break-word; + padding: 2px; } code[block] { - font-size: initial; - font-weight: initial; - background-color: #DDD; - padding: 2px; - white-space: pre-wrap; - word-wrap: break-word; display: block; padding: 1em; margin-top: 1em; @@ -94,3 +90,6 @@ code[block]:first-line { line-height: 0; } +code[block]:first-line { + line-height: 0; +}