diff --git a/govcms8_uikit_starter.info.yml b/govcms8_uikit_starter.info.yml index a8cec9d..7288595 100644 --- a/govcms8_uikit_starter.info.yml +++ b/govcms8_uikit_starter.info.yml @@ -2,7 +2,9 @@ name: 'GovCMS 8 UI-Kit Starter' description: 'Starter theme with basic implementation of GovCMS 8 UI-Kit. Cloning this theme is recommended, if you need more customization.' core: 8.x +core_version_requirement: ^8 || ^9 type: theme +base theme: stable libraries: - govcms8_uikit_starter/global-styling regions: diff --git a/js/main-nav.js b/js/main-nav.js index 332d75b..a69db2a 100644 --- a/js/main-nav.js +++ b/js/main-nav.js @@ -1 +1 @@ -var AU=AU||{};!function(_){var b={},g={},A=!1;function S(e,t,n,o){if("opening"===t||"open"===t)var a=n||"au-main-nav__content--closed",l=o||"au-main-nav__content--open";else a=o||"au-main-nav__content--open",l=n||"au-main-nav__content--closed";var i,c,u,s;s=a,(u=e).classList?u.classList.remove(s):u.className=u.className.replace(new RegExp("(^|\\b)"+s.split(" ").join("|")+"(\\b|$)","gi")," "),c=l,(i=e).classList?i.classList.add(c):i.className=i.className+" "+c}function w(t,e,n){function o(e){var t=n.apply(this,arguments);return!1===t&&(e.stopPropagation(),e.preventDefault()),t}function a(){var e=n.call(t,window.event);return!1===e&&(window.event.returnValue=!1,window.event.cancelBubble=!0),e}return t.addEventListener?(t.addEventListener(e,o,!1),{element:t,handler:o,event:e}):(t.attachEvent("on"+e,a),{element:t,handler:a,event:e})}function x(e){e.element.removeEventListener?e.element.removeEventListener(e.event,e.handler):e.element.detachEvent("on"+e.event,e.handler)}b.Toggle=function(a,e,l){if(!A){A=!0;try{window.event.cancelBubble=!0,event.stopPropagation()}catch(e){}"object"!=typeof l&&(l={});var t,i,n=a.getAttribute("aria-controls"),o=document.getElementById(n),c=o.querySelector(".au-main-nav__menu"),u=o.querySelector(".au-main-nav__overlay"),s=o.querySelector(".au-main-nav__toggle--close"),r=o.querySelector(".au-main-nav__toggle--open"),p=o.querySelector(".au-main-nav__focus-trap-top"),d=o.querySelector(".au-main-nav__focus-trap-bottom"),f=c.querySelectorAll("a, .au-main-nav__toggle"),v=-1===o.className.indexOf("au-main-nav__content--open"),y=c.offsetWidth,m=v?"opening":"";u.style.display="block",t=o,i=e,_.animate.Toggle({element:c,property:"left",openSize:0,closeSize:-1*y,speed:i||250,prefunction:function(){"opening"===m?(c.style.display="block",u.style.left=0,u.style.opacity=.5,"function"==typeof l.onOpen&&l.onOpen()):(u.style.opacity="0","function"==typeof l.onClose&&l.onClose())},postfunction:function(){"opening"===m?(s.focus(),r.setAttribute("aria-expanded",!0),s.setAttribute("aria-expanded",!0),p.setAttribute("tabindex",0),d.setAttribute("tabindex",0),g.focusTop=w(p,"focus",function(){f[f.length-1].focus()}),g.focusBottom=w(d,"focus",function(){f[0].focus()}),g.escKey=w(document,"keyup",function(){var e,t,n=n||window.event,o=(e=u,t="display",("undefined"!=typeof getComputedStyle?getComputedStyle(e,null):e.currentStyle)[t]);27===n.keyCode&&"block"===o&&b.Toggle(a,i,l)}),"function"==typeof l.afterOpen&&l.afterOpen()):(r.focus(),r.setAttribute("aria-expanded",!1),s.setAttribute("aria-expanded",!1),p.removeAttribute("tabindex"),d.removeAttribute("tabindex"),x(g.focusTop),x(g.focusBottom),x(g.escKey),"function"==typeof l.afterClose&&l.afterClose()),S(t,m),S(document.body,m,"au-main-nav__scroll--unlocked","au-main-nav__scroll--locked"),c.style.display="",c.style.left="",u.style.display="",u.style.left="",u.style.opacity="",A=!1}})}},_.mainNav=b}(AU),"undefined"!=typeof module&&(module.exports=AU); \ No newline at end of file +var AU=AU||{};!function(_){var b={},g={},A=!1;function S(e,t,n,o){if("opening"===t||"open"===t)var a=n||"au-main-nav__content--closed",l=o||"au-main-nav__content--open";else a=o||"au-main-nav__content--open",l=n||"au-main-nav__content--closed";var i,c,u,s;s=a,(u=e).classList?u.classList.remove(s):u.className=u.className.replace(new RegExp("(^|\\b)"+s.split(" ").join("|")+"(\\b|$)","gi")," "),c=l,(i=e).classList?i.classList.add(c):i.className=i.className+" "+c}function w(t,e,n){function o(e){var t=n.apply(this,arguments);return!1===t&&(e.stopPropagation(),e.preventDefault()),t}function a(){var e=n.call(t,window.event);return!1===e&&(window.event.returnValue=!1,window.event.cancelBubble=!0),e}return t.addEventListener?(t.addEventListener(e,o,!1),{element:t,handler:o,event:e}):(t.attachEvent("on"+e,a),{element:t,handler:a,event:e})}function x(e){e.element.removeEventListener?e.element.removeEventListener(e.event,e.handler):e.element.detachEvent("on"+e.event,e.handler)}b.Toggle=function(a,e,l){if(!A){A=!0;try{window.event.cancelBubble=!0,event.stopPropagation()}catch(e){}"object"!=typeof l&&(l={});var t,i,n=a.getAttribute("aria-controls"),o=document.getElementById(n),c=o.querySelector(".au-main-nav__menu"),u=o.querySelector(".au-main-nav__overlay"),s=o.querySelector(".au-main-nav__toggle--close"),r=o.querySelector(".au-main-nav__toggle--open"),p=o.querySelector(".au-main-nav__focus-trap-top"),d=o.querySelector(".au-main-nav__focus-trap-bottom"),f=c.querySelectorAll("a, .au-main-nav__toggle"),v=-1===o.className.indexOf("au-main-nav__content--open"),y=c.offsetWidth,m=v?"opening":"";u.style.display="block",t=o,i=e,_.animate.Toggle({element:c,property:"left",openSize:0,closeSize:-1*y,speed:i||250,prefunction:function(){"opening"==m?(c.style.display="block",u.style.left=0,u.style.opacity=.5,"function"==typeof l.onOpen&&l.onOpen()):(u.style.opacity="0","function"==typeof l.onClose&&l.onClose())},postfunction:function(){"opening"==m?(s.focus(),r.setAttribute("aria-expanded",!0),s.setAttribute("aria-expanded",!0),p.setAttribute("tabindex",0),d.setAttribute("tabindex",0),g.focusTop=w(p,"focus",function(){f[f.length-1].focus()}),g.focusBottom=w(d,"focus",function(){f[0].focus()}),g.escKey=w(document,"keyup",function(){var e,t,n=n||window.event,o=(e=u,t="display",("undefined"!=typeof getComputedStyle?getComputedStyle(e,null):e.currentStyle)[t]);27===n.keyCode&&"block"===o&&b.Toggle(a,i,l)}),"function"==typeof l.afterOpen&&l.afterOpen()):(r.focus(),r.setAttribute("aria-expanded",!1),s.setAttribute("aria-expanded",!1),p.removeAttribute("tabindex"),d.removeAttribute("tabindex"),x(g.focusTop),x(g.focusBottom),x(g.escKey),"function"==typeof l.afterClose&&l.afterClose()),S(t,m),S(document.body,m,"au-main-nav__scroll--unlocked","au-main-nav__scroll--locked"),c.style.display="",c.style.left="",u.style.display="",u.style.left="",u.style.opacity="",A=!1}})}},_.mainNav=b}(AU),"undefined"!=typeof module&&(module.exports=AU); \ No newline at end of file diff --git a/js/uikit.min.js b/js/uikit.min.js index 3461bd7..9694248 100644 --- a/js/uikit.min.js +++ b/js/uikit.min.js @@ -1 +1 @@ -var AU=AU||{};!function(r){var e={};function c(e,t,n){"closing"===n?e.setAttribute("aria-expanded",!1):e.setAttribute("aria-expanded",!0)}function s(e,t,n,o){if("opening"===t||"open"===t)var a=n||"au-accordion--closed",i=o||"au-accordion--open";else a=o||"au-accordion--open",i=n||"au-accordion--closed";var l,r,c,s;s=a,(c=e).classList?c.classList.remove(s):c.className=c.className.replace(new RegExp("(^|\\b)"+s.split(" ").join("|")+"(\\b|$)","gi")," "),r=i,(l=e).classList?l.classList.add(r):l.className=l.className+" "+r}e.Toggle=function(e,t,o){try{window.event.cancelBubble=!0,event.stopPropagation()}catch(e){}void 0===e.length&&(e=[e]),"object"!=typeof o&&(o={});for(var n=0;n=l[0].AUinterations)return i.callback()}else n+=o.stepSize,e.style[i.property]=n+"px",o.steps--},Math.abs(o.intervalTime))}(n,o,c,r,a)}},e.Toggle=function(t){var n=t.element,e=t.property||"height",o=t.speed||250,a=void 0===t.closeSize?0:t.closeSize,i=void 0===t.openSize?"auto":t.openSize;void 0===n.length&&(n=[n]),"function"!=typeof t.prefunction&&(t.prefunction=function(){}),"function"!=typeof t.postfunction&&(t.postfunction=function(){}),"function"!=typeof t.callback&&(t.callback=function(){}),n[0].AUtoggleInteration=0,n[0].AUtoggleInterations=n.length;for(var l=0;l=l[0].AUinterations)return i.callback()}else n+=o.stepSize,e.style[i.property]=n+"px",o.steps--},Math.abs(o.intervalTime))}(n,o,c,r,a)}},e.Toggle=function(t){var n=t.element,e=t.property||"height",o=t.speed||250,a=void 0===t.closeSize?0:t.closeSize,i=void 0===t.openSize?"auto":t.openSize;void 0===n.length&&(n=[n]),"function"!=typeof t.prefunction&&(t.prefunction=function(){}),"function"!=typeof t.postfunction&&(t.postfunction=function(){}),"function"!=typeof t.callback&&(t.callback=function(){}),n[0].AUtoggleInteration=0,n[0].AUtoggleInterations=n.length;for(var l=0;l - + diff --git a/styleguide/item-ui-kit-accordion.html b/styleguide/item-ui-kit-accordion.html index a1cff72..d40dbd2 100644 --- a/styleguide/item-ui-kit-accordion.html +++ b/styleguide/item-ui-kit-accordion.html @@ -10,7 +10,7 @@ - + @@ -478,7 +478,7 @@

Accordion group

- Source: uikit/accordion/_accordion.scss, line 1 + Source: assets/scss/uikit/accordion/_accordion.scss, line 1
diff --git a/styleguide/item-ui-kit-breadcrumb.html b/styleguide/item-ui-kit-breadcrumb.html index 30965ab..ba64780 100644 --- a/styleguide/item-ui-kit-breadcrumb.html +++ b/styleguide/item-ui-kit-breadcrumb.html @@ -10,7 +10,7 @@ - + @@ -241,7 +241,7 @@

- Source: uikit/breadcrumb/_breadcrumb.scss, line 1 + Source: assets/scss/uikit/breadcrumb/_breadcrumb.scss, line 1
diff --git a/styleguide/item-ui-kit-button.html b/styleguide/item-ui-kit-button.html index d5ee01f..fd4a10f 100644 --- a/styleguide/item-ui-kit-button.html +++ b/styleguide/item-ui-kit-button.html @@ -10,7 +10,7 @@ - + @@ -479,7 +479,7 @@

- Source: uikit/button/_button.scss, line 1 + Source: assets/scss/uikit/button/_button.scss, line 1
diff --git a/styleguide/item-ui-kit-cta-link.html b/styleguide/item-ui-kit-cta-link.html index 139d735..0d063a5 100644 --- a/styleguide/item-ui-kit-cta-link.html +++ b/styleguide/item-ui-kit-cta-link.html @@ -10,7 +10,7 @@ - + @@ -169,7 +169,7 @@

- Source: uikit/cta-link/_cta-link.scss, line 1 + Source: assets/scss/uikit/cta-link/_cta-link.scss, line 1
diff --git a/styleguide/item-ui-kit-header.html b/styleguide/item-ui-kit-header.html index 5d16054..5c7b082 100644 --- a/styleguide/item-ui-kit-header.html +++ b/styleguide/item-ui-kit-header.html @@ -10,7 +10,7 @@ - + @@ -253,7 +253,7 @@

GovCMS is awesome

- Source: uikit/header/_header.scss, line 1 + Source: assets/scss/uikit/header/_header.scss, line 1
diff --git a/styleguide/item-ui-kit-inpage-nav.html b/styleguide/item-ui-kit-inpage-nav.html index a23a017..7cdf67d 100644 --- a/styleguide/item-ui-kit-inpage-nav.html +++ b/styleguide/item-ui-kit-inpage-nav.html @@ -10,7 +10,7 @@ - + @@ -253,7 +253,7 @@
- Source: uikit/inpage-nav/_inpage_nav.scss, line 1 + Source: assets/scss/uikit/inpage-nav/_inpage_nav.scss, line 1
diff --git a/styleguide/item-ui-kit-keyword-list.html b/styleguide/item-ui-kit-keyword-list.html index b69bd72..f0de2bb 100644 --- a/styleguide/item-ui-kit-keyword-list.html +++ b/styleguide/item-ui-kit-keyword-list.html @@ -10,7 +10,7 @@ - + @@ -277,7 +277,7 @@

- Source: uikit/keyword-list/_keyword_list.scss, line 1 + Source: assets/scss/uikit/keyword-list/_keyword_list.scss, line 1
diff --git a/styleguide/item-ui-kit-link-list.html b/styleguide/item-ui-kit-link-list.html index 3798853..69353ae 100644 --- a/styleguide/item-ui-kit-link-list.html +++ b/styleguide/item-ui-kit-link-list.html @@ -10,7 +10,7 @@ - + @@ -357,7 +357,7 @@

- Source: uikit/link-list/_link_list.scss, line 1 + Source: assets/scss/uikit/link-list/_link_list.scss, line 1
diff --git a/styleguide/item-ui-kit-page-alerts.html b/styleguide/item-ui-kit-page-alerts.html index 3b83831..3105f2b 100644 --- a/styleguide/item-ui-kit-page-alerts.html +++ b/styleguide/item-ui-kit-page-alerts.html @@ -10,7 +10,7 @@ - + @@ -513,7 +513,7 @@

Status message

- Source: uikit/page-alerts/_page_alerts.scss, line 1 + Source: assets/scss/uikit/page-alerts/_page_alerts.scss, line 1
diff --git a/styleguide/item-ui-kit-progress-indicator.html b/styleguide/item-ui-kit-progress-indicator.html index 97ea632..3b07195 100644 --- a/styleguide/item-ui-kit-progress-indicator.html +++ b/styleguide/item-ui-kit-progress-indicator.html @@ -10,7 +10,7 @@ - + @@ -293,7 +293,7 @@

- Source: uikit/progress-indicator/_progress_indicator.scss, line 1 + Source: assets/scss/uikit/progress-indicator/_progress_indicator.scss, line 1
diff --git a/styleguide/item-ui-kit-tags.html b/styleguide/item-ui-kit-tags.html index 47f533f..5c88d74 100644 --- a/styleguide/item-ui-kit-tags.html +++ b/styleguide/item-ui-kit-tags.html @@ -10,7 +10,7 @@ - + @@ -318,7 +318,7 @@

- Source: uikit/tags/_tags.scss, line 1 + Source: assets/scss/uikit/tags/_tags.scss, line 1
diff --git a/styleguide/item-ui-kit.html b/styleguide/item-ui-kit.html index 03ea531..fb293fd 100644 --- a/styleguide/item-ui-kit.html +++ b/styleguide/item-ui-kit.html @@ -10,7 +10,7 @@ - + diff --git a/styleguide/section-ui-kit.html b/styleguide/section-ui-kit.html index c7730fa..a3a052f 100644 --- a/styleguide/section-ui-kit.html +++ b/styleguide/section-ui-kit.html @@ -10,7 +10,7 @@ - + @@ -595,7 +595,7 @@

Accordion group

- Source: uikit/accordion/_accordion.scss, line 1 + Source: assets/scss/uikit/accordion/_accordion.scss, line 1
@@ -825,7 +825,7 @@

- Source: uikit/breadcrumb/_breadcrumb.scss, line 1 + Source: assets/scss/uikit/breadcrumb/_breadcrumb.scss, line 1
@@ -1293,7 +1293,7 @@

- Source: uikit/button/_button.scss, line 1 + Source: assets/scss/uikit/button/_button.scss, line 1
@@ -1451,7 +1451,7 @@

- Source: uikit/cta-link/_cta-link.scss, line 1 + Source: assets/scss/uikit/cta-link/_cta-link.scss, line 1
@@ -1693,7 +1693,7 @@

GovCMS is awesome

- Source: uikit/header/_header.scss, line 1 + Source: assets/scss/uikit/header/_header.scss, line 1
@@ -1935,7 +1935,7 @@
- Source: uikit/inpage-nav/_inpage_nav.scss, line 1 + Source: assets/scss/uikit/inpage-nav/_inpage_nav.scss, line 1
@@ -2201,7 +2201,7 @@

- Source: uikit/keyword-list/_keyword_list.scss, line 1 + Source: assets/scss/uikit/keyword-list/_keyword_list.scss, line 1
@@ -2547,7 +2547,7 @@

- Source: uikit/link-list/_link_list.scss, line 1 + Source: assets/scss/uikit/link-list/_link_list.scss, line 1
@@ -3049,7 +3049,7 @@

Status message

- Source: uikit/page-alerts/_page_alerts.scss, line 1 + Source: assets/scss/uikit/page-alerts/_page_alerts.scss, line 1
@@ -3331,7 +3331,7 @@

- Source: uikit/progress-indicator/_progress_indicator.scss, line 1 + Source: assets/scss/uikit/progress-indicator/_progress_indicator.scss, line 1
@@ -3638,7 +3638,7 @@

- Source: uikit/tags/_tags.scss, line 1 + Source: assets/scss/uikit/tags/_tags.scss, line 1