44 lines
1.4 KiB
CSS
44 lines
1.4 KiB
CSS
|
|
/* Google Translate
|
|
- Hide poorly styled iframes
|
|
*/
|
|
#google_translate_element {
|
|
background-color: white;
|
|
border-radius: 0.25vh;
|
|
padding: 0.5vh;
|
|
}
|
|
iframe.skiptranslate {
|
|
display: none !important;
|
|
}
|
|
body {
|
|
top: 0px !important;
|
|
}
|
|
|
|
/* Disable Google Translate hover popups and text highlighting */
|
|
.goog-text-highlight:not(#google_translate_element *),
|
|
.goog-tooltip:not(#google_translate_element *),
|
|
.goog-tooltip-bubble:not(#google_translate_element *),
|
|
.goog-te-balloon-frame:not(#google_translate_element *),
|
|
.VIpgJd-suEOdc:not(#google_translate_element *),
|
|
#goog-gt-tt:not(#google_translate_element *),
|
|
.VIpgJd-yAWNEb-L7lbkb:not(#google_translate_element *),
|
|
div.skiptranslate.goog-te-gadget span:not(#google_translate_element *),
|
|
.goog-te-banner-frame:not(#google_translate_element *),
|
|
.goog-te-gadget-simple span.text:not(#google_translate_element *),
|
|
.goog-te-gadget-icon:not(#google_translate_element *),
|
|
.goog-te-gadget-icon:not(#google_translate_element *)::before {
|
|
display: none !important;
|
|
visibility: hidden !important;
|
|
opacity: 0 !important;
|
|
height: 0 !important;
|
|
pointer-events: none !important;
|
|
}
|
|
|
|
/* Keep text selection normal */
|
|
* {
|
|
-webkit-touch-callout: default !important;
|
|
-webkit-user-select: text !important;
|
|
-moz-user-select: text !important;
|
|
-ms-user-select: text !important;
|
|
user-select: text !important;
|
|
} |