@uqds/header 0.0.10-alpha.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,11 +7,13 @@
7
7
  ### Installation
8
8
 
9
9
  With Yarn:
10
+
10
11
  ```shell
11
12
  yarn add @uqds/header
12
13
  ```
13
14
 
14
15
  With NPM:
16
+
15
17
  ```shell
16
18
  npm i @uqds/header
17
19
  ```
package/dist/css/main.css CHANGED
@@ -1 +1 @@
1
- .uq-header{background:#51247a;display:grid;align-items:center;grid-template-columns:auto;grid-template-areas:"mainheader" "secondarynav";position:relative}@media(min-width: 64rem){.uq-header{grid-template-areas:"secondarynav" "mainheader"}}.uq-header__container{display:grid;align-items:center;grid-template-columns:1fr 15fr 1fr;grid-area:mainheader;grid-template-areas:"menutoggle logo searchtoggle" "mainnav-mobile mainnav-mobile mainnav-mobile"}@media(min-width: 64rem){.uq-header__container{max-width:73.25rem;margin-left:auto;margin-right:auto;grid-template-areas:"logo mainnav searchtoggle";padding-left:1rem;padding-right:1rem}}.uq-header__menu-toggle{grid-area:menutoggle}@media(min-width: 64rem){.uq-header__menu-toggle{display:none}}.uq-header__search-toggle{grid-area:searchtoggle;height:100%;text-align:right;color:#fff}@media(min-width: 64rem){.uq-header__search-toggle{height:auto}}.uq-header__search-toggle .search-toggle__label{display:none}@media(min-width: 64rem){.uq-header__search-toggle .search-toggle__label{display:block;font-family:"Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1rem;text-align:right;width:3.2rem}}.uq-header .nav-primary__toggle{background:none;border:none;padding:1.75rem 2rem;height:100%}@media(min-width: 64rem){.uq-header .nav-primary__toggle{padding:1rem 0 1rem 1.5rem;height:auto}}.uq-header .nav-primary__menu-toggle{cursor:pointer;color:#fff;position:relative;text-indent:-9999px;white-space:nowrap}.uq-header .nav-primary__menu-toggle::before{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4 18h16M4 12h16M4 6h16' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-repeat:no-repeat;width:1.5rem;height:1.5rem;transform:translate(50%, 50%);position:absolute;top:.625rem;right:2rem}.uq-header .nav-primary__menu-toggle--is-open::before{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m5 5 14 14M19 5 5 19' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e")}.uq-header .nav-primary__search-toggle{cursor:pointer;color:#fff;position:relative}.uq-header .nav-primary__search-toggle::before{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.5 17a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z' stroke='%23fff' stroke-width='1.5'%3e%3c/path%3e%3cpath d='M15.5 15.5 20 20' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-repeat:no-repeat;width:1.5rem;height:1.5rem;transform:translate(50%, 50%);position:absolute;top:.625rem;right:2rem}@media(min-width: 64rem){.uq-header .nav-primary__search-toggle::before{top:.1rem;left:-1rem}}@media(min-width: 64rem){.uq-header .nav-primary__search-toggle:hover{color:#d4c8de;text-decoration:underline}}.uq-header .nav-primary__search-toggle--is-open::before{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m5 5 14 14M19 5 5 19' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e")}.uq-header__logo{grid-area:logo}.uq-header__logo a{display:grid;padding:1rem 0}.uq-header__logo img{height:32px}@media(min-width: 64rem){.uq-header__logo img{height:40px}}.uq-header__nav-primary{grid-area:mainnav;display:none;width:100%;z-index:99}@media(min-width: 64rem){.uq-header__nav-primary{display:block}}@media(min-width: 64rem){.uq-header__nav-primary-container{padding:0 0 0 2.5rem}}.uq-header__nav-primary-list{list-style-type:none;margin:0;padding-left:0;display:flex;justify-content:flex-start;align-items:stretch;flex-direction:column}@media(min-width: 64rem){.uq-header__nav-primary-list{align-items:center;flex-direction:row}}.uq-header__nav-primary-item{margin:0;padding-left:2rem}.uq-header__nav-primary-item:first-child{padding-left:0}.uq-header__nav-primary-item--is-open>.uq-header__megamenu{height:auto;visibility:visible}.uq-header__nav-primary-item--is-open .uq-header__nav-primary-link{border-bottom:4px solid #fff}.uq-header__nav-primary-item .uq-header__nav-primary-link--active{border-bottom:4px solid #fff}.uq-header__nav-primary-link{display:block;color:#fff;text-decoration:none;padding:1rem 1.5rem;transition:background-color .25s,border-color .25s;font-weight:400;position:relative;border-bottom:4px solid rgba(0,0,0,0)}.uq-header__nav-primary-link:hover{color:#fff;text-decoration:none}@media(min-width: 64rem){.uq-header__nav-primary-link{padding:2rem .5rem}}.uq-header .nav-primary-link--has-dropdown{padding:2rem 1.5rem 2rem .5rem}.uq-header .nav-primary-link--has-dropdown::after{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m7 10 5 5 5-5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-repeat:no-repeat;width:1rem;height:1rem;transform:translateY(50%);position:absolute;top:1.7rem;right:1.75rem}@media(min-width: 64rem){.uq-header .nav-primary-link--has-dropdown::after{right:.25rem}}.uq-header .mega-menu{display:none;background-color:#fff;list-style-type:none;margin:0;padding-left:0}.uq-header .mega-menu li a{padding-left:3rem;color:#51247a}.uq-header .mega-menu ul{list-style-type:none;margin:0;padding-left:0}.uq-header .mega-menu ul li a{padding-left:4.5rem}.uq-header__nav-secondary{background-color:#48206c;grid-area:secondarynav}@media(min-width: 64rem){.uq-header__nav-secondary-container{text-align:right;max-width:73.25rem;margin-left:auto;margin-right:auto}}.uq-header__nav-secondary-list{list-style-type:none;margin:0;padding-left:0;display:flex;justify-content:flex-start;align-items:stretch;flex-direction:column}@media(min-width: 64rem){.uq-header__nav-secondary-list{justify-content:flex-end;align-items:center;flex-direction:row}}.uq-header__nav-secondary-item{margin:0}.uq-header__nav-secondary-link{display:block;color:#fff;padding:1rem 1.5rem}@media(min-width: 64rem){.uq-header__nav-secondary-link{font-size:.875rem;padding:.625rem 1rem}}.uq-header__nav-secondary-link:hover{color:#d4c8de}.uq-header__search{background:#51247a;position:absolute;width:100%;top:3.95rem;z-index:20;box-shadow:0 .75rem 1.5rem rgba(24,24,24,.2);transition:max-height .2s ease-in-out,transform .2s ease-in-out;transform:translateY(-1rem);max-height:0;overflow:hidden;visibility:hidden}@media(min-width: 64rem){.uq-header__search{top:8.3rem}}.uq-header__search--is-open{transform:translateY(0);max-height:50vh;visibility:visible}.uq-header__search-container{padding:0 1.5rem}@media(min-width: 64rem){.uq-header__search-container{padding-left:1rem;padding-right:1rem;max-width:73.25rem;margin-left:auto;margin-right:auto;padding-top:0;padding-bottom:1rem}}.uq-header__search-query{position:relative;display:inline-block;max-width:100%;min-width:100%;border-radius:5px;background-position:1rem;padding-top:1rem;padding-bottom:1rem}.uq-header__search-query-label{color:#fff}.uq-header__search-query-input{margin:0 !important;padding:.75rem 1rem !important}.uq-header__search-query-button{background-clip:padding-box;background-color:#fff;border-radius:5px;border:2px solid rgba(0,0,0,0);color:#51247a;display:inline-block;font-size:1rem;height:2.75rem;line-height:1.5;margin-bottom:0;margin-right:0;overflow:hidden;position:absolute;right:.5rem;text-decoration:none;text-indent:0;top:calc(50% - 1.375rem);transition:color .2s,background-color .2s,border-color .2s;width:2.75rem}.uq-header__search-query-button::before{content:"";position:absolute;display:block;width:1.5rem;height:1.5rem;top:.5rem;left:.5rem;background-size:100%;background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.5 17a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z' stroke='%2351247A' stroke-width='1.5'%3e%3c/path%3e%3cpath d='M15.5 15.5 20 20' stroke='%2351247A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e")}.uq-header__search-query-submit{color:rgba(0,0,0,0);position:relative;display:block;width:100%;height:100%;margin:0;border:0;background-color:rgba(0,0,0,0);z-index:3;cursor:pointer;outline-offset:-2px;font-size:1rem}.uq-header__search-range{display:inline-block}.uq-header__search-range label{color:#fff}.uq-header .uq-header__search-radio:checked{border-color:#fff}.uq-header .uq-header__search-radio:checked:focus{border-color:#fff}.uq-header .uq-header__search-radio:checked::after{background-color:#fff}.uq-header__search-label{font-size:.8rem !important;line-height:1.7 !important}@media(min-width: 64rem){.uq-header__search-label{font-size:1rem !important;line-height:1.4 !important}}@media(max-width: 63.9375rem){.uq-header__nav-primary,.uq-header__nav-secondary{display:none}}.uq-header__megamenu{position:absolute;top:8.3rem;left:0;width:100%;z-index:30;height:0;visibility:hidden}.uq-header__megamenu-container{max-width:73.25rem;margin-left:auto;margin-right:auto;padding:1rem 3rem 2.5rem 3rem;background:#fff;box-shadow:0 .75rem 1.5rem rgba(24,24,24,.2);border-radius:0 0 .25rem .25rem}@media(min-width: 75rem){.uq-header__megamenu-container{max-width:77.25rem}}.uq-header .megamenu__row{display:grid;grid-template-columns:repeat(auto-fit, minmax(250px, 1fr))}.uq-header .megamenu__overview-link{display:block;padding:1rem 0;color:#51247a}.uq-header .megamenu__heading{color:#51247a;font-weight:500;padding-top:.25rem;padding-bottom:.25rem}.uq-header .megamenu__heading:nth-of-type(2){padding-top:2.5rem}.uq-header .megamenu__menu ul{list-style-type:none;margin:0;padding-left:0}.uq-header .megamenu__menu ul li{margin:0}.uq-header .megamenu__menu ul li a{display:inline-block;padding-top:.5rem;color:#51247a}:root{--app-height: 100%}body.no-scroll{position:fixed;max-width:100%}@media(min-width: 64rem){body.no-scroll{position:relative}}.slide-menu{width:100%;max-width:100%;background-color:#fff;height:calc(var(--app-height) - 4.3rem);display:none;box-sizing:border-box;transition:transform .3s ease-in-out;transform:translateX(100%);will-change:transform;z-index:1000;grid-area:mainnav-mobile;position:fixed;top:4.3rem;right:0;overflow-y:auto;overflow-x:hidden;font-size:1rem;color:#51247a}@media(min-width: 64rem){.slide-menu{display:none !important}}.slide-menu .slide-menu__slider{width:100%;transform:translateX(0);transition:transform .3s ease-in-out;will-change:transform}.slide-menu ul{position:relative;width:100%;margin:0;padding-left:0;list-style:none;background-color:#fff}.slide-menu ul ul{position:absolute;top:0;left:100%;display:none}.slide-menu ul ul a{padding:.75rem 1.5rem .75rem 3rem}.slide-menu ul a{display:block}.slide-menu li{margin-bottom:0}.slide-menu li:hover{background-color:#f1f1f1}.slide-menu .slide-menu__control{padding-top:1rem;padding-bottom:1rem}.slide-menu a{cursor:pointer;padding:.75rem 1.5rem;text-decoration:none;font-size:1rem;color:#51247a;position:relative}.slide-menu a:hover{color:#51247a;background-color:#f1f1f1}.slide-menu .slide-menu__backlink{font-weight:500;padding-left:3rem}.slide-menu .slide-menu__backlink::before{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m14 7-5 5 5 5' stroke='%2351247A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-repeat:no-repeat;width:1.5rem;height:1.5rem;transform:translateY(50%);position:absolute;left:1.25rem;top:.25rem}.slide-menu__decorator::before{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m10 17 5-5-5-5' stroke='%2351247A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-repeat:no-repeat;width:1.5rem;height:1.5rem;transform:translateY(50%);position:absolute;right:1.5rem;top:.25rem}.slide-menu .controls{display:flex;margin-bottom:1rem}.slide-menu .btn{padding:.75rem 1.5rem;flex:1 0 auto;font-size:90%;color:#51247a;background-color:#fff;text-transform:uppercase;border:none;cursor:pointer;font-family:inherit;line-height:1}.slide-menu .btn:first-of-type{text-align:left}.slide-menu .btn:first-of-type:before{content:"⮜ this";margin-right:.5rem}.slide-menu .btn:last-of-type{text-align:right}.slide-menu .btn:last-of-type:before{content:"✕";margin-right:.5rem}.slide-menu .uq-header__nav-secondary-item{background-color:#48206c}.slide-menu .uq-header__nav-secondary-item:hover{background-color:#48206c}.slide-menu .uq-header__nav-secondary-link{color:#fff}.slide-menu .uq-header__nav-secondary-link:hover{color:#fff;background-color:#48206c}.slide-menu .uq-header__newglobal-nav-parent{font-weight:500}.slide-menu .uq-header__newglobal-nav-item{background-color:#51247a}.slide-menu .uq-header__newglobal-nav-link{color:#fff;background-color:#51247a}.slide-menu .uq-header__newglobal-nav-link:hover{color:#fff;background-color:#51247a}.slide-menu .uq-header__newglobal-nav-link .slide-menu__decorator::before{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m10 17 5-5-5-5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e")}.global-mobile-nav .uq-site-header__title-container{margin:0;padding:1rem 1.5rem}.global-mobile-nav .uq-site-header__title{padding:0;font-size:1rem;font-weight:500;display:block}.global-mobile-nav .uq-site-header__title:hover{background:none}.global-mobile-nav__audience-link{font-weight:500}.uq-site-header__navigation-toggle{display:none}.admin-menu .slide-menu{top:7.5rem}@media(min-width: 37.5rem){.admin-menu .slide-menu{top:6.15rem}}.uq-header{line-height:1.5;font-family:"Roboto","Helvetica Neue",Helvetica,Arial,sans-serif}.uq-header__logo img{max-width:unset}.uq-header__search-query-submit{background-color:unset !important}.uq-header__search-range .uq-header__search-label{max-width:unset}.uq-header__nav-primary-list li{margin:0}.uq-header__nav-primary-list li:hover .uq-header__nav-primary-link{border-bottom:4px solid #fff}.uq-header__nav-primary-link,.uq-header__nav-primary-link:focus{display:block;color:#fff;text-decoration:none;transition:background-color .25s,border-color .25s;font-weight:400;position:relative;border-bottom:4px solid #51247a}.uq-header a:focus{color:#d4c8de}.uq-header__search-container form,.uq-header__search-container fieldset{border:unset;padding:0;margin:0}.uq-header__search-query-input{height:45px !important}.uq-header .nav-primary__search-toggle{margin-bottom:0}.uq-header .nav-primary__menu-toggle{margin-bottom:0 !important;font:initial;font-size:.833rem;line-height:normal}.uq-header__search-range{display:inline-block}.uq-header__search-range input[type=radio]{height:20px;width:20px;vertical-align:top;display:inline-block;border-radius:50%;background-color:rgba(0,0,0,0);margin:3px 3px 0 5px;position:absolute;appearance:none;-webkit-appearance:none;border:1px solid #e7e3e0;cursor:pointer}.uq-header__search-range input[type=radio]+label{margin-bottom:1rem;margin-left:.5rem;margin-right:1rem;padding-top:.125rem;padding-left:1.5rem}.uq-header__search-range label{color:#fff;font-weight:400;display:inline-block;vertical-align:top}input[type=radio].uq-header__search-radio:checked{border-color:#fff;border-width:2px}input[type=radio].uq-header__search-radio:focus{border-color:#fff}input[type=radio].uq-header__search-radio:checked::after{content:"";background-color:#fff;border-radius:50%;content:"";display:block;position:absolute;top:3px;left:3px;height:10px;width:10px}
1
+ .uq-header{background:#51247a;display:grid;align-items:center;grid-template-columns:auto;grid-template-areas:"mainheader" "secondarynav";position:relative}@media(min-width: 64rem){.uq-header{grid-template-areas:"secondarynav" "mainheader"}}.uq-header__container{display:grid;align-items:center;grid-template-columns:1fr 15fr 1fr;grid-area:mainheader;grid-template-areas:"menutoggle logo searchtoggle" "mainnav-mobile mainnav-mobile mainnav-mobile"}@media(min-width: 64rem){.uq-header__container{max-width:73.25rem;margin-left:auto;margin-right:auto;grid-template-areas:"logo mainnav searchtoggle";padding-left:1rem;padding-right:1rem}}.uq-header__menu-toggle{grid-area:menutoggle}@media(min-width: 64rem){.uq-header__menu-toggle{display:none}}.uq-header__search-toggle{grid-area:searchtoggle;height:100%;text-align:right;color:#fff}@media(min-width: 64rem){.uq-header__search-toggle{height:auto}}.uq-header__search-toggle .search-toggle__label{display:none}@media(min-width: 64rem){.uq-header__search-toggle .search-toggle__label{display:block;font-family:"Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1rem;text-align:right;width:3.2rem}}.uq-header .nav-primary__toggle{background:none;border:none;padding:1.75rem 2rem;height:100%}@media(min-width: 64rem){.uq-header .nav-primary__toggle{padding:1rem 0 1rem 1.5rem;height:auto}}.uq-header .nav-primary__menu-toggle{cursor:pointer;color:#fff;position:relative;text-indent:-9999px;white-space:nowrap}.uq-header .nav-primary__menu-toggle::before{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4 18h16M4 12h16M4 6h16' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-repeat:no-repeat;width:1.5rem;height:1.5rem;transform:translate(50%, 50%);position:absolute;top:.625rem;right:2rem}.uq-header .nav-primary__menu-toggle--is-open::before{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m5 5 14 14M19 5 5 19' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e")}.uq-header .nav-primary__search-toggle{cursor:pointer;color:#fff;position:relative}.uq-header .nav-primary__search-toggle::before{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.5 17a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z' stroke='%23fff' stroke-width='1.5'%3e%3c/path%3e%3cpath d='M15.5 15.5 20 20' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-repeat:no-repeat;width:1.5rem;height:1.5rem;transform:translate(50%, 50%);position:absolute;top:.625rem;right:2rem}@media(min-width: 64rem){.uq-header .nav-primary__search-toggle::before{top:.1rem;left:-1rem}}@media(min-width: 64rem){.uq-header .nav-primary__search-toggle:hover{color:#d4c8de;text-decoration:underline}}.uq-header .nav-primary__search-toggle--is-open::before{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m5 5 14 14M19 5 5 19' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e")}.uq-header__logo{grid-area:logo}.uq-header__logo a{display:grid;padding:1rem 0}.uq-header__logo img{height:32px}@media(min-width: 64rem){.uq-header__logo img{height:40px}}.uq-header__nav-primary{grid-area:mainnav;display:none;width:100%;z-index:99}@media(min-width: 64rem){.uq-header__nav-primary{display:block}}@media(min-width: 64rem){.uq-header__nav-primary-container{padding:0 0 0 2.5rem}}.uq-header__nav-primary-list{list-style-type:none;margin:0;padding-left:0;display:flex;justify-content:flex-start;align-items:stretch;flex-direction:column}@media(min-width: 64rem){.uq-header__nav-primary-list{align-items:center;flex-direction:row}}.uq-header__nav-primary-item{margin:0;padding-left:2rem}.uq-header__nav-primary-item:first-child{padding-left:0}.uq-header__nav-primary-item--is-open>.uq-header__megamenu{height:auto;visibility:visible}.uq-header__nav-primary-item--is-open .uq-header__nav-primary-link{border-bottom:4px solid #fff}.uq-header__nav-primary-item .uq-header__nav-primary-link--active{border-bottom:4px solid #fff}.uq-header__nav-primary-link{display:block;color:#fff;text-decoration:none;padding:1rem 1.5rem;transition:background-color .25s,border-color .25s;font-weight:400;position:relative;border-bottom:4px solid rgba(0,0,0,0)}.uq-header__nav-primary-link:hover{color:#fff;text-decoration:none}@media(min-width: 64rem){.uq-header__nav-primary-link{padding:2rem .5rem}}.uq-header .nav-primary-link--has-dropdown{padding:2rem 1.5rem 2rem .5rem}.uq-header .nav-primary-link--has-dropdown::after{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m7 10 5 5 5-5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-repeat:no-repeat;width:1rem;height:1rem;transform:translateY(50%);position:absolute;top:1.7rem;right:1.75rem}@media(min-width: 64rem){.uq-header .nav-primary-link--has-dropdown::after{right:.25rem}}.uq-header .mega-menu{display:none;background-color:#fff;list-style-type:none;margin:0;padding-left:0}.uq-header .mega-menu li a{padding-left:3rem;color:#51247a}.uq-header .mega-menu ul{list-style-type:none;margin:0;padding-left:0}.uq-header .mega-menu ul li a{padding-left:4.5rem}.uq-header__nav-secondary{background-color:#48206c;grid-area:secondarynav}@media(min-width: 64rem){.uq-header__nav-secondary-container{text-align:right;max-width:73.25rem;margin-left:auto;margin-right:auto}}.uq-header__nav-secondary-list{list-style-type:none;margin:0;padding-left:0;display:flex;justify-content:flex-start;align-items:stretch;flex-direction:column}@media(min-width: 64rem){.uq-header__nav-secondary-list{justify-content:flex-end;align-items:center;flex-direction:row}}.uq-header__nav-secondary-item{margin:0}.uq-header__nav-secondary-link{display:block;color:#fff;padding:1rem 1.5rem}@media(min-width: 64rem){.uq-header__nav-secondary-link{font-size:.875rem;padding:.625rem 1rem}}.uq-header__nav-secondary-link:hover{color:#d4c8de}.uq-header__search{background:#51247a;position:absolute;width:100%;top:3.95rem;z-index:20;box-shadow:0 .75rem 1.5rem rgba(24,24,24,.2);transition:max-height .2s ease-in-out,transform .2s ease-in-out;transform:translateY(-1rem);max-height:0;overflow:hidden;visibility:hidden}@media(min-width: 64rem){.uq-header__search{top:8.3rem}}.uq-header__search--is-open{transform:translateY(0);max-height:50vh;visibility:visible}.uq-header__search-container{padding:0 1.5rem}@media(min-width: 64rem){.uq-header__search-container{padding-left:1rem;padding-right:1rem;max-width:73.25rem;margin-left:auto;margin-right:auto;padding-top:0;padding-bottom:1rem}}.uq-header__search-query{position:relative;display:inline-block;max-width:100%;min-width:100%;border-radius:5px;background-position:1rem;padding-top:1rem;padding-bottom:1rem}.uq-header__search-query-label{color:#fff}.uq-header__search-query-input{margin:0 !important;padding:.75rem 1rem !important}.uq-header__search-query-button{background-clip:padding-box;background-color:#fff;border-radius:5px;border:2px solid rgba(0,0,0,0);color:#51247a;display:inline-block;font-size:1rem;height:2.75rem;line-height:1.5;margin-bottom:0;margin-right:0;overflow:hidden;position:absolute;right:.5rem;text-decoration:none;text-indent:0;top:calc(50% - 1.375rem);transition:color .2s,background-color .2s,border-color .2s;width:2.75rem}.uq-header__search-query-button::before{content:"";position:absolute;display:block;width:1.5rem;height:1.5rem;top:.5rem;left:.5rem;background-size:100%;background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.5 17a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z' stroke='%2351247a' stroke-width='1.5'%3e%3c/path%3e%3cpath d='M15.5 15.5 20 20' stroke='%2351247a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e")}.uq-header__search-query-submit{color:rgba(0,0,0,0);position:relative;display:block;width:100%;height:100%;margin:0;border:0;background-color:rgba(0,0,0,0);z-index:3;cursor:pointer;outline-offset:-2px;font-size:1rem}.uq-header__search-range{display:inline-block}.uq-header__search-range label{color:#fff}.uq-header .uq-header__search-radio:checked{border-color:#fff}.uq-header .uq-header__search-radio:checked:focus{border-color:#fff}.uq-header .uq-header__search-radio:checked::after{background-color:#fff}.uq-header__search-label{font-size:.8rem !important;line-height:1.7 !important}@media(min-width: 64rem){.uq-header__search-label{font-size:1rem !important;line-height:1.4 !important}}@media(max-width: 63.9375rem){.uq-header__nav-primary,.uq-header__nav-secondary{display:none}}.uq-header__megamenu{position:absolute;top:8.3rem;left:0;width:100%;z-index:30;height:0;visibility:hidden}.uq-header__megamenu-container{max-width:73.25rem;margin-left:auto;margin-right:auto;padding:1rem 3rem 2.5rem 3rem;background:#fff;box-shadow:0 .75rem 1.5rem rgba(24,24,24,.2);border-radius:0 0 .25rem .25rem}@media(min-width: 75rem){.uq-header__megamenu-container{max-width:77.25rem}}.uq-header .megamenu__row{display:grid;grid-template-columns:repeat(auto-fit, minmax(250px, 1fr))}.uq-header .megamenu__overview-link{display:block;padding:1rem 0;color:#51247a}.uq-header .megamenu__heading{color:#51247a;font-weight:500;padding-top:.25rem;padding-bottom:.25rem}.uq-header .megamenu__heading:nth-of-type(2){padding-top:2.5rem}.uq-header .megamenu__menu ul{list-style-type:none;margin:0;padding-left:0}.uq-header .megamenu__menu ul li{margin:0}.uq-header .megamenu__menu ul li a{display:inline-block;padding-top:.5rem;color:#51247a}:root{--app-height: 100%}body.no-scroll{position:fixed;max-width:100%}@media(min-width: 64rem){body.no-scroll{position:relative}}.slide-menu{width:100%;max-width:100%;background-color:#fff;height:calc(var(--app-height) - 4.3rem);display:none;box-sizing:border-box;transition:transform .3s ease-in-out;transform:translateX(100%);will-change:transform;z-index:1000;grid-area:mainnav-mobile;position:fixed;top:4.3rem;right:0;overflow-y:auto;overflow-x:hidden;font-size:1rem;color:#51247a}@media(min-width: 64rem){.slide-menu{display:none !important}}.slide-menu .slide-menu__slider{width:100%;transform:translateX(0);transition:transform .3s ease-in-out;will-change:transform}.slide-menu ul{position:relative;width:100%;margin:0;padding-left:0;list-style:none;background-color:#fff}.slide-menu ul ul{position:absolute;top:0;left:100%;display:none}.slide-menu ul ul a{padding:.75rem 1.5rem .75rem 3rem}.slide-menu ul a{display:block}.slide-menu li{margin-bottom:0}.slide-menu li:hover{background-color:#f1f1f1}.slide-menu .slide-menu__control{padding-top:1rem;padding-bottom:1rem}.slide-menu a{cursor:pointer;padding:.75rem 1.5rem;text-decoration:none;font-size:1rem;color:#51247a;position:relative}.slide-menu a:hover{color:#51247a;background-color:#f1f1f1}.slide-menu .slide-menu__backlink{font-weight:500;padding-left:3rem}.slide-menu .slide-menu__backlink::before{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m14 7-5 5 5 5' stroke='%2351247a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-repeat:no-repeat;width:1.5rem;height:1.5rem;transform:translateY(50%);position:absolute;left:1.25rem;top:.25rem}.slide-menu__decorator::before{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m10 17 5-5-5-5' stroke='%2351247a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e");background-repeat:no-repeat;width:1.5rem;height:1.5rem;transform:translateY(50%);position:absolute;right:1.5rem;top:.25rem}.slide-menu .controls{display:flex;margin-bottom:1rem}.slide-menu .btn{padding:.75rem 1.5rem;flex:1 0 auto;font-size:90%;color:#51247a;background-color:#fff;text-transform:uppercase;border:none;cursor:pointer;font-family:inherit;line-height:1}.slide-menu .btn:first-of-type{text-align:left}.slide-menu .btn:first-of-type:before{content:"⮜ this";margin-right:.5rem}.slide-menu .btn:last-of-type{text-align:right}.slide-menu .btn:last-of-type:before{content:"✕";margin-right:.5rem}.slide-menu .uq-header__nav-secondary-item{background-color:#48206c}.slide-menu .uq-header__nav-secondary-item:hover{background-color:#48206c}.slide-menu .uq-header__nav-secondary-link{color:#fff}.slide-menu .uq-header__nav-secondary-link:hover{color:#fff;background-color:#48206c}.slide-menu .uq-header__newglobal-nav-parent{font-weight:500}.slide-menu .uq-header__newglobal-nav-item{background-color:#51247a}.slide-menu .uq-header__newglobal-nav-link{color:#fff;background-color:#51247a}.slide-menu .uq-header__newglobal-nav-link:hover{color:#fff;background-color:#51247a}.slide-menu .uq-header__newglobal-nav-link .slide-menu__decorator::before{content:"";background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m10 17 5-5-5-5' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3c/path%3e%3c/svg%3e")}.global-mobile-nav .uq-site-header__title-container{margin:0;padding:1rem 1.5rem}.global-mobile-nav .uq-site-header__title{padding:0;font-size:1rem;font-weight:500;display:block}.global-mobile-nav .uq-site-header__title:hover{background:none}.global-mobile-nav__audience-link{font-weight:500}.uq-site-header__navigation-toggle{display:none}.admin-menu .slide-menu{top:7.5rem}@media(min-width: 37.5rem){.admin-menu .slide-menu{top:6.15rem}}.uq-header{line-height:1.5;font-family:"Roboto","Helvetica Neue",Helvetica,Arial,sans-serif}.uq-header__logo img{max-width:unset}.uq-header__search-query-submit{background-color:unset !important}.uq-header__search-range .uq-header__search-label{max-width:unset}.uq-header__nav-primary-list li{margin:0}.uq-header__nav-primary-list li:hover .uq-header__nav-primary-link{border-bottom:4px solid #fff}.uq-header__nav-primary-link,.uq-header__nav-primary-link:focus{display:block;color:#fff;text-decoration:none;transition:background-color .25s,border-color .25s;font-weight:400;position:relative;border-bottom:4px solid rgba(0,0,0,0)}.uq-header a:focus{color:#d4c8de}.uq-header__search-container form,.uq-header__search-container fieldset{border:unset;padding:0;margin:0}.uq-header__search-query-input{height:45px !important}.uq-header .nav-primary__search-toggle{margin-bottom:0}.uq-header .nav-primary__menu-toggle{margin-bottom:0 !important;font:initial;font-size:.833rem;line-height:normal}.uq-header__search-range{display:inline-block}.uq-header__search-range input[type=radio]{height:20px;width:20px;vertical-align:top;display:inline-block;border-radius:50%;background-color:rgba(0,0,0,0);margin:3px 3px 0 5px;position:absolute;appearance:none;-webkit-appearance:none;border:1px solid #e7e3e0;cursor:pointer}.uq-header__search-range input[type=radio]+label{margin-bottom:1rem;margin-left:.5rem;margin-right:1rem;padding-top:.125rem;padding-left:1.5rem}.uq-header__search-range label{color:#fff;font-weight:400;display:inline-block;vertical-align:top}input[type=radio].uq-header__search-radio:checked{border-color:#fff;border-width:2px}input[type=radio].uq-header__search-radio:focus{border-color:#fff}input[type=radio].uq-header__search-radio:checked::after{content:"";background-color:#fff;border-radius:50%;content:"";display:block;position:absolute;top:3px;left:3px;height:10px;width:10px}
package/dist/js/uqds.js CHANGED
@@ -1,11 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
-
5
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
6
-
7
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
-
9
3
  var uq = function (exports) {
10
4
  'use strict';
11
5
  /**
@@ -15,92 +9,75 @@ var uq = function (exports) {
15
9
  * TODO: make this class configurable
16
10
  */
17
11
 
18
- var NewHeader = /*#__PURE__*/function () {
19
- function NewHeader(el) {
20
- _classCallCheck(this, NewHeader);
21
-
12
+ class NewHeader {
13
+ constructor(el) {
22
14
  this.init(el);
23
15
  }
24
16
 
25
- _createClass(NewHeader, [{
26
- key: "init",
27
- value: function init(el) {
28
- var _this = this;
29
-
30
- this.menuToggle = el.querySelector('.nav-primary__menu-toggle');
31
- this.searchToggle = el.querySelector('.nav-primary__search-toggle');
32
- this.searchLabel = el.querySelector('.search-toggle__label');
33
- this.searchBlock = el.querySelector('.uq-header__search');
34
- this.searchInput = el.querySelector('.uq-header__search-query-input');
35
- this.menuToggle.addEventListener('click', function () {
36
- document.body.classList.toggle('no-scroll');
37
-
38
- _this.menuToggle.classList.toggle('nav-primary__menu-toggle--is-open');
39
-
40
- _this.searchToggle.classList.remove('nav-primary__search-toggle--is-open');
41
-
42
- _this.searchBlock.classList.remove('uq-header__search--is-open');
43
-
44
- _this.searchLabel.innerHTML = "Search";
45
- });
46
- this.searchToggle.addEventListener('click', function (e) {
47
- document.body.classList.remove('no-scroll');
48
-
49
- _this.searchToggle.classList.toggle('nav-primary__search-toggle--is-open');
50
-
51
- _this.searchBlock.classList.toggle('uq-header__search--is-open');
52
-
53
- _this.menuToggle.classList.remove('nav-primary__menu-toggle--is-open');
17
+ init(el) {
18
+ this.menuToggle = el.querySelector(".nav-primary__menu-toggle");
19
+ this.searchToggle = el.querySelector(".nav-primary__search-toggle");
20
+ this.searchLabel = el.querySelector(".search-toggle__label");
21
+ this.searchBlock = el.querySelector(".uq-header__search");
22
+ this.searchInput = el.querySelector(".uq-header__search-query-input");
23
+ this.menuToggle.addEventListener("click", () => {
24
+ document.body.classList.toggle("no-scroll");
25
+ this.menuToggle.classList.toggle("nav-primary__menu-toggle--is-open");
26
+ this.searchToggle.classList.remove("nav-primary__search-toggle--is-open");
27
+ this.searchBlock.classList.remove("uq-header__search--is-open");
28
+ this.searchLabel.innerHTML = "Search";
29
+ });
30
+ this.searchToggle.addEventListener("click", e => {
31
+ document.body.classList.remove("no-scroll");
32
+ this.searchToggle.classList.toggle("nav-primary__search-toggle--is-open");
33
+ this.searchBlock.classList.toggle("uq-header__search--is-open");
34
+ this.menuToggle.classList.remove("nav-primary__menu-toggle--is-open");
35
+
36
+ if (this.searchBlock.classList.contains("uq-header__search--is-open")) {
37
+ this.searchInput.focus();
38
+ } else {
39
+ this.searchInput.blur();
40
+ this.searchToggle.blur();
41
+ }
54
42
 
55
- if (_this.searchBlock.classList.contains('uq-header__search--is-open')) {
56
- _this.searchInput.focus();
57
- } else {
58
- _this.searchInput.blur();
43
+ if (this.searchLabel.innerHTML === "Search") {
44
+ this.searchLabel.innerHTML = "Close";
45
+ } else {
46
+ this.searchLabel.innerHTML = "Search";
47
+ }
59
48
 
60
- _this.searchToggle.blur();
61
- }
49
+ e.preventDefault();
50
+ }); // megamenu
62
51
 
63
- if (_this.searchLabel.innerHTML === "Search") {
64
- _this.searchLabel.innerHTML = "Close";
65
- } else {
66
- _this.searchLabel.innerHTML = "Search";
67
- }
52
+ const megaMenuItem = document.querySelectorAll(".uq-header__nav-primary-item");
53
+ megaMenuItem.forEach(item => {
54
+ item.addEventListener("mouseenter", this.handleToggle);
55
+ item.addEventListener("mouseleave", this.handleToggle);
56
+ });
57
+ }
68
58
 
69
- e.preventDefault();
70
- }); // megamenu
59
+ handleToggle(event) {
60
+ let menuItem = event.target;
71
61
 
72
- var megaMenuItem = document.querySelectorAll('.uq-header__nav-primary-item');
73
- megaMenuItem.forEach(function (item) {
74
- item.addEventListener('mouseenter', _this.handleToggle);
75
- item.addEventListener('mouseleave', _this.handleToggle);
76
- });
62
+ if (menuItem.tagName !== "LI") {
63
+ menuItem = menuItem.parentElement;
77
64
  }
78
- }, {
79
- key: "handleToggle",
80
- value: function handleToggle(event) {
81
- var menuItem = event.target;
82
65
 
83
- if (menuItem.tagName !== 'LI') {
84
- menuItem = menuItem.parentElement;
66
+ menuItem.eventType = event.type;
67
+ window.setTimeout(function () {
68
+ if ((event.type === "mouseenter" || event.type === "mouseleave") && window.matchMedia("(max-width: 1024px)").matches) {
69
+ return;
85
70
  }
86
71
 
87
- menuItem.eventType = event.type;
88
- window.setTimeout(function () {
89
- if ((event.type === 'mouseenter' || event.type === 'mouseleave') && window.matchMedia('(max-width: 1024px)').matches) {
90
- return;
91
- }
92
-
93
- if (menuItem.eventType === 'mouseenter') {
94
- menuItem.classList.add('uq-header__nav-primary-item--is-open');
95
- } else {
96
- menuItem.classList.remove('uq-header__nav-primary-item--is-open');
97
- }
98
- }, 250);
99
- }
100
- }]);
72
+ if (menuItem.eventType === "mouseenter") {
73
+ menuItem.classList.add("uq-header__nav-primary-item--is-open");
74
+ } else {
75
+ menuItem.classList.remove("uq-header__nav-primary-item--is-open");
76
+ }
77
+ }, 250);
78
+ }
101
79
 
102
- return NewHeader;
103
- }();
80
+ }
104
81
 
105
82
  exports.header = NewHeader;
106
83
  Object.defineProperty(exports, '__esModule', {
@@ -1 +1 @@
1
- "use strict";function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var a=0;a<r.length;a++){var t=r[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function _createClass(e,r,a){return r&&_defineProperties(e.prototype,r),a&&_defineProperties(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}var uq=function(e){var r=function(){function r(e){_classCallCheck(this,r),this.init(e)}return _createClass(r,[{key:"init",value:function(e){var r=this;this.menuToggle=e.querySelector(".nav-primary__menu-toggle"),this.searchToggle=e.querySelector(".nav-primary__search-toggle"),this.searchLabel=e.querySelector(".search-toggle__label"),this.searchBlock=e.querySelector(".uq-header__search"),this.searchInput=e.querySelector(".uq-header__search-query-input"),this.menuToggle.addEventListener("click",function(){document.body.classList.toggle("no-scroll"),r.menuToggle.classList.toggle("nav-primary__menu-toggle--is-open"),r.searchToggle.classList.remove("nav-primary__search-toggle--is-open"),r.searchBlock.classList.remove("uq-header__search--is-open"),r.searchLabel.innerHTML="Search"}),this.searchToggle.addEventListener("click",function(e){document.body.classList.remove("no-scroll"),r.searchToggle.classList.toggle("nav-primary__search-toggle--is-open"),r.searchBlock.classList.toggle("uq-header__search--is-open"),r.menuToggle.classList.remove("nav-primary__menu-toggle--is-open"),r.searchBlock.classList.contains("uq-header__search--is-open")?r.searchInput.focus():(r.searchInput.blur(),r.searchToggle.blur()),"Search"===r.searchLabel.innerHTML?r.searchLabel.innerHTML="Close":r.searchLabel.innerHTML="Search",e.preventDefault()}),document.querySelectorAll(".uq-header__nav-primary-item").forEach(function(e){e.addEventListener("mouseenter",r.handleToggle),e.addEventListener("mouseleave",r.handleToggle)})}},{key:"handleToggle",value:function(e){var r=e.target;(r="LI"!==r.tagName?r.parentElement:r).eventType=e.type,window.setTimeout(function(){("mouseenter"===e.type||"mouseleave"===e.type)&&window.matchMedia("(max-width: 1024px)").matches||("mouseenter"===r.eventType?r.classList.add("uq-header__nav-primary-item--is-open"):r.classList.remove("uq-header__nav-primary-item--is-open"))},250)}}]),r}();return e.header=r,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
1
+ "use strict";var uq=function(e){return e.header=class{constructor(e){this.init(e)}init(e){this.menuToggle=e.querySelector(".nav-primary__menu-toggle"),this.searchToggle=e.querySelector(".nav-primary__search-toggle"),this.searchLabel=e.querySelector(".search-toggle__label"),this.searchBlock=e.querySelector(".uq-header__search"),this.searchInput=e.querySelector(".uq-header__search-query-input"),this.menuToggle.addEventListener("click",()=>{document.body.classList.toggle("no-scroll"),this.menuToggle.classList.toggle("nav-primary__menu-toggle--is-open"),this.searchToggle.classList.remove("nav-primary__search-toggle--is-open"),this.searchBlock.classList.remove("uq-header__search--is-open"),this.searchLabel.innerHTML="Search"}),this.searchToggle.addEventListener("click",e=>{document.body.classList.remove("no-scroll"),this.searchToggle.classList.toggle("nav-primary__search-toggle--is-open"),this.searchBlock.classList.toggle("uq-header__search--is-open"),this.menuToggle.classList.remove("nav-primary__menu-toggle--is-open"),this.searchBlock.classList.contains("uq-header__search--is-open")?this.searchInput.focus():(this.searchInput.blur(),this.searchToggle.blur()),"Search"===this.searchLabel.innerHTML?this.searchLabel.innerHTML="Close":this.searchLabel.innerHTML="Search",e.preventDefault()});const s=document.querySelectorAll(".uq-header__nav-primary-item");s.forEach(e=>{e.addEventListener("mouseenter",this.handleToggle),e.addEventListener("mouseleave",this.handleToggle)})}handleToggle(e){let s=e.target;(s="LI"!==s.tagName?s.parentElement:s).eventType=e.type,window.setTimeout(function(){("mouseenter"===e.type||"mouseleave"===e.type)&&window.matchMedia("(max-width: 1024px)").matches||("mouseenter"===s.eventType?s.classList.add("uq-header__nav-primary-item--is-open"):s.classList.remove("uq-header__nav-primary-item--is-open"))},250)}},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uqds/header",
3
- "version": "0.0.10-alpha.0",
3
+ "version": "1.0.0",
4
4
  "description": "The POC UQ Header component package",
5
5
  "keywords": [
6
6
  "uqds",
@@ -37,13 +37,13 @@
37
37
  "url": "https://github.com/uq-its-ss/design-system/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@uqds/core": "^0.0.8-alpha.0",
41
- "@uqds/form": "^0.0.8-alpha.0",
42
- "@uqds/grid": "^0.0.8-alpha.0",
43
- "@uqds/icon": "^0.0.8-alpha.0"
40
+ "@uqds/core": "^1.0.0",
41
+ "@uqds/form": "^0.0.13-alpha.0",
42
+ "@uqds/grid": "^0.0.13-alpha.0",
43
+ "@uqds/icon": "^0.0.13-alpha.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "gulp": "^4.0.2"
47
47
  },
48
- "gitHead": "e34545659c7d5c649a1f74a417a553c4b824f864"
48
+ "gitHead": "07bdc5a8169d386baae8ea4ffa5b4a75fc7e9ebb"
49
49
  }
package/src/js/header.js CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  /**
4
4
  * NewHeader module
@@ -13,26 +13,26 @@ class NewHeader {
13
13
  }
14
14
 
15
15
  init(el) {
16
- this.menuToggle = el.querySelector('.nav-primary__menu-toggle');
17
- this.searchToggle = el.querySelector('.nav-primary__search-toggle');
18
- this.searchLabel = el.querySelector('.search-toggle__label');
19
- this.searchBlock = el.querySelector('.uq-header__search');
20
- this.searchInput = el.querySelector('.uq-header__search-query-input');
16
+ this.menuToggle = el.querySelector(".nav-primary__menu-toggle");
17
+ this.searchToggle = el.querySelector(".nav-primary__search-toggle");
18
+ this.searchLabel = el.querySelector(".search-toggle__label");
19
+ this.searchBlock = el.querySelector(".uq-header__search");
20
+ this.searchInput = el.querySelector(".uq-header__search-query-input");
21
21
 
22
- this.menuToggle.addEventListener('click', () => {
23
- document.body.classList.toggle('no-scroll');
24
- this.menuToggle.classList.toggle('nav-primary__menu-toggle--is-open');
25
- this.searchToggle.classList.remove('nav-primary__search-toggle--is-open');
26
- this.searchBlock.classList.remove('uq-header__search--is-open');
22
+ this.menuToggle.addEventListener("click", () => {
23
+ document.body.classList.toggle("no-scroll");
24
+ this.menuToggle.classList.toggle("nav-primary__menu-toggle--is-open");
25
+ this.searchToggle.classList.remove("nav-primary__search-toggle--is-open");
26
+ this.searchBlock.classList.remove("uq-header__search--is-open");
27
27
  this.searchLabel.innerHTML = "Search";
28
28
  });
29
29
 
30
- this.searchToggle.addEventListener('click', (e) => {
31
- document.body.classList.remove('no-scroll');
32
- this.searchToggle.classList.toggle('nav-primary__search-toggle--is-open');
33
- this.searchBlock.classList.toggle('uq-header__search--is-open');
34
- this.menuToggle.classList.remove('nav-primary__menu-toggle--is-open');
35
- if (this.searchBlock.classList.contains('uq-header__search--is-open')) {
30
+ this.searchToggle.addEventListener("click", (e) => {
31
+ document.body.classList.remove("no-scroll");
32
+ this.searchToggle.classList.toggle("nav-primary__search-toggle--is-open");
33
+ this.searchBlock.classList.toggle("uq-header__search--is-open");
34
+ this.menuToggle.classList.remove("nav-primary__menu-toggle--is-open");
35
+ if (this.searchBlock.classList.contains("uq-header__search--is-open")) {
36
36
  this.searchInput.focus();
37
37
  } else {
38
38
  this.searchInput.blur();
@@ -47,33 +47,34 @@ class NewHeader {
47
47
  });
48
48
 
49
49
  // megamenu
50
- const megaMenuItem = document.querySelectorAll('.uq-header__nav-primary-item');
50
+ const megaMenuItem = document.querySelectorAll(
51
+ ".uq-header__nav-primary-item"
52
+ );
51
53
  megaMenuItem.forEach((item) => {
52
- item.addEventListener('mouseenter', this.handleToggle);
53
- item.addEventListener('mouseleave', this.handleToggle);
54
+ item.addEventListener("mouseenter", this.handleToggle);
55
+ item.addEventListener("mouseleave", this.handleToggle);
54
56
  });
55
-
56
57
  }
57
58
 
58
59
  handleToggle(event) {
59
60
  let menuItem = event.target;
60
- if (menuItem.tagName !== 'LI') {
61
+ if (menuItem.tagName !== "LI") {
61
62
  menuItem = menuItem.parentElement;
62
63
  }
63
64
  menuItem.eventType = event.type;
64
65
 
65
- window.setTimeout(function() {
66
+ window.setTimeout(function () {
66
67
  if (
67
- (event.type === 'mouseenter' || event.type === 'mouseleave') &&
68
- window.matchMedia('(max-width: 1024px)').matches
68
+ (event.type === "mouseenter" || event.type === "mouseleave") &&
69
+ window.matchMedia("(max-width: 1024px)").matches
69
70
  ) {
70
71
  return;
71
72
  }
72
73
 
73
- if (menuItem.eventType === 'mouseenter') {
74
- menuItem.classList.add('uq-header__nav-primary-item--is-open');
75
- } else {
76
- menuItem.classList.remove('uq-header__nav-primary-item--is-open');
74
+ if (menuItem.eventType === "mouseenter") {
75
+ menuItem.classList.add("uq-header__nav-primary-item--is-open");
76
+ } else {
77
+ menuItem.classList.remove("uq-header__nav-primary-item--is-open");
77
78
  }
78
79
  }, 250);
79
80
  }
package/src/js/main.js CHANGED
@@ -1,4 +1,2 @@
1
- import header from './header';
2
- export {
3
- header
4
- };
1
+ import header from "./header";
2
+ export { header };
@@ -1,10 +1,9 @@
1
- @use '@uqds/core/src/scss/global' as core;
1
+ @use "@uqds/core/src/scss/global" as core;
2
2
  @use "@uqds/icon/src/scss/global" as icon-constants;
3
- @use '@uqds/grid/src/scss/global' as grid;
4
- @use 'global' as *;
3
+ @use "@uqds/grid/src/scss/global" as grid;
4
+ @use "global" as *;
5
5
 
6
6
  .uq-header {
7
-
8
7
  background: core.$uq-purple; //linear-gradient(90deg, $uq-purple 0%, 87%, #962A8B 100%);
9
8
  display: grid;
10
9
  align-items: center;
@@ -16,32 +15,30 @@
16
15
 
17
16
  @media #{core.$screen-lg-up} {
18
17
  grid-template-areas:
19
- "secondarynav"
20
- "mainheader";
18
+ "secondarynav"
19
+ "mainheader";
21
20
  }
22
-
23
- &__container {
24
21
 
22
+ &__container {
25
23
  display: grid;
26
24
  align-items: center;
27
25
  grid-template-columns: 1fr 15fr 1fr;
28
26
  grid-area: mainheader;
29
27
  grid-template-areas:
30
- "menutoggle logo searchtoggle"
31
- "mainnav-mobile mainnav-mobile mainnav-mobile";
28
+ "menutoggle logo searchtoggle"
29
+ "mainnav-mobile mainnav-mobile mainnav-mobile";
32
30
 
33
31
  @media #{core.$screen-lg-up} {
34
32
  max-width: 73.25rem;
35
33
  margin-left: auto;
36
34
  margin-right: auto;
37
- grid-template-areas:
38
- "logo mainnav searchtoggle";
39
- padding-left: core.$space;
40
- padding-right: core.$space;
35
+ grid-template-areas: "logo mainnav searchtoggle";
36
+ padding-left: core.$space-m;
37
+ padding-right: core.$space-m;
41
38
  }
42
39
  }
43
40
 
44
- &__menu-toggle {
41
+ &__menu-toggle {
45
42
  grid-area: menutoggle;
46
43
 
47
44
  @media #{core.$screen-lg-up} {
@@ -75,7 +72,7 @@
75
72
  & .nav-primary__toggle {
76
73
  background: none;
77
74
  border: none;
78
- padding: 1.75rem core.$space-l;
75
+ padding: 1.75rem core.$space-xl;
79
76
  height: 100%;
80
77
 
81
78
  @media #{core.$screen-lg-up} {
@@ -88,24 +85,30 @@
88
85
  cursor: pointer;
89
86
  color: core.$uq-white;
90
87
  position: relative;
91
- text-indent: -9999px;
92
- white-space: nowrap;
88
+ text-indent: -9999px;
89
+ white-space: nowrap;
93
90
 
94
91
  &::before {
95
92
  content: "";
96
- background-image: url(icon-constants.get-icon("standard--navigation-menu", core.$uq-white));
93
+ background-image: url(icon-constants.get-icon(
94
+ "standard--navigation-menu",
95
+ core.$uq-white
96
+ ));
97
97
  background-repeat: no-repeat;
98
98
  width: 1.5rem;
99
99
  height: 1.5rem;
100
100
  transform: translate(50%, 50%);
101
101
  position: absolute;
102
- top: .625rem;
103
- right: core.$space-l;
102
+ top: 0.625rem;
103
+ right: core.$space-xl;
104
104
  }
105
105
 
106
106
  &--is-open {
107
107
  &::before {
108
- background-image: url(icon-constants.get-icon("standard--x", core.$uq-white));
108
+ background-image: url(icon-constants.get-icon(
109
+ "standard--x",
110
+ core.$uq-white
111
+ ));
109
112
  }
110
113
  }
111
114
  }
@@ -117,15 +120,18 @@
117
120
 
118
121
  &::before {
119
122
  content: "";
120
- background-image: url(icon-constants.get-icon("standard--search", core.$uq-white));
123
+ background-image: url(icon-constants.get-icon(
124
+ "standard--search",
125
+ core.$uq-white
126
+ ));
121
127
  background-repeat: no-repeat;
122
128
  width: 1.5rem;
123
129
  height: 1.5rem;
124
130
  transform: translate(50%, 50%);
125
131
  position: absolute;
126
- top: .625rem;
127
- right: core.$space-l;
128
-
132
+ top: 0.625rem;
133
+ right: core.$space-xl;
134
+
129
135
  @media #{core.$screen-lg-up} {
130
136
  top: 0.1rem;
131
137
  left: -1rem;
@@ -140,18 +146,18 @@
140
146
  }
141
147
 
142
148
  &--is-open {
143
-
144
149
  &::before {
145
- background-image: url(icon-constants.get-icon("standard--x", core.$uq-white));
150
+ background-image: url(icon-constants.get-icon(
151
+ "standard--x",
152
+ core.$uq-white
153
+ ));
146
154
  }
147
155
  }
148
-
149
156
  }
150
157
 
151
158
  &__logo {
152
159
  grid-area: logo;
153
160
 
154
-
155
161
  & a {
156
162
  display: grid;
157
163
  padding: 1rem 0;
@@ -180,9 +186,8 @@
180
186
  }
181
187
 
182
188
  &__nav-primary-container {
183
-
184
189
  @media #{core.$screen-lg-up} {
185
- padding: 0 0 0 core.$space-xl;
190
+ padding: 0 0 0 core.$space-xxl;
186
191
  }
187
192
  }
188
193
 
@@ -194,7 +199,7 @@
194
199
  justify-content: flex-start;
195
200
  align-items: stretch;
196
201
  flex-direction: column;
197
-
202
+
198
203
  @media #{core.$screen-lg-up} {
199
204
  align-items: center;
200
205
  flex-direction: row;
@@ -229,8 +234,8 @@
229
234
  display: block;
230
235
  color: core.$uq-white; //core.$uq-purple;
231
236
  text-decoration: none;
232
- padding: core.$space core.$space-m;
233
- transition: background-color .25s,border-color .25s;
237
+ padding: core.$space-m core.$space-l;
238
+ transition: background-color 0.25s, border-color 0.25s;
234
239
  font-weight: 400;
235
240
  position: relative;
236
241
  border-bottom: 4px solid transparent;
@@ -240,28 +245,30 @@
240
245
  text-decoration: none;
241
246
  }
242
247
 
243
-
244
248
  @media #{core.$screen-lg-up} {
245
- padding: core.$space-l core.$space-s;
249
+ padding: core.$space-xl core.$space-s;
246
250
  }
247
251
  }
248
252
 
249
253
  .nav-primary-link--has-dropdown {
250
- padding: core.$space-l core.$space-m core.$space-l core.$space-s;
254
+ padding: core.$space-xl core.$space-l core.$space-xl core.$space-s;
251
255
 
252
256
  &::after {
253
257
  content: "";
254
- background-image: url(icon-constants.get-icon("standard--chevron-down-sml", core.$uq-white));
258
+ background-image: url(icon-constants.get-icon(
259
+ "standard--chevron-down-sml",
260
+ core.$uq-white
261
+ ));
255
262
  background-repeat: no-repeat;
256
- width: core.$space;
257
- height: core.$space;
263
+ width: core.$space-m;
264
+ height: core.$space-m;
258
265
  transform: translateY(50%);
259
266
  position: absolute;
260
267
  top: 1.7rem;
261
268
  right: 1.75rem;
262
269
 
263
270
  @media #{core.$screen-lg-up} {
264
- right: .25rem;
271
+ right: 0.25rem;
265
272
  }
266
273
  }
267
274
  }
@@ -274,9 +281,8 @@
274
281
  padding-left: 0;
275
282
 
276
283
  & li {
277
-
278
284
  & a {
279
- padding-left: core.$space-xxl;
285
+ padding-left: core.$space-xxxl;
280
286
  color: core.$uq-purple;
281
287
  }
282
288
  }
@@ -288,7 +294,7 @@
288
294
 
289
295
  & li {
290
296
  & a {
291
- padding-left: core.$space-ul;
297
+ padding-left: core.$space-uul;
292
298
  }
293
299
  }
294
300
  }
@@ -316,7 +322,7 @@
316
322
  justify-content: flex-start;
317
323
  align-items: stretch;
318
324
  flex-direction: column;
319
-
325
+
320
326
  @media #{core.$screen-lg-up} {
321
327
  justify-content: flex-end;
322
328
  align-items: center;
@@ -331,11 +337,11 @@
331
337
  &__nav-secondary-link {
332
338
  display: block;
333
339
  color: white;
334
- padding: core.$space core.$space-m;
340
+ padding: core.$space-m core.$space-l;
335
341
 
336
342
  @media #{core.$screen-lg-up} {
337
343
  font-size: core.$font-size-s;
338
- padding: .625rem core.$space;
344
+ padding: 0.625rem core.$space-m;
339
345
  }
340
346
 
341
347
  &:hover {
@@ -344,14 +350,13 @@
344
350
  }
345
351
 
346
352
  &__search {
347
-
348
353
  background: core.$uq-purple;
349
354
  position: absolute;
350
355
  width: 100%;
351
356
  top: 3.95rem;
352
357
  z-index: 20;
353
- box-shadow: 0 .75rem core.$space-m rgb(24 24 24 / 20%);
354
- transition: max-height .2s ease-in-out, transform .2s ease-in-out;//, visibility .2s ease;
358
+ box-shadow: 0 0.75rem core.$space-l rgb(24 24 24 / 20%);
359
+ transition: max-height 0.2s ease-in-out, transform 0.2s ease-in-out; //, visibility .2s ease;
355
360
  transform: translateY(-1rem);
356
361
  max-height: 0;
357
362
  overflow: hidden;
@@ -361,7 +366,7 @@
361
366
  top: 8.3rem;
362
367
  }
363
368
 
364
- &--is-open {
369
+ &--is-open {
365
370
  transform: translateY(0);
366
371
  max-height: 50vh;
367
372
  visibility: visible;
@@ -369,12 +374,11 @@
369
374
  }
370
375
 
371
376
  &__search-container {
372
-
373
- padding: 0 core.$space-m;
377
+ padding: 0 core.$space-l;
374
378
 
375
379
  @media #{core.$screen-lg-up} {
376
- padding-left: core.$space;
377
- padding-right: core.$space;
380
+ padding-left: core.$space-m;
381
+ padding-right: core.$space-m;
378
382
  max-width: 73.25rem;
379
383
  margin-left: auto;
380
384
  margin-right: auto;
@@ -389,9 +393,9 @@
389
393
  max-width: 100%;
390
394
  min-width: 100%;
391
395
  border-radius: 5px;
392
- background-position: core.$space;
393
- padding-top: core.$space;
394
- padding-bottom: core.$space;
396
+ background-position: core.$space-m;
397
+ padding-top: core.$space-m;
398
+ padding-bottom: core.$space-m;
395
399
  }
396
400
 
397
401
  &__search-query-label {
@@ -400,7 +404,7 @@
400
404
 
401
405
  &__search-query-input {
402
406
  margin: 0 !important;
403
- padding: .75rem core.$space !important;
407
+ padding: 0.75rem core.$space-m !important;
404
408
  }
405
409
 
406
410
  &__search-query-button {
@@ -421,19 +425,22 @@
421
425
  text-decoration: none;
422
426
  text-indent: 0;
423
427
  top: calc(50% - 1.375rem);
424
- transition: color .2s,background-color .2s,border-color .2s;
428
+ transition: color 0.2s, background-color 0.2s, border-color 0.2s;
425
429
  width: 2.75rem;
426
430
 
427
431
  &::before {
428
432
  content: "";
429
433
  position: absolute;
430
434
  display: block;
431
- width: core.$space-m;
432
- height: core.$space-m;
435
+ width: core.$space-l;
436
+ height: core.$space-l;
433
437
  top: core.$space-s;
434
438
  left: core.$space-s;
435
439
  background-size: 100%;
436
- background-image: url(icon-constants.get-icon("standard--search", core.$uq-purple));
440
+ background-image: url(icon-constants.get-icon(
441
+ "standard--search",
442
+ core.$uq-purple
443
+ ));
437
444
  }
438
445
  }
439
446
 
@@ -453,30 +460,29 @@
453
460
  }
454
461
 
455
462
  &__search-range {
456
-
457
463
  display: inline-block;
458
464
 
459
465
  & label {
460
466
  color: core.$uq-white;
461
467
  }
462
468
  }
463
-
469
+
464
470
  .uq-header__search-radio {
465
471
  &:checked {
466
- border-color: core.$uq-white;
472
+ border-color: core.$uq-white;
467
473
 
468
- &:focus {
469
- border-color: core.$uq-white;
470
- }
474
+ &:focus {
475
+ border-color: core.$uq-white;
476
+ }
471
477
 
472
- &::after {
473
- background-color: core.$uq-white;
474
- }
478
+ &::after {
479
+ background-color: core.$uq-white;
480
+ }
475
481
  }
476
482
  }
477
483
 
478
484
  &__search-label {
479
- font-size: .8rem !important;
485
+ font-size: 0.8rem !important;
480
486
  line-height: 1.7 !important;
481
487
 
482
488
  @media #{core.$screen-lg-up} {
@@ -507,11 +513,11 @@
507
513
  margin-left: auto;
508
514
  margin-right: auto;
509
515
 
510
- padding: core.$space core.$space-xxl core.$space-xl core.$space-xxl;
516
+ padding: core.$space-m core.$space-xxxl core.$space-xxl core.$space-xxxl;
511
517
  background: core.$uq-white;
512
- box-shadow: 0 0.75rem core.$space-m rgb(24 24 24 / 20%);
513
- border-radius: 0 0 .25rem .25rem;
514
-
518
+ box-shadow: 0 0.75rem core.$space-l rgb(24 24 24 / 20%);
519
+ border-radius: 0 0 0.25rem 0.25rem;
520
+
515
521
  @media #{core.$screen-xl-up} {
516
522
  max-width: 77.25rem;
517
523
  }
@@ -524,7 +530,7 @@
524
530
 
525
531
  .megamenu__overview-link {
526
532
  display: block;
527
- padding: core.$space core.$space-none;
533
+ padding: core.$space-m core.$space-none;
528
534
  color: core.$uq-purple;
529
535
  }
530
536
 
@@ -535,7 +541,7 @@
535
541
  padding-bottom: core.$space-xs;
536
542
 
537
543
  &:nth-of-type(2) {
538
- padding-top: core.$space-xl;
544
+ padding-top: core.$space-xxl;
539
545
  }
540
546
  }
541
547
 
@@ -556,7 +562,7 @@
556
562
  }
557
563
  }
558
564
  }
559
- }
565
+ }
560
566
 
561
567
  :root {
562
568
  --app-height: 100%;
@@ -570,60 +576,60 @@ body.no-scroll {
570
576
  }
571
577
  }
572
578
 
573
- // Slide mobile menu
579
+ // Slide mobile menu
574
580
 
575
581
  .slide-menu {
576
- width:100%;
577
- max-width:100%;
578
- background-color:#FFFFFF;
582
+ width: 100%;
583
+ max-width: 100%;
584
+ background-color: #ffffff;
579
585
  height: calc(var(--app-height) - 4.3rem);
580
- display:none;
581
- box-sizing:border-box;
582
- transition:transform .3s ease-in-out;
583
- transform:translateX(100%);
584
- will-change:transform;
585
- z-index:1000;
586
+ display: none;
587
+ box-sizing: border-box;
588
+ transition: transform 0.3s ease-in-out;
589
+ transform: translateX(100%);
590
+ will-change: transform;
591
+ z-index: 1000;
586
592
  grid-area: mainnav-mobile;
587
- position:fixed;
593
+ position: fixed;
588
594
  top: 4.3rem;
589
- right:core.$space-none;
590
- overflow-y:auto;
591
- overflow-x:hidden;
595
+ right: core.$space-none;
596
+ overflow-y: auto;
597
+ overflow-x: hidden;
592
598
  font-size: core.$font-size;
593
- color:core.$uq-purple;
599
+ color: core.$uq-purple;
594
600
 
595
601
  @media #{core.$screen-lg-up} {
596
602
  display: none !important;
597
603
  }
598
604
 
599
605
  .slide-menu__slider {
600
- width:100%;
601
- transform:translateX(0);
602
- transition:transform .3s ease-in-out;
603
- will-change:transform;
606
+ width: 100%;
607
+ transform: translateX(0);
608
+ transition: transform 0.3s ease-in-out;
609
+ will-change: transform;
604
610
  }
605
611
 
606
612
  ul {
607
- position:relative;
608
- width:100%;
609
- margin:core.$space-none;
610
- padding-left:core.$space-none;
611
- list-style:none;
613
+ position: relative;
614
+ width: 100%;
615
+ margin: core.$space-none;
616
+ padding-left: core.$space-none;
617
+ list-style: none;
612
618
  background-color: core.$uq-white;
613
619
 
614
620
  ul {
615
- position:absolute;
616
- top:core.$space-none;
617
- left:100%;
618
- display:none;
621
+ position: absolute;
622
+ top: core.$space-none;
623
+ left: 100%;
624
+ display: none;
619
625
 
620
626
  a {
621
- padding: .75rem core.$space-m .75rem core.$space-xxl;
627
+ padding: 0.75rem core.$space-l 0.75rem core.$space-xxxl;
622
628
  }
623
629
  }
624
630
 
625
631
  a {
626
- display:block;
632
+ display: block;
627
633
  }
628
634
  }
629
635
 
@@ -631,9 +637,8 @@ body.no-scroll {
631
637
  margin-bottom: core.$space-none;
632
638
 
633
639
  &:hover {
634
- background-color:#f1f1f1;
640
+ background-color: #f1f1f1;
635
641
  }
636
-
637
642
  }
638
643
 
639
644
  .slide-menu__control {
@@ -642,26 +647,29 @@ body.no-scroll {
642
647
  }
643
648
 
644
649
  a {
645
- cursor:pointer;
646
- padding: .75rem core.$space-m;
647
- text-decoration:none;
650
+ cursor: pointer;
651
+ padding: 0.75rem core.$space-l;
652
+ text-decoration: none;
648
653
  font-size: core.$font-size;
649
- color:core.$uq-purple;
654
+ color: core.$uq-purple;
650
655
  position: relative;
651
656
 
652
657
  &:hover {
653
- color:core.$uq-purple;
654
- background-color:#f1f1f1;
658
+ color: core.$uq-purple;
659
+ background-color: #f1f1f1;
655
660
  }
656
661
  }
657
662
 
658
663
  & .slide-menu__backlink {
659
664
  font-weight: 500;
660
- padding-left: core.$space-xxl;
665
+ padding-left: core.$space-xxxl;
661
666
 
662
667
  &::before {
663
668
  content: "";
664
- background-image: url(icon-constants.get-icon("standard--chevron-left-sml", core.$uq-purple));
669
+ background-image: url(icon-constants.get-icon(
670
+ "standard--chevron-left-sml",
671
+ core.$uq-purple
672
+ ));
665
673
  background-repeat: no-repeat;
666
674
  width: 1.5rem;
667
675
  height: 1.5rem;
@@ -673,10 +681,12 @@ body.no-scroll {
673
681
  }
674
682
 
675
683
  &__decorator {
676
-
677
684
  &::before {
678
685
  content: "";
679
- background-image: url(icon-constants.get-icon("standard--chevron-right-sml", core.$uq-purple));
686
+ background-image: url(icon-constants.get-icon(
687
+ "standard--chevron-right-sml",
688
+ core.$uq-purple
689
+ ));
680
690
  background-repeat: no-repeat;
681
691
  width: 1.5rem;
682
692
  height: 1.5rem;
@@ -689,55 +699,56 @@ body.no-scroll {
689
699
 
690
700
  /* Controls */
691
701
  .controls {
692
- display:flex;
693
- margin-bottom:core.$space;
702
+ display: flex;
703
+ margin-bottom: core.$space-m;
694
704
  }
695
705
 
696
706
  .btn {
697
- padding:.75rem core.$space-m;
698
- flex:1 0 auto;
699
- font-size:90%;
700
- color:core.$uq-purple;
701
- background-color:core.$uq-white;
702
- text-transform:uppercase;
703
-
704
- border:none;
705
- cursor:pointer;
706
- font-family:inherit;
707
- line-height:1;
707
+ padding: 0.75rem core.$space-l;
708
+ flex: 1 0 auto;
709
+ font-size: 90%;
710
+ color: core.$uq-purple;
711
+ background-color: core.$uq-white;
712
+ text-transform: uppercase;
713
+
714
+ border: none;
715
+ cursor: pointer;
716
+ font-family: inherit;
717
+ line-height: 1;
708
718
 
709
719
  &:first-of-type {
710
- text-align:left;
720
+ text-align: left;
711
721
 
712
722
  &:before {
713
- content:"⮜ this";
714
- margin-right:.5rem;
723
+ content: "⮜ this";
724
+ margin-right: 0.5rem;
715
725
  }
716
726
  }
717
727
 
718
728
  &:last-of-type {
719
- text-align:right;
729
+ text-align: right;
720
730
 
721
- &:before {content:"✕";
722
- margin-right:.5rem;
731
+ &:before {
732
+ content: "✕";
733
+ margin-right: 0.5rem;
723
734
  }
724
735
  }
725
736
  }
726
737
 
727
738
  .uq-header__nav-secondary-item {
728
- background-color:#48206C;
739
+ background-color: #48206c;
729
740
 
730
741
  &:hover {
731
- background-color:#48206C;
742
+ background-color: #48206c;
732
743
  }
733
744
  }
734
745
 
735
746
  .uq-header__nav-secondary-link {
736
- color:core.$uq-white;
747
+ color: core.$uq-white;
737
748
 
738
749
  &:hover {
739
- color:core.$uq-white;
740
- background-color:#48206C;
750
+ color: core.$uq-white;
751
+ background-color: #48206c;
741
752
  }
742
753
  }
743
754
 
@@ -746,29 +757,31 @@ body.no-scroll {
746
757
  }
747
758
 
748
759
  .uq-header__newglobal-nav-item {
749
- background-color:core.$uq-purple;
760
+ background-color: core.$uq-purple;
750
761
  }
751
762
 
752
763
  .uq-header__newglobal-nav-link {
753
- color:core.$uq-white;
754
- background-color:core.$uq-purple;
764
+ color: core.$uq-white;
765
+ background-color: core.$uq-purple;
755
766
 
756
767
  &:hover {
757
- color:core.$uq-white;
758
- background-color:core.$uq-purple;
768
+ color: core.$uq-white;
769
+ background-color: core.$uq-purple;
759
770
  }
760
771
  }
761
772
 
762
773
  .uq-header__newglobal-nav-link .slide-menu__decorator::before {
763
774
  content: "";
764
- background-image: url(icon-constants.get-icon("standard--chevron-right-sml", core.$uq-white));
775
+ background-image: url(icon-constants.get-icon(
776
+ "standard--chevron-right-sml",
777
+ core.$uq-white
778
+ ));
765
779
  }
766
780
  }
767
781
 
768
782
  /* LOCAL SITE NAVIGATION MODIFIERS */
769
783
 
770
784
  .global-mobile-nav {
771
-
772
785
  .uq-site-header__title-container {
773
786
  margin: 0;
774
787
  padding: 1rem 1.5rem;
@@ -778,8 +791,8 @@ body.no-scroll {
778
791
  padding: 0;
779
792
  font-size: 1rem;
780
793
  font-weight: 500;
781
- display:block;
782
-
794
+ display: block;
795
+
783
796
  &:hover {
784
797
  background: none;
785
798
  }
@@ -788,7 +801,6 @@ body.no-scroll {
788
801
  &__audience-link {
789
802
  font-weight: 500;
790
803
  }
791
-
792
804
  }
793
805
 
794
806
  .uq-site-header__navigation-toggle {
@@ -804,7 +816,6 @@ body.no-scroll {
804
816
  @media #{core.$screen-md-up} {
805
817
  top: 6.15rem;
806
818
  }
807
-
808
819
  }
809
820
  }
810
821
  .uq-header {
@@ -831,14 +842,15 @@ body.no-scroll {
831
842
  border-bottom: 4px solid #fff;
832
843
  }
833
844
 
834
- .uq-header__nav-primary-link, .uq-header__nav-primary-link:focus {
845
+ .uq-header__nav-primary-link,
846
+ .uq-header__nav-primary-link:focus {
835
847
  display: block;
836
848
  color: #fff;
837
849
  text-decoration: none;
838
- transition: background-color .25s,border-color .25s;
850
+ transition: background-color 0.25s, border-color 0.25s;
839
851
  font-weight: 400;
840
852
  position: relative;
841
- border-bottom: 4px solid core.$uq-purple;
853
+ border-bottom: 4px solid transparent;
842
854
  }
843
855
 
844
856
  .uq-header a:focus {
@@ -846,10 +858,11 @@ body.no-scroll {
846
858
  }
847
859
 
848
860
  .uq-header__search-container {
849
- form, fieldset {
850
- border: unset;
851
- padding: 0;
852
- margin: 0;
861
+ form,
862
+ fieldset {
863
+ border: unset;
864
+ padding: 0;
865
+ margin: 0;
853
866
  }
854
867
  }
855
868
 
@@ -868,8 +881,7 @@ body.no-scroll {
868
881
  line-height: normal;
869
882
  }
870
883
 
871
-
872
- /* D7 and D9 search fixes */
884
+ /* D7 and D9 search fixes */
873
885
  .uq-header__search-range {
874
886
  display: inline-block;
875
887
  }
@@ -881,7 +893,7 @@ body.no-scroll {
881
893
  display: inline-block;
882
894
  border-radius: 50%;
883
895
  background-color: transparent;
884
- margin:3px 3px 0 5px;
896
+ margin: 3px 3px 0 5px;
885
897
  position: absolute;
886
898
 
887
899
  /* Missing form component styles */
@@ -890,12 +902,12 @@ body.no-scroll {
890
902
  border: 1px solid #e7e3e0;
891
903
  cursor: pointer;
892
904
  }
893
- .uq-header__search-range input[type=radio]+label {
905
+ .uq-header__search-range input[type="radio"] + label {
894
906
  margin-bottom: 1rem;
895
907
  margin-left: 0.5rem;
896
908
  margin-right: 1rem;
897
- padding-top: 0.125rem;
898
- padding-left: 1.5rem;
909
+ padding-top: 0.125rem;
910
+ padding-left: 1.5rem;
899
911
  }
900
912
 
901
913
  .uq-header__search-range label {
@@ -915,7 +927,7 @@ input[type="radio"].uq-header__search-radio:focus {
915
927
  }
916
928
 
917
929
  input[type="radio"].uq-header__search-radio:checked::after {
918
- content:"";
930
+ content: "";
919
931
  background-color: core.$uq-white;
920
932
  border-radius: 50%;
921
933
  content: "";
@@ -925,4 +937,4 @@ input[type="radio"].uq-header__search-radio:checked::after {
925
937
  left: 3px;
926
938
  height: 10px;
927
939
  width: 10px;
928
- }
940
+ }
@@ -1,6 +1,6 @@
1
- @use '@uqds/core/src/scss/global' as core;
1
+ @use "@uqds/core/src/scss/global" as core;
2
2
 
3
3
  // Variables, functions, and mixins
4
4
  $site-footer-color: mix(core.$uq-white, core.$uq-purple, 75%);
5
5
  $site-footer-link-color: core.$uq-white;
6
- $site-footer-font-size: .875rem;
6
+ $site-footer-font-size: 0.875rem;
@@ -1 +1 @@
1
- @use 'component';
1
+ @use "component";