How to use the emotion/react function in emotion

To help you get started, we’ve selected a few emotion 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 MorpheoOrg / morpheo-analytics / src / client / js / business / ui / components / LeftPanel.js View on Github external
/* eslint react/no-danger: 0 */
/* globals window */

import {PropTypes} from 'prop-types';
import {css} from 'emotion';
import styled from 'emotion/react';
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {onlyUpdateForKeys} from 'recompose';

import actions from '../actions/leftPanel';


const Container = styled('div')`
    overflow: hidden;
    margin-left:auto;
    margin-right:auto;
`;


const Dragger = styled('div') `
    position: absolute;
    z-index: 1;
    opacity: 100;
    height: 100%;
    width: 10px;
    right: -5px;
    top: 0px;
    cursor: col-resize;
`;
github didierfranc / redux-react-starter / src / components / Styled.js View on Github external
&:focus {
    border-color: rgb(0, 128, 255);
  }
`

export const Submit = styled.input`
  border: none;
  color: rgb(0, 128, 255);
  font-size: 24px;
  background: none;
  outline: none;
  cursor: pointer;
  margin-top: 30px;
`

export const FooterLink = styled(Link)`
  position: fixed;
  left: 0;
  bottom: 15px;
  width: 100%;
  font-size: 14px;
  font-family: sans-serif;
  font-weight: 100;
  text-decoration: none;
  color: rgb(10, 10, 10);
  &:hover {
    color: rgb(0, 0, 0);
  }
`
github zouhir / jarvis / client / components / navbar / index.js View on Github external
import { h } from "preact";
import styled, { css } from 'emotion/react'
import theme from '../../helpers/theme';

const Nav = styled('nav')`
  height: 60px;
  background: ${theme.dark1};
  box-shadow: 0 4px 20px 6px rgba(0,0,0,0.09);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0px 15px;
  position: fixed;
  width: 100%;
  z-index: 999;
`;

const Status = styled('a')`
  color: rgba(255, 255, 255, 0.8);
  background-image: linear-gradient(-47deg, #B154F4 0%, #7D71FC 100%);
  border-radius: 4px;
github joshwcomeau / Tello / src / components / CalendarCornerCell / CalendarCornerCell.js View on Github external
import styled from 'emotion/react';

import { COLORS } from '../../constants';

import Cell from '../Cell';


const CalendarStripedCell = styled(Cell)`
  border-bottom: 3px solid ${COLORS.gray.primary};
  border-right: 1px solid ${COLORS.gray.primary};
  background: ${COLORS.highlight.dark};
`

export default CalendarStripedCell;
github zouhir / jarvis / client / components / assets-list / index.js View on Github external
white-space: nowrap;
      text-overflow: ellipsis;
      display: inline-block;
      text-align: left;
    }
  }
`;

const header = css`
  background: rgb(69, 66, 112);
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.6;
`;

const Brief = styled('div')`
width: 100%;
background: #000;
padding: 12px 15px 8px 15px;
background: rgba(69, 66, 112, 0.9);
div {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 1;
  color: #FFF;
  height: 20px;
  width: 100%;
  display: flex;
  span:last-child {
    flex: none;
    margin-left: auto;
github zouhir / jarvis / client / components / list / index.js View on Github external
import { h } from "preact";
import styled, { css } from 'emotion/react'
import theme from '../../helpers/theme';

const UL = styled('ul')`
  list-style: none;
  width: 100%;
  padding: 0px;
  margin: 0;
  li {
    height: 40px;
    padding: 0px 10px;
    &:nth-child(odd) {background: rgba(44, 44, 71, 0.3)}
    display: flex;
    align-items: center;
    color: #FFF;
    span {
      display: inline-block;
      width: 20%;
    }
    .name {
github zouhir / jarvis / client / components / block / index.js View on Github external
overflow: hidden;
  &.green {
    background-image: linear-gradient(-47deg, #219CC8 0%, #4ACFC5 100%);
  }
  &.orange {
    background-image: linear-gradient(-47deg, #FF6B9A 0%, #FF8370 100%);
  }
  &.purple {
    background-image: linear-gradient(-47deg, #B154F4 0%, #7D71FC 100%);
  }
  &.black {
    background-image: linear-gradient(-48deg, #333254 0%, #333254 100%);
  }
`;

const Count = styled('h2')`
  font-weight: 800;
  font-size: 80px;
  line-height: 60px;
  color: #FFF;
  opacity: 0.1;
  position: absolute;
  left: -4px;
  bottom: -2px;
`;


const Block = ({color = 'green'}) => {
  
  return (
    <div>
      <div></div></div>
github zouhir / jarvis / client / components / assets-list / index.js View on Github external
import { h, Component } from "preact";
import styled, { css } from 'emotion/react'
import theme from '../../helpers/theme';

import {readableBytes} from '../../helpers/utils';

const UL = styled('ul')`
  list-style: none;
  width: 100%;
  padding: 0px;
  margin: 0;
  li {
    height: 40px;
    padding: 0px 10px;
    display: flex;
    align-items: center;
    color: #FFF;
    font-size: 13px;
    &.subheader: {background: rgba(44, 44, 71, 0.3);}
    span {
      display: inline-block;
      width: 20%;
      text-align: center;
github didierfranc / redux-react-starter / src / components / Styled.js View on Github external
border: 1px solid rgb(213, 213, 213);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  font-family: sans-serif;
`

export const GithubButton = styled(Github)`
  border-radius: 3px 0 0 3px;
  background: rgb(248, 248, 248);
  &:hover {
    background: rgb(238, 238, 238);
  }
`

export const GithubCount = styled(Github)`
  margin-left: -1px;
  border-radius: 0 3px 3px 0;
  width: 100px;
`

export const GithubLink = styled.a`
  display: block;
  text-decoration: none;
  color: black;
`

export const Message = styled.h2`
  font-family: sans-serif;
  font-weight: 100;
  margin-top: 30vh;
`
github zouhir / jarvis / client / components / compiling / index.js View on Github external
const Perc = styled(`h1`)`
  font-weight: 800;
  font-size: 78px;
  color: #FFF;
  opacity: 0.05;
  position: absolute;
  top: 50%;
  padding: 0;
  margin: 0;
  transform: translateY(-50%);
  text-align: center;
  width: 100%;
`;

const Timer = styled('p')`
  font-weight: 300;
  font-size: 18px;
  width: 100%;
  color: #FFF;
  opacity: 0.5;
  text-align: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
`;

const Compiling = (props) =&gt; {
  
  return (
    <div>
      </div>