Skip to content

Commit 9c48567

Browse files
committed
Add JS to view glossary
1 parent da73dde commit 9c48567

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

assets/sass/reference.scss

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,50 @@ h3.plumbing {
5757
@include background-image-2x($baseurl + "images/icons/plumbing-sm", 17px, 14px, 2px 50%);
5858
}
5959

60+
.tooltip {
61+
position: absolute;
62+
/* invisible padding to make it easier to enter with the mouse */
63+
padding: 15px;
64+
visibility: hidden;
65+
66+
.tooltip-content {
67+
background: white;
68+
border: 1px solid #ccc;
69+
border-radius: 4px;
70+
padding: 10px;
71+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
72+
max-width: 300px;
73+
font-size: 14px;
74+
line-height: 1.4;
75+
}
76+
}
77+
78+
.tooltip.show {
79+
visibility: visible;
80+
}
81+
82+
.expand-icon {
83+
position: absolute;
84+
top: 8px;
85+
right: 8px;
86+
text-decoration: none;
87+
88+
img {
89+
width: 16px;
90+
height: 16px;
91+
opacity: 0.6;
92+
}
93+
94+
&:hover img {
95+
opacity: 1;
96+
}
97+
}
98+
99+
.hover-term {
100+
cursor: help;
101+
text-decoration: underline dotted;
102+
}
103+
60104
// § section sign anchor links
61105
#content {
62106
h1>a.anchor,

layouts/_default/baseof.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ <h3 hidden="true" data-pagefind-weight="{{ $weight }}">{{ $command_name }}</h3>
147147
</div>
148148
</div>
149149
{{ partialCached "footer.html" . }}
150+
<script src="{{ relURL "js/nanopop.umd.js" }}"></script>
151+
<script src="{{ relURL "js/glossary.js" }}"></script>
150152
</div>
151153
{{ else }}
152154
<div class="inner">

0 commit comments

Comments
 (0)