Update edx.org theme to add new css rule

* To make language selection button in footer consistent
with the edx.org theme, add new css rule
* Remove unused event from select element

LEARNER-1338
This commit is contained in:
Zainab Amir
2019-04-22 13:44:33 +05:00
parent 0ba017f39b
commit da27f244f0
3 changed files with 15 additions and 1 deletions

View File

@@ -23,7 +23,7 @@
<span class="icon fa fa-globe" aria-hidden="true"></span>
<span class="sr">${_("Choose Language")}</span>
</label>
<select id="footer-language-select" name="language" onchange="footerLanguageSelector.handleSelection(this)">
<select id="footer-language-select" name="language">
% for language in sorted(released_languages(), key=lambda x: x.code):
<% language_name = Locale.parse(language.code.replace('_', '-'), sep='-').language_name %>
% if language.code == LANGUAGE_CODE:

View File

@@ -21,3 +21,15 @@
}
}
}
.select-lang-button {
padding: 3px;
color: $m-blue-d3 !important;
height: 30px;
&:hover,
&:active,
&:focus {
background: $m-blue-d3 !important;
color: white !important;
}
}

View File

@@ -1,3 +1,5 @@
// Override theming for edx.org bootstrap
$m-blue-d3: rgb(18, 111, 154) !default;
@import 'edx-bootstrap/sass/edx/theme';