on master help sign in
fix glossary result linkable area / padding
commit803b55bb6bb317fecb6e4212e128abd4e3f16b43 authorMatilde Park <matilde@tlon.io> dateWed 16 Oct 2019, 10:30 (7 years ago) parent7de2824
2 files changed+5−2
sass/_main.scss+3 static/scripts.js+2−2
sass/_main.scss+3
@@ -380,6 +380,9 @@ input[type="search"] {
380380 &:hover {
381381 background-color: #F9F9F9;
382382 }
383+ h3 {
384+ padding: 0;
385+ }
383386 }
384387
385388 #search-reset {
static/scripts.js+2−2
@@ -277,9 +277,9 @@ function initSearch() {
277277 if (rune.symbol === term) {
278278 glossaryResults.style.display="block";
279279 glossaryResultsItem.innerHTML = `
280− <h3 class="black"><code class="red3 mr1">${rune.symbol}</code> ${rune.name}</h3>
280+ <a href="${rune.link}"><h3 class="black"><code class="red3 mr1">${rune.symbol}</code> ${rune.name}</h3>
281281 <p class="black">${rune.desc}</p>
282− <a href="${rune.link}" class="db tr black fw5" style="font-family: 'Inter UI', sans-serif;">Read more in Documentation -></a>
282+ <span class="db tr black fw5" style="font-family: 'Inter UI', sans-serif;">Read more in Documentation -></span></a>
283283 `
284284 }
285285 }