@@ -18,11 +18,52 @@ nz-float-button {
1818 flex-direction : column ;
1919 align-items : flex-end ;
2020
21+ .content {
22+ height : 100% ;
23+ iframe {
24+ border : none ;
25+ }
26+ }
27+
28+ .drawer-panel {
29+ background-color : transparent ;
30+ position : fixed ;
31+ top : 0 ;
32+ right : 440px ;
33+ width : 440px ;
34+ min-width : 260px ;
35+ height : 100vh ;
36+ user-select : none ;
37+ border-radius : 10px 0 0 10px ;
38+ transition : transform 0.25s cubic-bezier (0.7 , 0.3 , 0.1 , 1 );
39+ box-shadow : 0 0 8px 4px #00000014 ;
40+ transform : translate (100% );
41+ z-index : 1000 ;
42+ opacity : 0.95 ;
43+ }
44+
45+ .show {
46+ transition : all 0.3s cubic-bezier (0.7 , 0.3 , 0.1 , 1 );
47+ }
48+
49+ .show .modal {
50+ position : fixed ;
51+ top : 0 ;
52+ width : 100% ;
53+ height : 100% ;
54+ z-index : 100 ;
55+ opacity : 1 ;
56+ }
57+
58+ .show .drawer-panel {
59+ transform : translate (0 );
60+ }
61+
2162 ::ng- deep {
2263 .ant- float- btn- group {
2364 position : absolute ;
2465 padding : 10px 0 ;
25- opacity : 0.8 ;
66+ opacity : 1 ;
2667 }
2768
2869 .ant-float-btn-group-circle .ant-float-btn-circle :not (:last-child ) {
@@ -31,64 +72,42 @@ nz-float-button {
3172
3273 .ant-float-btn-default ,
3374 .ant-float-btn-default .ant-float-btn-body {
34- background : rgba (255 , 255 , 255 , 0.05 );
75+ position : relative ;
76+ background : rgba (30 , 30 , 30 , 0.85 );
77+ border-radius : 999px ;
78+ box-shadow : 0 6px 16px rgba (0 ,0 ,0 ,.30 );
79+ transition : background .2s ease , box-shadow .2s ease ;
80+ border : none ;
81+ }
82+ .ant-float-btn-default :hover ,
83+ .ant-float-btn-default :hover .ant-float-btn-body {
84+ background : rgba (20 , 20 , 20 , 0.92 );
85+ box-shadow : 0 8px 22px rgba (0 ,0 ,0 ,.36 );
86+ }
3587
36- & :hover {
37- background : rgba (255 , 255 , 255 , 0.1 );
38- }
88+ .ant-float-btn-default .ant-float-btn-body ::before ,
89+ .ant-float-btn-default ::before {
90+ content : " " ;
91+ position : absolute ;
92+ inset : 0 ;
93+ border-radius : 999px ;
94+ pointer-events : none ;
95+ box-shadow :
96+ inset 0 0 0 1px rgba (255 ,255 ,255 ,.65 ),
97+ 0 0 0 1px rgba (0 ,0 ,0 ,.75 );
3998 }
4099
41- .ant-btn .anticon {
42- color : white ;
100+ .ant-btn .anticon ,
101+ .ant-float-btn .anticon {
102+ color : #fff ;
103+ filter : drop-shadow (0 1px 1px rgba (0 ,0 ,0 ,.75 ));
43104 }
44105
45- img {
106+ img .chat-img {
46107 width : 18px ;
47108 height : 18px ;
48- opacity : 0.8 ;
109+ opacity : .95 ;
110+ filter : drop-shadow (0 1px 1px rgba (0 ,0 ,0 ,.75 ));
49111 }
50112 }
51-
52- .content {
53- height : 100% ;
54-
55- iframe {
56- border : none ;
57- }
58- }
59- }
60-
61- //
62- .drawer-panel {
63- background-color : transparent ;
64- position : fixed ;
65- top : 0 ;
66- right : 440px ;
67- width : 440px ;
68- min-width : 260px ;
69- height : 100vh ;
70- user-select : none ;
71- border-radius : 10px 0 0 10px ;
72- transition : transform 0.25s cubic-bezier (0.7 , 0.3 , 0.1 , 1 );
73- box-shadow : 0 0 8px 4px #00000014 ;
74- transform : translate (100% );
75- z-index : 1000 ;
76- opacity : 0.95 ;
77- }
78-
79- .show {
80- transition : all 0.3s cubic-bezier (0.7 , 0.3 , 0.1 , 1 );
81- }
82-
83- .show .modal {
84- position : fixed ;
85- top : 0 ;
86- width : 100% ;
87- height : 100% ;
88- z-index : 100 ;
89- opacity : 1 ;
90- }
91-
92- .show .drawer-panel {
93- transform : translate (0 );
94113}
0 commit comments