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

Adds templates + CSS for the card view mode #659

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

markconroy
Copy link
Member

Closes #568

What does this change?

  1. Adds a template for cards - node--localgov-card.html.twig
  2. Adds CSS for cards - currently sets cards to look the same as the 'Featured news' items at the top of newsrooms

Thanks to Big Blue Door for sponsoring my time to work on this.

@@ -412,6 +412,12 @@ body {
--teaser-featured-border: var(--border);
--teaser-featured-border-color: var(--border-color-dark);

/* Card View Mode */
--card-featured-height: var(--teaser-featured-height);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this just be --card-height ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit 8aebabe sorts this. Well spotted, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a card template and CSS
2 participants