How to use the linaria/react.styled.span 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 zerobias / effector / website / editor / src / components / Console / react-inspector / elements.js View on Github external
/**
 * HTML
 */
export const HTML = styled.span`
  display: inline-block;

  & div:hover {
    background-color: rgba(255, 220, 158, .05) !important;
    border-radius: 2px;
  }
`

/**
 * Object constructor
 */
export const Constructor = styled.span`
  & > span > span:nth-child(1) {
    opacity: 0.6;
  }
`
github zerobias / effector / website / editor / src / components / ShareButton / view.js View on Github external
//@flow

import {styled} from 'linaria/react'

export const Tooltip = styled.span`
  position: absolute;
  z-index: 100;
  top: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.15em 0.8em;
  border-radius: 0.25em;
  font-size: 0.8rem;
`

export const Arrow = styled.span`
  position: absolute;
  content: '';
  bottom: 100%;
  height: 0;
  width: 0;
  border: 0.5em solid transparent;
  pointer-events: none;
  border-bottom-color: rgba(0, 0, 0, 0.6);
  margin-left: 0.5em;
`

export const TryButton = styled.div`
  position: relative;
  font-size: 14px;
  display: flex;
  flex-direction: row;
github callstack / react-native-paper / docs / pages / src / components / IconsList.js View on Github external
align-items: center;
  text-align: center;

  @media (max-width: 680px) {
    width: 96px;
  }
`;

const Icon = styled.span`
  display: block;
  margin: 16px;
  font-family: 'MaterialCommunityIcons';
  font-size: 48px;
`;

const IconName = styled.span`
  display: block;
  font-size: 12px;
`;

const Results = styled.div`
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;

  &:last-child {
    justify-content: flex-start;
  }
`;

const Searchbar = styled.input`
github callstack / linaria / website / src / components / Terminal.js View on Github external
{props.lines.map((line, index) => (
        {line}
      ))}
    
  );
}

const Block = styled.div`
  display: block;
  padding: 20px;
  background: ${theme.backdrop};
  color: ${theme.primary};
  font-family: 'Fira Mono', monospace;
`;

const CodeLine = styled.span`
  display: block;

  &::before {
    content: '$ ';
    color: ${theme.text};
  }
`;