@penskemediacorp/larva-patterns 1.10.0-alpha.0 → 1.10.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/__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/_templates/pattern-nav.html +52 -13
- 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/{modules/listicle-item/listicle-item.floated.js → 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 +62 -19
- 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 +8 -7
- package/components/c-button/c-button.prototype.js +10 -5
- package/components/c-button/c-button.stripped.js +6 -5
- package/components/c-button/c-button.twig +7 -3
- 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 +3 -2
- package/components/c-dek/c-dek.twig +9 -1
- package/components/c-email-field/README.md +0 -0
- package/components/c-email-field/c-email-field.ghost.js +7 -7
- package/components/c-email-field/c-email-field.prototype.js +7 -8
- package/components/c-email-field/c-email-field.twig +1 -1
- 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 +8 -3
- package/components/c-heading/c-heading.twig +11 -2
- 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 +6 -5
- package/components/c-icon/c-icon.prototype.js +12 -10
- package/components/c-icon/c-icon.twig +22 -2
- 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 +8 -5
- package/components/c-link/c-link.twig +11 -1
- 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/components/c-span/c-span.prototype.js +6 -7
- package/components/c-span/c-span.tag.js +7 -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/components/c-tagline/c-tagline.twig +3 -3
- package/components/c-timestamp/c-timestamp.prototype.js +5 -4
- package/components/c-timestamp/c-timestamp.twig +9 -1
- package/components/c-title/README.md +7 -0
- package/components/c-title/c-title.prototype.js +7 -3
- package/components/c-title/c-title.twig +14 -2
- package/css.html +44 -0
- package/index.html +7 -25
- package/index.js +2 -1
- 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 +9 -10
- package/modules/article-tags/article-tags.twig +1 -1
- package/modules/article-timestamp/article-timestamp.prototype.js +13 -0
- package/modules/article-timestamp/article-timestamp.twig +5 -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-blurb/author-blurb.prototype.js +56 -0
- package/modules/author-blurb/author-blurb.twig +27 -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 +10 -6
- package/modules/badge/badge.twig +1 -1
- 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 +4 -5
- package/modules/breadcrumbs/breadcrumbs.twig +1 -1
- 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 +30 -0
- package/modules/content-showcase/content-showcase.the-moth.js +33 -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/featured-video/featured-video.prototype.js +33 -0
- package/modules/featured-video/featured-video.twig +8 -0
- package/modules/featured-video/featured-video.video-post.js +10 -0
- package/modules/footer/README.md +15 -0
- package/modules/footer/footer.prototype.js +8 -8
- package/modules/footer/footer.twig +17 -12
- 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 +9 -10
- package/modules/footer-menus/footer-menus.twig +2 -2
- package/modules/footer-newsletter/README.md +5 -0
- package/modules/footer-newsletter/footer-newsletter.prototype.js +18 -15
- package/modules/footer-newsletter/footer-newsletter.twig +1 -1
- package/modules/footer-social/README.md +3 -0
- package/modules/footer-social/footer-social.prototype.js +27 -21
- package/modules/footer-social/footer-social.twig +1 -1
- package/modules/footer-tip/footer-tip.prototype.js +19 -17
- package/modules/footer-tip/footer-tip.twig +1 -1
- 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/linked-gallery/linked-gallery.prototype.js +56 -0
- package/modules/linked-gallery/linked-gallery.twig +21 -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 +6 -6
- package/modules/listicle-item/listicle-item.twig +1 -1
- 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/page-404/page-404.prototype.js +44 -0
- package/modules/page-404/page-404.twig +32 -0
- package/modules/paragraph/paragraph.narrow.js +8 -0
- package/modules/paragraph/paragraph.prototype.js +8 -0
- package/modules/paragraph/paragraph.twig +3 -0
- package/modules/pmc-footer/pmc-footer.prototype.js +26 -24
- package/modules/pmc-footer/pmc-footer.twig +11 -9
- 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/production-credits/production-credits.prototype.js +5 -0
- package/modules/production-credits/production-credits.twig +4 -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/section-heading/section-heading.h2.js +9 -0
- package/modules/section-heading/section-heading.h3.js +10 -0
- package/modules/section-heading/section-heading.prototype.js +14 -0
- package/modules/section-heading/section-heading.twig +8 -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 +28 -0
- package/modules/story-featured-quote/story-featured-quote.twig +27 -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/top-stories/top-stories.xl.js +14 -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 +14 -0
- package/objects/o-author/o-author.twig +17 -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-category-link/o-category-link.prototype.js +6 -0
- package/objects/o-category-link/o-category-link.twig +5 -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 +5 -5
- package/objects/o-collection-item/o-collection-item.prototype.js +6 -6
- package/objects/o-collection-item/o-collection-item.twig +1 -1
- package/objects/o-email-capture-form/README.md +11 -0
- package/objects/o-email-capture-form/o-email-capture-form.minimal.js +10 -10
- package/objects/o-email-capture-form/o-email-capture-form.prototype.js +15 -19
- package/objects/o-email-capture-form/o-email-capture-form.twig +8 -13
- package/objects/o-figure/README.md +17 -0
- package/objects/o-figure/o-figure.prototype.js +15 -8
- package/objects/o-figure/o-figure.twig +22 -36
- package/objects/o-header/o-header.prototype.js +12 -10
- package/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 +29 -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 +2 -2
- package/objects/o-nav/o-nav.horizontal.js +6 -6
- package/objects/o-nav/o-nav.prototype.js +17 -13
- package/objects/o-nav/o-nav.twig +29 -3
- 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 +21 -31
- package/objects/o-social-list/o-social-list.twig +10 -2
- 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 +9 -10
- package/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 +24 -20
- package/objects/o-tease/o-tease.twig +7 -3
- package/objects/o-tease-list/o-tease-list.prototype.js +12 -24
- package/objects/o-tease-list/o-tease-list.twig +5 -1
- package/objects/o-video-card/o-video-card.prototype.js +45 -0
- package/objects/o-video-card/o-video-card.twig +67 -0
- package/package.json +6 -9
- package/pattern.html +61 -9
- package/style-guide/colors.html +33 -0
- package/style-guide/fonts.html +22 -0
- package/style-guide/index.html +14 -0
- package/components/c-tagline/c-tagline.json +0 -4
- package/components/c-tagline/c-tagline.scss +0 -19
- package/modules/.DS_Store +0 -0
- package/objects/o-figure/o-figure.scss +0 -46
- package/objects/o-tease/o-tease.scss +0 -30
- package/scratch-pad.css +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Penske Media Corporation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<p>Test for media queries:</p>
|
|
2
|
+
|
|
3
|
+
<div class="lrv-u-padding-b-1 lrv-u-padding-b-2@desktop lrv-u-padding-b-025@desktop-xl lrv-u-background-color-brand-primary lrv-u-color-white">Padding</div>
|
|
4
|
+
|
|
5
|
+
<div class="lrv-u-border-a-1">
|
|
6
|
+
<div class="lrv-u-margin-a-025 lrv-u-margin-a-1@desktop lrv-u-margin-a-2@desktop-xl">Margin</div>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div class="lrv-u-font-weight-bold lrv-u-font-weight-normal@desktop lrv-u-font-weight-bold@desktop-xl">Font weight</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// No data here.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<div class="lrv-a-wrapper">
|
|
2
|
+
{% include "modules/heading/heading.twig" with heading_h1 %}
|
|
3
|
+
|
|
4
|
+
{% include "modules/paragraph/paragraph.twig" with paragraph %}
|
|
5
|
+
|
|
6
|
+
{% include "modules/button/button.twig" with button %}
|
|
7
|
+
|
|
8
|
+
{% include "modules/carousel-grid/carousel-grid.twig" with carousel_grid %}
|
|
9
|
+
|
|
10
|
+
{% include "modules/separator/separator.twig" with separator %}
|
|
11
|
+
|
|
12
|
+
{% include "modules/carousel-slider/carousel-slider.twig" with carousel_slider %}
|
|
13
|
+
|
|
14
|
+
{% include "modules/heading/heading.twig" with heading_h3 %}
|
|
15
|
+
|
|
16
|
+
{% include "modules/story-grid/story-grid.twig" with story_grid %}
|
|
17
|
+
|
|
18
|
+
{% include "modules/story-grid/story-grid.twig" with story_grid %}
|
|
19
|
+
|
|
20
|
+
{% include "modules/story-grid/story-grid.twig" with story_grid_river %}
|
|
21
|
+
|
|
22
|
+
{% include "modules/injected-related-content/injected-related-content.twig" with injected_related_content %}
|
|
23
|
+
|
|
24
|
+
{% include "modules/secondary-stories/secondary-stories.twig" with secondary_stories %}
|
|
25
|
+
</div>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
const { __experimentalCloneWithFallback } = require( '@penskemediacorp/larva' );
|
|
3
|
+
|
|
4
|
+
const carousel_grid = __experimentalCloneWithFallback( 'modules/carousel-grid/carousel-grid.prototype' );
|
|
5
|
+
const carousel_slider = __experimentalCloneWithFallback( 'modules/carousel-slider/carousel-slider.prototype' );
|
|
6
|
+
const story_grid = __experimentalCloneWithFallback( 'modules/story-grid/story-grid.prototype' );
|
|
7
|
+
const story_grid_river = __experimentalCloneWithFallback( 'modules/story-grid/story-grid.river' );
|
|
8
|
+
const heading_h1 = __experimentalCloneWithFallback( 'modules/heading/heading.h1' );
|
|
9
|
+
const heading_h3 = __experimentalCloneWithFallback( 'modules/heading/heading.h3' );
|
|
10
|
+
const story = __experimentalCloneWithFallback( 'modules/story/story.prototype' );
|
|
11
|
+
const button = __experimentalCloneWithFallback( 'modules/button/button.prototype' );
|
|
12
|
+
const paragraph = __experimentalCloneWithFallback( 'modules/paragraph/paragraph.prototype' );
|
|
13
|
+
const separator = __experimentalCloneWithFallback( 'modules/separator/separator.prototype' );
|
|
14
|
+
const injected_related_content = __experimentalCloneWithFallback( 'modules/injected-related-content/injected-related-content.prototype' );
|
|
15
|
+
const secondary_stories = __experimentalCloneWithFallback( 'modules/secondary-stories/secondary-stories.prototype' );
|
|
16
|
+
|
|
17
|
+
module.exports = {
|
|
18
|
+
carousel_grid,
|
|
19
|
+
carousel_slider,
|
|
20
|
+
story_grid,
|
|
21
|
+
heading_h1,
|
|
22
|
+
heading_h3,
|
|
23
|
+
paragraph,
|
|
24
|
+
story,
|
|
25
|
+
button,
|
|
26
|
+
separator,
|
|
27
|
+
injected_related_content,
|
|
28
|
+
story_grid_river,
|
|
29
|
+
secondary_stories
|
|
30
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
{% include "@larva/modules/profile-header/profile-header.twig" with profile_header %}
|
|
3
|
+
|
|
4
|
+
<div class="lrv-a-wrapper">
|
|
5
|
+
<div>
|
|
6
|
+
{% include "@larva/modules/back-to-list/back-to-list.twig" with back_to_list %}
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div class="a-profile-grid">
|
|
10
|
+
<div class="a-profile-grid__blurb">
|
|
11
|
+
{% include "@larva/modules/profile-blurb/profile-blurb.twig" with profile_blurb %}
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="a-profile-grid__body">
|
|
15
|
+
{% include "@larva/modules/profile-body/profile-body.twig" with profile_body %}
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div class="a-profile-grid__ads">
|
|
19
|
+
<img src="https://picsum.photos/300/600" class="a-hidden@mobile-max">
|
|
20
|
+
<img src="https://picsum.photos/300/250" class="a-hidden@tablet">
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div class="a-profile-grid__stories">
|
|
24
|
+
{% include "@larva/modules/profile-gallery/profile-gallery.twig" with profile_gallery %}
|
|
25
|
+
{% include "@larva/modules/profile-related-stories/profile-related-stories.twig" with profile_related_stories %}
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const profile_header = clonedeep( require( '../../modules/profile-header/profile-header.prototype' ) );
|
|
4
|
+
const back_to_list = clonedeep( require( '../../modules/back-to-list/back-to-list.prototype' ) );
|
|
5
|
+
const profile_blurb = clonedeep( require( '../../modules/profile-blurb/profile-blurb.prototype' ) );
|
|
6
|
+
const profile_body = clonedeep( require( '../../modules/profile-body/profile-body.prototype' ) );
|
|
7
|
+
const profile_gallery = clonedeep( require( '../../modules/profile-gallery/profile-gallery.prototype' ) );
|
|
8
|
+
const profile_related_stories = clonedeep( require( '../../modules/profile-related-stories/profile-related-stories.prototype' ) );
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
profile_header,
|
|
12
|
+
back_to_list,
|
|
13
|
+
profile_blurb,
|
|
14
|
+
profile_body,
|
|
15
|
+
profile_gallery,
|
|
16
|
+
profile_related_stories
|
|
17
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
<div class="lrv-a-wrapper lrv-a-grid lrv-a-cols4@tablet">
|
|
3
|
+
{% include "@larva/modules/profile-filter/profile-filter.twig" with profile_filter %}
|
|
4
|
+
|
|
5
|
+
<div class="lrv-a-span3@tablet">
|
|
6
|
+
{% include "@larva/modules/profile-card-list/profile-card-list.twig" with profile_card_list %}
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
profile_filter: clonedeep( require( '../../modules/profile-filter/profile-filter.prototype' ) ),
|
|
5
|
+
profile_card_list: clonedeep( require( '../../modules/profile-card-list/profile-card-list.prototype' ) ),
|
|
6
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<div>
|
|
2
|
+
{% include "@larva/modules/header/header.twig" with header %}
|
|
3
|
+
{% include "@larva/modules/vlanding-video-showcase/vlanding-video-showcase.twig" with vlanding_video_showcase %}
|
|
4
|
+
{% include "@larva/modules/vlanding-playlist/vlanding-playlist.twig" with vlanding_playlist %}
|
|
5
|
+
{% include "@larva/modules/vlanding-playlist/vlanding-playlist.twig" with vlanding_playlist %}
|
|
6
|
+
{% include "@larva/modules/vlanding-playlist/vlanding-playlist.twig" with vlanding_playlist %}
|
|
7
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const header = clonedeep( require( '../../modules/header/header.prototype' ) );
|
|
4
|
+
const vlanding_video_showcase = clonedeep( require( '../../modules/vlanding-video-showcase/vlanding-video-showcase.prototype' ) );
|
|
5
|
+
const vlanding_playlist = clonedeep( require( '../../modules/vlanding-playlist/vlanding-playlist.prototype' ) );
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
vlanding_video_showcase: vlanding_video_showcase,
|
|
9
|
+
vlanding_playlist: vlanding_playlist,
|
|
10
|
+
header: header
|
|
11
|
+
};
|
|
@@ -1,13 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
</
|
|
1
|
+
{% if 'larva' == source %}
|
|
2
|
+
{% set patterns = pattern_nav.larva %}
|
|
3
|
+
{% else %}
|
|
4
|
+
{% set patterns = pattern_nav.project %}
|
|
5
|
+
{% endif %}
|
|
6
|
+
|
|
7
|
+
<nav style="width: 200px">
|
|
8
|
+
<h3 class="lrv-u-padding-r-1">{{ source|capitalize }}</h3>
|
|
9
|
+
|
|
10
|
+
{% if 'larva' == source %}
|
|
11
|
+
<ul class="lrv-a-unstyle-list">
|
|
12
|
+
<li><a class="lrv-u-display-block" href="/">Home</a></li>
|
|
13
|
+
<li><a class="lrv-u-display-block" href="/larva/css">Larva CSS Docs</a></li>
|
|
14
|
+
<li><a class="lrv-u-display-block" href="/larva/style-guide">Style Guide</a></li>
|
|
15
|
+
</ul>
|
|
16
|
+
{% endif %}
|
|
17
|
+
|
|
18
|
+
{% for type, value in patterns %}
|
|
19
|
+
|
|
20
|
+
<h4 class="lrv-u-padding-tb-050">{{ type }}</h4>
|
|
21
|
+
|
|
22
|
+
<ul class="lrv-a-unstyle-list">
|
|
23
|
+
{% for name, variants in value %}
|
|
24
|
+
<li>
|
|
25
|
+
{% set prototype_link = "/" ~ source ~ "/" ~ type ~ "/" ~ name ~ "/" %}
|
|
26
|
+
|
|
27
|
+
{% if variants|length > 1 %}
|
|
28
|
+
<details>
|
|
29
|
+
<summary>{{ name }}</summary>
|
|
30
|
+
<ul>
|
|
31
|
+
{% for item in variants %}
|
|
32
|
+
{% set link = item == 'prototype' ? '' : item %}
|
|
33
|
+
<li>
|
|
34
|
+
{% include "@larva/components/c-link/c-link.twig" with {
|
|
35
|
+
c_link_text: item,
|
|
36
|
+
c_link_classes: 'lrv-u-display-block',
|
|
37
|
+
c_link_url: "/" ~ source ~ "/" ~ type ~ "/" ~ name ~ "/" ~ link,
|
|
38
|
+
} %}
|
|
39
|
+
</li>
|
|
40
|
+
{% endfor %}
|
|
41
|
+
</ul>
|
|
42
|
+
</details>
|
|
43
|
+
{% else %}
|
|
44
|
+
<a href="{{ prototype_link }}">{{ name }}</a>
|
|
45
|
+
{% endif %}
|
|
46
|
+
</li>
|
|
47
|
+
{% endfor %}
|
|
48
|
+
</ul>
|
|
49
|
+
|
|
50
|
+
{% endfor %}
|
|
51
|
+
|
|
52
|
+
</nav>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<div class="lrv-a-wrapper">
|
|
2
|
+
<div class="lrv-a-carousel-grid {{ carousel_grid_overlay_layout_class }}">
|
|
3
|
+
<div class="lrv-a-carousel-grid__primary lrv-u-padding-a-1">
|
|
4
|
+
<div class=" {{ carousel_grid_overlay_content_class }}">
|
|
5
|
+
<div class="{{ carousel_grid_overlay_img_class }}" style="background-color: #f7f7f7; height: 300px;"></div>
|
|
6
|
+
<div class="{{ carousel_grid_overlay_content_class }}">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<div class="lrv-a-carousel-grid__secondary {{ carousel_grid_overlay_secondary_class }} lrv-u-padding-a-1">
|
|
11
|
+
<div class="lrv-a-carousel-grid__overlay--secondary-card lrv-u-flex lrv-u-align-items-center lrv-u-margin-b-1@mobile-max">
|
|
12
|
+
<div class="lrv-u-width-75p" style="background-color: #f7f7f7; height: 150px;"></div>
|
|
13
|
+
<div>Magna hexagon stumptown pork belly paleo tilde.</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="lrv-a-carousel-grid__overlay--secondary-card lrv-u-flex lrv-u-align-items-center lrv-u-margin-b-1@mobile-max">
|
|
16
|
+
<div class="lrv-u-width-75p" style="background-color: #f7f7f7; height: 150px;"></div>
|
|
17
|
+
<div>Cat ipsum dolor sit amet, Why dog in house?</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="lrv-a-carousel-grid__overlay--secondary-card lrv-u-flex lrv-u-align-items-center lrv-u-margin-b-1@mobile-max">
|
|
20
|
+
<div class="lrv-u-width-75p" style="background-color: #f7f7f7; height: 150px;"></div>
|
|
21
|
+
<div>Cat ipsum dolor sit amet, Why dog in house?</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
|
|
3
|
+
carousel_grid_overlay_layout_class: 'lrv-a-carousel-grid__overlay',
|
|
4
|
+
|
|
5
|
+
carousel_grid_overlay_content_class: 'lrv-a-carousel-grid__overlay--primary',
|
|
6
|
+
|
|
7
|
+
carousel_grid_overlay_img_class: 'lrv-a-carousel-grid__overlay--primary-img',
|
|
8
|
+
|
|
9
|
+
carousel_grid_overlay_content_class: 'lrv-a-carousel-grid__overlay--primary-content',
|
|
10
|
+
|
|
11
|
+
carousel_grid_overlay_secondary_class: 'lrv-a-carousel-grid__overlay--secondary'
|
|
12
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p><span class="lrv-a-icon-before lrv-a-icon-arrow-left">Text</span></p>
|
|
File without changes
|
package/base.html
CHANGED
|
@@ -1,30 +1,73 @@
|
|
|
1
|
+
{% set has_side_skins = query.has_side_skins %}
|
|
2
|
+
|
|
1
3
|
<!doctype html>
|
|
2
4
|
<html lang="en" class="wf-active">
|
|
3
5
|
<head>
|
|
4
6
|
<meta charset="utf-8">
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<link rel="stylesheet" href="/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
|
+
<title>LRVA: {{brand}} | {{ source }} | {{ name }}</title>
|
|
9
|
+
|
|
10
|
+
{% block stylesheets %}
|
|
11
|
+
{% endblock %}
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="/assets/build/tokens/{{brand}}.custom-properties.css">
|
|
14
|
+
{% block compat_stylesheet %}
|
|
15
|
+
{% endblock compat_stylesheet %}
|
|
16
|
+
|
|
17
|
+
<link rel="stylesheet" href="/assets/build/css/larva.css">
|
|
18
|
+
<link rel="stylesheet" href="/assets/build/css/larva-ui.css">
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
// Stub in PMC cookie object so fonts load on Larva server
|
|
23
|
+
if ( ! window.pmc ) {
|
|
24
|
+
window.pmc = {
|
|
25
|
+
cookie: {
|
|
26
|
+
get: () => {},
|
|
27
|
+
set: () => {},
|
|
28
|
+
expire: () => {},
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Stub skins object
|
|
34
|
+
{% if has_side_skins %}
|
|
35
|
+
window.pmc_dfp_skin = {};
|
|
36
|
+
{% endif %}
|
|
37
|
+
|
|
38
|
+
</script>
|
|
39
|
+
|
|
18
40
|
</head>
|
|
19
|
-
<body class="
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{% include "@
|
|
41
|
+
<body class="lrv-u-margin-a-00 {{ compat_class }}">
|
|
42
|
+
|
|
43
|
+
<main class="lrv-u-flex">
|
|
44
|
+
<div class="lrv-u-padding-a-1 lrv-a-glue-parent lrv-u-flex js-LarvaUiToggle-panel">
|
|
45
|
+
{% include "@larva/_templates/pattern-nav.html" with { source: 'larva' } %}
|
|
46
|
+
{% if pattern_nav.project %}
|
|
47
|
+
{% include "@larva/_templates/pattern-nav.html" with { source: 'project' } %}
|
|
48
|
+
{% endif %}
|
|
24
49
|
</div>
|
|
25
|
-
<div>
|
|
50
|
+
<div class="lrv-u-flex-grow-1">
|
|
26
51
|
{% block content %}{% endblock %}
|
|
27
52
|
</div>
|
|
28
53
|
</main>
|
|
54
|
+
<br>
|
|
55
|
+
|
|
56
|
+
{# Note: Don't write CSS like this in an actual product. #}
|
|
57
|
+
<div style="position: fixed;
|
|
58
|
+
bottom: 0;
|
|
59
|
+
right: 0;
|
|
60
|
+
z-index: 9999999;">
|
|
61
|
+
{% include "@larva/components/c-button/c-button.twig" with {
|
|
62
|
+
"c_button_text": "Toggle Larva UI",
|
|
63
|
+
"c_button_classes": "js-LarvaUiToggle-button lrv-a-unstyle-button lrv-u-background-color-black lrv-u-color-white lrv-u-padding-a-1 lrv-u-cursor-pointer"
|
|
64
|
+
} %}
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<script src="/assets/public/webfontloader.js"></script>
|
|
68
|
+
<script src="/assets/build/js/larva-ui.js"></script>
|
|
69
|
+
<script src="/assets/build/js/common.js"></script>
|
|
70
|
+
|
|
71
|
+
{% block scripts %}{% endblock %}
|
|
29
72
|
</body>
|
|
30
73
|
</html>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
The button component should be used for anything that _looks like_ a button - this includes acutual `button` elements and anchor tags. c-button in larva includes certain design configurations to provide a starting point.
|
|
2
|
+
|
|
3
|
+
If the button is actually an anchor tag, styled as a button, simply configure the button with `c_button_url` and it will use an anchor. If `c_button_url` is not set, it will use a button element. Any JS should be attached using a `js-*` class. This is intended to encourage the use of the button element for on-page interactions, and the use of an anchor tag for buttons that are actually links.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const c_button = clonedeep( require( './c-button.prototype' ) );
|
|
4
|
+
|
|
5
|
+
c_button.c_button_classes += ' lrv-u-background-color-black lrv-u-color-white lrv-u-border-radius-5 lrv-u-color-white:hover lrv-u-padding-tb-050 lrv-u-padding-lr-2';
|
|
6
|
+
|
|
7
|
+
module.exports = c_button;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
2
|
+
|
|
3
|
+
const c_button_protoype = require( './c-button.prototype' );
|
|
4
|
+
const c_button = clonedeep( c_button_protoype );
|
|
5
|
+
|
|
6
|
+
c_button.c_button_classes += ' lrv-u-padding-tb-050 lrv-u-padding-lr-1 lrv-u-background-color-brand-primary lrv-u-color-white';
|
|
7
|
+
|
|
8
|
+
module.exports = c_button;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
const clone = require( '@penskemediacorp/larva' ).clone;
|
|
3
|
-
const c_button = clone( path.resolve( __dirname, './c-button.prototype' ) );
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
c_button
|
|
7
|
-
c_button.c_button_url = "#";
|
|
3
|
+
const c_button_protoype = require( './c-button.prototype' );
|
|
4
|
+
const c_button = clonedeep( c_button_protoype );
|
|
8
5
|
|
|
9
|
-
|
|
6
|
+
c_button.c_button_classes += ' lrv-u-border-a-3 lrv-u-border-radius-5 lrv-u-color-brand-primary lrv-u-padding-tb-050 lrv-u-padding-lr-1 lrv-u-color-grey-dark:hover lrv-u-font-weight-bold lrv-u-display-inline-block';
|
|
7
|
+
c_button.c_button_type_attr = '';
|
|
8
|
+
c_button.c_button_url = '#';
|
|
9
|
+
|
|
10
|
+
module.exports = c_button;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
c_button_classes: 'lrv-a-unstyle-button lrv-u-cursor-pointer',
|
|
3
|
+
c_button_ga_tracking: {}, // by default we do not want to enable any ga tracking
|
|
4
|
+
c_button_inner_classes: '',
|
|
5
|
+
c_button_rel_attr: '',
|
|
6
|
+
c_button_screen_reader_text: 'Sign Up',
|
|
7
|
+
c_button_target_attr: '',
|
|
8
|
+
c_button_text: 'Sign Up',
|
|
9
|
+
c_button_type_attr: 'submit',
|
|
10
|
+
c_button_url: ''
|
|
11
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
const clone = require( '@penskemediacorp/larva' ).clone;
|
|
3
|
-
const c_button = clone( path.resolve( __dirname, './c-button.prototype' ) );
|
|
1
|
+
const clonedeep = require("lodash.clonedeep");
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
const c_button_protoype = require("./c-button.prototype");
|
|
4
|
+
const c_button = clonedeep(c_button_protoype);
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
c_button.c_button_classes += ' lrv-u-display-inline-flex';
|
|
7
|
+
|
|
8
|
+
module.exports = c_button;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{% if c_button_url %}
|
|
2
|
-
<a class="c-button {{ modifier_class }} {{ c_button_classes }}" href="{{ c_button_url }}">
|
|
2
|
+
<a class="c-button larva {{ modifier_class }} {{ c_button_classes }}" href="{{ c_button_url }}" target="{{ c_button_target_attr }}" rel="{{ c_button_rel_attr }}" {{ wp_action( 'pmc_do_render_custom_ga_tracking_attr', c_button_ga_tracking ) }}>
|
|
3
3
|
{% else %}
|
|
4
|
-
<button class="c-button {{ modifier_class }} {{ c_button_classes }}" type="{{ c_button_type_attr }}">
|
|
4
|
+
<button class="c-button larva {{ modifier_class }} {{ c_button_classes }}" type="{{ c_button_type_attr }}">
|
|
5
5
|
{% endif %}
|
|
6
6
|
|
|
7
7
|
<span class="c-button__inner {{ c_button_inner_classes }}">
|
|
8
8
|
{{ c_button_text }}
|
|
9
9
|
</span>
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
{% if c_button_screen_reader_text %}
|
|
12
|
+
<span class="lrv-a-screen-reader-only">{{ c_button_screen_reader_text }}</span>
|
|
13
|
+
{% endif %}
|
|
14
|
+
|
|
11
15
|
{% if c_button_url %}
|
|
12
16
|
</a>
|
|
13
17
|
{% else %}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# c-dek
|
|
2
|
+
|
|
3
|
+
c-dek is intended for small paragraphs of text such as an excerpt or a small description of other content. It is a paragraph tag. If c_dek_markup is used for populating the tag, back-end developers should ensure that the markup does not contain surrounding `p` tags.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
c_dek_classes: '',
|
|
3
|
+
c_dek_markup: '',
|
|
4
|
+
c_dek_text: 'Perfection is rarely achieved in movies, but this heaven-sent concert doc hits the sweet spot. Over two days in January 1972, the Queen of Soul, Aretha Franklin — she was 29 at the time — sweeps into the New Temple Missionary Baptist Church in Watts in front of a congregation and testifies to God in song. The blessed thing took nearly half a century to come out because director Sydney Pollack failed to sync the image with the sound. Then digital angels stepped in, and glory, glory, hallelujah!',
|
|
4
5
|
};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
{% if c_dek_text %}
|
|
2
|
+
<p class="c-dek {{ modifier_class }} {{ c_dek_classes }}">{{ c_dek_text }}</p>
|
|
3
|
+
{% endif %}
|
|
4
|
+
|
|
5
|
+
{% if c_dek_markup %}
|
|
6
|
+
<p class="c-dek {{ modifier_class }} {{ c_dek_classes }}">
|
|
7
|
+
{{ c_dek_markup|raw }}
|
|
8
|
+
</p>
|
|
9
|
+
{% endif %}
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
const clonedeep = require( 'lodash.clonedeep' );
|
|
1
2
|
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const c_email_field = clone( path.resolve( __dirname, './c-email-field.prototype' ) );
|
|
3
|
+
const c_email_field_prototype = require( './c-email-field.prototype' );
|
|
4
|
+
const c_email_field = clonedeep( c_email_field_prototype );
|
|
5
5
|
|
|
6
|
-
c_email_field.c_email_field_classes =
|
|
7
|
-
c_email_field.c_email_field_label_classes =
|
|
8
|
-
c_email_field.c_email_field_input_classes =
|
|
6
|
+
c_email_field.c_email_field_classes = 'lrv-u-font-size-14 lrv-u-flex lrv-u-align-items-center';
|
|
7
|
+
c_email_field.c_email_field_label_classes = 'lrv-u-padding-r-050 lrv-u-font-weight-bold lrv-u-whitespace-nowrap';
|
|
8
|
+
c_email_field.c_email_field_input_classes = 'lrv-u-background-color-transparent lrv-u-border-a-0 lrv-u-color-currentColor lrv-u-padding-a-050 lrv-u-font-size-14';
|
|
9
9
|
|
|
10
|
-
module.exports = c_email_field;
|
|
10
|
+
module.exports = c_email_field;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
2
|
+
c_email_field_classes: '',
|
|
3
|
+
c_email_field_label_classes: '',
|
|
4
|
+
c_email_field_label_text: 'Your Email',
|
|
5
|
+
c_email_field_input_id_attr: '',
|
|
6
|
+
c_email_field_input_name_attr: '',
|
|
7
|
+
c_email_field_input_placeholder_attr: 'email@example.com'
|
|
8
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<div class="c-email-field {{ modifier_class }} {{ c_email_field_classes }}">
|
|
2
|
-
<label class="c-email-field__label {{ c_email_field_label_classes }}" for="{{
|
|
2
|
+
<label class="c-email-field__label {{ c_email_field_label_classes }}" for="{{ c_email_field_input_id_attr }}">{{ c_email_field_label_text }}</label>
|
|
3
3
|
<input class="c-email-field__input {{ c_email_field_input_classes }}" name="{{ c_email_field_input_name_attr }}" id="{{ c_email_field_input_id_attr }}" required type="email" placeholder="{{ c_email_field_input_placeholder_attr }}" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" />
|
|
4
4
|
</div>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
c_figcaption_classes: '',
|
|
3
|
+
c_figcaption_caption_markup: 'Protest art hangs at Hong Kong <em>International Airport</em>.',
|
|
4
|
+
c_figcaption_caption_classes: '',
|
|
5
|
+
c_figcaption_credit_text: 'Courtesty Wong Ka Ying',
|
|
6
|
+
c_figcaption_credit_classes: '',
|
|
7
|
+
c_figcaption_inner: false,
|
|
8
|
+
c_figcaption_inner_classes: '',
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<figcaption class="c-figcaption {{ modifier_class }} {{ c_figcaption_classes }}">
|
|
2
|
+
{% if c_figcaption_inner %}
|
|
3
|
+
<div class="c-figcaption__inner {{ c_figcaption_inner_classes }}">
|
|
4
|
+
{% endif %}
|
|
5
|
+
|
|
6
|
+
{% if c_figcaption_caption_markup %}
|
|
7
|
+
<span class="{{ c_figcaption_caption_classes }}">{{ c_figcaption_caption_markup|raw }}</span>
|
|
8
|
+
{% endif %}
|
|
9
|
+
{% if c_figcaption_credit_text %}
|
|
10
|
+
<cite class="{{ c_figcaption_credit_classes }}">{{ c_figcaption_credit_text }}</cite>
|
|
11
|
+
{% endif %}
|
|
12
|
+
|
|
13
|
+
{% if c_figcaption_inner %}
|
|
14
|
+
</div>
|
|
15
|
+
{% endif %}
|
|
16
|
+
</figcaption>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
This pattern is for major section headings. It has the following options:
|
|
2
|
+
|
|
3
|
+
1. `c_heading_is_primary_heading` - default is false, but true will set this to an `h1`. Useful for category and tag templates.
|
|
4
|
+
2. `c_heading_outer` - a wrapping div that exposes `c_heading_outer_classes`. Useful for adding borders or background colors to the heading.
|