1
- import { hexToRgb , whiteColor } from '../../material-dashboard-react.js ' ;
1
+ import { hexToRgb , whiteColor } from '../../material-dashboard-react' ;
2
2
3
- const customTabsStyle = {
3
+ interface CustomTabsStyle {
4
+ cardTitle : React . CSSProperties ;
5
+ cardTitleRTL : React . CSSProperties ;
6
+ displayNone : React . CSSProperties ;
7
+ tabsRoot : React . CSSProperties & {
8
+ '& $tabRootButton' : React . CSSProperties ;
9
+ } ;
10
+ tabRootButton : React . CSSProperties & {
11
+ '&:last-child' : React . CSSProperties ;
12
+ } ;
13
+ tabSelected : React . CSSProperties ;
14
+ tabWrapper : React . CSSProperties & {
15
+ '& > svg, & > .material-icons' : React . CSSProperties ;
16
+ } ;
17
+ }
18
+
19
+ const customTabsStyle : CustomTabsStyle = {
4
20
cardTitle : {
5
21
float : 'left' ,
6
22
padding : '10px 10px 10px 0px' ,
@@ -31,14 +47,14 @@ const customTabsStyle = {
31
47
borderRadius : '3px' ,
32
48
lineHeight : '24px' ,
33
49
border : '0 !important' ,
34
- color : whiteColor + ' !important' ,
50
+ color : ` ${ whiteColor } !important` ,
35
51
marginLeft : '4px' ,
36
52
'&:last-child' : {
37
53
marginLeft : '0px' ,
38
54
} ,
39
55
} ,
40
56
tabSelected : {
41
- backgroundColor : ' rgba(' + hexToRgb ( whiteColor ) + ' , 0.2)' ,
57
+ backgroundColor : ` rgba(${ hexToRgb ( whiteColor ) } , 0.2)` ,
42
58
transition : '0.2s background-color 0.1s' ,
43
59
} ,
44
60
tabWrapper : {
@@ -52,11 +68,11 @@ const customTabsStyle = {
52
68
fontWeight : '500' ,
53
69
fontSize : '12px' ,
54
70
marginTop : '1px' ,
55
- '& > svg,& > .material-icons' : {
71
+ '& > svg, & > .material-icons' : {
56
72
verticalAlign : 'middle' ,
57
73
margin : '-1px 5px 0 0 !important' ,
58
74
} ,
59
75
} ,
60
76
} ;
61
77
62
- export default customTabsStyle ;
78
+ export default customTabsStyle ;
0 commit comments