Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. import React, { PropTypes } from 'react';
  2. import { StyleSheet, css } from 'aphrodite/no-important';
  3. import { spacing } from '../../styles/base/spacing';
  4.  
  5. function Card(props) {
  6. return (
  7. <div className={css(styles.card)}>
  8. {props.children}
  9. </div>
  10. );
  11. }
  12.  
  13. export default Card;
  14.  
  15. export const styles = StyleSheet.create({
  16. card: {
  17. padding: `${spacing.space5} ${spacing.space4}`, // using spacing constants as padding
  18.  
  19. background: 'rgba(255, 255, 255, 1.0)',
  20. boxShadow: '0 3px 17px 2px rgba(0, 0, 0, .05)',
  21. borderRadius: '3px',
  22. },
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement