PHP Fatal error: Call to undefined function check_markup() in /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php(20) : eval()'d code on line 5 PHP Stack trace: PHP 1. {main}() /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:0
PHP 2. eval() /home/ubuntu/corporate/www/sites/all/themes/corp_base/node_modules/tpl-php/transformer.php:20
  • Content:
    .pa-promo,
    .info-box-link {
      @include rem(padding, 25px);
      background-color: $darkThemeBlue;
      color: $white;
      display: none;
    
      .wt-grid-center & {
        box-sizing: border-box;
        display: block;
        left: -$grid-content-padding;
        position: relative;
        width: calc(100% + #{$grid-content-padding * 2});
    
        @include respond-to($grid-breakpoint-m) {
          display: none;
        }
      }
    
      .wt-grid-right & {
        @include respond-to($grid-breakpoint-m) {
          display: block;
        }
      }
    
      a,
      p a {
        @extend %link__colour--dark-theme;
      }
    
      + h2 {
        border-top: 0;
      }
    }
    
    //display on smaller screen.
    .info-box-link {
      display: block;
    }
    
    // specificity babes
    h3.pa-promo__title.pa-promo__title {
      color: $white;
    
      @include respond-to($grid-breakpoint-s) {
        @include font-size-with-line-height($h2FontSize, $h2LineHeight);
      }
    }
    
    .pa-promo__anchor.pa-promo__anchor {
      @include rem(margin, $grid-typo-spacing-m 0 $grid-typo-spacing-xxs);
      background: none;
      cursor: pointer;
      display: inline-block;
      font-weight: bold;
      text-decoration: none;
      &:hover {
        &:after {
          @include iconChevron($paLinkHoverColor);
        }
      }
    
      &:after {
        @extend %icons;
        @include iconChevron($ncLightOrange);
        @include inTextIcon;
        background-position: center center;
        background-size: 50%;
        content: '';
        transform: rotate(90deg);
    
        @media print {
          display: none;
        }
      }
    }
    
    .pa-promo__show-hide__title.pa-promo__show-hide__title {
      background: none;
    
      .collapsible__switch {
        color: $ncLightOrange;
        padding: 0;
    
        .svg &:after {
          @extend %icon--cross--orange;
          @include inTextIcon;
          background-position: center center;
          background-repeat: no-repeat;
          background-size: 70%;
          content: '';
        }
      }
    
      &.active {
        display: none;
      }
    }
    
    .pa-promo__mobile-content {
      display: block;
    
      .enhanced & {
        @include respond-to($grid-breakpoint-m) {
          display: none;
        }
      }
    
      .collapsible__content {
        padding-bottom: 0;
      }
      // guys we need to sort out what's a filter and what isn't, this is crazy
      &.js-open-filter {
        margin-bottom: 0;
      }
    }
    
    .pa-promo__desktop-content {
      display: none;
    
      @include respond-to($grid-breakpoint-m) {
        display: block;
      }
    }
    
  • URL: /components/raw/explainer-box/_include-priority-areas-promo.scss
  • Filesystem Path: ../../modules/custom/corp_markup/theme/paragraphs/links_promo_reference.tpl.php/_include-priority-areas-promo.scss
  • Size: 2.3 KB

Description

An explainer box which appears in the right-hand column on desktop, and in main content on mobile.

On mobile, it hides the content in a show-hide.


Content notes

Place the component in your main content. JavaScript will then make sure it displays in the RHC on desktop.

UX notes

Design notes

Back-end notes

Front-end notes

{
  "title": "Explainer box",
  "content": "<p>This is an example of an explainer box, as used in Priority Area pages</p>\n<a class=\"pa-promo__anchor\">Explore more stuff</a>"
}
  • Handle: @explainer-box
  • Preview:
  • Filesystem Path: ../../modules/custom/corp_markup/theme/paragraphs/links_promo_reference.tpl.php/links_promo_reference.tpl.php