Skip to content

Commit

Permalink
remove css important and use mobile first styling
Browse files Browse the repository at this point in the history
  • Loading branch information
cemms1 committed Apr 26, 2024
1 parent 5d44493 commit 48e7a0c
Showing 1 changed file with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ import { css } from '@emotion/react';
import {
from,
headline,
lineHeights,
palette,
space,
textSans,
until,
} from '@guardian/source-foundations';
import {
Hide,
Expand Down Expand Up @@ -40,12 +38,12 @@ const headingStyles = () => css`

const subHeadingStyles = css`
color: ${palette.brandAlt[400]};
${textSans.small({ fontWeight: 'regular' })};
line-height: ${lineHeights.tight} !important;
margin: 0;
${until.desktop} {
font-size: 12px;
${textSans.xxsmall({ fontWeight: 'regular', lineHeight: 'tight' })};
${from.desktop} {
${textSans.small({ fontWeight: 'regular', lineHeight: 'tight' })};
}
`;

Expand Down Expand Up @@ -87,12 +85,10 @@ const dotStyles = css`

const benefitTextStyles = css`
color: ${palette.neutral[100]};
${textSans.small()};
line-height: ${lineHeights.regular} !important;
${textSans.xxsmall({ lineHeight: 'tight' })};
${until.desktop} {
line-height: 1rem !important;
font-size: 12px;
${from.desktop} {
${textSans.small({ lineHeight: 'regular' })};
}
`;

Expand Down

0 comments on commit 48e7a0c

Please sign in to comment.