aboutsummaryrefslogtreecommitdiff
path: root/modern/src/theme/overrides.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-06-30 10:31:37 -0700
committerGitHub <noreply@github.com>2021-06-30 10:31:37 -0700
commit0c712a70f56995e7af329846835d6d1f0343a2f1 (patch)
tree34a038a787aa84ab4bd2a2a9388c53266c4c88b9 /modern/src/theme/overrides.js
parent249f0437362ffbd3e14aa04a482ce03eb7e351e4 (diff)
parenta6bd780f7570a813d87741b25effe886803f9d10 (diff)
downloadetbsa-traccar-web-0c712a70f56995e7af329846835d6d1f0343a2f1.tar.gz
etbsa-traccar-web-0c712a70f56995e7af329846835d6d1f0343a2f1.tar.bz2
etbsa-traccar-web-0c712a70f56995e7af329846835d6d1f0343a2f1.zip
Merge pull request #871 from dkyeremeh/inputs-fix
Inputs fix
Diffstat (limited to 'modern/src/theme/overrides.js')
-rw-r--r--modern/src/theme/overrides.js35
1 files changed, 32 insertions, 3 deletions
diff --git a/modern/src/theme/overrides.js b/modern/src/theme/overrides.js
index c8d64a9..cd6c5a5 100644
--- a/modern/src/theme/overrides.js
+++ b/modern/src/theme/overrides.js
@@ -3,14 +3,15 @@ import dimensions from './dimensions';
export default {
MuiFormControl: {
root: {
- height: dimensions.inputHeight,
+ marginTop: 5,
+ marginBottom: 5
}
},
MuiInputLabel: {
filled: {
transform: 'translate(12px, 14px) scale(1)',
'&$shrink' :{
- transform: 'translate(12px, -12px) scale(0.75)'
+ transform: 'translate(12px, -14px) scale(0.72)'
}
},
},
@@ -18,7 +19,7 @@ export default {
root: {
height: dimensions.inputHeight,
borderRadius: dimensions.borderRadius,
- background: 'rgba(0, 0, 0, 0.035)',
+ backgroundColor: 'rgba(0, 0, 0, 0.035)',
},
input: {
height: dimensions.inputHeight,
@@ -44,6 +45,34 @@ export default {
MuiButton: {
root: {
height: dimensions.inputHeight,
+ marginTop: 5,
+ marginBottom: 5,
+ '&$disabled': {
+ opacity: .4,
+ color: undefined,
+ }
+ },
+ contained: {
+ '&$disabled': {
+ opacity: .4,
+ color: undefined,
+ backgroundColor: undefined
+ }
+ }
+ },
+ MuiFormHelperText: {
+ root: {
+ marginBottom: -10
+ },
+ contained: {
+ marginLeft: 12
+ }
+ },
+ MuiAutocomplete: {
+ inputRoot: {
+ '&.MuiFilledInput-root': {
+ paddingTop: 0
+ }
}
}
};