Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M20-51: New Opt-in for Ghostery #444

Merged

M20-51: fix first flicker of the reward box

  • Loading branch information
Aleksandr Panin
Aleksandr Panin committed Sep 2, 2019
commit e1ef2e8fd86d39ec63ae12c7c1ef2dc31a897b19
@@ -249,7 +249,7 @@ class OfferCard extends Component {
render() {
return (
// @TODO condition for hide class
<div ref={(ref) => { this.offerCardRef = ref; }} className="ghostery-rewards-component">
<div style={{ opacity: 0 }} ref={(ref) => { this.offerCardRef = ref; }} className="ghostery-rewards-component">
{ this.state.closed !== true && (
<div>
<div className="ghostery-reward-card">
@@ -37,6 +37,7 @@
}

.ghostery-rewards-component {
opacity: 1 !important;
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@@ -415,8 +416,23 @@
.rewards-notification-container {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
max-height: 600px;
max-width: 300px;
animation: fadein 0.5s;
-webkit-animation: fadein 0.5s;

@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-webkit-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}


.rewards-notification-optout-image-wrapper {
height: 80%;
ProTip! Use n and p to navigate between commits in a pull request.