Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. import { inject, observer } from 'mobx-react';
  2. import styled from 'styled-components';
  3.  
  4. const Button = styled.button`
  5. background: linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%);
  6. border-radius: ${this.props.uiStore.borderRadius}px;
  7. border: 0;
  8. outline: none;
  9. color: ${this.props.uiStore.textColor};
  10. text-transform: uppercase;
  11. padding: 10px 15px;
  12. box-shadow: 0 3px 5px 2px rgba(255, 105, 135, .30);
  13. transition: all 1s ease-in-out;
  14. margin-bottom: 5px;
  15.  
  16. &:hover{
  17. background: linear-gradient(45deg, #ed6482 30%, #e98049 90%);
  18. }
  19.  
  20. &:active{
  21. background: linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%);
  22. }
  23. `;
  24.  
  25. export default inject('uiStore')(observer(Button));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement