How to use the linaria/react.styled.img function in linaria

To help you get started, we’ve selected a few linaria 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 callstack / react-native-paper / docs / pages / src / Showcase.js View on Github external
margin: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);

  @media (min-width: 420px) {
    height: ${480 + 48}px;

    &:hover,
    &:focus {
      ${Info} {
        transform: translateY(-48px);
      }
    }
  }
`;

const Image = styled.img`
  display: block;
  max-height: 480px;
  width: auto;

  @media (min-width: 420px) {
    height: 480px;
    width: 270px;
  }
`;

const BadgeContainer = styled.div`
  display: flex;
  flex-direction: row;
  margin-top: 16px;
  padding-left: 3px;
`;
github callstack / linaria / website / src / components / Features.js View on Github external
const Title = styled(Heading)`
  text-transform: uppercase;
  margin: 1em 0;
  color: ${theme.primary};
`;

const Figure = styled.figure`
  display: flex;
  align-items: flex-end;
  margin: 0 auto;
  width: 100%;
  max-width: 260px;
  height: 200px;
`;

const FigureImage = styled.img`
  width: 100%;
  object-fit: cover;
`;
github callstack / linaria / website / src / components / Hero.js View on Github external
cursor: pointer;
  transition: color 200ms, background 200ms;

  &:hover {
    color: #d2356d;
    box-shadow: inset 0 0 0 2px transparent, 1px 1px 1px rgba(0, 0, 0, 0.08);
    background: linear-gradient(
      to right,
      hsl(180, 100%, 70%),
      hsl(64, 57%, 82%),
      hsl(0, 100%, 84%)
    );
  }
`;

const CodeSample = styled.img`
  width: 100%;
  height: auto;
  margin: 64px 24px;
  max-width: calc(100% - 48px);
  box-shadow: 3px 3px 32px rgba(0, 0, 0, 0.32);

  ${media.large} {
    margin: 24px;
  }
`;
github callstack / linaria / website / src / components / Header.js View on Github external
);
}

const NavBar = styled(Container)`
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  ${media.medium} {
    flex-direction: row;
  }
`;

const LogoImage = styled.img`
  height: 64px;
  margin: 16px auto;
  display: block;

  ${media.medium} {
    height: 48px;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
  }
`;

const Links = styled.ul`
  display: flex;
  padding: 0;
  margin: 0;
github callstack / component-docs / src / templates / Sidebar.js View on Github external
const MenuButton = styled.input`
  display: none;

  &:checked ~ ${MenuContent} {
    position: relative;
    opacity: 1;
    pointer-events: auto;
  }

  &:checked ~ label {
    color: #111;
    user-select: none;
  }
`;

const LogoImage = styled.img`
  display: block;
  height: 48px;
  width: auto;
  margin: 32px 32px 0;
`;

const SeparatorItem = styled.hr`
  border: 0;
  background-color: rgba(0, 0, 0, 0.04);
  height: 1px;
  margin: 20px 0;
`;

const LinkItem = styled(Link)`
  display: block;
  padding: 12px 0;