@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.
Files changed (373) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -6
  3. package/__tests__/css/css.html +9 -0
  4. package/__tests__/css/css.prototype.js +1 -0
  5. package/__tests__/hub/hub.html +23 -0
  6. package/__tests__/hub/hub.prototype.js +28 -0
  7. package/__tests__/profile/profile.html +29 -0
  8. package/__tests__/profile/profile.prototype.js +17 -0
  9. package/__tests__/profile-index/profile-index.html +9 -0
  10. package/__tests__/profile-index/profile-index.prototype.js +6 -0
  11. package/__tests__/vlanding/vlanding.html +7 -0
  12. package/__tests__/vlanding/vlanding.prototype.js +11 -0
  13. package/_data/brands.json +40 -0
  14. package/_templates/pattern-nav.html +52 -0
  15. package/algorithms/a-carousel-grid/README.md +5 -0
  16. package/algorithms/a-carousel-grid/a-carousel-grid.html +25 -0
  17. package/algorithms/a-carousel-grid/a-carousel-grid.overlay.js +12 -0
  18. package/algorithms/a-carousel-grid/a-carousel-grid.prototype.js +0 -0
  19. package/algorithms/a-icon/a-icon.html +1 -0
  20. package/algorithms/a-icon/a-icon.prototype.js +0 -0
  21. package/base.html +73 -0
  22. package/components/c-button/README.md +3 -0
  23. package/components/c-button/c-button.black.js +7 -0
  24. package/components/c-button/c-button.brand-basic.js +8 -0
  25. package/components/c-button/c-button.ghost.js +10 -0
  26. package/components/c-button/c-button.prototype.js +11 -0
  27. package/components/c-button/c-button.stripped.js +8 -0
  28. package/components/c-button/c-button.twig +19 -0
  29. package/components/c-checkbox-input/c-checkbox-input.prototype.js +6 -0
  30. package/components/c-checkbox-input/c-checkbox-input.twig +4 -0
  31. package/components/c-dek/README.md +3 -0
  32. package/components/c-dek/c-dek.prototype.js +5 -0
  33. package/components/c-dek/c-dek.twig +9 -0
  34. package/components/c-email-field/README.md +0 -0
  35. package/components/c-email-field/c-email-field.ghost.js +10 -0
  36. package/components/c-email-field/c-email-field.prototype.js +8 -0
  37. package/components/c-email-field/c-email-field.twig +4 -0
  38. package/components/c-figcaption/c-figcaption.prototype.js +9 -0
  39. package/components/c-figcaption/c-figcaption.twig +16 -0
  40. package/components/c-heading/README.md +4 -0
  41. package/components/c-heading/c-heading.prototype.js +10 -0
  42. package/components/c-heading/c-heading.twig +29 -0
  43. package/components/c-hidden-field/c-hidden-field.prototype.js +5 -0
  44. package/components/c-hidden-field/c-hidden-field.twig +1 -0
  45. package/components/c-icon/c-icon.full.js +8 -0
  46. package/components/c-icon/c-icon.prototype.js +12 -0
  47. package/components/c-icon/c-icon.twig +34 -0
  48. package/components/c-input/c-input.prototype.js +8 -0
  49. package/components/c-input/c-input.twig +14 -0
  50. package/components/c-label/README.md +12 -0
  51. package/components/c-label/c-label.prototype.js +7 -0
  52. package/components/c-label/c-label.twig +19 -0
  53. package/components/c-lazy-image/README.md +35 -0
  54. package/components/c-lazy-image/c-lazy-image.prototype.js +17 -0
  55. package/components/c-lazy-image/c-lazy-image.twig +31 -0
  56. package/components/c-link/README.md +1 -0
  57. package/components/c-link/c-link.prototype.js +9 -0
  58. package/components/c-link/c-link.twig +13 -0
  59. package/components/c-logo/c-logo.prototype.js +7 -0
  60. package/components/c-logo/c-logo.twig +10 -0
  61. package/components/c-nav-link/c-nav-link.prototype.js +7 -0
  62. package/components/c-nav-link/c-nav-link.twig +10 -0
  63. package/components/c-play-badge/c-play-badge.prototype.js +3 -0
  64. package/components/c-play-badge/c-play-badge.twig +7 -0
  65. package/components/c-select-option/c-select-option.prototype.js +5 -0
  66. package/components/c-select-option/c-select-option.twig +5 -0
  67. package/{src/components/c-label/c-label.scss → components/c-span/README.md} +0 -19
  68. package/components/c-span/c-span.prototype.js +7 -0
  69. package/components/c-span/c-span.tag.js +7 -0
  70. package/components/c-span/c-span.twig +11 -0
  71. package/components/c-svg/c-svg.prototype.js +4 -0
  72. package/components/c-svg/c-svg.twig +3 -0
  73. package/components/c-tagline/README.md +3 -0
  74. package/components/c-tagline/c-tagline.prototype.js +4 -0
  75. package/{src/components → components}/c-tagline/c-tagline.twig +3 -3
  76. package/components/c-timestamp/c-timestamp.prototype.js +6 -0
  77. package/components/c-timestamp/c-timestamp.twig +9 -0
  78. package/components/c-title/README.md +7 -0
  79. package/components/c-title/c-title.prototype.js +9 -0
  80. package/{src/components → components}/c-title/c-title.twig +14 -2
  81. package/css.html +44 -0
  82. package/index.html +9 -0
  83. package/index.js +4 -0
  84. package/modules/age-gate/README.md +3 -0
  85. package/modules/age-gate/age-gate.prototype.js +68 -0
  86. package/modules/age-gate/age-gate.twig +37 -0
  87. package/modules/article-callout/article-callout.prototype.js +5 -0
  88. package/modules/article-callout/article-callout.twig +3 -0
  89. package/modules/article-excerpt/article-excerpt.prototype.js +4 -0
  90. package/modules/article-excerpt/article-excerpt.twig +1 -0
  91. package/modules/article-kicker/article-kicker.prototype.js +6 -0
  92. package/modules/article-kicker/article-kicker.twig +9 -0
  93. package/modules/article-tags/article-tags.prototype.js +24 -0
  94. package/modules/article-tags/article-tags.twig +3 -0
  95. package/modules/article-title/article-title.prototype.js +4 -0
  96. package/modules/article-title/article-title.twig +1 -0
  97. package/modules/author/author.prototype.js +43 -0
  98. package/modules/author/author.twig +38 -0
  99. package/modules/author-details/author-details.prototype.js +70 -0
  100. package/modules/author-details/author-details.twig +25 -0
  101. package/modules/back-to-list/back-to-list.prototype.js +11 -0
  102. package/modules/back-to-list/back-to-list.twig +5 -0
  103. package/modules/badge/badge.prototype.js +11 -0
  104. package/modules/badge/badge.twig +3 -0
  105. package/modules/banner/banner.prototype.js +10 -0
  106. package/modules/banner/banner.twig +10 -0
  107. package/modules/brands-most-popular/brands-most-popular.prototype.js +40 -0
  108. package/modules/brands-most-popular/brands-most-popular.twig +11 -0
  109. package/modules/breadcrumbs/breadcrumbs.prototype.js +7 -0
  110. package/modules/breadcrumbs/breadcrumbs.twig +3 -0
  111. package/modules/button/button.prototype.js +9 -0
  112. package/modules/button/button.twig +7 -0
  113. package/modules/carousel-grid/README.md +7 -0
  114. package/modules/carousel-grid/carousel-grid.overlay.js +26 -0
  115. package/modules/carousel-grid/carousel-grid.prototype.js +50 -0
  116. package/modules/carousel-grid/carousel-grid.twig +17 -0
  117. package/modules/carousel-slider/carousel-slider.prototype.js +56 -0
  118. package/modules/carousel-slider/carousel-slider.twig +11 -0
  119. package/modules/container/README.md +3 -0
  120. package/modules/container/container.prototype.js +7 -0
  121. package/modules/container/container.twig +1 -0
  122. package/modules/content-showcase/content-showcase.prototype.js +29 -0
  123. package/modules/content-showcase/content-showcase.the-moth.js +31 -0
  124. package/modules/content-showcase/content-showcase.twig +7 -0
  125. package/modules/expandable-search/expandable-search.prototype.js +19 -0
  126. package/modules/expandable-search/expandable-search.twig +9 -0
  127. package/modules/featured-stories/featured-stories.prototype.js +23 -0
  128. package/modules/featured-stories/featured-stories.twig +18 -0
  129. package/modules/footer/README.md +15 -0
  130. package/modules/footer/footer.prototype.js +14 -0
  131. package/modules/footer/footer.twig +22 -0
  132. package/modules/footer-button-list/footer-button-list.prototype.js +43 -0
  133. package/modules/footer-button-list/footer-button-list.twig +13 -0
  134. package/modules/footer-magazine-image/footer-magazine-image.prototype.js +15 -0
  135. package/modules/footer-magazine-image/footer-magazine-image.twig +3 -0
  136. package/modules/footer-menus/README.md +3 -0
  137. package/modules/footer-menus/footer-menus.prototype.js +18 -0
  138. package/modules/footer-menus/footer-menus.twig +5 -0
  139. package/modules/footer-newsletter/README.md +5 -0
  140. package/modules/footer-newsletter/footer-newsletter.prototype.js +21 -0
  141. package/modules/footer-newsletter/footer-newsletter.twig +5 -0
  142. package/modules/footer-social/README.md +3 -0
  143. package/modules/footer-social/footer-social.prototype.js +36 -0
  144. package/modules/footer-social/footer-social.twig +5 -0
  145. package/modules/footer-tip/footer-tip.prototype.js +23 -0
  146. package/modules/footer-tip/footer-tip.twig +5 -0
  147. package/modules/header/header.article.js +39 -0
  148. package/modules/header/header.prototype.js +90 -0
  149. package/modules/header/header.twig +74 -0
  150. package/modules/header-menu/header-menu.prototype.js +26 -0
  151. package/modules/header-menu/header-menu.twig +3 -0
  152. package/modules/header-sticky/header-sticky.article.js +43 -0
  153. package/modules/header-sticky/header-sticky.prototype.js +39 -0
  154. package/modules/header-sticky/header-sticky.twig +30 -0
  155. package/modules/heading/heading.h1.js +8 -0
  156. package/modules/heading/heading.h2.js +8 -0
  157. package/modules/heading/heading.h3.js +8 -0
  158. package/modules/heading/heading.h4.js +7 -0
  159. package/modules/heading/heading.h5.js +7 -0
  160. package/modules/heading/heading.h6.js +7 -0
  161. package/modules/heading/heading.prototype.js +9 -0
  162. package/modules/heading/heading.twig +3 -0
  163. package/modules/injected-related-content/injected-related-content.prototype.js +61 -0
  164. package/modules/injected-related-content/injected-related-content.twig +23 -0
  165. package/modules/list/list.ordered.js +7 -0
  166. package/modules/list/list.prototype.js +57 -0
  167. package/modules/list/list.twig +11 -0
  168. package/modules/listicle-item/listicle-item.prototype.js +11 -0
  169. package/modules/listicle-item/listicle-item.twig +3 -0
  170. package/modules/mega-menu/mega-menu.prototype.js +16 -0
  171. package/modules/mega-menu/mega-menu.twig +10 -0
  172. package/modules/mega-menu-content/mega-menu-content.prototype.js +10 -0
  173. package/modules/mega-menu-content/mega-menu-content.twig +5 -0
  174. package/modules/mega-menu-footer/mega-menu-footer.prototype.js +41 -0
  175. package/modules/mega-menu-footer/mega-menu-footer.twig +19 -0
  176. package/modules/mega-menu-footer-subscribe/mega-menu-footer-subscribe.prototype.js +20 -0
  177. package/modules/mega-menu-footer-subscribe/mega-menu-footer-subscribe.twig +4 -0
  178. package/modules/mega-menu-item/mega-menu-item.prototype.js +23 -0
  179. package/modules/mega-menu-item/mega-menu-item.twig +13 -0
  180. package/modules/more-stories-button/more-stories-button.profile.js +12 -0
  181. package/modules/more-stories-button/more-stories-button.prototype.js +29 -0
  182. package/modules/more-stories-button/more-stories-button.twig +13 -0
  183. package/modules/newsletter/newsletter.prototype.js +46 -0
  184. package/modules/newsletter/newsletter.twig +21 -0
  185. package/modules/newsletter-cta/newsletter-cta.prototype.js +21 -0
  186. package/modules/newsletter-cta/newsletter-cta.twig +22 -0
  187. package/modules/newswire/newswire.prototype.js +46 -0
  188. package/modules/newswire/newswire.twig +16 -0
  189. package/modules/paragraph/paragraph.prototype.js +8 -0
  190. package/modules/paragraph/paragraph.twig +3 -0
  191. package/modules/pmc-footer/README.md +3 -0
  192. package/modules/pmc-footer/pmc-footer.prototype.js +47 -0
  193. package/modules/pmc-footer/pmc-footer.twig +17 -0
  194. package/modules/post-content-image/post-content-image.prototype.js +14 -0
  195. package/modules/post-content-image/post-content-image.twig +3 -0
  196. package/modules/profile-blurb/profile-blurb.card.js +28 -0
  197. package/modules/profile-blurb/profile-blurb.prototype.js +45 -0
  198. package/modules/profile-blurb/profile-blurb.twig +37 -0
  199. package/modules/profile-body/profile-body.prototype.js +20 -0
  200. package/modules/profile-body/profile-body.twig +15 -0
  201. package/modules/profile-browse-by/profile-browse-by.prototype.js +29 -0
  202. package/modules/profile-browse-by/profile-browse-by.twig +6 -0
  203. package/modules/profile-card-list/profile-card-list.prototype.js +25 -0
  204. package/modules/profile-card-list/profile-card-list.twig +7 -0
  205. package/modules/profile-filter/profile-filter.prototype.js +26 -0
  206. package/modules/profile-filter/profile-filter.twig +15 -0
  207. package/modules/profile-gallery/profile-gallery.prototype.js +28 -0
  208. package/modules/profile-gallery/profile-gallery.twig +13 -0
  209. package/modules/profile-header/profile-header.prototype.js +29 -0
  210. package/modules/profile-header/profile-header.twig +27 -0
  211. package/modules/profile-highlights/profile-highlights.prototype.js +22 -0
  212. package/modules/profile-highlights/profile-highlights.twig +17 -0
  213. package/modules/profile-landing-header/profile-landing-header.prototype.js +17 -0
  214. package/modules/profile-landing-header/profile-landing-header.twig +12 -0
  215. package/modules/profile-landing-river/profile-landing-river.prototype.js +21 -0
  216. package/modules/profile-landing-river/profile-landing-river.twig +13 -0
  217. package/modules/profile-related-stories/profile-related-stories.prototype.js +33 -0
  218. package/modules/profile-related-stories/profile-related-stories.twig +9 -0
  219. package/modules/pullquote/pullquote.prototype.js +8 -0
  220. package/modules/pullquote/pullquote.twig +3 -0
  221. package/modules/read-next/read-next.prototype.js +20 -0
  222. package/modules/read-next/read-next.twig +4 -0
  223. package/modules/search-form/search-form.prototype.js +8 -0
  224. package/modules/search-form/search-form.twig +11 -0
  225. package/modules/separator/separator.prototype.js +4 -0
  226. package/modules/separator/separator.thick.js +7 -0
  227. package/modules/separator/separator.twig +1 -0
  228. package/modules/separator/separator.wide-thick.js +7 -0
  229. package/modules/separator/separator.wide.js +7 -0
  230. package/modules/social-share/social-share.prototype.js +43 -0
  231. package/modules/social-share/social-share.twig +30 -0
  232. package/modules/special-coverage/special-coverage.prototype.js +47 -0
  233. package/modules/special-coverage/special-coverage.twig +29 -0
  234. package/modules/story/story.borders.js +8 -0
  235. package/modules/story/story.center-vertical-borders.js +7 -0
  236. package/modules/story/story.center-vertical.js +11 -0
  237. package/modules/story/story.prototype.js +43 -0
  238. package/modules/story/story.right-borders.js +9 -0
  239. package/modules/story/story.right.js +14 -0
  240. package/modules/story/story.story-arc.js +9 -0
  241. package/modules/story/story.twig +88 -0
  242. package/modules/story/story.vertical-borders.js +7 -0
  243. package/modules/story/story.vertical.js +11 -0
  244. package/modules/story-arc-stories/story-arc-stories.prototype.js +21 -0
  245. package/modules/story-arc-stories/story-arc-stories.twig +14 -0
  246. package/modules/story-featured-quote/story-featured-quote.prototype.js +32 -0
  247. package/modules/story-featured-quote/story-featured-quote.twig +25 -0
  248. package/modules/story-grid/story-grid.prototype.js +24 -0
  249. package/modules/story-grid/story-grid.river.js +15 -0
  250. package/modules/story-grid/story-grid.twig +17 -0
  251. package/modules/sub-header/sub-header.prototype.js +8 -0
  252. package/modules/sub-header/sub-header.twig +7 -0
  253. package/modules/top-stories/top-stories.prototype.js +41 -0
  254. package/modules/top-stories/top-stories.twig +12 -0
  255. package/modules/vlanding-playlist/README.md +1 -0
  256. package/modules/vlanding-playlist/vlanding-playlist.prototype.js +34 -0
  257. package/modules/vlanding-playlist/vlanding-playlist.twig +20 -0
  258. package/modules/vlanding-video-card/README.md +1 -0
  259. package/modules/vlanding-video-card/vlanding-video-card.prototype.js +25 -0
  260. package/modules/vlanding-video-card/vlanding-video-card.twig +56 -0
  261. package/modules/vlanding-video-showcase/README.md +12 -0
  262. package/modules/vlanding-video-showcase/vlanding-video-showcase.prototype.js +68 -0
  263. package/modules/vlanding-video-showcase/vlanding-video-showcase.twig +46 -0
  264. package/objects/o-account-menu/o-account-menu.prototype.js +35 -0
  265. package/objects/o-account-menu/o-account-menu.twig +25 -0
  266. package/objects/o-author/o-author.prototype.js +13 -0
  267. package/objects/o-author/o-author.twig +13 -0
  268. package/objects/o-card/README.md +1 -0
  269. package/objects/o-card/o-card.prototype.js +23 -0
  270. package/objects/o-card/o-card.twig +69 -0
  271. package/objects/o-card-list/README.md +3 -0
  272. package/objects/o-card-list/o-card-list.prototype.js +13 -0
  273. package/objects/o-card-list/o-card-list.twig +7 -0
  274. package/objects/o-checkbox-input-list/o-checkbox-input-list.prototype.js +16 -0
  275. package/objects/o-checkbox-input-list/o-checkbox-input-list.twig +15 -0
  276. package/objects/o-collection-item/o-collection-item.floated.js +8 -0
  277. package/objects/o-collection-item/o-collection-item.prototype.js +11 -0
  278. package/objects/o-collection-item/o-collection-item.twig +5 -0
  279. package/objects/o-email-capture-form/README.md +11 -0
  280. package/objects/o-email-capture-form/o-email-capture-form.minimal.js +15 -0
  281. package/objects/o-email-capture-form/o-email-capture-form.prototype.js +17 -0
  282. package/objects/o-email-capture-form/o-email-capture-form.twig +16 -0
  283. package/objects/o-figure/README.md +17 -0
  284. package/objects/o-figure/o-figure.prototype.js +16 -0
  285. package/objects/o-figure/o-figure.twig +34 -0
  286. package/objects/o-header/o-header.prototype.js +14 -0
  287. package/{src/objects → objects}/o-header/o-header.twig +5 -1
  288. package/objects/o-header-buttons/o-header-buttons.column.js +10 -0
  289. package/objects/o-header-buttons/o-header-buttons.prototype.js +41 -0
  290. package/objects/o-header-buttons/o-header-buttons.twig +42 -0
  291. package/objects/o-icon-button/README.md +5 -0
  292. package/objects/o-icon-button/o-icon-button.prototype.js +18 -0
  293. package/objects/o-icon-button/o-icon-button.search.js +9 -0
  294. package/objects/o-icon-button/o-icon-button.twig +21 -0
  295. package/objects/o-indicator/README.md +1 -0
  296. package/objects/o-indicator/o-indicator.photos.js +12 -0
  297. package/objects/o-indicator/o-indicator.prototype.js +8 -0
  298. package/objects/o-indicator/o-indicator.twig +9 -0
  299. package/objects/o-input-group/o-input-group.prototype.js +11 -0
  300. package/objects/o-input-group/o-input-group.twig +5 -0
  301. package/objects/o-nav/README.md +3 -0
  302. package/objects/o-nav/o-nav.horizontal.js +8 -0
  303. package/objects/o-nav/o-nav.prototype.js +23 -0
  304. package/objects/o-nav/o-nav.twig +40 -0
  305. package/objects/o-select-nav/o-select-nav.prototype.js +17 -0
  306. package/objects/o-select-nav/o-select-nav.twig +9 -0
  307. package/objects/o-social-list/o-social-list.prototype.js +23 -0
  308. package/objects/o-social-list/o-social-list.twig +15 -0
  309. package/objects/o-span-group/README.md +1 -0
  310. package/objects/o-span-group/o-span-group.prototype.js +11 -0
  311. package/objects/o-span-group/o-span-group.twig +5 -0
  312. package/objects/o-sponsored-by/o-sponsored-by.prototype.js +10 -0
  313. package/{src/objects → objects}/o-sponsored-by/o-sponsored-by.twig +2 -2
  314. package/objects/o-story-arc-item/o-story-arc-item.prototype.js +29 -0
  315. package/objects/o-story-arc-item/o-story-arc-item.twig +9 -0
  316. package/objects/o-sub-header/o-sub-header.prototype.js +39 -0
  317. package/objects/o-sub-header/o-sub-header.twig +9 -0
  318. package/objects/o-tease/o-tease.prototype.js +26 -0
  319. package/{src/objects → objects}/o-tease/o-tease.twig +7 -3
  320. package/objects/o-tease-list/o-tease-list.prototype.js +14 -0
  321. package/{src/objects → objects}/o-tease-list/o-tease-list.twig +5 -1
  322. package/package.json +7 -12
  323. package/pattern.html +68 -0
  324. package/style-guide/colors.html +33 -0
  325. package/style-guide/fonts.html +22 -0
  326. package/style-guide/index.html +14 -0
  327. package/src/components/.DS_Store +0 -0
  328. package/src/components/c-button/.DS_Store +0 -0
  329. package/src/components/c-button/c-button.prototype.js +0 -5
  330. package/src/components/c-button/c-button.scss +0 -33
  331. package/src/components/c-button/c-button.twig +0 -13
  332. package/src/components/c-heading/.DS_Store +0 -0
  333. package/src/components/c-heading/c-heading.prototype.js +0 -5
  334. package/src/components/c-heading/c-heading.scss +0 -12
  335. package/src/components/c-heading/c-heading.twig +0 -20
  336. package/src/components/c-label/.DS_Store +0 -0
  337. package/src/components/c-label/c-label.prototype.js +0 -8
  338. package/src/components/c-label/c-label.twig +0 -11
  339. package/src/components/c-nav-link/c-nav-link.prototype.js +0 -6
  340. package/src/components/c-nav-link/c-nav-link.scss +0 -14
  341. package/src/components/c-nav-link/c-nav-link.twig +0 -3
  342. package/src/components/c-tagline/.DS_Store +0 -0
  343. package/src/components/c-tagline/c-tagline.json +0 -4
  344. package/src/components/c-tagline/c-tagline.scss +0 -19
  345. package/src/components/c-timestamp/.DS_Store +0 -0
  346. package/src/components/c-timestamp/c-timestamp.prototype.js +0 -5
  347. package/src/components/c-timestamp/c-timestamp.scss +0 -5
  348. package/src/components/c-timestamp/c-timestamp.twig +0 -1
  349. package/src/components/c-title/.DS_Store +0 -0
  350. package/src/components/c-title/c-title.prototype.js +0 -5
  351. package/src/components/c-title/c-title.scss +0 -30
  352. package/src/components/components.scss +0 -1
  353. package/src/objects/.DS_Store +0 -0
  354. package/src/objects/o-figure/.DS_Store +0 -0
  355. package/src/objects/o-figure/o-figure.prototype.js +0 -8
  356. package/src/objects/o-figure/o-figure.scss +0 -46
  357. package/src/objects/o-figure/o-figure.twig +0 -57
  358. package/src/objects/o-header/.DS_Store +0 -0
  359. package/src/objects/o-header/o-header.prototype.js +0 -12
  360. package/src/objects/o-header/o-header.scss +0 -5
  361. package/src/objects/o-nav/o-nav.prototype.js +0 -20
  362. package/src/objects/o-nav/o-nav.scss +0 -41
  363. package/src/objects/o-nav/o-nav.twig +0 -14
  364. package/src/objects/o-sponsored-by/.DS_Store +0 -0
  365. package/src/objects/o-sponsored-by/o-sponsored-by.prototype.js +0 -11
  366. package/src/objects/o-sponsored-by/o-sponsored-by.scss +0 -5
  367. package/src/objects/o-tease/.DS_Store +0 -0
  368. package/src/objects/o-tease/o-tease.prototype.js +0 -22
  369. package/src/objects/o-tease/o-tease.scss +0 -30
  370. package/src/objects/o-tease-list/.DS_Store +0 -0
  371. package/src/objects/o-tease-list/o-tease-list.prototype.js +0 -25
  372. package/src/objects/o-tease-list/o-tease-list.scss +0 -11
  373. 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 %}
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- "c_button_classes": "",
3
- "c_button_url": "#",
4
- "c_button_text": "Nice Button"
5
- }
@@ -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,5 +0,0 @@
1
- module.exports = {
2
- "c_heading_text": "Section Heading",
3
- "c_heading_url": "",
4
- "c_heading_link_classes": ""
5
- }
@@ -1,12 +0,0 @@
1
- // Heading
2
- //
3
- // Markup: c-heading.twig
4
- //
5
- // Style guide: Components.Text.Heading
6
-
7
- @import '@setup';
8
-
9
- .c-heading {
10
- @include font-family( eksell );
11
- font-weight: $font-weight-normal;
12
- }
@@ -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,8 +0,0 @@
1
- module.exports = {
2
- "modifier_class": "",
3
- "c_label_data_attr": "",
4
- "c_label_classes": "",
5
- "c_label_text": "Label Text",
6
- "c_label_url": "#",
7
- "c_label_link_classes": ""
8
- };
@@ -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,6 +0,0 @@
1
- module.exports = {
2
- "modifier_class": "",
3
- "c_nav_link_classes": "",
4
- "c_nav_link_text": "Navigation Link",
5
- "c_nav_link_url": "#"
6
- };
@@ -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
- }
@@ -1,3 +0,0 @@
1
- <a class="c-nav-link {{ modifier_class }} {{ c_nav_link_classes }}" href="{{ c_nav_link_url }}">
2
- {{ c_nav_link_text }}
3
- </a>
Binary file
@@ -1,4 +0,0 @@
1
- {
2
- "c_tagline_classes": "",
3
- "c_tagline_text": "Here is a pretty small amount of text for the tagline. It is a very flexible components, and is really just a single line of text."
4
- }
@@ -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
- }
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- "c_timestamp_classes": "",
3
- "c_timestamp_datetime_attr": "00:00-YY-DD-MM",
4
- "c_timestamp_text": "July 3, 2001"
5
- };
@@ -1,5 +0,0 @@
1
- // Timestamp
2
- //
3
- // Markup: c-timestamp.twig
4
- //
5
- // Style Guide: Components.Timestamp
@@ -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,5 +0,0 @@
1
- module.exports = {
2
- "c_title_classes": "",
3
- "c_title_text": "Title of a story",
4
- "c_title_url": "#"
5
- }
@@ -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';
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,5 +0,0 @@
1
- // Heading
2
- //
3
- // Markup: o-header.twig
4
- //
5
- // Style Guide: Objects.Header
@@ -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>
@@ -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
- }
@@ -1,5 +0,0 @@
1
- // Sponsored By
2
- //
3
- // Markup: o-sponsored-by.twig
4
- //
5
- // Style Guide: Objects.SponsoredBy
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
- }