How to use the @times-components/styleguide.breakpoints.wide 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 / article / src / styles / responsive.web.js View on Github external
import { View } from "react-native";
import styled from "styled-components";
import { breakpoints, colours, spacing } from "@times-components/styleguide";

export const MainContainer = styled(View)`
  @media (min-width: ${breakpoints.wide}px) {
    padding-top: ${spacing(4)};
    margin: 0 auto;
    display: block;
  }
`;

/* --- HeaderAd --- */
export const HeaderAdContainer = styled(View)`
  display: none;

  @media (min-width: ${breakpoints.medium}px) {
    display: flex;
    border-top-color: ${colours.functional.keyline};
    border-bottom-color: ${colours.functional.keyline};
    border-bottom-width: 1px;
    padding-top: ${spacing(2)};
github newsuk / times-components / packages / article / src / styles / article-body / responsive.web.js View on Github external
width: 100%;
  flex-direction: row;
  flex-wrap: nowrap;
  padding-left: ${spacing(2)};
  padding-right: ${spacing(2)};
  padding-bottom: 0;
  display: block;

  @media (min-width: ${breakpoints.medium}px) {
    width: 80.8%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }

  @media (min-width: ${breakpoints.wide}px) {
    width: 56.2%;
  }
`;

/* --- Pull Quotes --- */

export const PullQuoteResp = styled(View)`
  padding-left: ${spacing(2)};
  padding-right: ${spacing(2)};
  margin-bottom: ${spacing(2)};

  @media (min-width: ${breakpoints.medium}px) {
    width: 50%;
    float: left;
    margin-right: ${spacing(4)};
    margin-bottom: 0px;
github newsuk / times-components / packages / article-main-standard / src / styles / responsive.web.js View on Github external
/* --- Header --- */

export const HeaderContainer = styled(View)`
  padding-left: ${spacing(2)};
  padding-right: ${spacing(2)};

  @media (min-width: ${breakpoints.medium}px) {
    order: 1;
    width: 80.8%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }

  @media (min-width: ${breakpoints.wide}px) {
    width: 56.2%;
    margin-bottom: ${spacing(3)};
  }
`;

/* --- Meta --- */

export const MetaContainer = styled(View)`
  margin-bottom: ${spacing(4)};
  padding-right: ${spacing(4)};
  padding-left: ${spacing(4)};
  position: absolute;
  left: 0;
  width: 20.8333%;
  z-index: 1;
  top: 100%;
github newsuk / times-components / packages / article-skeleton / src / styles / article-body / responsive.web.js View on Github external
padding-left: 0px;
    padding-right: 0px;
  }
`;

export const PullQuoteContainer = styled(View)`
  display: block;

  @media (min-width: ${breakpoints.medium}px) {
    width: 80.8%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }

  @media (min-width: ${breakpoints.wide}px) {
    width: 56.2%;
  }
`;
github newsuk / times-components / packages / slice-layout / src / templates / leadoneandtwo / responsive.web.js View on Github external
flex-grow: ${supportCount === 1 ? "3" : "2"};
        padding-left: ${spacing(2)};
        padding-right: ${spacing(2)};
      }
    `;
  } else {
    Base = styled(Base)`
      @media (min-width: ${breakpoints.medium}px) {
        padding-left: 0;
        padding-right: 0;
      }
    `;
  }

  Base = styled(Base)`
    @media (min-width: ${breakpoints.wide}px) {
      flex-grow: ${supportCount === 1 ? "2.75" : "1.5"};
    }
  `;

  return Base;
};
github newsuk / times-components / packages / article-image / src / styles / responsive.web.js View on Github external
export const InsetImageStyle = styled(View)`
  display: inline-block;
  padding-bottom: ${spacing(4)};
  vertical-align: top;
  width: 50%;

  @media (min-width: ${breakpoints.medium}px) {
    clear: left;
    float: left;
    padding-bottom: 0px;
    padding-top: ${spacing(1)};
    padding-right: ${spacing(4)};
    width: 30%;
  }

  @media (min-width: ${breakpoints.wide}px) {
    clear: left;
    width: 35.71429%;
  }
`;

export const InsetCaptionStyle = styled(View)`
  padding-left: ${spacing(2)};

  @media (min-width: ${breakpoints.medium}px) {
    padding-left: 0px;
  }
`;

export const FullWidthCaptionContainer = styled.div`
  padding-left: ${spacing(2)};
  padding-right: ${spacing(2)};
github newsuk / times-components / packages / article-main-standard / src / styles / article-header / responsive.web.js View on Github external
export const HeadlineContainer = styled(Text)`
  font-size: ${fontSizes.headline}px;
  color: ${colours.functional.brandColour};
  margin-bottom: 8px;
  font-family: "${fonts.headline}";
  font-weight: 400;
  line-height: 30px;

  @media (min-width: ${breakpoints.medium}px) {
    font-size: ${fontSizes.articleHeadline}px;
    line-height: 45px;
  }
`;

export const LabelContainer = styled(View)`
  @media (min-width: ${breakpoints.wide}px) {
    margin-top: 0px;
  }
`;
github newsuk / times-components / packages / article-main-comment / src / styles / responsive.web.js View on Github external
@media (min-width: ${breakpoints.wide}px) {
    width: 56.2%;
  }
`;

export const HeadlineContainer = styled(Text)`
  @media (min-width: ${breakpoints.medium}px) {
    font-size: ${fontSizes.articleHeadline}px;
    line-height: 50px;
    margin-bottom: ${spacing(1)};
  }
`;

export const LabelContainer = styled(View)`
  @media (min-width: ${breakpoints.wide}px) {
    margin-top: 0px;
  }
`;

export const Meta = styled(View)`
  width: 100%;

  @media (min-width: ${breakpoints.medium}px) {
    margin-top: 0;
  }
`;

export const MetaContainer = styled(View)`
  align-items: center;

  @media (min-width: ${breakpoints.medium}px) {
github newsuk / times-components / packages / article-skeleton / src / styles / responsive.web.js View on Github external
import { View } from "react-native";
import styled from "styled-components";
import { breakpoints, colours, spacing } from "@times-components/styleguide";
import { ArticleKeylineItem } from "../keylines";

export const MainContainer = styled(View)`
  @media (min-width: ${breakpoints.wide}px) {
    padding-top: ${spacing(4)};
    margin: 0 auto;
  }
`;

export const HeaderAdContainer = styled(View)`
  display: flex;
  border-top-color: ${colours.functional.keyline};
  border-bottom-color: ${colours.functional.keyline};
  border-bottom-width: 1px;
  padding-top: ${spacing(2)};
  padding-bottom: ${spacing(2)};
`;

export const HeaderContainer = styled(View)`
  display: flex;
github newsuk / times-components / packages / slice-layout / src / templates / standard / responsive.web.js View on Github external
@media (min-width: ${breakpoints.medium}px) {
        padding-left: ${spacing(4)};
        padding-right: ${spacing(4)};
        width: 100%;
      }
    `;
  } else {
    Base = styled(Base)`
      @media (min-width: ${breakpoints.medium}px) {
        width: 80.8%;
      }
    `;
  }

  Base = styled(Base)`
    @media (min-width: ${breakpoints.wide}px) {
      width: ${childCount >= 3 ? "100%" : "56.2%"};
    }
  `;

  return Base;
};