1+ @import ' ../../common/_base.less' ;
2+ @import ' ../../common/_mixins.less' ;
3+ @import ' ../../icon/style/icon.less' ;
4+
5+ .btn-color (@color ) {
6+ color : #fff !important ;
7+ background : @color !important ;
8+ }
9+
10+ .i-as {
11+ position : fixed ;
12+ width : 100% ;
13+ box-sizing : border-box ;
14+ left : 0 ;
15+ right : 0 ;
16+ bottom : 0 ;
17+ background : @background-color-base ;
18+ transform : translate3d (0 , 100% , 0 );
19+ transform-origin : center ;
20+ transition : all @transition-time ease-in-out ;
21+ z-index : @zindex-select ;
22+ visibility : hidden ;
23+
24+ &-show {
25+ transform : translate3d (0 , 0 , 0 );
26+ visibility : visible ;
27+ }
28+
29+ &-mask {
30+ position : fixed ;
31+ top : 0 ;
32+ left : 0 ;
33+ right : 0 ;
34+ bottom : 0 ;
35+ background : rgba (0 , 0 , 0 , 0.7 );
36+ z-index : @zindex-select ;
37+ transition : all @transition-time ease-in-out ;
38+ opacity : 0 ;
39+ visibility : hidden ;
40+
41+ &-show {
42+ opacity : 1 ;
43+ visibility : visible ;
44+ }
45+ }
46+
47+ &-action-item {
48+ position : relative ;
49+ & ::after {
50+ .hairline ();
51+ border-bottom-width : 1px ;
52+ }
53+ }
54+
55+ &-header {
56+ background : #fff ;
57+ text-align : center ;
58+ // padding: 16px;
59+ position : relative ;
60+ font-size : @size-font-small ;
61+ color : @subsidiary-color ;
62+ & ::after {
63+ .hairline ();
64+ border-bottom-width : 1px ;
65+ }
66+ }
67+
68+ &-cancel {
69+ margin-top : 6px ;
70+ }
71+
72+ &-btn {
73+ &-loading {
74+ display : inline-block ;
75+ vertical-align : middle ;
76+ margin-right : 10px ;
77+ width : 12px ;
78+ height : 12px ;
79+ background : transparent ;
80+ border-radius : 50% ;
81+ border : 2px solid #e5e5e5 ;
82+ border-color : #666 #e5e5e5 #e5e5e5 #e5e5e5 ;
83+ animation : btn- spin 0.6s linear ;
84+ animation-iteration-count : infinite ;
85+ }
86+
87+ &-text {
88+ display : inline-block ;
89+ vertical-align : middle ;
90+ }
91+
92+ &-icon {
93+ font-size : @size-font-base !important ;
94+ margin-right : 4px ;
95+ }
96+ }
97+
98+ .i-btn {
99+ text-align : center ;
100+ vertical-align : middle ;
101+ touch-action : manipulation ;
102+ cursor : pointer ;
103+ background-image : none ;
104+ white-space : nowrap ;
105+ user-select : none ;
106+ font-size : @size-font-base ;
107+ border-radius : 2px ;
108+ border : 0 !important ;
109+ position : relative ;
110+ text-decoration : none ;
111+
112+ height : @btn-circle-size ;
113+ line-height : @btn-circle-size ;
114+
115+ box-shadow : inset 0 0 0 1px rgba (0 , 0 , 0 , 0.1 );
116+
117+ .btn-color (@btn-default-bg );
118+ color : @text-color !important ;
119+
120+ margin : 10px ;
121+ &-large {
122+ height : @btn-circle-size-large ;
123+ line-height : @btn-circle-size-large ;
124+ }
125+ &-ghost {
126+ .btn-color (#fff );
127+ color : @text-color !important ;
128+ }
129+ &-long {
130+ border-radius : 0 ;
131+ margin : 0 ;
132+ box-shadow : none ;
133+ }
134+ }
135+ }
136+
137+ @keyframes btn- spin {
138+ 0% {
139+ transform : rotate (0 );
140+ }
141+ 100% {
142+ transform : rotate (360deg );
143+ }
144+ }
0 commit comments