Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from mozilla/issue/1570390
Bug 1570390 - UA override for zhidao.baidu.com, Bug 1570119 - Intervention for teamcoco.com and Bug 1570328 - Intervention for developer.apple.com
- Loading branch information
Showing
4 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/injections/css/bug1570119-teamcoco.com-scrollbar-width.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* teamcoco.com - a scrollbar at the top covering navigation menu | ||
* Bug #1570119 - https://bugzilla.mozilla.org/show_bug.cgi?id=1570119 | ||
* | ||
* The scrollbar is covering navigation items making them unusable. | ||
* There are ::-webkit-scrollbar css rules already applied to the scrollbar, | ||
* hiding it in Chrome. Adding the scrollbar-width: none fixes the issue in Firefox. | ||
*/ | ||
.css-bdnz85 { | ||
scrollbar-width: none; | ||
} |
17 changes: 17 additions & 0 deletions
17
src/injections/css/bug1570328-developer-apple.com-transform-scale.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* developer.apple.com - content of the page is shifted to the left | ||
* Bug #1570328 - https://bugzilla.mozilla.org/show_bug.cgi?id=1570328 | ||
* WebCompat issue #4070 - https://webcompat.com/issues/4070 | ||
* | ||
* The site is relying on zoom property which is not supported by Mozilla, | ||
* see https://bugzilla.mozilla.org/show_bug.cgi?id=390936. Adding a combination | ||
* of transform: scale(1.4), transform-origin and width fixes the issue | ||
*/ | ||
@media only screen and (min-device-width: 320px) and (max-device-width: 980px), | ||
(min-device-width: 1024px) and (max-device-width: 1024px) and (min-device-height: 1366px) and (max-device-height: 1366px) and (min-width: 320px) and (max-width: 980px) { | ||
#tocContainer { | ||
transform-origin: 0 0; | ||
transform: scale(1.4); | ||
width: 71.4%; | ||
} | ||
} |