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);
|
color: var(--accent-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Google Translate styles */
|
/* Google Translate styles
|
||||||
.skiptranslate {
|
- Hide poorly styled iframes
|
||||||
/* display: none; */
|
*/
|
||||||
|
iframe.skiptranslate {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
top: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Main content styles */
|
/* Main content styles */
|
||||||
@@ -468,7 +473,8 @@
|
|||||||
function googleTranslateElementInit() {
|
function googleTranslateElementInit() {
|
||||||
new google.translate.TranslateElement({
|
new google.translate.TranslateElement({
|
||||||
pageLanguage: 'en',
|
pageLanguage: 'en',
|
||||||
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
|
// layout: google.translate.TranslateElement.InlineLayout.SIMPLE
|
||||||
|
layout: google.translate.TranslateElement.InlineLayout.VERTICAL
|
||||||
}, 'google_translate_element');
|
}, 'google_translate_element');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user