Bug 1409148 - Improve styling of the plugin Click-to-Play overlay. r=johannh

MozReview-Commit-ID: RnwWDIw2Sm

--HG--
extra : rebase_source : d1f612366905fb249b6202ee237c728a4422c681
This commit is contained in:
Felipe Gomes 2017-11-10 14:05:04 -02:00
Родитель 6b4a59c465
Коммит 5b1720710b
1 изменённых файлов: 22 добавлений и 7 удалений

Просмотреть файл

@ -8,6 +8,8 @@
/* Keep any changes to these styles in sync with plugin-doorhanger.inc.css */
.mainBox {
--grey-10: #f9f9fa;
--grey-60: #4a4a4f;
--grey-70: #38383d;
}
.mainBox {
@ -31,12 +33,10 @@
height: 100%;
}
:-moz-handler-vulnerable-updatable .hoverBox:active,
:-moz-handler-vulnerable-no-update .hoverBox:active,
:-moz-handler-clicktoplay .hoverBox:active {
:-moz-handler-vulnerable-no-update .hoverBox:active {
background-color: rgb(65, 65, 65);
}
:-moz-handler-clicktoplay .hoverBox:active .msgClickToPlay,
:-moz-handler-vulnerable-updatable .hoverBox:active .msgClickToPlay,
:-moz-handler-vulnerable-no-update .hoverBox:active .msgClickToPlay {
color: red;
@ -97,10 +97,6 @@ a .icon,
}
}
.msgClickToPlay {
text-decoration: underline;
}
/* on desktop, don't ever show the tap-to-play UI: that is for mobile only */
:-moz-handler-clicktoplay .msgTapToPlay,
a .msgTapToPlay {
@ -203,3 +199,22 @@ a .msgTapToPlay {
:-moz-handler-vulnerable-updatable .action-link:active {
background-color: #801409;
}
/* New Photon styling
*
* At the moment, these rules are written to only override
* :-moz-handler-clicktoplay styling. Once we finish the
* redesign for all cases, we can change the CSS directly
* above instead of writing these super-specific rules.
*/
:-moz-handler-clicktoplay .mainBox {
background-color: var(--grey-70);
}
:-moz-handler-clicktoplay .msgClickToPlay {
font-size: 13px;
}
:-moz-handler-clicktoplay .hoverBox:active {
background-color: var(--grey-60);
}