Skip to content

Commit d80ad59

Browse files
authored
#29 use proper tooltips
2 parents 370c22e + 698b728 commit d80ad59

File tree

4 files changed

+28
-23
lines changed

4 files changed

+28
-23
lines changed

docs/array-logic-data-driven-conditionals.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ APL has logical and comparison functions as in-built primitives. Much like the a
55

66
<div class="center language-APL" markdown="span">
77
<div class="displayBox" markdown="span">
8-
<a class="glyph" title="Less than">`<`</a>
9-
<a class="glyph" title="Less than or equal to">``</a>
10-
<a class="glyph" title="Equals">`=`</a>
11-
<a class="glyph" title="Not equals">``</a>
12-
<a class="glyph" title="Greater than or equal to">``</a>
13-
<a class="glyph" title="Greater than">`>`</a>
14-
<a class="glyph" title="Logical AND">``</a>
15-
<a class="glyph" title="Logical OR">``</a>
16-
<a class="glyph" title="Logical NAND">``</a>
17-
<a class="glyph" title="Logical NOR">``</a>
18-
<a class="glyph" title="Logical NOT">`~`</a>
8+
[`<`](# "Less than"){ .glyph}
9+
[``](# "Less than or equal to"){ .glyph}
10+
[`=`](# "Equals"){ .glyph}
11+
[``](# "Not equals"){ .glyph}
12+
[``](# "Greater than or equal to"){ .glyph}
13+
[`>`](# "Greater than"){ .glyph}
14+
[``](# "Logical AND"){ .glyph}
15+
[``](# "Logical OR"){ .glyph}
16+
[``](# "Logical NAND"){ .glyph}
17+
[``](# "Logical NOR"){ .glyph}
18+
[`~`](# "Logical NOT"){ .glyph}
1919
</div>
2020
</div>
2121

docs/basic-syntax-and-arithmetic.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ Some symbols represent both a monadic and a dyadic function, but these are often
5454

5555
<div class="center language-APL" markdown="span">
5656
<div class="displayBox" markdown="span">
57-
<a class="glyph" title="Plus">`+`</a>
58-
<a class="glyph" title="Minus/Negate">`-`</a>
59-
<a class="glyph" title="Times/Sign">`×`</a>
60-
<a class="glyph" title="Divide/Inverse">`÷`</a>
61-
<a class="glyph" title="Residue/Magnitude">`|`</a>
62-
<a class="glyph" title="Power">`*`</a>
63-
<a class="glyph" title="Logarithm">``</a>
64-
<a class="glyph" title="Max/Ceiling">``</a>
65-
<a class="glyph" title="Min/Floor">``</a>
57+
[`+`](# "Plus"){ .glyph}
58+
[`-`](# "Minus/Negate"){ .glyph}
59+
[`×`](# "Times/Sign"){ .glyph}
60+
[`÷`](# "Divide/Inverse"){ .glyph}
61+
[`|`](# "Residue/Magnitude"){ .glyph}
62+
[`*`](# "Power"){ .glyph}
63+
[``](# "Logarithm"){ .glyph}
64+
[``](# "Max/Ceiling"){ .glyph}
65+
[``](# "Min/Floor"){ .glyph}
6666
</div>
6767
</div>
6868

@@ -83,9 +83,9 @@ Dyadic functions can map between a single value and an array of values.
8383
```
8484

8585
**:bulb: Try this**: Replace the functions in the previous two expressions with:
86-
<a class="glyph" title="Max">``</a>
87-
<a class="glyph" title="Min">``</a>
88-
<a class="glyph" title="Less than">`<`</a>
86+
[``](# "Max"){ .glyph}
87+
[``](# "Min"){ .glyph}
88+
[`<`](# "Less than"){ .glyph}
8989

9090
While experimenting, you may cause a `LENGTH ERROR`:
9191

docs/style/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ code {
1313
.glyph {
1414
font-size: 1.5em;
1515
cursor: help;
16+
padding: 0 3px;
1617
}
1718
.md-logo > img{
1819
width: 7rem!important;
@@ -39,6 +40,9 @@ code {
3940
border: solid 2px var(--md-primary-fg-color);
4041
padding: 0.3em 1em;
4142
border-radius: 0.3em;
43+
display: flex;
44+
justify-content: space-evenly;
45+
width: 80%;
4246
}
4347

4448
/* Code copy only input (see CONTRIBUTING.md) */

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ theme:
2727
logo: 'img/dyalog-white.svg'
2828
features:
2929
- navigation.instant
30+
- content.tooltips
3031
extra_css:
3132
- style/main.css
3233
extra:

0 commit comments

Comments
 (0)