larva modules: special-coverage

Available Variants

prototype
special-coverage README

This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.

special-coverage Twig The markup file.
<div class="special-coverage {{ special_coverage_classes }}">
	<div class="{{ special_coverage_wrapper_classes }}">
		<div class="{{ special_coverage_banner_classes }}">
			{% if special_coverage_heading_classes %}
				<div class="special-coverage-heading {{ special_coverage_heading_classes }}">
					{% if heading_1 %} 
						{% include "@larva/components/c-heading/c-heading.twig" with heading_1 %}
					{% endif %}	
					{% if heading_2 %}
						{% include "@larva/components/c-heading/c-heading.twig" with heading_2 %}
					{% endif %}	
				</div>
			{% endif %}	
			{% if c_lazy_image %}
				<div class="special-coverage-logo {{ special_coverage_logo_classes }}">
					{% include "@larva/components/c-lazy-image/c-lazy-image.twig" with c_lazy_image %}
				</div>  
			{% endif %}			     
		</div>
		<div class="{{ special_coverage_items_classes }}">
			{% for item in special_coverage_items %}
				{% include "@larva/modules/story/story.twig" with item %}
			{% endfor %}
		</div>
	</div>
	{% if c_span %}
		{% include "@larva/components/c-span/c-span.twig" with c_span %}
	{% endif %}	
<div>
special-coverage JSON The data object for this pattern.
{
	"special_coverage_wrapper_classes": "lrv-u-flex lrv-u-flex-direction-column@mobile-max lrv-u-padding-lr-150@mobile-max",
	"special_coverage_banner_classes": "lrv-u-margin-r-2@desktop lrv-u-padding-tb-1 lrv-u-padding-tb-2@desktop lrv-u-flex-basis-15p@desktop",
	"special_coverage_items_classes": " lrv-u-flex lrv-a-children-border-horizontal@desktop lrv-a-children-border-vertical@mobile-max lrv-u-flex-direction-column@mobile-max lrv-u-flex-basis-85p@desktop",
	"special_coverage_heading_classes": "lrv-u-padding-b-150@desktop lrv-u-padding-b-125@mobile-max lrv-u-border-b-1",
	"special_coverage_logo_classes": "lrv-u-padding-t-150@desktop lrv-u-padding-t-125@mobile-max",
	"heading_1": {
		"c_heading_classes": " a-font-theme-primary-s lrv-u-font-size-32@desktop lrv-u-font-size-28 lrv-u-line-height-small lrv-u-text-transform-uppercase lrv-u-line-height-small lrv-u-color-brand-primary",
		"c_heading_id_attr": "section-heading",
		"c_heading_text": "Rolling Stone",
		"c_heading_url": "",
		"c_heading_link_classes": "",
		"c_heading_outer": false,
		"c_heading_outer_classes": "",
		"c_heading_is_primary_heading": false
	},
	"heading_2": {
		"c_heading_classes": " a-font-theme-primary-s lrv-u-font-size-32@desktop lrv-u-font-size-28 lrv-u-line-height-small lrv-u-text-transform-uppercase lrv-u-line-height-small",
		"c_heading_id_attr": "section-heading",
		"c_heading_text": "Reports",
		"c_heading_url": "",
		"c_heading_link_classes": "",
		"c_heading_outer": false,
		"c_heading_outer_classes": "",
		"c_heading_is_primary_heading": false
	},
	"c_lazy_image": {
		"c_lazy_image_classes": "",
		"c_lazy_image_link_url": false,
		"c_lazy_image_link_classes": "lrv-a-unstyle-link",
		"c_lazy_image_crop_class": "lrv-a-crop-5x1",
		"c_lazy_image_crop_style_attr": false,
		"c_lazy_image_link_tab_index_attr": false,
		"c_lazy_image_alt_attr": "Lazy loaded image",
		"c_lazy_image_src_url": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
		"c_lazy_image_placeholder_url": "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",
		"c_lazy_image_srcset_attr": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg 640w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_b.jpg 1024w",
		"c_lazy_image_sizes_attr": "auto",
		"c_lazy_image_img_classes": "lrv-u-background-color-grey-lightest lrv-u-width-100p lrv-u-display-block lrv-u-height-auto",
		"c_lazy_image_height_attr": "",
		"c_lazy_image_width_attr": "",
		"c_lazy_image_in_initial_viewport": false,
		"c_lazy_image_decoding_attr": "async"
	},
	"special_coverage_items": [
		{
			"story_classes": " lrv-u-padding-lr-2@desktop-xl lrv-u-padding-lr-1@desktop lrv-u-padding-tb-125@mobile-max lrv-u-flex-basis-100p",
			"story_nav_classes": "lrv-a-font-secondary-m",
			"story_nav_layout_classes": "lrv-u-flex lrv-u-align-items-center lrv-a-space-children-horizontal lrv-a-space-children--2 lrv-a-hidden@mobile-max lrv-u-margin-t-050",
			"story_grid_classes": "lrv-u-flex lrv-u-flex-direction-column@desktop",
			"story_grid_primary_classes": "lrv-u-flex-basis-50p@mobile-max lrv-u-margin-r-1@mobile-max",
			"story_grid_secondary_classes": "lrv-u-flex-basis-50p@mobile-max",
			"story_links_classes": " lrv-u-margin-tb-00@desktop lrv-u-margin-tb-00@mobile-max lrv-u-margin-t-1@desktop",
			"c_span": false,
			"c_link": false,
			"c_link_bottom": false,
			"c_link_bottom_wrapper_classes": "",
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-xs lrv-u-display-block lrv-u-margin-b-050 ",
				"c_title_tag_text": "",
				"c_title_id_attr": "title-of-a-story",
				"c_title_text": "‘A Momentous Weekend’: LACMA’s High-Stakes Collectors Committee Event Raises $2.4 M.",
				"c_title_markup": "",
				"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover lrv-a-truncate-ellipsis-5line",
				"c_title_url": "#"
			},
			"c_dek": false,
			"c_lazy_image": {
				"c_lazy_image_classes": "",
				"c_lazy_image_link_url": false,
				"c_lazy_image_link_classes": "lrv-a-unstyle-link",
				"c_lazy_image_crop_class": "lrv-a-crop-3x2",
				"c_lazy_image_crop_style_attr": false,
				"c_lazy_image_link_tab_index_attr": false,
				"c_lazy_image_alt_attr": "Lazy loaded image",
				"c_lazy_image_src_url": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
				"c_lazy_image_placeholder_url": "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",
				"c_lazy_image_srcset_attr": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg 640w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_b.jpg 1024w",
				"c_lazy_image_sizes_attr": "auto",
				"c_lazy_image_img_classes": "lrv-u-background-color-grey-lightest lrv-u-width-100p lrv-u-display-block lrv-u-height-auto",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"c_tagline_author": false,
			"c_timestamp": false
		},
		{
			"story_classes": " lrv-u-padding-lr-2@desktop-xl lrv-u-padding-lr-1@desktop lrv-u-padding-tb-125@mobile-max lrv-u-flex-basis-100p",
			"story_nav_classes": "lrv-a-font-secondary-m",
			"story_nav_layout_classes": "lrv-u-flex lrv-u-align-items-center lrv-a-space-children-horizontal lrv-a-space-children--2 lrv-a-hidden@mobile-max lrv-u-margin-t-050",
			"story_grid_classes": "lrv-u-flex lrv-u-flex-direction-column@desktop",
			"story_grid_primary_classes": "lrv-u-flex-basis-50p@mobile-max lrv-u-margin-r-1@mobile-max",
			"story_grid_secondary_classes": "lrv-u-flex-basis-50p@mobile-max",
			"story_links_classes": " lrv-u-margin-tb-00@desktop lrv-u-margin-tb-00@mobile-max lrv-u-margin-t-1@desktop",
			"c_span": false,
			"c_link": false,
			"c_link_bottom": false,
			"c_link_bottom_wrapper_classes": "",
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-xs lrv-u-display-block lrv-u-margin-b-050 ",
				"c_title_tag_text": "",
				"c_title_id_attr": "title-of-a-story",
				"c_title_text": "‘A Momentous Weekend’: LACMA’s High-Stakes Collectors Committee Event Raises $2.4 M.",
				"c_title_markup": "",
				"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover lrv-a-truncate-ellipsis-5line",
				"c_title_url": "#"
			},
			"c_dek": false,
			"c_lazy_image": {
				"c_lazy_image_classes": "",
				"c_lazy_image_link_url": false,
				"c_lazy_image_link_classes": "lrv-a-unstyle-link",
				"c_lazy_image_crop_class": "lrv-a-crop-3x2",
				"c_lazy_image_crop_style_attr": false,
				"c_lazy_image_link_tab_index_attr": false,
				"c_lazy_image_alt_attr": "Lazy loaded image",
				"c_lazy_image_src_url": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
				"c_lazy_image_placeholder_url": "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",
				"c_lazy_image_srcset_attr": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg 640w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_b.jpg 1024w",
				"c_lazy_image_sizes_attr": "auto",
				"c_lazy_image_img_classes": "lrv-u-background-color-grey-lightest lrv-u-width-100p lrv-u-display-block lrv-u-height-auto",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"c_tagline_author": false,
			"c_timestamp": false
		},
		{
			"story_classes": " lrv-u-padding-lr-2@desktop-xl lrv-u-padding-lr-1@desktop lrv-u-padding-tb-125@mobile-max lrv-u-flex-basis-100p",
			"story_nav_classes": "lrv-a-font-secondary-m",
			"story_nav_layout_classes": "lrv-u-flex lrv-u-align-items-center lrv-a-space-children-horizontal lrv-a-space-children--2 lrv-a-hidden@mobile-max lrv-u-margin-t-050",
			"story_grid_classes": "lrv-u-flex lrv-u-flex-direction-column@desktop",
			"story_grid_primary_classes": "lrv-u-flex-basis-50p@mobile-max lrv-u-margin-r-1@mobile-max",
			"story_grid_secondary_classes": "lrv-u-flex-basis-50p@mobile-max",
			"story_links_classes": " lrv-u-margin-tb-00@desktop lrv-u-margin-tb-00@mobile-max lrv-u-margin-t-1@desktop",
			"c_span": false,
			"c_link": false,
			"c_link_bottom": false,
			"c_link_bottom_wrapper_classes": "",
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-xs lrv-u-display-block lrv-u-margin-b-050 ",
				"c_title_tag_text": "",
				"c_title_id_attr": "title-of-a-story",
				"c_title_text": "‘A Momentous Weekend’: LACMA’s High-Stakes Collectors Committee Event Raises $2.4 M.",
				"c_title_markup": "",
				"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover lrv-a-truncate-ellipsis-5line",
				"c_title_url": "#"
			},
			"c_dek": false,
			"c_lazy_image": {
				"c_lazy_image_classes": "",
				"c_lazy_image_link_url": false,
				"c_lazy_image_link_classes": "lrv-a-unstyle-link",
				"c_lazy_image_crop_class": "lrv-a-crop-3x2",
				"c_lazy_image_crop_style_attr": false,
				"c_lazy_image_link_tab_index_attr": false,
				"c_lazy_image_alt_attr": "Lazy loaded image",
				"c_lazy_image_src_url": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
				"c_lazy_image_placeholder_url": "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",
				"c_lazy_image_srcset_attr": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg 640w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_b.jpg 1024w",
				"c_lazy_image_sizes_attr": "auto",
				"c_lazy_image_img_classes": "lrv-u-background-color-grey-lightest lrv-u-width-100p lrv-u-display-block lrv-u-height-auto",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"c_tagline_author": false,
			"c_timestamp": false
		},
		{
			"story_classes": " lrv-u-padding-lr-2@desktop-xl lrv-u-padding-lr-1@desktop lrv-u-padding-tb-125@mobile-max lrv-u-flex-basis-100p",
			"story_nav_classes": "lrv-a-font-secondary-m",
			"story_nav_layout_classes": "lrv-u-flex lrv-u-align-items-center lrv-a-space-children-horizontal lrv-a-space-children--2 lrv-a-hidden@mobile-max lrv-u-margin-t-050",
			"story_grid_classes": "lrv-u-flex lrv-u-flex-direction-column@desktop",
			"story_grid_primary_classes": "lrv-u-flex-basis-50p@mobile-max lrv-u-margin-r-1@mobile-max",
			"story_grid_secondary_classes": "lrv-u-flex-basis-50p@mobile-max",
			"story_links_classes": " lrv-u-margin-tb-00@desktop lrv-u-margin-tb-00@mobile-max lrv-u-margin-t-1@desktop",
			"c_span": false,
			"c_link": false,
			"c_link_bottom": false,
			"c_link_bottom_wrapper_classes": "",
			"c_title": {
				"c_title_classes": "lrv-a-font-primary-xs lrv-u-display-block lrv-u-margin-b-050 ",
				"c_title_tag_text": "",
				"c_title_id_attr": "title-of-a-story",
				"c_title_text": "‘A Momentous Weekend’: LACMA’s High-Stakes Collectors Committee Event Raises $2.4 M.",
				"c_title_markup": "",
				"c_title_link_classes": "lrv-a-unstyle-link lrv-u-color-brand-primary:hover lrv-a-truncate-ellipsis-5line",
				"c_title_url": "#"
			},
			"c_dek": false,
			"c_lazy_image": {
				"c_lazy_image_classes": "",
				"c_lazy_image_link_url": false,
				"c_lazy_image_link_classes": "lrv-a-unstyle-link",
				"c_lazy_image_crop_class": "lrv-a-crop-3x2",
				"c_lazy_image_crop_style_attr": false,
				"c_lazy_image_link_tab_index_attr": false,
				"c_lazy_image_alt_attr": "Lazy loaded image",
				"c_lazy_image_src_url": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg",
				"c_lazy_image_placeholder_url": "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",
				"c_lazy_image_srcset_attr": "https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_z.jpg 640w,https://farm5.staticflickr.com/4078/5441060528_31db7838ba_b.jpg 1024w",
				"c_lazy_image_sizes_attr": "auto",
				"c_lazy_image_img_classes": "lrv-u-background-color-grey-lightest lrv-u-width-100p lrv-u-display-block lrv-u-height-auto",
				"c_lazy_image_height_attr": "",
				"c_lazy_image_width_attr": "",
				"c_lazy_image_in_initial_viewport": false,
				"c_lazy_image_decoding_attr": "async"
			},
			"c_tagline_author": false,
			"c_timestamp": false
		}
	]
}