How to use the @times-components/styleguide.globalSpacingStyles.tabletTeaser function in @times-components/styleguide

To help you get started, we’ve selected a few @times-components/styleguide examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / edition-slices / src / tiles / tile-af / styles / index.js View on Github external
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
  }
});
github newsuk / times-components / packages / edition-slices / src / tiles / tile-ab / styles / index.js View on Github external
},
  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
github newsuk / times-components / packages / edition-slices / src / tiles / tile-aa / styles / index.js View on Github external
} 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;
github newsuk / times-components / packages / edition-slices / src / tiles / tile-as / styles / index.js View on Github external
},
  headline: {
    ...globalSpacingStyles.tabletHeadline,
    fontFamily: fonts.headline,
    fontSize: headlineFontSize[breakpoint],
    lineHeight: headlineFontSize[breakpoint]
  },
  summaryContainer: {
    flex: 1
  },
  imageContainer: {
    marginBottom: spacing(2),
    width: "100%"
  },
  summary: {
    ...globalSpacingStyles.tabletTeaser
  }
});
github newsuk / times-components / packages / edition-slices / src / tiles / tile-y / styles / index.js View on Github external
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
  }
});
github newsuk / times-components / packages / edition-slices / src / tiles / tile-x / styles / index.js View on Github external
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
  }
});
github newsuk / times-components / packages / edition-slices / src / tiles / tile-ad / styles / index.js View on Github external
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
  }
});
github newsuk / times-components / packages / edition-slices / src / tiles / tile-z / styles / index.js View on Github external
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
  }
});
github newsuk / times-components / packages / edition-slices / src / tiles / tile-ar / styles / index.js View on Github external
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
  }
});
github newsuk / times-components / packages / edition-slices / src / tiles / tile-w / styles / index.js View on Github external
},
  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
  }
};