aboutsummaryrefslogtreecommitdiff
path: root/modern/src/theme/overrides.js
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-05-06 14:47:56 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-05-06 14:47:56 +0530
commitf7ada6916541047f8ddf6eb2d1a45ddc3b9dead0 (patch)
treeeec5be51e59fff9d93107133d7b818482cbed93c /modern/src/theme/overrides.js
parent73623e1eccde7160fa83b79ad96ae744fa357a32 (diff)
downloadtrackermap-web-f7ada6916541047f8ddf6eb2d1a45ddc3b9dead0.tar.gz
trackermap-web-f7ada6916541047f8ddf6eb2d1a45ddc3b9dead0.tar.bz2
trackermap-web-f7ada6916541047f8ddf6eb2d1a45ddc3b9dead0.zip
More code improvement
Diffstat (limited to 'modern/src/theme/overrides.js')
-rw-r--r--modern/src/theme/overrides.js48
1 files changed, 48 insertions, 0 deletions
diff --git a/modern/src/theme/overrides.js b/modern/src/theme/overrides.js
new file mode 100644
index 00000000..021770b7
--- /dev/null
+++ b/modern/src/theme/overrides.js
@@ -0,0 +1,48 @@
+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,
+ },
+ 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,
+ }
+ }
+};