How to use the aphrodite.StyleSheet.create function in aphrodite

To help you get started, we’ve selected a few aphrodite 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 csegames / Camelot-Unchained / game / hud / src / widgets / HUDFullScreen / components / Social / components / RankListItemMenu.tsx View on Github external
public render() {
    const ss = StyleSheet.create(defaultRankListItemMenuStyle);
    const custom = StyleSheet.create(this.props.styles || {});
    return (
      <ul>
        <li>
            Delete {this.state.deleting ?  : null}
        </li>
      </ul>
    );
  }
github contentacms / contenta_react / src / components / 02_molecule / Navigation / Navigation.jsx View on Github external
{
              return (match &amp;&amp; match.path === location.pathname);
            }}
            to={link[1]}
          &gt;
            {link[0]}
          
        
      ))}
    
  
);

const styles = StyleSheet.create({
  ul: {
    listStyleType: 'none',
    padding: 0,
  },
  li: {
    margin: '0 0 1rem 0',
    [breakpoints.echoAndUp]: {
      display: 'inline-block',
      margin: '0 1rem 0 0',
    },
  },
  active: {
    borderBottom: '1px solid black',
  },
});
github javascriptair / site / src / components / person.js View on Github external
function Person({
  className,
  twitter,
  link,
  name,
  imgSrc,
  squareImage,
  personClassNames = {root: '', name: '', twitter: '', image: ''},
  customStyles = {name: {}, twitter: {}},
}) {
  const mergedStyle = merge({}, Person.styles, {...customStyles})
  const styles = StyleSheet.create(mergedStyle)
  const personStyles = StyleSheet.create({
    person: {
      display: 'flex',
      flexDirection: 'column',
      alignItems: 'center',
      margin: 5,
      textDecoration: 'none',
      color: '#adadad',
    },
  })
  const personClassName = css(personStyles.person)

  className = className ? `${className} ${personClassName}` : personClassName
  className += ` ${personClassNames.root}`
  const nameClassName = `${personClassNames.name} ${css(styles.name)}`
  const twitterClassName = `${personClassNames.twitter} ${css(styles.twitter)}`
github javascriptair / site / src / components / episode / calendar.js View on Github external
target="_blank"
          rel="noopener noreferrer"
        &gt;
          Add to Calendar
        
      
    
  )
}

MainDate.propTypes = {
  date: PropTypes.object.isRequired,
  calendarUrl: PropTypes.string.isRequired,
}

MainDate.styles = StyleSheet.create({
  mainDateRSVPIcon: {
    fill: 'black',
    width: 40,
    height: 40,
    paddingBottom: 10,
  },
  calendarDateSlide: {
    display: 'flex',
    flexDirection: 'column',
    justifyContent: 'center',
    alignItems: 'center',
    textAlign: 'center',
    position: 'absolute',
    boxSizing: 'border-box',
    padding: '10px',
    width: '120px',
github mobxjs / mobx-devtools / src / frontend / TabChanges / LObjDiff.jsx View on Github external
path={this.props.path.concat(path)}
                  getValueByPath={this.props.getValueByPath}
                  inspect={this.props.inspect}
                  stopInspecting={this.props.stopInspecting}
                  showMenu={this.props.showMenu}
                /&gt;
              
            
          ))}
        
      
    );
  }
}

const styles = StyleSheet.create({
  container: {
    fontFamily: 'const(--font-family-monospace)',
    width: '100%',
    maxHeight: 270,
    overflow: 'auto',
  },
  innerContainer: {
    display: 'table',
  },
  title: {},
  diffRow: {
    display: 'table-row',
  },
  propName: {
    display: 'table-cell',
    minWidth: 70,
github expo / snack-web / src / client / components / AppDetails.tsx View on Github external
<p>Scan the QRCode with the Expo app to try out this snack on your phone.</p>
          
          
        
      
    
  );
};

const styles = StyleSheet.create({
  container: {
    overflow: 'auto',
    height: '100%',
    width: '100%',

    '@media (max-width: 590px)': {
      backgroundColor: '#fff',
      textAlign: 'center',
    },
  },
  card: {
    backgroundColor: '#fff',
    borderRadius: 6,
    opacity: 1,
    width: 420,
    margin: '4rem auto',
github expo / snack-web / src / client / components / SDKVersionSwitcher.tsx View on Github external
<select value="{sdkVersion}"> onChange(e.target.value as any)}
          className={css(styles.select, prefs.theme === 'dark' ? styles.dark : styles.light)}&gt;
          {Object.keys(versions).map(v =&gt; (
            <option value="{v}">
              v{v}
            </option>
          ))}
        </select>
      
    
  );
}

const styles = StyleSheet.create({
  container: {
    display: 'flex',
    alignItems: 'center',
    whiteSpace: 'nowrap',
    marginRight: '.5em',
  },
  switcher: {
    position: 'relative',
    display: 'inline-block',

    ':after': {
      content: '"▼"',
      position: 'absolute',
      fontSize: '0.6em',
      right: '2em',
      top: '1em',
github TimBroddin / cryptocoincount / src / components / Sync / ImportForm.js View on Github external
import React, {PureComponent} from 'react';
import {connect} from 'react-redux';
import { Alert, Button, message } from 'antd';
import { StyleSheet, css } from 'aphrodite';


import {importData} from '../../actions';


const styles = StyleSheet.create({
  p: {
    marginBottom: '10px'
  },
  alert: {
    margin: '20px 0px',
  },
  input: {
    padding: '20px',
    width: '100%',
    textAlign: 'center',
    fontSize: '36px'
  },
  center: {
    textAlign: 'center'
  }
})
github Khan / wonder-blocks / packages / wonder-blocks-popover / components / popover-dialog.js View on Github external
]}
                &gt;
                    {children}
                    
                
            
        );
    }
}

const styles = StyleSheet.create({
    /**
     * The hide style ensures that the bounds of the popover stay unchanged.
     * This is because popper.js calculates the bubble position based off its
     * bounds and if we stopped rendering it entirely, it wouldn't know where to
     * place it when it reappeared.
     */
    hide: {
        pointerEvents: "none",
        opacity: 0,
        backgroundColor: "transparent",
        color: "transparent",
    },

    /**
     * Ensure the content and tail are properly arranged.
     */