This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-website.git
commit 60beeaff255c0db563b01f72fe1a01c23301d505 Author: nayananga@ubuntu <nayanangamuhandi...@gmail.com> AuthorDate: Mon Mar 2 02:22:33 2020 +0530 update: search result styling --- antora-ui-camel/src/css/header.css | 9 +++++++++ antora-ui-camel/src/js/06-search.js | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/antora-ui-camel/src/css/header.css b/antora-ui-camel/src/css/header.css index 3cd0d76..864e9bb 100644 --- a/antora-ui-camel/src/css/header.css +++ b/antora-ui-camel/src/css/header.css @@ -329,6 +329,15 @@ body { box-shadow: 0.1px 0.2em 2.5em #c4c4c4; } +.result_header { + font-weight: 600; +} + +.result_summary { + padding: 0.5rem; + color: black; +} + .results-hidden #search_results { display: none; } diff --git a/antora-ui-camel/src/js/06-search.js b/antora-ui-camel/src/js/06-search.js index a2231f1..803cf5a 100644 --- a/antora-ui-camel/src/js/06-search.js +++ b/antora-ui-camel/src/js/06-search.js @@ -65,8 +65,8 @@ window.addEventListener('load', () => { ${data[section].map((hit) => ` <a href="${hit.url}"> <dd> - <header>${hit.breadcrumbs}</header> - <summary>${hit.snippet}</summary> + <header class="result_header">${hit.breadcrumbs}</header> + <summary class="result_summary">${hit.snippet}</summary> </dd> </a> `).join('')}