aboutsummaryrefslogtreecommitdiff
path: root/modern/src/theme/overrides.js
blob: 846859f1e2d95cee62e545fd9d86dfbe14b3f003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import dimensions from './dimensions';

export default {
  MuiFormControl: {
    root: {
      height: dimensions.inputHeight,
    }
  },
  MuiInputLabel: {
    filled: {
      transform: 'translate(12px, 14px) scale(1)',
        '&$shrink' :{
          transform: 'translate(12px, -12px) scale(0.75)'
        }
    },
  },      
  MuiFilledInput: {
    root: {
      height: dimensions.inputHeight,
      borderRadius: dimensions.borderRadius,
      background: 'rgba(0, 0, 0, 0.035)',
    },
    input: {
      height: dimensions.inputHeight,
      borderRadius: dimensions.borderRadius,
      paddingTop: '10px',
      boxSizing: 'border-box',
      '&:-webkit-autofill': {
        WebkitBoxShadow: '0 0 0 100px #eeeeee inset',
      },        
    },
    underline: {
      "&:before": {
        borderBottom: 'none',
      },
      "&:after": {
        borderBottom: 'none',
      },
      "&:hover:before": {
        borderBottom: 'none',
      },             
    }
  },
  MuiButton: {
    root: {
      height: dimensions.inputHeight,
      '&$disabled': {
        opacity: .4,
        color: undefined,
      }
    },
    contained: {
      '&$disabled': {
        opacity: .4,
        color: undefined,
        backgroundColor: undefined
      }
    }
  }
};