@penskemediacorp/larva-patterns 1.2.0-alpha.0 → 1.3.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/LICENSE +21 -0
- package/README.md +9 -6
- package/__tests__/css/css.html +9 -0
- package/__tests__/css/css.prototype.js +1 -0
- package/__tests__/hub/hub.html +25 -0
- package/__tests__/hub/hub.prototype.js +30 -0
- package/__tests__/profile/profile.html +29 -0
- package/__tests__/profile/profile.prototype.js +17 -0
- package/__tests__/profile-index/profile-index.html +9 -0
- package/__tests__/profile-index/profile-index.prototype.js +6 -0
- package/__tests__/vlanding/vlanding.html +7 -0
- package/__tests__/vlanding/vlanding.prototype.js +11 -0
- package/_data/brands.json +40 -0
- package/_templates/pattern-nav.html +52 -0
- package/algorithms/a-carousel-grid/README.md +5 -0
- package/algorithms/a-carousel-grid/a-carousel-grid.html +25 -0
- package/algorithms/a-carousel-grid/a-carousel-grid.overlay.js +12 -0
- package/algorithms/a-carousel-grid/a-carousel-grid.prototype.js +0 -0
- package/algorithms/a-icon/a-icon.html +1 -0
- package/algorithms/a-icon/a-icon.prototype.js +0 -0
- package/base.html +73 -0
- package/components/c-button/README.md +3 -0
- package/components/c-button/c-button.black.js +7 -0
- package/components/c-button/c-button.brand-basic.js +8 -0
- package/components/c-button/c-button.ghost.js +10 -0
- package/components/c-button/c-button.prototype.js +11 -0
- package/components/c-button/c-button.stripped.js +8 -0
- package/components/c-button/c-button.twig +19 -0
- package/components/c-checkbox-input/c-checkbox-input.prototype.js +6 -0
- package/components/c-checkbox-input/c-checkbox-input.twig +4 -0
- package/components/c-dek/README.md +3 -0
- package/components/c-dek/c-dek.prototype.js +5 -0
- package/components/c-dek/c-dek.twig +9 -0
- package/components/c-email-field/README.md +0 -0
- package/components/c-email-field/c-email-field.ghost.js +10 -0
- package/components/c-email-field/c-email-field.prototype.js +8 -0
- package/components/c-email-field/c-email-field.twig +4 -0
- package/components/c-figcaption/c-figcaption.prototype.js +9 -0
- package/components/c-figcaption/c-figcaption.twig +16 -0
- package/components/c-heading/README.md +4 -0
- package/components/c-heading/c-heading.prototype.js +10 -0
- package/components/c-heading/c-heading.twig +29 -0
- package/components/c-hidden-field/c-hidden-field.prototype.js +5 -0
- package/components/c-hidden-field/c-hidden-field.twig +1 -0
- package/components/c-icon/c-icon.full.js +8 -0
- package/components/c-icon/c-icon.prototype.js +12 -0
- package/components/c-icon/c-icon.twig +34 -0
- package/components/c-input/c-input.prototype.js +8 -0
- package/components/c-input/c-input.twig +14 -0
- package/components/c-label/README.md +12 -0
- package/components/c-label/c-label.prototype.js +7 -0
- package/components/c-label/c-label.twig +19 -0
- package/components/c-lazy-image/README.md +35 -0
- package/components/c-lazy-image/c-lazy-image.prototype.js +17 -0
- package/components/c-lazy-image/c-lazy-image.twig +31 -0
- package/components/c-link/README.md +1 -0
- package/components/c-link/c-link.prototype.js +9 -0
- package/components/c-link/c-link.twig +13 -0
- package/components/c-logo/c-logo.prototype.js +7 -0
- package/components/c-logo/c-logo.twig +10 -0
- package/components/c-nav-link/c-nav-link.prototype.js +7 -0
- package/components/c-nav-link/c-nav-link.twig +10 -0
- package/components/c-play-badge/c-play-badge.prototype.js +3 -0
- package/components/c-play-badge/c-play-badge.twig +7 -0
- package/components/c-select-option/c-select-option.prototype.js +5 -0
- package/components/c-select-option/c-select-option.twig +5 -0
- package/{src/components/c-label/c-label.scss → components/c-span/README.md} +0 -19
- package/components/c-span/c-span.prototype.js +7 -0
- package/components/c-span/c-span.tag.js +7 -0
- package/components/c-span/c-span.twig +11 -0
- package/components/c-svg/c-svg.prototype.js +4 -0
- package/components/c-svg/c-svg.twig +3 -0
- package/components/c-tagline/README.md +3 -0
- package/components/c-tagline/c-tagline.prototype.js +4 -0
- package/{src/components → components}/c-tagline/c-tagline.twig +3 -3
- package/components/c-timestamp/c-timestamp.prototype.js +6 -0
- package/components/c-timestamp/c-timestamp.twig +9 -0
- package/components/c-title/README.md +7 -0
- package/components/c-title/c-title.prototype.js +9 -0
- package/{src/components → components}/c-title/c-title.twig +14 -2
- package/css.html +44 -0
- package/index.html +9 -0
- package/index.js +4 -0
- package/modules/age-gate/README.md +3 -0
- package/modules/age-gate/age-gate.prototype.js +68 -0
- package/modules/age-gate/age-gate.twig +37 -0
- package/modules/article-callout/article-callout.prototype.js +5 -0
- package/modules/article-callout/article-callout.twig +3 -0
- package/modules/article-excerpt/article-excerpt.prototype.js +4 -0
- package/modules/article-excerpt/article-excerpt.twig +1 -0
- package/modules/article-kicker/article-kicker.prototype.js +6 -0
- package/modules/article-kicker/article-kicker.twig +13 -0
- package/modules/article-tags/article-tags.prototype.js +24 -0
- package/modules/article-tags/article-tags.twig +3 -0
- package/modules/article-title/article-title.prototype.js +4 -0
- package/modules/article-title/article-title.twig +1 -0
- package/modules/author/author.prototype.js +43 -0
- package/modules/author/author.twig +38 -0
- package/modules/author-details/author-details.prototype.js +70 -0
- package/modules/author-details/author-details.twig +25 -0
- package/modules/back-to-list/back-to-list.prototype.js +11 -0
- package/modules/back-to-list/back-to-list.twig +5 -0
- package/modules/badge/badge.prototype.js +11 -0
- package/modules/badge/badge.twig +3 -0
- package/modules/banner/banner.prototype.js +10 -0
- package/modules/banner/banner.twig +10 -0
- package/modules/brands-most-popular/brands-most-popular.prototype.js +40 -0
- package/modules/brands-most-popular/brands-most-popular.twig +11 -0
- package/modules/breadcrumbs/breadcrumbs.prototype.js +7 -0
- package/modules/breadcrumbs/breadcrumbs.twig +3 -0
- package/modules/breaking-news/breaking-news.prototype.js +29 -0
- package/modules/breaking-news/breaking-news.twig +18 -0
- package/modules/button/button.prototype.js +9 -0
- package/modules/button/button.twig +7 -0
- package/modules/buy-now/buy-now.prototype.js +36 -0
- package/modules/buy-now/buy-now.twig +23 -0
- package/modules/carousel-grid/README.md +7 -0
- package/modules/carousel-grid/carousel-grid.overlay.js +26 -0
- package/modules/carousel-grid/carousel-grid.prototype.js +50 -0
- package/modules/carousel-grid/carousel-grid.twig +17 -0
- package/modules/carousel-slider/carousel-slider.prototype.js +56 -0
- package/modules/carousel-slider/carousel-slider.twig +11 -0
- package/modules/container/README.md +3 -0
- package/modules/container/container.prototype.js +7 -0
- package/modules/container/container.twig +1 -0
- package/modules/content-showcase/content-showcase.prototype.js +29 -0
- package/modules/content-showcase/content-showcase.the-moth.js +31 -0
- package/modules/content-showcase/content-showcase.twig +7 -0
- package/modules/expandable-search/expandable-search.prototype.js +19 -0
- package/modules/expandable-search/expandable-search.twig +9 -0
- package/modules/featured-stories/featured-stories.prototype.js +27 -0
- package/modules/featured-stories/featured-stories.twig +18 -0
- package/modules/footer/README.md +15 -0
- package/modules/footer/footer.prototype.js +14 -0
- package/modules/footer/footer.twig +22 -0
- package/modules/footer-button-list/footer-button-list.prototype.js +43 -0
- package/modules/footer-button-list/footer-button-list.twig +13 -0
- package/modules/footer-magazine-image/footer-magazine-image.prototype.js +15 -0
- package/modules/footer-magazine-image/footer-magazine-image.twig +3 -0
- package/modules/footer-menus/README.md +3 -0
- package/modules/footer-menus/footer-menus.prototype.js +18 -0
- package/modules/footer-menus/footer-menus.twig +5 -0
- package/modules/footer-newsletter/README.md +5 -0
- package/modules/footer-newsletter/footer-newsletter.prototype.js +21 -0
- package/modules/footer-newsletter/footer-newsletter.twig +5 -0
- package/modules/footer-social/README.md +3 -0
- package/modules/footer-social/footer-social.prototype.js +36 -0
- package/modules/footer-social/footer-social.twig +5 -0
- package/modules/footer-tip/footer-tip.prototype.js +23 -0
- package/modules/footer-tip/footer-tip.twig +5 -0
- package/modules/header/header.article.js +39 -0
- package/modules/header/header.prototype.js +90 -0
- package/modules/header/header.twig +74 -0
- package/modules/header-menu/header-menu.prototype.js +26 -0
- package/modules/header-menu/header-menu.twig +3 -0
- package/modules/header-sticky/header-sticky.article.js +43 -0
- package/modules/header-sticky/header-sticky.prototype.js +39 -0
- package/modules/header-sticky/header-sticky.twig +30 -0
- package/modules/heading/heading.h1.js +8 -0
- package/modules/heading/heading.h2.js +8 -0
- package/modules/heading/heading.h3.js +8 -0
- package/modules/heading/heading.h4.js +7 -0
- package/modules/heading/heading.h5.js +7 -0
- package/modules/heading/heading.h6.js +7 -0
- package/modules/heading/heading.prototype.js +9 -0
- package/modules/heading/heading.twig +3 -0
- package/modules/hero-image-story/hero-image-story.prototype.js +41 -0
- package/modules/hero-image-story/hero-image-story.twig +8 -0
- package/modules/injected-related-content/injected-related-content.prototype.js +61 -0
- package/modules/injected-related-content/injected-related-content.twig +23 -0
- package/modules/list/list.ordered.js +7 -0
- package/modules/list/list.prototype.js +57 -0
- package/modules/list/list.twig +11 -0
- package/modules/listicle-item/listicle-item.prototype.js +11 -0
- package/modules/listicle-item/listicle-item.twig +3 -0
- package/modules/mega-menu/mega-menu.prototype.js +16 -0
- package/modules/mega-menu/mega-menu.twig +10 -0
- package/modules/mega-menu-content/mega-menu-content.prototype.js +10 -0
- package/modules/mega-menu-content/mega-menu-content.twig +5 -0
- package/modules/mega-menu-footer/mega-menu-footer.prototype.js +41 -0
- package/modules/mega-menu-footer/mega-menu-footer.twig +19 -0
- package/modules/mega-menu-footer-subscribe/mega-menu-footer-subscribe.prototype.js +20 -0
- package/modules/mega-menu-footer-subscribe/mega-menu-footer-subscribe.twig +4 -0
- package/modules/mega-menu-item/mega-menu-item.prototype.js +23 -0
- package/modules/mega-menu-item/mega-menu-item.twig +13 -0
- package/modules/more-stories-button/more-stories-button.profile.js +12 -0
- package/modules/more-stories-button/more-stories-button.prototype.js +29 -0
- package/modules/more-stories-button/more-stories-button.twig +13 -0
- package/modules/newsletter/newsletter.prototype.js +46 -0
- package/modules/newsletter/newsletter.twig +21 -0
- package/modules/newsletter-cta/newsletter-cta.prototype.js +21 -0
- package/modules/newsletter-cta/newsletter-cta.twig +22 -0
- package/modules/newswire/newswire.prototype.js +46 -0
- package/modules/newswire/newswire.twig +16 -0
- package/modules/paragraph/paragraph.prototype.js +8 -0
- package/modules/paragraph/paragraph.twig +3 -0
- package/modules/pmc-footer/README.md +3 -0
- package/modules/pmc-footer/pmc-footer.prototype.js +47 -0
- package/modules/pmc-footer/pmc-footer.twig +17 -0
- package/modules/post-content-image/post-content-image.prototype.js +14 -0
- package/modules/post-content-image/post-content-image.twig +3 -0
- package/modules/profile-blurb/profile-blurb.card.js +28 -0
- package/modules/profile-blurb/profile-blurb.prototype.js +45 -0
- package/modules/profile-blurb/profile-blurb.twig +37 -0
- package/modules/profile-body/profile-body.prototype.js +20 -0
- package/modules/profile-body/profile-body.twig +15 -0
- package/modules/profile-browse-by/profile-browse-by.prototype.js +29 -0
- package/modules/profile-browse-by/profile-browse-by.twig +6 -0
- package/modules/profile-card-list/profile-card-list.prototype.js +25 -0
- package/modules/profile-card-list/profile-card-list.twig +7 -0
- package/modules/profile-filter/profile-filter.prototype.js +26 -0
- package/modules/profile-filter/profile-filter.twig +15 -0
- package/modules/profile-gallery/profile-gallery.prototype.js +28 -0
- package/modules/profile-gallery/profile-gallery.twig +13 -0
- package/modules/profile-header/profile-header.prototype.js +29 -0
- package/modules/profile-header/profile-header.twig +27 -0
- package/modules/profile-highlights/profile-highlights.prototype.js +22 -0
- package/modules/profile-highlights/profile-highlights.twig +17 -0
- package/modules/profile-landing-header/profile-landing-header.prototype.js +17 -0
- package/modules/profile-landing-header/profile-landing-header.twig +12 -0
- package/modules/profile-landing-river/profile-landing-river.prototype.js +21 -0
- package/modules/profile-landing-river/profile-landing-river.twig +13 -0
- package/modules/profile-related-stories/profile-related-stories.prototype.js +33 -0
- package/modules/profile-related-stories/profile-related-stories.twig +9 -0
- package/modules/pullquote/pullquote.prototype.js +8 -0
- package/modules/pullquote/pullquote.twig +3 -0
- package/modules/read-next/read-next.prototype.js +20 -0
- package/modules/read-next/read-next.twig +4 -0
- package/modules/search-form/search-form.prototype.js +8 -0
- package/modules/search-form/search-form.twig +11 -0
- package/modules/secondary-stories/secondary-stories.prototype.js +119 -0
- package/modules/secondary-stories/secondary-stories.twig +22 -0
- package/modules/separator/separator.prototype.js +4 -0
- package/modules/separator/separator.thick.js +7 -0
- package/modules/separator/separator.twig +1 -0
- package/modules/separator/separator.wide-thick.js +7 -0
- package/modules/separator/separator.wide.js +7 -0
- package/modules/social-share/social-share.prototype.js +43 -0
- package/modules/social-share/social-share.twig +30 -0
- package/modules/special-coverage/special-coverage.prototype.js +47 -0
- package/modules/special-coverage/special-coverage.twig +29 -0
- package/modules/story/story.borders.js +8 -0
- package/modules/story/story.center-vertical-borders.js +7 -0
- package/modules/story/story.center-vertical.js +11 -0
- package/modules/story/story.prototype.js +43 -0
- package/modules/story/story.right-borders.js +9 -0
- package/modules/story/story.right.js +14 -0
- package/modules/story/story.story-arc.js +9 -0
- package/modules/story/story.twig +88 -0
- package/modules/story/story.vertical-borders.js +7 -0
- package/modules/story/story.vertical.js +11 -0
- package/modules/story-arc-stories/story-arc-stories.prototype.js +21 -0
- package/modules/story-arc-stories/story-arc-stories.twig +14 -0
- package/modules/story-featured-quote/story-featured-quote.prototype.js +32 -0
- package/modules/story-featured-quote/story-featured-quote.twig +25 -0
- package/modules/story-grid/story-grid.prototype.js +24 -0
- package/modules/story-grid/story-grid.river.js +15 -0
- package/modules/story-grid/story-grid.twig +17 -0
- package/modules/sub-header/sub-header.prototype.js +8 -0
- package/modules/sub-header/sub-header.twig +7 -0
- package/modules/top-stories/top-stories.prototype.js +41 -0
- package/modules/top-stories/top-stories.twig +12 -0
- package/modules/vlanding-playlist/README.md +1 -0
- package/modules/vlanding-playlist/vlanding-playlist.prototype.js +34 -0
- package/modules/vlanding-playlist/vlanding-playlist.twig +20 -0
- package/modules/vlanding-video-card/README.md +1 -0
- package/modules/vlanding-video-card/vlanding-video-card.prototype.js +25 -0
- package/modules/vlanding-video-card/vlanding-video-card.twig +56 -0
- package/modules/vlanding-video-showcase/README.md +12 -0
- package/modules/vlanding-video-showcase/vlanding-video-showcase.prototype.js +68 -0
- package/modules/vlanding-video-showcase/vlanding-video-showcase.twig +46 -0
- package/objects/o-account-menu/o-account-menu.prototype.js +35 -0
- package/objects/o-account-menu/o-account-menu.twig +25 -0
- package/objects/o-author/o-author.prototype.js +13 -0
- package/objects/o-author/o-author.twig +13 -0
- package/objects/o-card/README.md +1 -0
- package/objects/o-card/o-card.prototype.js +25 -0
- package/objects/o-card/o-card.twig +75 -0
- package/objects/o-card-list/README.md +3 -0
- package/objects/o-card-list/o-card-list.prototype.js +13 -0
- package/objects/o-card-list/o-card-list.twig +7 -0
- package/objects/o-checkbox-input-list/o-checkbox-input-list.prototype.js +16 -0
- package/objects/o-checkbox-input-list/o-checkbox-input-list.twig +15 -0
- package/objects/o-collection-item/o-collection-item.floated.js +8 -0
- package/objects/o-collection-item/o-collection-item.prototype.js +11 -0
- package/objects/o-collection-item/o-collection-item.twig +5 -0
- package/objects/o-email-capture-form/README.md +11 -0
- package/objects/o-email-capture-form/o-email-capture-form.minimal.js +15 -0
- package/objects/o-email-capture-form/o-email-capture-form.prototype.js +17 -0
- package/objects/o-email-capture-form/o-email-capture-form.twig +16 -0
- package/objects/o-figure/README.md +17 -0
- package/objects/o-figure/o-figure.prototype.js +16 -0
- package/objects/o-figure/o-figure.twig +34 -0
- package/objects/o-header/o-header.prototype.js +14 -0
- package/{src/objects → objects}/o-header/o-header.twig +5 -1
- package/objects/o-header-buttons/o-header-buttons.column.js +10 -0
- package/objects/o-header-buttons/o-header-buttons.prototype.js +41 -0
- package/objects/o-header-buttons/o-header-buttons.twig +42 -0
- package/objects/o-icon-button/README.md +5 -0
- package/objects/o-icon-button/o-icon-button.prototype.js +21 -0
- package/objects/o-icon-button/o-icon-button.search.js +9 -0
- package/objects/o-icon-button/o-icon-button.twig +21 -0
- package/objects/o-indicator/README.md +1 -0
- package/objects/o-indicator/o-indicator.photos.js +12 -0
- package/objects/o-indicator/o-indicator.prototype.js +8 -0
- package/objects/o-indicator/o-indicator.twig +9 -0
- package/objects/o-input-group/o-input-group.prototype.js +11 -0
- package/objects/o-input-group/o-input-group.twig +5 -0
- package/objects/o-nav/README.md +3 -0
- package/objects/o-nav/o-nav.horizontal.js +8 -0
- package/objects/o-nav/o-nav.prototype.js +23 -0
- package/objects/o-nav/o-nav.twig +40 -0
- package/objects/o-select-nav/o-select-nav.prototype.js +17 -0
- package/objects/o-select-nav/o-select-nav.twig +9 -0
- package/objects/o-social-list/o-social-list.prototype.js +23 -0
- package/objects/o-social-list/o-social-list.twig +15 -0
- package/objects/o-span-group/README.md +1 -0
- package/objects/o-span-group/o-span-group.prototype.js +11 -0
- package/objects/o-span-group/o-span-group.twig +5 -0
- package/objects/o-sponsored-by/o-sponsored-by.prototype.js +10 -0
- package/{src/objects → objects}/o-sponsored-by/o-sponsored-by.twig +2 -2
- package/objects/o-story-arc-item/o-story-arc-item.prototype.js +29 -0
- package/objects/o-story-arc-item/o-story-arc-item.twig +9 -0
- package/objects/o-sub-header/o-sub-header.prototype.js +39 -0
- package/objects/o-sub-header/o-sub-header.twig +9 -0
- package/objects/o-tease/o-tease.prototype.js +26 -0
- package/{src/objects → objects}/o-tease/o-tease.twig +7 -3
- package/objects/o-tease-list/o-tease-list.prototype.js +14 -0
- package/{src/objects → objects}/o-tease-list/o-tease-list.twig +5 -1
- package/package.json +7 -12
- package/pattern.html +68 -0
- package/style-guide/colors.html +33 -0
- package/style-guide/fonts.html +22 -0
- package/style-guide/index.html +14 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/c-button/.DS_Store +0 -0
- package/src/components/c-button/c-button.prototype.js +0 -5
- package/src/components/c-button/c-button.scss +0 -33
- package/src/components/c-button/c-button.twig +0 -13
- package/src/components/c-heading/.DS_Store +0 -0
- package/src/components/c-heading/c-heading.prototype.js +0 -5
- package/src/components/c-heading/c-heading.scss +0 -12
- package/src/components/c-heading/c-heading.twig +0 -20
- package/src/components/c-label/.DS_Store +0 -0
- package/src/components/c-label/c-label.prototype.js +0 -8
- package/src/components/c-label/c-label.twig +0 -11
- package/src/components/c-nav-link/c-nav-link.prototype.js +0 -6
- package/src/components/c-nav-link/c-nav-link.scss +0 -14
- package/src/components/c-nav-link/c-nav-link.twig +0 -3
- package/src/components/c-tagline/.DS_Store +0 -0
- package/src/components/c-tagline/c-tagline.json +0 -4
- package/src/components/c-tagline/c-tagline.scss +0 -19
- package/src/components/c-timestamp/.DS_Store +0 -0
- package/src/components/c-timestamp/c-timestamp.prototype.js +0 -5
- package/src/components/c-timestamp/c-timestamp.scss +0 -5
- package/src/components/c-timestamp/c-timestamp.twig +0 -1
- package/src/components/c-title/.DS_Store +0 -0
- package/src/components/c-title/c-title.prototype.js +0 -5
- package/src/components/c-title/c-title.scss +0 -30
- package/src/components/components.scss +0 -1
- package/src/objects/.DS_Store +0 -0
- package/src/objects/o-figure/.DS_Store +0 -0
- package/src/objects/o-figure/o-figure.prototype.js +0 -8
- package/src/objects/o-figure/o-figure.scss +0 -46
- package/src/objects/o-figure/o-figure.twig +0 -57
- package/src/objects/o-header/.DS_Store +0 -0
- package/src/objects/o-header/o-header.prototype.js +0 -12
- package/src/objects/o-header/o-header.scss +0 -5
- package/src/objects/o-nav/o-nav.prototype.js +0 -20
- package/src/objects/o-nav/o-nav.scss +0 -41
- package/src/objects/o-nav/o-nav.twig +0 -14
- package/src/objects/o-sponsored-by/.DS_Store +0 -0
- package/src/objects/o-sponsored-by/o-sponsored-by.prototype.js +0 -11
- package/src/objects/o-sponsored-by/o-sponsored-by.scss +0 -5
- package/src/objects/o-tease/.DS_Store +0 -0
- package/src/objects/o-tease/o-tease.prototype.js +0 -22
- package/src/objects/o-tease/o-tease.scss +0 -30
- package/src/objects/o-tease-list/.DS_Store +0 -0
- package/src/objects/o-tease-list/o-tease-list.prototype.js +0 -25
- package/src/objects/o-tease-list/o-tease-list.scss +0 -11
- package/src/objects/objects.scss +0 -1
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{% if o_figure_permalink_url %}
|
|
2
|
-
<a href="{{ o_figure_permalink_url }}" class="o-figure__link {{ o_figure_link_classes }}">
|
|
3
|
-
{% endif %}
|
|
4
|
-
|
|
5
|
-
{% if o_figure_screen_reader_text %}
|
|
6
|
-
<span class="a-screen-reader-only">{{ o_figure_screen_reader_text }}</span>
|
|
7
|
-
{% endif %}
|
|
8
|
-
|
|
9
|
-
{% if has_toaster %}
|
|
10
|
-
<figure class="o-figure {{ modifier_class }} {{ o_figure_classes }}" data-toaster-activate-trigger>
|
|
11
|
-
{% else %}
|
|
12
|
-
<figure class="o-figure {{ modifier_class }} {{ o_figure_classes }}" style="{{ o_figure_width_attr }}">
|
|
13
|
-
{% endif %}
|
|
14
|
-
|
|
15
|
-
{% if o_figure_crop_class %}
|
|
16
|
-
<div class="{{ o_figure_crop_class }}">
|
|
17
|
-
{% endif %}
|
|
18
|
-
|
|
19
|
-
{% if o_figure_image_markup %}
|
|
20
|
-
{{ o_figure_image_markup }}
|
|
21
|
-
{% else %}
|
|
22
|
-
<img class="o-figure__image {{ o_figure_image_classes }}" src="{{ o_figure_placeholder_image_url }}" data-lazy-src="{{ o_figure_image_url }}" alt="{{ o_figure_alt_attr }}">
|
|
23
|
-
{% endif %}
|
|
24
|
-
|
|
25
|
-
{% if c_button %}
|
|
26
|
-
{% include "@larva/components/c-button/c-button.twig" with c_button %}
|
|
27
|
-
{% endif %}
|
|
28
|
-
|
|
29
|
-
{% if o_figure_crop_class %}
|
|
30
|
-
</div>
|
|
31
|
-
{% endif %}
|
|
32
|
-
|
|
33
|
-
{# Backwards Compatibility #}
|
|
34
|
-
{% if o_figure_caption_text %}
|
|
35
|
-
<figcaption class="o-figure__caption {{ o_figure_caption_classes }}">{{ o_figure_caption_text }}</figcaption>
|
|
36
|
-
{% endif %}
|
|
37
|
-
|
|
38
|
-
{% if o_figure_show_figcaption %}
|
|
39
|
-
<figcaption class="o-figure__caption {{ o_figure_figcaption_classes }}">
|
|
40
|
-
{% if o_figure_caption_markup %}
|
|
41
|
-
<span class="{{ o_figure_caption_classes }}">{{ o_figure_caption_markup }}</span>
|
|
42
|
-
{% endif %}
|
|
43
|
-
{% if o_figure_credit_text %}
|
|
44
|
-
<span class="{{ o_figure_credit_classes }}">{{ o_figure_credit_text }}</span>
|
|
45
|
-
{% endif %}
|
|
46
|
-
</figcaption>
|
|
47
|
-
{% endif %}
|
|
48
|
-
|
|
49
|
-
{% if c_play_badge %}
|
|
50
|
-
{% include "@larva/components/c-play-badge/c-play-badge.twig" with c_play_badge %}
|
|
51
|
-
{% endif %}
|
|
52
|
-
|
|
53
|
-
</figure>
|
|
54
|
-
|
|
55
|
-
{% if o_figure_permalink_url %}
|
|
56
|
-
</a>
|
|
57
|
-
{% endif %}
|
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"o_heading_classes": "u-flex u-align-items-center pmc-u-background-black pmc-u-padding-a-1",
|
|
3
|
-
"c_heading": {
|
|
4
|
-
"c_heading_classes": "pmc-u-color-white",
|
|
5
|
-
"c_heading_text": "Section Heading"
|
|
6
|
-
},
|
|
7
|
-
"c_button": {
|
|
8
|
-
"modifier_class": "c-button--plain pmc-u-font-size-12 pmc-u-color-white pmc-u-text-transform-uppercase a-icon-after a-icon-right-arrow u-margin-l-auto",
|
|
9
|
-
"c_button_url": "#",
|
|
10
|
-
"c_button_text": "Link"
|
|
11
|
-
}
|
|
12
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const c_nav_link = require( '../../components/c-nav-link/c-nav-link.prototype' );
|
|
2
|
-
|
|
3
|
-
const o_nav_list_items = [
|
|
4
|
-
c_nav_link,
|
|
5
|
-
c_nav_link,
|
|
6
|
-
c_nav_link
|
|
7
|
-
];
|
|
8
|
-
|
|
9
|
-
module.exports = {
|
|
10
|
-
"modifier_class": "",
|
|
11
|
-
"o_nav_data_attributes": "",
|
|
12
|
-
"o_nav_classes": "pmc-u-background-brand-red",
|
|
13
|
-
"o_nav_title_text": "",
|
|
14
|
-
"o_nav_title_classes": "",
|
|
15
|
-
"o_nav_list_data_attributes": "",
|
|
16
|
-
"o_nav_list_classes" : "",
|
|
17
|
-
"o_nav_list_item_data_attributes": "",
|
|
18
|
-
"o_nav_list_item_classes": "",
|
|
19
|
-
"o_nav_list_items": o_nav_list_items
|
|
20
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// Nav
|
|
2
|
-
//
|
|
3
|
-
// .o-nav--flexy - A horizontal, flexible, centered nav.
|
|
4
|
-
// .o-nav--horizontal - A horizontal, centered nav.
|
|
5
|
-
//
|
|
6
|
-
// Markup: o-nav.twig
|
|
7
|
-
//
|
|
8
|
-
// Style Guide: Objects.Nav
|
|
9
|
-
|
|
10
|
-
@import '../../../node_modules/@penskemediacorp/larva-scss/src/setup.scss';
|
|
11
|
-
|
|
12
|
-
.o-nav {}
|
|
13
|
-
|
|
14
|
-
.o-nav__title {}
|
|
15
|
-
|
|
16
|
-
.o-nav__list {
|
|
17
|
-
@include pmc-unstyle-list;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.o-nav--flexy .o-nav__list {
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
align-items: center;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.o-nav--horizontal .o-nav__list {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.o-nav--flexy .o-nav__list-item {
|
|
32
|
-
padding-left: $spacer-050;
|
|
33
|
-
padding-right: $spacer-050;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.o-nav__list-item:last-child {
|
|
37
|
-
|
|
38
|
-
.o-nav--flexy & {
|
|
39
|
-
border-right: 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<nav class="o-nav {{ modifier_class }} {{ o_nav_classes }}" data-dropdown="{{ o_nav_data_attributes }}">
|
|
2
|
-
|
|
3
|
-
{% if o_nav_title_text %}
|
|
4
|
-
<h4 class="o-nav__title {{ o_nav_title_classes }}" data-dropdown-list-item="{{ o_nav_title_data_attributes }}"> {{ o_nav_title_text }}</h4>
|
|
5
|
-
{% endif %}
|
|
6
|
-
|
|
7
|
-
<ul class="o-nav__list {{ o_nav_list_classes }}" data-dropdown-list="{{ o_nav_list_data_attributes }}">
|
|
8
|
-
{% for item in o_nav_list_items %}
|
|
9
|
-
<li class="o-nav__list-item {{ o_nav_list_item_classes }}" data-dropdown-list-item="{{ o_nav_list_item_data_attributes }}">
|
|
10
|
-
{% include "@larva/components/c-nav-link/c-nav-link.twig" with item %}
|
|
11
|
-
</li>
|
|
12
|
-
{% endfor %}
|
|
13
|
-
</ul>
|
|
14
|
-
</nav>
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"o_sponsored_by_classes": "u-flex u-align-items-center",
|
|
3
|
-
"o_sponsored_by_title_classes": "pmc-u-color-grey-medium pmc-u-font-family-georgia pmc-u-font-size-10 pmc-u-margin-r-050",
|
|
4
|
-
"o_sponsored_by_text": "Sponsored by",
|
|
5
|
-
"o_figure": {
|
|
6
|
-
"o_figure_classes": "u-width-50",
|
|
7
|
-
"o_figure_permalink_url": "#",
|
|
8
|
-
"o_figure_alt_text": "Thumbnail image",
|
|
9
|
-
"o_figure_image_url": "https://picsum.photos/57/11"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
Binary file
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"o_tease_url": "#",
|
|
3
|
-
"o_tease_primary_classes": "",
|
|
4
|
-
"o_tease_secondary_classes": "",
|
|
5
|
-
"c_heading": {
|
|
6
|
-
"c_heading_text": "Breaking News",
|
|
7
|
-
"c_heading_classes": "pmc-u-font-family-balto pmc-u-font-size-20 pmc-u-font-weight-bold u-font-style-italic"
|
|
8
|
-
},
|
|
9
|
-
"c_title": {
|
|
10
|
-
"c_title_text": "here is title text from o-tease.json"
|
|
11
|
-
},
|
|
12
|
-
"c_tagline": {
|
|
13
|
-
"c_tagline_classes": "",
|
|
14
|
-
"c_tagline_markup": "here is title text from o-tease.json"
|
|
15
|
-
},
|
|
16
|
-
"o_figure": {
|
|
17
|
-
"o_figure_crop_class": "pmc-u-crop-2x3",
|
|
18
|
-
"o_figure_alt_attr": "Thumbnail image",
|
|
19
|
-
"o_figure_image_url": "https://picsum.photos/100/100",
|
|
20
|
-
"o_figure_caption_text": "Here in o-tease"
|
|
21
|
-
}
|
|
22
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Tease
|
|
2
|
-
//
|
|
3
|
-
// The tease is a side by side image with a title and additional, optional lines of text beneath.
|
|
4
|
-
//
|
|
5
|
-
// .o-tease--flipped - Order of primary and secondary are reversed.
|
|
6
|
-
//
|
|
7
|
-
// Markup: o-tease.twig
|
|
8
|
-
//
|
|
9
|
-
// Style guide: Objects.Tease
|
|
10
|
-
|
|
11
|
-
@import '@setup';
|
|
12
|
-
|
|
13
|
-
.o-tease {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
flex-direction: row-reverse;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.o-tease--flipped {
|
|
20
|
-
flex-direction: row;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.o-tease__primary {
|
|
24
|
-
flex-grow: 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.o-tease__secondary {
|
|
28
|
-
width: 30%;
|
|
29
|
-
flex-shrink: 0;
|
|
30
|
-
}
|
|
Binary file
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"o_tease_list_items": [
|
|
3
|
-
{
|
|
4
|
-
"c_title": {
|
|
5
|
-
"c_title_text": "Story list item 1"
|
|
6
|
-
},
|
|
7
|
-
"o_figure": {
|
|
8
|
-
"o_figure_crop_class": "pmc-u-crop-9x16",
|
|
9
|
-
"o_figure_alt_attr": "Thumbnail image",
|
|
10
|
-
"o_figure_image_url": "https://picsum.photos/200/300"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"c_title": {
|
|
15
|
-
"c_title_text": "Story list item 2"
|
|
16
|
-
},
|
|
17
|
-
"o_figure": {
|
|
18
|
-
"o_figure_crop_class": "pmc-u-crop-9x16",
|
|
19
|
-
"o_figure_permalink_url": "https://notlaura.com",
|
|
20
|
-
"o_figure_alt_attr": "Thumbnail image",
|
|
21
|
-
"o_figure_image_url": "https://picsum.photos/300/300"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}
|
package/src/objects/objects.scss
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import './o-nav/o-nav.scss';
|