hjg
2023-11-18 bb48edb3d9faaaeab0088151c86fc24137acdb08
提交 | 用户 | 时间
58d006 1 //login page
A 2 .enable_login_page() when(@enable-login-page = true) {
3
4 .login-container {
5   width:375px;
6   margin:0 auto;
7 }
8
9 .login-layout {
10   background-color:#1D2024;
11  .main-container:before {
12     display:none;
13  }
14
15  .main-content {
16     margin-left: 0 !important;//to override RTL
17     margin-right: 0 !important;//to override RTL
18
19     min-height: 100%;
20     padding-left: 15px;
21     padding-right: 15px;
22  }
23
24
25  label {
26     margin-bottom:11px;
27  }
28
29  
30  .widget-box {
31     visibility:hidden;
32     position:fixed;
33     z-index:-5;
34      
35     border-bottom:none;
36     box-shadow:none;
37     padding:6px;
38     background-color:#394557;
39      
40     .transform(~"scale(0,1) translate(-150px)");
41     &.visible {
42         visibility: visible;
43         position: relative;
44         z-index: auto;
45         
46         .transform(~"scale(1,1) translate(0)");
47
48         transition: transform .3s ease;
49         -moz-transition: -moz-transform .3s ease;
50         -webkit-transition: -webkit-transform .3s ease;
51         -o-transition: -o-transform .2s ease;
52     }
53
54     .widget-main {
55         padding: 16px 36px 36px;
56         background: #F7F7F7;
57         form {
58             margin: 0;
59         }
60     }
61     .widget-body .toolbar > div > a {
62         font-size: @font-size-login-box-footer-links;
63         font-weight: 400;
64         text-shadow: 1px 0px 1px rgba(0,0,0,0.25); 
65     }
66  }
67
68 }
69
70
71
72 .login-box {
73   .forgot-password-link { color:#FE9; }
74   .user-signup-link { color:#CF7; }
75   
76   .toolbar {
77     background:#5090C1;
78     border-top:2px solid #597597;
79     > div {
80         width:50%;
81         display:inline-block;
82         padding:9px 0 11px;
83
84         &:first-child {//the first link
85             float:left;
86             text-align:left;
87             > a {
88                 margin-left:11px;
89             }
90             
91             + div {//the next one
92                 float:right;
93                 text-align:right;
94                 > a {
95                     margin-right:11px;
96                 }
97             }
98         }
99     }
100   }
101 }
102
103
104
105
106 .forgot-box .toolbar {
107  background:#C16050;
108  border-top:2px solid #976559;
109  padding:9px 18px;
110 }
111
112 .signup-box  .toolbar {
113  background:#76B774;
114  border-top:2px solid #759759;
115  padding:9px 18px;
116 }
117
118 .forgot-box .back-to-login-link  , .signup-box .back-to-login-link{
119  color: #FE9;
120  font-size: @font-size-signup-box-footer-link;
121  font-weight: bold;
122  text-shadow: 1px 0px 1px rgba(0,0,0,0.25); 
123 }
124
125
126
127
128
129 /* social login */
130 .login-layout .login-box .widget-main {
131     padding-bottom:16px;
132 }
133 //.login-box {
134
135  .social-or-login {
136     margin-top: 4px;
137     text-align: center;
138      
139     position: relative;
140     z-index: 1;
141     :first-child {
142         display: inline-block;
143         background: #F7F7F7;
144         padding: 0 8px;
145         color: #5090C1;
146         font-size: @base-font-size;
147     }
148     
149     &:before {
150         content: "";
151         display: block;
152         position: absolute;
153         z-index: -1;
154         top: 50%;
155         left: 0;
156         right: 0;
157         border-top: 1px dotted #A6C4DB;
158     }
159  }
160
161  .social-login {
162     a {
163         border-radius: 100%;
164         width: 42px;
165         height: 42px;
166         line-height: 46px;
167         padding: 0;
168         margin: 0 1px;
169         border-width: 0;
170         > .@{icon} {
171             font-size: @font-size-login-social-icon;
172             margin: 0;
173         }
174     }
175  }
176
177
178
179
180
181
182
183 //loginbox
184 @media only screen and (max-width: @screen-qhd-width) {
185  .login-layout .widget-box .widget-main {
186     padding: 16px;
187  }
188  .login-container {
189     width: 98%;
190  }
191  .login-layout .widget-box {
192     padding: 0;
193  }
194  .login-layout .main-content {
195     padding-left: 6px;
196     padding-right: 6px;
197  }
198  
199  .login-box .toolbar > div {
200     width: auto;
201  }
202 }
203
204
205
206 //light-login
207 .light-login {
208  background: #DFE0E2 url('images/pattern.jpg') repeat;
209  .widget-box {
210     padding: 1px 1px 0;
211     .box-shadow(~"0 0 2px 1px rgba(0, 0, 0, 0.12)");
212     
213     border-bottom: 1px solid rgba(50, 50, 50, 0.33);
214     
215     .toolbar {
216         border-top-width: 1px;
217     }
218
219     &.login-box {
220         background-color: #BCC6CF;
221         background-color: rgba(100, 110, 120, 0.4);
222     }
223     &.signup-box {
224         background-color: #C1CEC4;
225         background-color: rgba(110, 120, 100, 0.4);
226     }
227     &.forgot-box {
228         background-color: #D2C5C5;
229         background-color: rgba(120, 110, 100, 0.4);
230     }
231  }
232 }
233
234 .blur-login {
235   background: #394557 url('images/meteorshower2.jpg') repeat;
236 }
237
238
239 }
240 .enable_login_page();