From 9eb928c3cf3bc9394edb4351c8b43268dead5c03 Mon Sep 17 00:00:00 2001 From: oyelakin mercy Date: Oct 17 2020 14:26:24 +0000 Subject: [PATCH 1/4] Update preview-site-src/ui-model.yml --- diff --git a/preview-site-src/ui-model.yml b/preview-site-src/ui-model.yml index 66a415f..e4624b2 100644 --- a/preview-site-src/ui-model.yml +++ b/preview-site-src/ui-model.yml @@ -84,8 +84,6 @@ page: url: '#liber-recusabo' urlType: fragment - content: Reference - url: '#' - urlType: fragment items: - content: Keyboard Shortcuts url: '#' From 1dccaa934107dd7d922ead1be9eed69922c6a41e Mon Sep 17 00:00:00 2001 From: oyelakin mercy Date: Oct 17 2020 14:41:53 +0000 Subject: [PATCH 2/4] Update src/js/01-navigation.js --- diff --git a/src/js/01-navigation.js b/src/js/01-navigation.js index 3272cf9..5c3afbe 100644 --- a/src/js/01-navigation.js +++ b/src/js/01-navigation.js @@ -28,8 +28,16 @@ menuState.expandedItems = getExpandedItems() saveNavState() }) + var navItemSpan = findNextElement(btn, '.nav-text') + if (navItemSpan) { + navItemSpan.style.cursor = 'pointer' + navItemSpan.addEventListener('click', function () { + li.classList.toggle('is-active') + menuState.expandedItems = getExpandedItems() + saveNavState() + }) + } }) - find('.nav-item', menuPanel).forEach(function (item, idx) { item.setAttribute('data-id', 'menu-' + item.dataset.depth + '-' + idx) }) @@ -143,4 +151,14 @@ function find (selector, from) { return [].slice.call((from || document).querySelectorAll(selector)) } + function findNextElement (from, selector) { + var el + if ('nextElementSibling' in from) { + el = from.nextElementSibling + } else { + el = from + while ((el = el.nextSibling) && el.nodeType !== 1); + } + return el && selector ? el[el.matches ? 'matches' : 'msMatchesSelector'](selector) && el : el + } })() From ce6ae75ff6c29efa345620c4adc6cfe72faa02e4 Mon Sep 17 00:00:00 2001 From: oyelakin mercy Date: Oct 17 2020 15:18:12 +0000 Subject: [PATCH 3/4] Update src/layouts/default.hbs --- diff --git a/src/layouts/default.hbs b/src/layouts/default.hbs index aa6a493..243d8b3 100644 --- a/src/layouts/default.hbs +++ b/src/layouts/default.hbs @@ -21,7 +21,7 @@ {{> head}} - + {{> header}}
From 6c5a048116999ee5a4733006c206a352f083e259 Mon Sep 17 00:00:00 2001 From: oyelakin mercy Date: Oct 17 2020 16:30:05 +0000 Subject: [PATCH 4/4] Style links added in footer -Color #5d5d5d -Text decoration will underline only on hover --- diff --git a/src/css/footer.css b/src/css/footer.css index 60ad672..0277e30 100644 --- a/src/css/footer.css +++ b/src/css/footer.css @@ -4,7 +4,14 @@ footer.footer { color: #8e8e8e; padding: 0.5rem 1rem; } +.footer a { +color: #5d5d5d; +text-decoration: none; +} +.footer a:hover { +text-decoration: underline; +} .footer p { margin: 0.5rem 0; font-size: 17px;