Skip to content

Commit

Permalink
cookie index styling (#1855)
Browse files Browse the repository at this point in the history
Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
  • Loading branch information
tanmoyAtb and Tbaut authored Jan 14, 2022
1 parent a9216a5 commit e7696e3
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions packages/files-ui/src/Contexts/PosthogContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const PosthogContext = React.createContext<PosthogContext>({
})

const useStyles = makeStyles(
({ palette, breakpoints, constants }: CSFTheme) => {
({ palette, breakpoints, constants, zIndex }: CSFTheme) => {
return createStyles({
cookieBanner: {
position: "fixed",
Expand All @@ -35,35 +35,39 @@ const useStyles = makeStyles(
flexDirection: "column",
backgroundColor: constants.cookieBanner.backgroundColor,
padding: "16px 32px",
zIndex: zIndex?.layer1,
[breakpoints.down("sm")]: {
padding: "8px 16px"
padding: "16px 16px"
}
},
bannerHeading: {
fontSize: 24,
lineHeight: "28px",
lineHeight: "42px",
[breakpoints.down("sm")]: {
fontSize: 18,
lineHeight: "22px"
fontSize: 22,
lineHeight: "40px"
}
},
bannerText: {
fontSize: 14,
lineHeight: "18px",
marginBottom: constants.generalUnit * 1.5,
[breakpoints.down("sm")]: {
fontSize: 12,
fontSize: 13,
lineHeight: "16px"
}
},
link: {
color: palette.common.white.main
color: palette.common.white.main,
paddingLeft: constants.generalUnit
},
buttonSection: {
display: "flex",
flexDirection: "row",
"& > *": {
margin: 8
}
margin: `${constants.generalUnit}px 0`
},
acceptButton: {
marginLeft: constants.generalUnit * 2
}
})
}
Expand Down Expand Up @@ -166,6 +170,7 @@ const PosthogProvider = ({ children }: PosthogProviderProps) => {
<Button
onClick={optInCapturing}
variant='outline'
className={classes.acceptButton}
>
<Trans>Accept</Trans>
</Button>
Expand Down

0 comments on commit e7696e3

Please sign in to comment.