##// END OF EJS Templates
ui: fix labels on sign in screen
dan -
r3401:2e796cf5 default
parent child Browse files
Show More
@@ -1,298 +1,304 b''
1 1 //LOGIN
2 2
3 3
4 4 .loginbox {
5 5 max-width: 65%;
6 6 margin: @pagepadding auto;
7 7 font-family: @text-light;
8 8 border: @border-thickness solid @grey5;
9 9 box-sizing: border-box;
10 10
11 11 @media (max-width:1200px) {
12 12 max-width: 85%;
13 13 }
14 14
15 15 @media (max-width:768px) {
16 16 max-width: 100%;
17 17 width: 100%;
18 18 margin: 0;
19 19 }
20 20
21 21 .title {
22 22 float: none;
23 23 }
24 24
25 25 .header {
26 26 width: 100%;
27 27 padding: 0 35px;
28 28 box-sizing: border-box;
29 29
30 30 .title {
31 31 padding: 0;
32 32 }
33 33 }
34 34
35 35 .loginwrapper {
36 36 float: left;
37 37 height: 100%;
38 38 width: 100%;
39 39 padding: 35px 55px 35px 35px;
40 40 background-color: white;
41 41 box-sizing: border-box;
42 42
43 43 @media (max-width:414px) {
44 44 padding: 35px;
45 45 }
46 46 }
47 47
48 48 .left-column {
49 49 float: left;
50 50 position: relative;
51 51 width: 50%;
52 52 height: 100%;
53 53
54 54 @media (max-width:414px) {
55 55 display:none;
56 56 }
57 57 }
58 58
59 59 .right-column {
60 60 float: right;
61 61 position: relative;
62 62 width: 50%;
63 63
64 64 @media (max-width:414px) {
65 65 width: 100%;
66 66 }
67 67 }
68 68
69 69 .sign-in-image {
70 70 display: block;
71 71 width: 65%;
72 72 margin: 5% auto;
73 73 }
74 74
75 75 .sign-in-title {
76 76
77 77 h4 {
78 78 margin: @padding*2 0;
79 79 }
80 80 }
81 81
82 82 .form {
83 83 label {
84 84 display: block;
85 85 }
86 86
87 87 input {
88 88 width: 100%;
89 89 margin: 0 10% @padding 0;
90 90 .box-sizing(border-box) ;
91 91
92 92 &[type="checkbox"] {
93 93 clear: both;
94 94 width: auto;
95 95 margin: 0 1em @padding 0;
96 96 }
97 97 }
98 98
99 99 .checkbox {
100 100 display: inline;
101 101 width: auto;
102 102 }
103 103
104 104 .sign-in {
105 105 clear: both;
106 106 width: 100%;
107 107 margin: @padding 0;
108 108 }
109 .pwd_reset {
110 font-weight: normal;
111 }
112 .new_account {
113 font-weight: bold;
114 }
109 115 }
110 116 .register_message,
111 117 .activation_msg {
112 118 padding: 0 0 @padding;
113 119 }
114 120
115 121 .buttons,
116 122 .links {
117 123 padding: 0;
118 124 }
119 125
120 126 .buttons {
121 127 input {
122 128 margin-right: 0;
123 129 .box-sizing(border-box);
124 130 }
125 131
126 132 #sign_up, #send {
127 133 width: 100%;
128 134 }
129 135 }
130 136
131 137 .fields {
132 138 .field.field-compact {
133 139 margin-bottom: 0px;
134 140 }
135 141
136 142 .buttons {
137 143 margin: 0;
138 144 }
139 145
140 146 .field {
141 147 margin-bottom: 15px;
142 148
143 149 input {
144 150 width: 100%;
145 151 .box-sizing(border-box);
146 152 }
147 153
148 154 .input {
149 155 margin-left: 0;
150 156 }
151 157
152 158 .label {
153 159 padding-top: 0;
154 160 }
155 161 }
156 162 }
157 163
158 164 .checkbox {
159 165 margin: 0 0 @textmargin 0;
160 166
161 167 input[type="checkbox"] {
162 168 width: auto;
163 169 }
164 170
165 171 label {
166 172 padding: 0;
167 173 min-height: 0;
168 174 }
169 175 }
170 176
171 177 .activation_msg {
172 178 padding: @padding 0 0;
173 179 color: @grey4;
174 180 }
175 181
176 182 .links {
177 183 float: right;
178 184 margin: 0;
179 185 padding: 0;
180 186 line-height: 1;
181 187
182 188 p {
183 189 float: right;
184 190 margin: 0;
185 191 line-height: 1.5em;
186 192 }
187 193 }
188 194
189 195 p.help-block {
190 196 margin-left: 0;
191 197 }
192 198 }
193 199
194 200 .user-menu.submenu {
195 201 right: 0;
196 202 left: auto;
197 203 }
198 204 #quick_login {
199 205 left: auto;
200 206 right: 0;
201 207 padding: @menupadding;
202 208 z-index: 999;
203 209 overflow: hidden;
204 210 background-color: @grey6;
205 211 color: @grey2;
206 212
207 213 h4 {
208 214 margin-bottom: 12px;
209 215 }
210 216
211 217 .form {
212 218 width: auto;
213 219 }
214 220
215 221 label, .field {
216 222 margin-bottom: 0;
217 223 }
218 224
219 225 .label {
220 226 padding-top: 0;
221 227 }
222 228
223 229 input {
224 230 min-width: 215px;
225 231 margin: 8px 0 @padding;
226 232 }
227 233
228 234 input[type="submit"] {
229 235 &:extend(.btn-primary);
230 236 width:100%;
231 237 min-width: 0;
232 238 }
233 239
234 240 .forgot_password,
235 241 .buttons .register {
236 242 a {
237 243 color: @rcblue;
238 244
239 245 &:hover {
240 246 color: @rcdarkblue;
241 247 }
242 248 }
243 249 }
244 250
245 251 .buttons {
246 252 margin: 0;
247 253 }
248 254
249 255 .buttons a {
250 256 padding: 8px 0;
251 257 line-height: 1.4em;
252 258 color: @grey4;
253 259
254 260 &:hover {
255 261 color: @grey2;
256 262 }
257 263 }
258 264
259 265 #sign_in {
260 266 margin-bottom: 0
261 267 }
262 268
263 269 .big_gravatar {
264 270 float: left;
265 271 display: block;
266 272 margin-top: .5em;
267 273 }
268 274
269 275 .full_name,
270 276 .email {
271 277 margin: 0 0 0 65px;
272 278 }
273 279
274 280 .email {
275 281 font-family: @text-light;
276 282 }
277 283
278 284 ol.links {
279 285 clear:both;
280 286 margin: 0;
281 287 padding: @padding 0 0 0;
282 288
283 289 li {
284 290 border-top: @border-thickness solid @grey5;
285 291
286 292 input {
287 293 margin: @padding 0 0 0;
288 294 }
289 295 }
290 296 }
291 297 }
292 298 .submenu #quick_login li:hover {
293 299 background-color: transparent;
294 300 }
295 301
296 302 #quick_login_link:hover + #quick_login {
297 303 display: block;
298 304 }
@@ -1,104 +1,104 b''
1 1 ## -*- coding: utf-8 -*-
2 2 <%inherit file="base/root.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('Sign In')}
6 6 %if c.rhodecode_name:
7 7 &middot; ${h.branding(c.rhodecode_name)}
8 8 %endif
9 9 </%def>
10 10
11 11 <style>body{background-color:#eeeeee;}</style>
12 12 <div class="loginbox">
13 13 <div class="header">
14 14 <div id="header-inner" class="title">
15 15 <div id="logo">
16 16 <div class="logo-wrapper">
17 17 <a href="${h.route_path('home')}"><img src="${h.asset('images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a>
18 18 </div>
19 19 %if c.rhodecode_name:
20 20 <div class="branding">- ${h.branding(c.rhodecode_name)}</div>
21 21 %endif
22 22 </div>
23 23 </div>
24 24 </div>
25 25
26 26 <div class="loginwrapper">
27 27 <rhodecode-toast id="notifications"></rhodecode-toast>
28 28
29 29 <div class="left-column">
30 30 <img class="sign-in-image" src="${h.asset('images/sign-in.png')}" alt="RhodeCode"/>
31 31 </div>
32 32
33 33 <%block name="above_login_button" />
34 34 <div id="login" class="right-column">
35 35 <!-- login -->
36 36 <div class="sign-in-title">
37 37 <h1>${_('Sign In using username/password')}</h1>
38 38 </div>
39 39 <div class="inner form">
40 40 ${h.form(request.route_path('login', _query={'came_from': c.came_from}), needs_csrf_token=False)}
41 41
42 42 <label for="username">${_('Username')}:</label>
43 43 ${h.text('username', class_='focus', value=defaults.get('username'))}
44 44 %if 'username' in errors:
45 45 <span class="error-message">${errors.get('username')}</span>
46 46 <br />
47 47 %endif
48 48
49 49 <label for="password">${_('Password')}:
50 50 %if h.HasPermissionAny('hg.password_reset.enabled')():
51 51 <div class="pull-right">${h.link_to(_('Forgot your password?'), h.route_path('reset_password'), class_='pwd_reset', tabindex="-1")}</div>
52 52 %endif
53 53
54 54 </label>
55 55 ${h.password('password', class_='focus')}
56 56 %if 'password' in errors:
57 57 <span class="error-message">${errors.get('password')}</span>
58 58 <br />
59 59 %endif
60 60
61 61 ${h.checkbox('remember', value=True, checked=defaults.get('remember'))}
62 62 <% timeout = request.registry.settings.get('beaker.session.timeout', '0') %>
63 63 % if timeout == '0':
64 64 <% remember_label = _('Remember my indefinitely') %>
65 65 % else:
66 66 <% remember_label = _('Remember me for {}').format(h.age_from_seconds(timeout)) %>
67 67 % endif
68 68 <label class="checkbox" for="remember">${remember_label}</label>
69 69
70 70 <p class="links">
71 71 %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')():
72 ${h.link_to(_("Create a new account."), request.route_path('register'))}
72 ${h.link_to(_("Create a new account."), request.route_path('register'), class_='new_account')}
73 73 %endif
74 74 </p>
75 75
76 76 %if not h.HasPermissionAny('hg.password_reset.enabled')():
77 77 ## password reset hidden or disabled.
78 78 <p class="help-block">
79 79 ${_('Password reset is disabled.')} <br/>
80 80 ${_('Please contact ')}
81 81 % if c.visual.rhodecode_support_url:
82 82 <a href="${c.visual.rhodecode_support_url}" target="_blank">${_('Support')}</a>
83 83 ${_('or')}
84 84 % endif
85 85 ${_('an administrator if you need help.')}
86 86 </p>
87 87 %endif
88 88
89 89 ${h.submit('sign_in', _('Sign In'), class_="btn sign-in", title=_('Sign in to {}').format(c.rhodecode_edition))}
90 90
91 91 ${h.end_form()}
92 92 <script type="text/javascript">
93 93 $(document).ready(function(){
94 94 $('#username').focus();
95 95 })
96 96 </script>
97 97
98 98 </div>
99 99 <!-- end login -->
100 100
101 101 <%block name="below_login_button" />
102 102 </div>
103 103 </div>
104 104 </div>
General Comments 0
You need to be logged in to leave comments. Login now