Skip to content

Commit 73e7fe2

Browse files
committed
finishish login page
1 parent b053f08 commit 73e7fe2

3 files changed

Lines changed: 70 additions & 35 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/structures/login/_Login.scss‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ limitations under the License.
223223
height: 16px;
224224
flex-shrink: 1;
225225
min-width: 0px;
226-
border-radius: 3px;
227226
}
228227

229228
.mx_Login_phoneNumberField {

‎src/skins/vector/themes/status/css/_StatusLogin.scss‎

Lines changed: 46 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ limitations under the License.
5454
font-size: 18px;
5555
}
5656

57+
.mx_StatusLogin_subtitle a {
58+
color: $riot-link-color;
59+
}
60+
5761
.mx_StatusLogin_footer {
5862
margin-top: 30px;
5963
margin-bottom: 30px;
@@ -73,22 +77,22 @@ limitations under the License.
7377
letter-spacing: 1px;
7478
font-size: 13px;
7579
text-transform: uppercase;
76-
text-decoration: none;
7780
}
7881

7982
// overrides of .mx_Login
8083

8184
.mx_Login_box {
82-
width: 350px;
85+
width: 330px;
8386
min-height: initial;
84-
padding-top: 20px;
85-
padding-bottom: 10px;
86-
padding-left: 33px;
87-
padding-right: 33px;
87+
padding-top: 40px;
88+
padding-bottom: 20px;
89+
padding-left: 10px;
90+
padding-right: 10px;
8891
border-radius: 8px;
8992
background-color: $form-bg-color;
9093
box-shadow: 0px 5px 16px 0px rgba(25,12,46,0.16);
9194
position: relative;
95+
text-align: center;
9296
}
9397

9498
.mx_Login_logo {
@@ -123,15 +127,31 @@ limitations under the License.
123127
}
124128

125129
.mx_Login_field {
126-
width: 280px;
127-
border-radius: 3px;
128-
border: 1px solid $strong-input-border-color;
130+
width: 260px;
131+
height: 27px;
132+
padding: 9px 20px 9px 20px;
133+
border-radius: 10px;
134+
text-align: left;
135+
border: none;
136+
background-color: $form-field-bg-color;
137+
color: $form-field-fg-color;
129138
font-weight: 300;
130-
font-size: 13px;
131-
padding: 9px;
139+
font-size: 15px;
132140
margin-bottom: 14px;
133141
}
134142

143+
.mx_Login_field::-webkit-input-placeholder {
144+
font-family: $font-family;
145+
color: $form-field-fg-color;
146+
opacity: 0.6;
147+
}
148+
149+
.mx_Login_field::-moz-placeholder {
150+
font-family: $font-family;
151+
color: $form-field-fg-color;
152+
opacity: 0.6;
153+
}
154+
135155
.mx_Login_field_disabled {
136156
opacity: 0.3;
137157
}
@@ -145,15 +165,10 @@ limitations under the License.
145165
}
146166

147167
.mx_Login_submit {
148-
margin-top: 35px;
149-
margin-bottom: 24px;
150-
width: 100%;
151-
border-radius: 40px;
152-
height: 40px;
153-
border: 0px;
154-
background-color: $accent-color;
155-
font-size: 15px;
156-
color: $accent-fg-color;
168+
@mixin mx_DialogButton;
169+
width: 200px;
170+
margin-top: 13px;
171+
margin-bottom: 18px;
157172
}
158173

159174
.mx_Login_submit:disabled {
@@ -174,18 +189,19 @@ limitations under the License.
174189
display: block;
175190
text-align: center;
176191
width: 100%;
177-
font-size: 13px;
178-
opacity: 0.8;
192+
font-size: 15px;
193+
opacity: 1.0;
179194
}
180195

181196
.mx_Login_create:link {
182-
color: $primary-fg-color;
197+
color: $form-fg-color;
183198
}
184199

185200
.mx_Login_links {
186201
display: block;
187202
text-align: center;
188-
margin-top: 15px;
203+
margin-top: 10px;
204+
margin-bottom: 10px;
189205
width: 100%;
190206
font-size: 13px;
191207
opacity: 0.8;
@@ -202,12 +218,13 @@ limitations under the License.
202218
}
203219

204220
.mx_Login_forgot {
221+
display: block;
205222
font-size: 13px;
206223
opacity: 0.8;
207224
}
208225

209226
.mx_Login_forgot:link {
210-
color: $primary-fg-color;
227+
color: $form-fg-color;
211228
}
212229

213230
.mx_Login_loader {
@@ -228,13 +245,12 @@ limitations under the License.
228245

229246
.mx_Login_error {
230247
color: $warning-color;
231-
font-weight: bold;
248+
font-size: 18px;
249+
width: 250px;
250+
margin: auto;
232251
text-align: center;
233-
/*
234-
height: 24px;
235-
*/
236252
margin-top: 12px;
237-
margin-bottom: 12px;
253+
margin-bottom: 16px;
238254
}
239255

240256
.mx_Login_type_container {
@@ -286,10 +302,8 @@ limitations under the License.
286302
}
287303

288304
.mx_Login_username {
289-
height: 16px;
290305
flex-shrink: 1;
291306
min-width: 0px;
292-
border-radius: 3px;
293307
}
294308

295309
.mx_Login_phoneNumberField {

‎src/skins/vector/themes/status/css/_status.scss‎

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ $header-font-family: PostGrotesk-Medium, Arial, Helvetica, Sans-Serif;
3131

3232
$footer-color: #8D99A4;
3333

34+
$riot-link-color: #A26988;
35+
36+
a {
37+
text-decoration: none;
38+
}
39+
3440
h1,h2,h3,h4,h5 {
3541
color: $header-color;
3642
font-family: $header-font-family;
@@ -42,8 +48,12 @@ $callout-color: #4360DF; // or #4957b8 from status.im homepage
4248
$form-bg-color: $callout-color;
4349
$form-fg-color: #ffffff;
4450

51+
$form-field-bg-color: rgba(244, 242, 247, 0.12);
52+
$form-field-fg-color: #ffffff;
53+
4554
// ***** End of Status theme specifics ******
4655

56+
4757
// used for dialog box text
4858
$light-fg-color: #747474;
4959

@@ -52,14 +62,14 @@ $focus-bg-color: #dddddd;
5262

5363
// button UI (white-on-green in light skin)
5464
$accent-fg-color: #ffffff;
55-
$accent-color: #76CFA6;
65+
$accent-color: #6CC1F6;
5666

5767
$selection-fg-color: $primary-bg-color;
5868

5969
$focus-brightness: 125%;
6070

6171
// red warning colour
62-
$warning-color: #ff0064;
72+
$warning-color: #F69E98;
6373
$mention-user-pill-bg-color: #ff0064;
6474
$other-user-pill-bg-color: rgba(0, 0, 0, 0.1);
6575

@@ -162,3 +172,15 @@ $lightbox-border-color: #ffffff;
162172

163173
// unused?
164174
$progressbar-color: #000;
175+
176+
@define-mixin mx_DialogButton {
177+
border-radius: 8px;
178+
height: 45px;
179+
border: 1px solid rgba(199, 206, 209, 0.12);
180+
background-color: $accent-color;
181+
font-size: 13px;
182+
font-family: $header-font-family;
183+
text-transform: uppercase;
184+
letter-spacing: 1px;
185+
color: $accent-fg-color;
186+
}

0 commit comments

Comments
 (0)