mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-23 14:48:08 +00:00
fix: fix the font size of episode page's title; refs #180
This commit is contained in:
parent
018965c572
commit
a6394bbedd
@ -5,6 +5,7 @@ import styled from '@emotion/styled'
|
|||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { LPE } from '../../../types/lpe.types'
|
import { LPE } from '../../../types/lpe.types'
|
||||||
|
import { lsdUtils } from '../../../utils/lsd.utils'
|
||||||
import { getPostLink } from '../../../utils/route.utils'
|
import { getPostLink } from '../../../utils/route.utils'
|
||||||
import EpisodeStats from '../Episode.Stats'
|
import EpisodeStats from '../Episode.Stats'
|
||||||
import EpisodeChannels from './Episode.Channels'
|
import EpisodeChannels from './Episode.Channels'
|
||||||
@ -37,7 +38,7 @@ const EpisodeHeader = ({
|
|||||||
coverImage={coverImage}
|
coverImage={coverImage}
|
||||||
/>
|
/>
|
||||||
<EpisodeStats date={date} duration={duration} />
|
<EpisodeStats date={date} duration={duration} />
|
||||||
<EpisodeTitle variant="h1" genericFontFamily="serif" component="h1">
|
<EpisodeTitle variant="h2" genericFontFamily="serif" component="h1">
|
||||||
{title}
|
{title}
|
||||||
</EpisodeTitle>
|
</EpisodeTitle>
|
||||||
{show && (
|
{show && (
|
||||||
@ -75,10 +76,10 @@ const CustomTypography = styled(Typography)`
|
|||||||
|
|
||||||
const EpisodeTitle = styled(Typography)`
|
const EpisodeTitle = styled(Typography)`
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
@media (max-width: 768px) {
|
|
||||||
|
${(props) => lsdUtils.breakpoint(props.theme, 'sm', 'down')} {
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
font-size: var(--lsd-h4-fontSize) !important;
|
${lsdUtils.typography('h4')}
|
||||||
line-height: var(--lsd-h4-lineHeight) !important;
|
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user