riot-web/res/themes/status/css/_StatusLogin.scss

233 lines
5.1 KiB
SCSS
Raw Normal View History

/*
Copyright 2017 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// overrides for mx_Login* specific to Status.
// Ideally this would be all Status prefixes for a Status specific version of the component
// but given we're not doing Status as a dedicated 'skin' yet...
.mx_StatusLogin {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
overflow: auto;
.mx_StatusLogin_brand {
position: absolute;
top: 30px;
left: 30px;
}
.mx_StatusLogin_content {
margin: auto;
}
.mx_StatusLogin_header {
text-align: center;
margin-top: 70px;
margin-bottom: 50px;
}
.mx_StatusLogin_header h1 {
font-size: 29px;
margin-bottom: 3px;
}
.mx_StatusLogin_subtitle {
font-size: 18px;
}
2017-10-25 02:30:39 +02:00
.mx_StatusLogin_subtitle a {
color: $riot-link-color;
}
.mx_StatusLogin_footer {
margin-top: 30px;
margin-bottom: 30px;
text-align: center;
font-size: 16px;
color: $footer-color;
}
.mx_StatusLogin_footer p {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.mx_StatusLogin_footer_cta {
color: $callout-color;
font-family: $header-font-family;
letter-spacing: 1px;
font-size: 13px;
text-transform: uppercase;
2017-10-27 02:09:46 +02:00
opacity: 1.0;
transition: opacity .2s ease;
}
.mx_StatusLogin_footer_cta:hover {
opacity: 0.5;
text-decoration: none;
}
// overrides of .mx_Login
.mx_Login_box {
2017-10-25 02:30:39 +02:00
width: 330px;
min-height: initial;
2017-10-27 02:35:06 +02:00
padding-top: 40px;
2017-10-25 02:30:39 +02:00
padding-bottom: 20px;
padding-left: 10px;
padding-right: 10px;
border-radius: 8px;
2017-10-26 18:31:36 +02:00
color: $form-fg-color;
2017-10-27 02:35:06 +02:00
font-size: 16px;
2017-10-27 11:47:15 +02:00
line-height: 25px;
background-color: $form-bg-color;
background-image: url(../../themes/status/img/dot.svg);
box-shadow: 0px 5px 16px 0px rgba(25,12,46,0.16);
position: relative;
2017-10-25 02:30:39 +02:00
text-align: center;
}
.mx_Login_logo {
background-color: #fff;
width: 74px;
height: 74px;
border-radius: 37px;
2017-10-27 02:02:43 +02:00
box-shadow: 0px 5px 16px 0px rgba(0,0,0,0.2);
position: absolute;
top: -36px;
left: 50%;
margin-left: -36px;
}
.mx_Login_logo img {
width: 36px;
height: 36px;
padding: 19px;
}
.mx_Login_box h2 {
text-align: center;
color: $form-fg-color;
font-size: 25px;
2017-10-25 03:04:17 +02:00
margin-bottom: 24px;
}
.mx_Login_field {
2017-10-25 02:30:39 +02:00
width: 260px;
height: 27px;
2017-10-27 11:47:15 +02:00
padding: 8px 20px 10px 20px;
2017-10-25 02:30:39 +02:00
border-radius: 10px;
text-align: left;
2017-10-25 03:04:17 +02:00
border: 1px solid transparent;
2017-10-25 02:30:39 +02:00
background-color: $form-field-bg-color;
color: $form-field-fg-color;
font-weight: 300;
2017-10-25 02:30:39 +02:00
font-size: 15px;
margin-bottom: 14px;
2017-10-27 02:02:43 +02:00
transition: background-color .2s ease;
}
.mx_Login_field:focus {
border: 1px solid transparent;
background-color: $form-field-bg-hover-color;
}
2017-10-25 02:30:39 +02:00
.mx_Login_field::-webkit-input-placeholder {
font-family: $font-family;
color: $form-field-fg-color;
opacity: 0.6;
}
.mx_Login_field::-moz-placeholder {
font-family: $font-family;
color: $form-field-fg-color;
opacity: 0.6;
}
.mx_Login_field_disabled {
opacity: 0.3;
}
2017-10-27 02:24:11 +02:00
.mx_Login_prompt {
font-size: 16px;
}
.mx_Login_submit {
2017-10-27 02:31:14 +02:00
min-width: 200px;
width: auto;
2017-10-25 02:30:39 +02:00
margin-top: 13px;
2017-10-27 02:24:11 +02:00
margin-bottom: 10px;
}
.mx_Login_submit:disabled {
opacity: 0.3;
}
.mx_Login_create {
2017-10-27 02:24:11 +02:00
margin-top: 10px;
display: block;
text-align: center;
width: 100%;
2017-10-25 02:30:39 +02:00
font-size: 15px;
opacity: 1.0;
}
2017-10-27 12:11:59 +02:00
.mx_Login_create:link,
.mx_Login_create:hover,
.mx_Login_create:visited
{
2017-10-25 02:30:39 +02:00
color: $form-fg-color;
}
.mx_Login_forgot {
2017-10-25 02:30:39 +02:00
display: block;
2017-10-27 02:02:43 +02:00
font-size: 15px;
}
2017-10-27 13:17:04 +02:00
.mx_Login_forgot:link,
.mx_Login_forgot:hover,
.mx_Login_forgot:visited
{
2017-10-25 02:30:39 +02:00
color: $form-fg-color;
}
.mx_Login_error {
color: $warning-color;
2017-10-25 02:30:39 +02:00
font-size: 18px;
2017-10-27 15:23:33 +02:00
width: 300px;
2017-10-25 03:04:17 +02:00
height: 44px;
display: flex;
justify-content: center;
align-items: center;
2017-10-25 02:30:39 +02:00
margin: auto;
text-align: center;
margin-top: 12px;
2017-10-25 02:30:39 +02:00
margin-bottom: 16px;
}
2017-10-27 15:23:33 +02:00
.mx_Login_smallError {
font-size: 13px;
line-height: initial;
}
}