Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDSS-1273: New responsive style for news cards. #462

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ dependencies:
- datetime
- ds
- element_class_formatter
- empty_fields
- field_formatter_class
- link
- stanford_media
Expand Down Expand Up @@ -65,6 +66,11 @@ third_party_settings:
news_external_url:
- su_news_source
fields:
'dynamic_token_field:node-news_content_url':
plugin_id: 'dynamic_token_field:node-news_content_url'
weight: 6
label: hidden
formatter: default
node_title:
plugin_id: node_title
weight: 1
Expand All @@ -75,11 +81,6 @@ third_party_settings:
'link class': ''
wrapper: ''
class: ''
'dynamic_token_field:node-news_content_url':
plugin_id: 'dynamic_token_field:node-news_content_url'
weight: 6
label: hidden
formatter: default
id: node.stanford_news.stanford_card
targetEntityType: node
bundle: stanford_news
Expand All @@ -94,14 +95,16 @@ content:
image:
image_formatter: responsive_image_style
image_formatter_image_style: cta_2x_1014x676
image_formatter_responsive_image_style: card_3_2
image_formatter_responsive_image_style: card_full_responsive
image_formatter_view_mode: default
video:
video_formatter: entity
video_formatter_view_mode: default
other:
view_mode: default
third_party_settings:
empty_fields:
handler: ''
field_formatter_class:
class: ''
weight: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
uuid: d23ff68a-4735-4a05-8fe1-1956d24f8985
langcode: en
status: true
dependencies:
config:
- image.style.card_3_2_480x320_
- image.style.card_3_2_960x640_
- image.style.square_478
module:
- stanford_media
_core:
default_config_hash: 87YDNYUvaTv6bZRJVF4DsV7apqKNcQIY5xTHMC97ZjM
id: card_full_responsive
label: 'Card Full Responsive'
image_style_mappings:
-
image_mapping_type: image_style
image_mapping: card_3_2_960x640_
breakpoint_id: stanford_media.xl
multiplier: 1x
-
image_mapping_type: image_style
image_mapping: card_3_2_960x640_
breakpoint_id: stanford_media.lg
multiplier: 1x
-
image_mapping_type: image_style
image_mapping: card_3_2_480x320_
breakpoint_id: stanford_media.md
multiplier: 1x
-
image_mapping_type: image_style
image_mapping: square_478
breakpoint_id: stanford_media.sm
multiplier: 1x
-
image_mapping_type: image_style
image_mapping: square_478
breakpoint_id: stanford_media.xs
multiplier: 1x
-
image_mapping_type: image_style
image_mapping: card_3_2_960x640_
breakpoint_id: stanford_media.md
multiplier: 2x
-
image_mapping_type: image_style
image_mapping: square_478
breakpoint_id: stanford_media.sm
multiplier: 2x
-
image_mapping_type: image_style
image_mapping: square_478
breakpoint_id: stanford_media.xs
multiplier: 2x
breakpoint_group: stanford_media
fallback_image_style: card_3_2_960x640_
Loading