@penskemediacorp/larva-patterns 1.0.1-alpha.0 → 1.1.1
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 +23 -0
- package/__tests__/hub/hub.prototype.js +28 -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 +9 -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/button/button.prototype.js +9 -0
- package/modules/button/button.twig +7 -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 +23 -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/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/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 +23 -0
- package/objects/o-card/o-card.twig +69 -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 +18 -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
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<section>
|
|
2
|
+
<h2 style="background-color: whitesmoke;" class="lrv-u-padding-a-1 lrv-u-margin-b-2">Text Colors</h2>
|
|
3
|
+
<div class="lrv-a-grid lrv-a-cols3 lrv-a-cols4@tablet lrv-u-margin-tb-1">
|
|
4
|
+
{% for class in colors.color %}
|
|
5
|
+
<div class="lrv-u-flex lrv-u-flex-direction-column">
|
|
6
|
+
<strong class="lrv-u-width-100 {{ class }}">Here is some text</strong>
|
|
7
|
+
<p><code>.{{ class }}</code></p>
|
|
8
|
+
</div>
|
|
9
|
+
{% endfor %}
|
|
10
|
+
</div>
|
|
11
|
+
</section>
|
|
12
|
+
<section>
|
|
13
|
+
<h2 style="background-color: whitesmoke;" class="lrv-u-padding-a-1 lrv-u-margin-b-2">Border Colors</h2>
|
|
14
|
+
<div class="lrv-a-grid lrv-a-cols3 lrv-a-cols4@tablet lrv-u-margin-tb-1">
|
|
15
|
+
{% for class in colors['border-color'] %}
|
|
16
|
+
<div class="lrv-u-flex lrv-u-flex-direction-column">
|
|
17
|
+
<div class="lrv-u-width-100 lrv-u-padding-a-025 lrv-u-border-a-3 {{ class }}"></div>
|
|
18
|
+
<p><code>.{{ class }}</code></p>
|
|
19
|
+
</div>
|
|
20
|
+
{% endfor %}
|
|
21
|
+
</div>
|
|
22
|
+
</section>
|
|
23
|
+
<section>
|
|
24
|
+
<h2 style="background-color: whitesmoke;" class="lrv-u-padding-a-1 lrv-u-margin-b-2">Background Colors</h2>
|
|
25
|
+
<div class="lrv-a-grid lrv-a-cols3 lrv-u-margin-tb-1">
|
|
26
|
+
{% for class in colors['background-color'] %}
|
|
27
|
+
<div class="lrv-u-flex lrv-u-flex-direction-column">
|
|
28
|
+
<div class="lrv-u-width-100 lrv-u-border-a-1 lrv-u-padding-a-1 {{ class }}"></div>
|
|
29
|
+
<p><code>.{{ class }}</code></p>
|
|
30
|
+
</div>
|
|
31
|
+
{% endfor %}
|
|
32
|
+
</div>
|
|
33
|
+
</section>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{% if not font_styles %}
|
|
2
|
+
<section class="lrv-a-wrapper lrv-u-width-50p lrv-u-color-white lrv-u-margin-tb-2 lrv-u-padding-a-1 lrv-u-background-color-grey-darkest">
|
|
3
|
+
{% set url = 'https://' ~ brand ~ '.larva.pmcdev.io/project/__tests__/style-guide' %}
|
|
4
|
+
<h2>This brand does not have typography tokens yet.</h2>
|
|
5
|
+
<p>Visit this documentation to learn how to set them up in Larva, and in the mean time, the brand's typography styles may be available at the legacy URL:</p>
|
|
6
|
+
<a href="{{url}}">{{url}}</a></p>
|
|
7
|
+
</section>
|
|
8
|
+
|
|
9
|
+
{% endif %}
|
|
10
|
+
|
|
11
|
+
{% for key, sizes in font_styles %}
|
|
12
|
+
<div class="lrv-u-border-t-1 lrv-u-padding-b-2">
|
|
13
|
+
<h2 class="lrv-u-padding-a-1" style="background-color: lemonchiffon;">{{ key }}</h2>
|
|
14
|
+
|
|
15
|
+
{% for class in sizes %}
|
|
16
|
+
<div class="lrv-u-border-b-1 lrv-u-border-color-grey lrv-u-margin-t-1">
|
|
17
|
+
<code>.{{class}}</code>
|
|
18
|
+
<p class="{{ class }}">Each of us knows a little, together we know a lot.</p>
|
|
19
|
+
</div>
|
|
20
|
+
{% endfor %}
|
|
21
|
+
</div>
|
|
22
|
+
{% endfor %}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{% extends "base.html" %}
|
|
2
|
+
|
|
3
|
+
{% block content %}
|
|
4
|
+
<div class="lrv-a-wrapper">
|
|
5
|
+
<header class="lrv-u-margin-tb-1">
|
|
6
|
+
<h1>Style Guide for <code class="lrv-u-background-color-grey-dark lrv-u-border-radius-5 lrv-u-padding-lr-050 lrv-u-padding-tb-025 lrv-u-color-white">{{brand}}</code></h1>
|
|
7
|
+
<p>This style guide is generated from design tokens. The correct way to set up and customize the style guide is outlined in <a href="https://confluence.pmcdev.io/x/TgmeAw"><u>this Confluence Page</u></a>.</p>
|
|
8
|
+
</header>
|
|
9
|
+
{% include "style-guide/fonts.html" %}
|
|
10
|
+
{% include "style-guide/colors.html" %}
|
|
11
|
+
{% block elements %}
|
|
12
|
+
{% endblock elements %}
|
|
13
|
+
</div>
|
|
14
|
+
{% endblock content %}
|
package/src/components/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Button
|
|
2
|
-
//
|
|
3
|
-
// .c-button--block - Used on previous next, etc.
|
|
4
|
-
// .c-button--plain - Plain button.
|
|
5
|
-
//
|
|
6
|
-
// Markup: c-button.twig
|
|
7
|
-
//
|
|
8
|
-
// Style Guide: Components.Button
|
|
9
|
-
|
|
10
|
-
@import '~@setup';
|
|
11
|
-
|
|
12
|
-
.c-button {
|
|
13
|
-
@include _button-base( $color: $color-red-31, $color-hover: $color-red-18 );
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.c-button--block {
|
|
17
|
-
background-color: $color-red-31;
|
|
18
|
-
box-shadow: $shadow-light;
|
|
19
|
-
color: $color-white;
|
|
20
|
-
border: none;
|
|
21
|
-
border-radius: 0;
|
|
22
|
-
transition: box-shadow $transition-button;
|
|
23
|
-
|
|
24
|
-
&:hover {
|
|
25
|
-
color: $color-white;
|
|
26
|
-
box-shadow: $shadow-dark;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.c-button--plain {
|
|
31
|
-
border: none;
|
|
32
|
-
border-radius: 0;
|
|
33
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{% if c_button_use_button_element %}
|
|
2
|
-
<button class="c-button {{ modifier_class }} {{ c_button_classes }}">
|
|
3
|
-
{% else %}
|
|
4
|
-
<a class="c-button {{ modifier_class }} {{ c_button_classes }}" href="{{ c_button_url }}">
|
|
5
|
-
{% endif %}
|
|
6
|
-
|
|
7
|
-
{{ c_button_text }}
|
|
8
|
-
|
|
9
|
-
{% if c_button_use_button_element %}
|
|
10
|
-
</button>
|
|
11
|
-
{% else %}
|
|
12
|
-
</a>
|
|
13
|
-
{% endif %}
|
|
Binary file
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{% if c_heading_is_primary_heading %}
|
|
2
|
-
<h1 class="c-heading {{ modifier_class }} {{ c_heading_classes }}">
|
|
3
|
-
{% else %}
|
|
4
|
-
<h2 class="c-heading {{ modifier_class }} {{ c_heading_classes }}">
|
|
5
|
-
{% endif %}
|
|
6
|
-
|
|
7
|
-
{% if c_heading_url %}
|
|
8
|
-
<a href="{{ c_heading_url }}" class="{{ c_heading_link_classes }}">
|
|
9
|
-
{% endif %}
|
|
10
|
-
|
|
11
|
-
{{ c_heading_text }}
|
|
12
|
-
|
|
13
|
-
{% if c_heading_url %}
|
|
14
|
-
</a>
|
|
15
|
-
{% endif %}
|
|
16
|
-
{% if c_heading_is_primary_heading %}
|
|
17
|
-
</h1>
|
|
18
|
-
{% else %}
|
|
19
|
-
</h2>
|
|
20
|
-
{% endif %}
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<span class="c-label {{ modifier_class }} {{ c_label_classes }}" {{ c_label_data_attr }}>
|
|
2
|
-
{% if c_label_url %}
|
|
3
|
-
<a href="{{ c_label_url }}" class="c-label__link {{ c_label_link_classes }}">
|
|
4
|
-
{% endif %}
|
|
5
|
-
|
|
6
|
-
{{ c_label_text }}
|
|
7
|
-
|
|
8
|
-
{% if c_label_url %}
|
|
9
|
-
</a>
|
|
10
|
-
{% endif %}
|
|
11
|
-
</span>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Nav Link
|
|
2
|
-
//
|
|
3
|
-
// The nav link assumes the color and hover color applied to its container via utilities.
|
|
4
|
-
//
|
|
5
|
-
// Markup: c-nav-link.twig
|
|
6
|
-
//
|
|
7
|
-
// Style Guide: Components.NavLink
|
|
8
|
-
|
|
9
|
-
@import '../../../node_modules/@penskemediacorp/larva-scss/src/setup.scss';
|
|
10
|
-
|
|
11
|
-
.c-nav-link,
|
|
12
|
-
.c-nav-link:hover {
|
|
13
|
-
@include pmc-unstyle-link;
|
|
14
|
-
}
|
|
Binary file
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Tagline
|
|
2
|
-
//
|
|
3
|
-
// Tagline supports both escaped text data as `c_tagline_text` and markup from `wp_kses_post` as `c_tagline_markup`.
|
|
4
|
-
//
|
|
5
|
-
// Markup: c-tagline.twig
|
|
6
|
-
//
|
|
7
|
-
// Style Guide: Components.Tagline
|
|
8
|
-
|
|
9
|
-
@import '~@setup';
|
|
10
|
-
|
|
11
|
-
.c-tagline,
|
|
12
|
-
.c-tagline > p {
|
|
13
|
-
margin-top: 0;
|
|
14
|
-
margin-bottom: $spacer-050;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.c-tagline--a-content__link a {
|
|
18
|
-
@include a-content__link( inherit );
|
|
19
|
-
}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<time class="c-timestamp {{ modifier_class }} {{ c_timestamp_classes }}" datetime="{{ c_timestamp_datetime_attr }}">{{ c_timestamp_text }}</time>
|
|
Binary file
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Title
|
|
2
|
-
//
|
|
3
|
-
// Markup: c-title.twig
|
|
4
|
-
//
|
|
5
|
-
// Style guide: Components.Text.Title
|
|
6
|
-
|
|
7
|
-
@import '@setup';
|
|
8
|
-
|
|
9
|
-
@mixin _c-title--overlay-title {
|
|
10
|
-
margin-top: -$spacer-2;
|
|
11
|
-
position: relative;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.c-title {
|
|
15
|
-
font-weight: $font-weight-bold;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.c-title__before {
|
|
19
|
-
color: map-get( $semantic-color-list, brand-red );
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.c-title--overlay-title {
|
|
23
|
-
@include _c-title--overlay-title;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.c-title--overlay-title\@desktop {
|
|
27
|
-
@include breakpoint( desktop ) {
|
|
28
|
-
@include _c-title--overlay-title;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import './c-nav-link/c-nav-link.scss';
|
package/src/objects/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"o_figure_permalink_url": "https://notlaura.com",
|
|
3
|
-
"o_figure_alt_attr": "Thumbnail image",
|
|
4
|
-
"o_figure_placeholder_image_url": "https://picsum.photos/300/300",
|
|
5
|
-
"o_figure_image_url": "https://picsum.photos/300/300",
|
|
6
|
-
"o_figure_caption_text": "Here is some caption text",
|
|
7
|
-
"o_figure_screen_reader_text": "Text if there is no caption"
|
|
8
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// Figure
|
|
2
|
-
//
|
|
3
|
-
// This pattern should be applied to containers of `img` elements that use the .u-crop
|
|
4
|
-
// pattern. It will assume the width of it's parent and supports an optional cropping class,
|
|
5
|
-
// link wrapper, and a caption.
|
|
6
|
-
//
|
|
7
|
-
// .o-figure--circle - Should be used in conjunction with pmc-u-crop-1x1 for the crop class.
|
|
8
|
-
//
|
|
9
|
-
// Markup: o-figure.twig
|
|
10
|
-
//
|
|
11
|
-
// Style guide: Components.Figure
|
|
12
|
-
|
|
13
|
-
@import '../../../node_modules/@penskemediacorp/larva-scss/src/setup.scss';
|
|
14
|
-
|
|
15
|
-
.o-figure {
|
|
16
|
-
width: 100%;
|
|
17
|
-
display: block;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.o-figure--circle {
|
|
21
|
-
border-radius: 50%;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.o-figure--embedded {
|
|
26
|
-
width: auto;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.o-figure__link {
|
|
30
|
-
@include pmc-unstyle-link;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.o-figure__image {
|
|
34
|
-
width: 100%;
|
|
35
|
-
height: auto;
|
|
36
|
-
display: block;
|
|
37
|
-
background-color: map-get( $semantic-color-list, grey-light );
|
|
38
|
-
transition: opacity $transition-thumbnail-hover;
|
|
39
|
-
|
|
40
|
-
// Prevent small movement when opacity changes on hover.
|
|
41
|
-
transform: translate3d( 0px, 0px, 0px ); // stylelint-disable-line unit-blacklist
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.o-figure__link:hover .o-figure__image {
|
|
45
|
-
opacity: 0.75;
|
|
46
|
-
}
|
|
@@ -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
|
-
}
|