Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default breakpoint => ({
container: {
flex: 1,
paddingVertical: spacing(3),
paddingHorizontal: spacing(2)
},
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: fontSizeResolver[breakpoint],
lineHeight: fontSizeResolver[breakpoint]
},
summary: {
...globalSpacingStyles.tabletTeaser
}
});
},
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: 30,
lineHeight: 30
},
imageContainer: {
flex: 0.44
},
summaryContainer: {
flex: 0.56,
paddingRight: spacing(4)
},
summary: {
...globalSpacingStyles.tabletTeaser
}
};
const wideBreakpointStyles = {
...mediumBreakpointStyles,
imageContainer: {
flex: 1
},
summaryContainer: {
flex: 1,
paddingRight: spacing(4)
},
headline: {
...mediumBreakpointStyles.headline,
fontSize: 40,
lineHeight: 40
} from "@times-components/styleguide";
const styles = {
container: {
flex: 1,
paddingVertical: spacing(3),
paddingHorizontal: spacing(2)
},
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: 20,
lineHeight: 20
},
summary: {
...globalSpacingStyles.tabletTeaser
}
};
export default styles;
},
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: headlineFontSize[breakpoint],
lineHeight: headlineFontSize[breakpoint]
},
summaryContainer: {
flex: 1
},
imageContainer: {
marginBottom: spacing(2),
width: "100%"
},
summary: {
...globalSpacingStyles.tabletTeaser
}
});
export default breakpoint => ({
container: {
paddingHorizontal: spacing(2),
paddingTop: spacing(2),
paddingBottom: spacing(4)
},
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: fontSizeResolver[breakpoint],
lineHeight: fontSizeResolver[breakpoint]
},
summary: {
...globalSpacingStyles.tabletTeaser
}
});
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: fontSizeResolver[breakpoint],
lineHeight: fontSizeResolver[breakpoint]
},
strapline: {
fontFamily: fonts.headlineRegular,
color: colours.functional.primary,
fontSize: 24,
lineHeight: 26,
paddingTop: spacing(2),
paddingBottom: 0
},
summary: {
...globalSpacingStyles.tabletTeaser
}
});
container: {
flex: 1,
flexDirection: "row",
padding: spacing(2)
},
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: fontSizeResolver[breakpoint],
lineHeight: fontSizeResolver[breakpoint]
},
summaryContainer: {
width: "100%"
},
summary: {
...globalSpacingStyles.tabletTeaser
}
});
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: fontSizeResolver[breakpoint],
lineHeight: fontSizeResolver[breakpoint]
},
summaryContainer: {
flex: 1,
width: "41%",
paddingRight: spacing(4)
},
imageContainer: {
width: "59%"
},
summary: {
...globalSpacingStyles.tabletTeaser
}
});
flex: 1,
paddingVertical: spacing(3),
paddingHorizontal: spacing(2)
},
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: fontSizeResolver[breakpoint],
lineHeight: fontSizeResolver[breakpoint]
},
imageContainer: {
marginBottom: spacing(2),
width: "100%"
},
summary: {
...globalSpacingStyles.tabletTeaser
}
});
},
headline: {
...globalSpacingStyles.tabletHeadline,
fontFamily: fonts.headline,
fontSize: 30,
lineHeight: 30
},
summaryContainer: {
flex: 1,
paddingRight: spacing(4)
},
imageContainer: {
flex: 1
},
summary: {
...globalSpacingStyles.tabletTeaser
}
};
const wideBreakpointStyles = {
...mediumBreakpointStyles,
container: {
...mediumBreakpointStyles.container,
marginHorizontal: spacing(2)
},
headline: {
...mediumBreakpointStyles.headline,
fontSize: 40,
lineHeight: 40
}
};