File tree 5 files changed +13
-8
lines changed
5 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 " />
7
7
< meta name ="theme-color " content ="#000000 " />
8
8
< link rel ="manifest " href ="%PUBLIC_URL%/manifest.json " />
9
- < title > React App </ title >
9
+ < title > React Admin </ title >
10
10
</ head >
11
11
< body >
12
12
< link rel ="stylesheet/less " type ="text/css " href ="%PUBLIC_URL%/static/color.less " />
Original file line number Diff line number Diff line change @@ -2140,6 +2140,7 @@ this.tinycolor = tinycolor;
2140
2140
2141
2141
:root {
2142
2142
--PC: @primary-color; //color.less中加入css原生变量:--PC
2143
+ --PCL:color(~`colorPalette("@{btn-primary-bg}", 1)`);
2143
2144
}
2144
2145
2145
2146
html {
Original file line number Diff line number Diff line change 4
4
@btn-primary-bg : rgb (47 , 84 , 235 );
5
5
:root {
6
6
--PC : @primary-color ; // color.less中加入css原生变量:--PC
7
+ --PCL :color (~ `colorPalette(" @{btn-primary-bg} " , 1 )`);
7
8
}
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ class WSider extends Component{
13
13
return (
14
14
< Sider collapsed = { collapsed } theme = { this . props . menuTheme } >
15
15
< div className = "logo" >
16
- < img src = "/ico.png" alt = "" > </ img >
17
- < span className = { collapsed ?' menu_theme dark hide' : ' menu_theme dark show' } href = "" > React Admin</ span >
16
+ < img src = "/ico.png" alt = "" > </ img >
17
+ < span className = { collapsed ?` menu_theme ${ menuTheme } hide` : ` menu_theme ${ menuTheme } show` } href = "" > React Admin</ span >
18
18
</ div >
19
19
< Menu
20
20
theme = { menuTheme }
Original file line number Diff line number Diff line change 11
11
}
12
12
.menu_theme {
13
13
padding-left : 10px ;
14
- vertical-align : top
14
+ vertical-align : top ;
15
+ font-size : 18px ;
16
+ font-weight : bold
15
17
}
16
18
.menu_theme.dark {
17
19
color : #ffffff ;
18
- font-size : 18px ;
19
- font-weight : bold
20
20
}
21
- .menu_theme.dark.show {
21
+ .menu_theme.light {
22
+ color : var (--PC )
23
+ }
24
+ .menu_theme.dark.show ,.menu_theme.light.show {
22
25
opacity : 1 ;
23
26
transition : all 1s ease-in
24
27
}
25
- .menu_theme.dark.hide {
28
+ .menu_theme.dark.hide , .menu_theme.light.hide {
26
29
opacity : 0 ;
27
30
28
31
}
You can’t perform that action at this time.
0 commit comments