How to use the linaria/react.styled.hr 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 kitten / didsmoosh / src / components / HeroLayout / common.js View on Github external
import { styled } from 'linaria/react';

export const Spacer = styled.hr`
  width: 2.083em;
  height: 0.1388em;
  border: none;
  background: #fff;
  margin: 0.1388em 0px;
`;

export const BlackSpacer = styled.hr`
  width: 2.083em;
  height: 0.1388em;
  border: none;
  background: #000;
  margin: 0.1388em 0px;
`;
github callstack / component-docs / src / templates / Sidebar.js View on Github external
}

  &: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;
  text-decoration: none;
  color: #888;
  line-height: 1;

  &:hover {
    color: #111;
    text-decoration: none;