From f9793fa5676001a6dea37a6f605df12f9581bc2e Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 23 Jan 2019 09:11:37 -0600 Subject: [PATCH] Extract language selector styles --- .../structures/auth/_LanguageSelector.scss | 27 +++++++++++++++++++ res/css/structures/auth/_Login.scss | 13 --------- .../structures/auth/LanguageSelector.js | 4 +-- 3 files changed, 29 insertions(+), 15 deletions(-) create mode 100644 res/css/structures/auth/_LanguageSelector.scss diff --git a/res/css/structures/auth/_LanguageSelector.scss b/res/css/structures/auth/_LanguageSelector.scss new file mode 100644 index 0000000000..26a8207b20 --- /dev/null +++ b/res/css/structures/auth/_LanguageSelector.scss @@ -0,0 +1,27 @@ +/* +Copyright 2019 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. +*/ + +.mx_Auth_language { + margin-left: auto; + margin-right: auto; + min-width: 60%; +} + +.mx_Auth_language_div { + display: flex; + margin-top: 12px; + margin-bottom: 12px; +} diff --git a/res/css/structures/auth/_Login.scss b/res/css/structures/auth/_Login.scss index c4eebc48a1..09af69183b 100644 --- a/res/css/structures/auth/_Login.scss +++ b/res/css/structures/auth/_Login.scss @@ -233,16 +233,3 @@ limitations under the License. margin: 3px; vertical-align: top; } - -.mx_Login_language { - margin-left: auto; - margin-right: auto; - min-width: 60%; -} - -.mx_Login_language_div { - display: flex; - margin-top: 12px; - margin-bottom: 12px; -} - diff --git a/src/components/structures/auth/LanguageSelector.js b/src/components/structures/auth/LanguageSelector.js index 965d8334d9..60b369c303 100644 --- a/src/components/structures/auth/LanguageSelector.js +++ b/src/components/structures/auth/LanguageSelector.js @@ -32,7 +32,7 @@ export default function LanguageSelector() { if (SdkConfig.get()['disable_login_language_selector']) return
; const LanguageDropdown = sdk.getComponent('views.elements.LanguageDropdown'); - return
- + return
+
; }