Fix(Styles): Improved design of Google Translate features and removal / hiding of iframes that cannot be properly styled.
This commit is contained in:
14
index.html
14
index.html
@@ -89,9 +89,14 @@
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
/* Google Translate styles */
|
||||
.skiptranslate {
|
||||
/* display: none; */
|
||||
/* Google Translate styles
|
||||
- Hide poorly styled iframes
|
||||
*/
|
||||
iframe.skiptranslate {
|
||||
display: none !important;
|
||||
}
|
||||
body {
|
||||
top: 0px !important;
|
||||
}
|
||||
|
||||
/* Main content styles */
|
||||
@@ -468,7 +473,8 @@
|
||||
function googleTranslateElementInit() {
|
||||
new google.translate.TranslateElement({
|
||||
pageLanguage: 'en',
|
||||
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
|
||||
// layout: google.translate.TranslateElement.InlineLayout.SIMPLE
|
||||
layout: google.translate.TranslateElement.InlineLayout.VERTICAL
|
||||
}, 'google_translate_element');
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user