BootstrapButton.tsx 917 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { Button, withStyles } from '@material-ui/core';
  2. export const BootstrapButton = withStyles({
  3. root: {
  4. boxShadow: 'none',
  5. textTransform: 'none',
  6. fontSize: 16,
  7. padding: '6px 12px',
  8. border: '1px solid',
  9. lineHeight: 1.5,
  10. color: '#ffffff',
  11. backgroundColor: '#4138ff',
  12. borderColor: '#4138ff',
  13. fontFamily: [
  14. '-apple-system',
  15. 'BlinkMacSystemFont',
  16. '"Segoe UI"',
  17. 'Roboto',
  18. '"Helvetica Neue"',
  19. 'Arial',
  20. 'sans-serif',
  21. '"Apple Color Emoji"',
  22. '"Segoe UI Emoji"',
  23. '"Segoe UI Symbol"',
  24. ].join(','),
  25. '&:hover': {
  26. backgroundColor: '#4138dd',
  27. borderColor: '#4138dd',
  28. boxShadow: 'none',
  29. },
  30. '&:active': {
  31. boxShadow: 'none',
  32. backgroundColor: '#4138ee',
  33. borderColor: '#4138ee',
  34. },
  35. '&:focus': {
  36. boxShadow: '0 0 0 0.2rem rgba(0,123,255,.5)',
  37. },
  38. },
  39. })(Button);