Skip to content

Commit

Permalink
fix: add responsive behaviour to main page title and action button
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Jun 15, 2023
1 parent fec0741 commit 4813272
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { $Notification as NotificationBase } from 'benefit/applicant/components/Notification/Notification.sc';
import { respondAbove } from 'shared/styles/mediaQueries';
import styled from 'styled-components';

export const $Container = styled.div`
Expand All @@ -8,6 +9,10 @@ export const $Container = styled.div`
export const $TextContainer = styled.div`
display: flex;
box-sizing: border-box;
flex-direction: column;
${respondAbove('sm')`
flex-direction: row;
`}
`;

export const $Heading = styled.h1`
Expand All @@ -18,6 +23,7 @@ export const $Heading = styled.h1`
export const $Description = styled.p`
font-size: ${(props) => props.theme.fontSize.heading.s};
line-height: ${(props) => props.theme.lineHeight.l};
margin-right: var(--spacing-s);
`;

export const $Link = styled.span`
Expand All @@ -27,10 +33,12 @@ export const $Link = styled.span`

export const $ActionContainer = styled.div`
display: flex;
justify-content: flex-end;
align-items: center;
flex: 1 0 30%;
box-sizing: border-box;
${respondAbove('sm')`
justify-content: flex-end;
`}
`;

export const $Notification = styled(NotificationBase)`
Expand Down

0 comments on commit 4813272

Please sign in to comment.