|
| 1 | +/* |
| 2 | +Copyright 2017 New Vector Ltd |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +// overrides for mx_Login* specific to Status. |
| 18 | +// Ideally this would be all Status prefixes for a Status specific version of the component |
| 19 | +// but given we're not doing Status as a dedicated 'skin' yet... |
| 20 | +.mx_Login { |
| 21 | + width: 100%; |
| 22 | + height: 100%; |
| 23 | + |
| 24 | + display: flex; |
| 25 | + align-items: center; |
| 26 | + justify-content: center; |
| 27 | + |
| 28 | + overflow: auto; |
| 29 | +} |
| 30 | + |
| 31 | +.mx_Login h2 { |
| 32 | + color: $primary-fg-color; |
| 33 | + font-weight: 300; |
| 34 | + margin-top: 32px; |
| 35 | + margin-bottom: 20px; |
| 36 | +} |
| 37 | + |
| 38 | +.mx_Login_box { |
| 39 | + width: 300px; |
| 40 | + min-height: 450px; |
| 41 | + padding-top: 50px; |
| 42 | + padding-bottom: 50px; |
| 43 | + margin: auto; |
| 44 | +} |
| 45 | + |
| 46 | +.mx_Login_logo { |
| 47 | + text-align: center; |
| 48 | + height: 150px; |
| 49 | + margin-bottom: 45px; |
| 50 | +} |
| 51 | + |
| 52 | +.mx_Login_logo img { |
| 53 | + max-height: 100% |
| 54 | +} |
| 55 | + |
| 56 | +.mx_Login_support { |
| 57 | + text-align: center; |
| 58 | + font-size: 13px; |
| 59 | + margin-top: 0px; |
| 60 | + opacity: 0.7; |
| 61 | +} |
| 62 | + |
| 63 | +.mx_Login_field { |
| 64 | + width: 280px; |
| 65 | + border-radius: 3px; |
| 66 | + border: 1px solid $strong-input-border-color; |
| 67 | + font-weight: 300; |
| 68 | + font-size: 13px; |
| 69 | + padding: 9px; |
| 70 | + margin-bottom: 14px; |
| 71 | +} |
| 72 | + |
| 73 | +.mx_Login_field_disabled { |
| 74 | + opacity: 0.3; |
| 75 | +} |
| 76 | + |
| 77 | +.mx_Login_fieldLabel { |
| 78 | + margin-top: -10px; |
| 79 | + margin-left: 8px; |
| 80 | + margin-bottom: 14px; |
| 81 | + font-size: 13px; |
| 82 | + opacity: 0.8; |
| 83 | +} |
| 84 | + |
| 85 | +.mx_Login_submit { |
| 86 | + margin-top: 35px; |
| 87 | + margin-bottom: 24px; |
| 88 | + width: 100%; |
| 89 | + border-radius: 40px; |
| 90 | + height: 40px; |
| 91 | + border: 0px; |
| 92 | + background-color: $accent-color; |
| 93 | + font-size: 15px; |
| 94 | + color: $accent-fg-color; |
| 95 | +} |
| 96 | + |
| 97 | +.mx_Login_submit:disabled { |
| 98 | + opacity: 0.3; |
| 99 | +} |
| 100 | + |
| 101 | +.mx_Login_label { |
| 102 | + font-size: 13px; |
| 103 | + opacity: 0.8; |
| 104 | +} |
| 105 | + |
| 106 | +.mx_Login_checkbox, |
| 107 | +.mx_Login_radio { |
| 108 | + margin-right: 10px; |
| 109 | +} |
| 110 | + |
| 111 | +.mx_Login_create { |
| 112 | + display: block; |
| 113 | + text-align: center; |
| 114 | + width: 100%; |
| 115 | + font-size: 13px; |
| 116 | + opacity: 0.8; |
| 117 | +} |
| 118 | + |
| 119 | +.mx_Login_create:link { |
| 120 | + color: $primary-fg-color; |
| 121 | +} |
| 122 | + |
| 123 | +.mx_Login_links { |
| 124 | + display: block; |
| 125 | + text-align: center; |
| 126 | + margin-top: 15px; |
| 127 | + width: 100%; |
| 128 | + font-size: 13px; |
| 129 | + opacity: 0.8; |
| 130 | +} |
| 131 | + |
| 132 | +.mx_Login_links a:link { |
| 133 | + color: $primary-fg-color; |
| 134 | +} |
| 135 | + |
| 136 | +.mx_Login_prompt { |
| 137 | + padding-top: 15px; |
| 138 | + padding-bottom: 15px; |
| 139 | + font-size: 13px; |
| 140 | +} |
| 141 | + |
| 142 | +.mx_Login_forgot { |
| 143 | + font-size: 13px; |
| 144 | + opacity: 0.8; |
| 145 | +} |
| 146 | + |
| 147 | +.mx_Login_forgot:link { |
| 148 | + color: $primary-fg-color; |
| 149 | +} |
| 150 | + |
| 151 | +.mx_Login_loader { |
| 152 | + display: inline; |
| 153 | + position: relative; |
| 154 | + top: 2px; |
| 155 | + left: 8px; |
| 156 | +} |
| 157 | + |
| 158 | +.mx_Login_loader .mx_Spinner { |
| 159 | + display: inline; |
| 160 | +} |
| 161 | + |
| 162 | +.mx_Login_loader .mx_Spinner img { |
| 163 | + width: 16px; |
| 164 | + height: 16px; |
| 165 | +} |
| 166 | + |
| 167 | +.mx_Login_error { |
| 168 | + color: $warning-color; |
| 169 | + font-weight: bold; |
| 170 | + text-align: center; |
| 171 | +/* |
| 172 | + height: 24px; |
| 173 | +*/ |
| 174 | + margin-top: 12px; |
| 175 | + margin-bottom: 12px; |
| 176 | +} |
| 177 | + |
| 178 | +.mx_Login_type_container { |
| 179 | + display: flex; |
| 180 | + margin-bottom: 14px; |
| 181 | +} |
| 182 | + |
| 183 | +.mx_Login_type_label { |
| 184 | + flex-grow: 1; |
| 185 | + line-height: 35px; |
| 186 | +} |
| 187 | + |
| 188 | +.mx_Login_type_dropdown { |
| 189 | + display: inline-block; |
| 190 | + min-width: 170px; |
| 191 | + align-self: flex-end; |
| 192 | + flex: 1 1 auto; |
| 193 | +} |
| 194 | + |
| 195 | +.mx_Login_field_group { |
| 196 | + display: flex; |
| 197 | +} |
| 198 | + |
| 199 | +.mx_Login_field_prefix { |
| 200 | + height: 34px; |
| 201 | + padding: 0px 5px; |
| 202 | + line-height: 33px; |
| 203 | + |
| 204 | + background-color: #eee; |
| 205 | + border: 1px solid #c7c7c7; |
| 206 | + border-right: 0px; |
| 207 | + border-radius: 3px 0px 0px 3px; |
| 208 | + |
| 209 | + text-align: center; |
| 210 | +} |
| 211 | + |
| 212 | +.mx_Login_field_suffix { |
| 213 | + height: 34px; |
| 214 | + padding: 0px 5px; |
| 215 | + line-height: 33px; |
| 216 | + |
| 217 | + background-color: #eee; |
| 218 | + border: 1px solid #c7c7c7; |
| 219 | + border-left: 0px; |
| 220 | + border-radius: 0px 3px 3px 0px; |
| 221 | + |
| 222 | + text-align: center; |
| 223 | + flex-grow: 1; |
| 224 | +} |
| 225 | + |
| 226 | +.mx_Login_username { |
| 227 | + height: 16px; |
| 228 | + flex-shrink: 1; |
| 229 | + min-width: 0px; |
| 230 | + border-radius: 3px; |
| 231 | +} |
| 232 | + |
| 233 | +.mx_Login_phoneNumberField { |
| 234 | + height: 16px; |
| 235 | +} |
| 236 | + |
| 237 | +.mx_Login_field_has_prefix { |
| 238 | + border-top-left-radius: 0px; |
| 239 | + border-bottom-left-radius: 0px; |
| 240 | +} |
| 241 | + |
| 242 | +.mx_Login_field_has_suffix { |
| 243 | + border-top-right-radius: 0px; |
| 244 | + border-bottom-right-radius: 0px; |
| 245 | +} |
| 246 | + |
| 247 | +.mx_Login_phoneSection { |
| 248 | + display:flex; |
| 249 | +} |
| 250 | + |
| 251 | +.mx_Login_phoneCountry { |
| 252 | + margin-bottom: 14px; |
| 253 | + width: 150px; |
| 254 | + |
| 255 | + /* To override mx_Login_field_prefix */ |
| 256 | + text-align: left; |
| 257 | + padding: 0px; |
| 258 | + background-color: $primary-bg-color; |
| 259 | +} |
| 260 | + |
| 261 | +.mx_Login_field_prefix .mx_Dropdown_input { |
| 262 | + /* To use prefix border instead of dropdown border */ |
| 263 | + border: 0; |
| 264 | +} |
| 265 | + |
| 266 | +.mx_Login_phoneCountry .mx_Dropdown_option { |
| 267 | + /* |
| 268 | + To match height of mx_Login_field |
| 269 | + 33px + 2px border from mx_Dropdown_option = 35px |
| 270 | + */ |
| 271 | + height: 33px; |
| 272 | + line-height: 33px; |
| 273 | +} |
| 274 | + |
| 275 | +.mx_Login_phoneCountry .mx_Dropdown_option img { |
| 276 | + margin: 3px; |
| 277 | + vertical-align: top; |
| 278 | +} |
| 279 | + |
| 280 | +.mx_Login_language { |
| 281 | + margin-left: auto; |
| 282 | + margin-right: auto; |
| 283 | + min-width: 60%; |
| 284 | +} |
| 285 | + |
| 286 | +.mx_Login_language_div { |
| 287 | + display: flex; |
| 288 | + margin-top: 12px; |
| 289 | + margin-bottom: 12px; |
| 290 | +} |
| 291 | + |
0 commit comments