<commit_before>import React from 'react'
import styled, { ascDefaultTheme } from '@datapunt/asc-core'
import {
  Card,
  CardContent,
  CardMedia,
  Link,
  Heading,
  Paragraph,
  Image,
  Tag,
  themeColor,
  themeSpacing,
} from '@datapunt/asc-ui'
import RouterLink from 'redux-first-router-link'
import getImageFromCms from '../../utils/getImageFromCms'
import { TYPES } from '../../../shared/config/cms.config'
import { EDITORIAL_DETAIL_ACTIONS } from '../../../normalizations/cms/useNormalizedCMSResults'

const notFoundImage = require('./not_found_thumbnail.jpg')

const IMAGE_SIZE = 160

const StyledHeading = styled(Heading)`
  border-bottom: 2px solid transparent;
  line-height: 22px;
  margin-bottom: ${themeSpacing(3)};
  width: fit-content;
  display: inline-block;
`

const StyledLink = styled(Link)`
  margin-bottom: ${themeSpacing(4)};
  width: 100%;

  &:hover,
  &:focus {
    background-color: inherit;

    ${StyledHeading} {
      color: ${themeColor('secondary')};
      border-color: ${themeColor('secondary')};
    }
  }

  &:last-child {
    margin-bottom: 0;
  }
`

const StyledCard = styled(Card)`
  align-items: stretch;

  &:last-child {
    margin-bottom: 0;
  }
`

const StyledCardMedia = styled(CardMedia)`
  flex: 1 0 auto;
  border: 1px solid ${themeColor('tint', 'level3')};
  max-width: ${({ vertical }) => (vertical ? IMAGE_SIZE * 0.7 : IMAGE_SIZE)}px;
  max-height: ${IMAGE_SIZE}px;

  &::before {
    padding-top: ${({ vertical }) => (vertical ? '145%' : '100%')};
  }
`

const StyledCardContent = styled(CardContent)`
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: ${themeSpacing(0, 4)};
  border-bottom: 1px solid ${themeColor('tint', 'level3')};
  position: relative;
`<commit_msg>Updated EditorialCard styling to match the cards on the homepage<commit_after>import React from 'react'
import styled, { ascDefaultTheme } from '@datapunt/asc-core'
import {
  Card,
  CardContent,
  CardMedia,
  Link,
  Heading,
  Paragraph,
  Image,
  Tag,
  themeColor,
  themeSpacing,
} from '@datapunt/asc-ui'
import RouterLink from 'redux-first-router-link'
import getImageFromCms from '../../utils/getImageFromCms'
import { TYPES } from '../../../shared/config/cms.config'
import { EDITORIAL_DETAIL_ACTIONS } from '../../../normalizations/cms/useNormalizedCMSResults'

const notFoundImage = require('./not_found_thumbnail.jpg')

const IMAGE_SIZE = 160

const StyledHeading = styled(Heading)`
  line-height: 22px;
  margin-bottom: ${themeSpacing(3)};
  width: fit-content;
  display: inline-block;
`

const StyledCardContent = styled(CardContent)`
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-left: ${themeSpacing(4)};
  border-bottom: 1px solid ${themeColor('tint', 'level3')};
  position: relative;
`

const StyledLink = styled(Link)`
  margin-bottom: ${themeSpacing(4)};
  width: 100%;

  &:hover,
  &:focus {
    background-color: inherit;

    ${StyledHeading} {
      color: ${themeColor('secondary')};
      text-decoration: underline;
    }

    ${StyledCardContent} {
      border-color: ${themeColor('secondary')};
    }
  }

  &:last-child {
    margin-bottom: 0;
  }
`

const StyledCard = styled(Card)`
  align-items: stretch;

  &:last-child {
    margin-bottom: 0;
  }
`

const StyledCardMedia = styled(CardMedia)`
  flex: 1 0 auto;
  border: 1px solid ${themeColor('tint', 'level3')};
  max-width: ${({ vertical }) => (vertical ? IMAGE_SIZE * 0.7 : IMAGE_SIZE)}px;
  max-height: ${IMAGE_SIZE}px;

  &::before {
    padding-top: ${({ vertical }) => (vertical ? '145%' : '100%')};
  }
`
{'fraction_non_alphanumeric': 0.16279069767441862, 'fraction_numerical': 0.016251050714485852, 'mean_word_length': 3.9038461538461537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3827773', 'n_tokens_mistral': 1327, 'n_tokens_neox': 1267, 'n_words': 269}