How to use the linaria/react.styled.main 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 / component-docs / src / templates / Content.js View on Github external
/* @flow */

import * as React from 'react';
import { styled } from 'linaria/react';

const Container = styled.main`
  flex: 1;

  @media (min-width: 640px) {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
`;

const Inner = styled.div`
  padding: 64px 24px 24px;

  @media (min-width: 640px) {
    padding: 64px;
  }
github callstack / linaria / website / src / components / Hero.js View on Github external
Get Started
            
          
          
            
          
        
      
    
  );
}

const HeroContainer = styled.main`
  position: relative;

  ${media.large} {
    padding: 64px 0;
    background-image: url(${require('../../assets/linaria-logomark.svg')});
    background-repeat: no-repeat;
    background-position: bottom right;
  }
`;

const Row = styled.div`
  ${media.large} {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }