Skip to content

Commit

Permalink
#27 Fixs css
Browse files Browse the repository at this point in the history
  • Loading branch information
gluebi committed Nov 2, 2022
1 parent 123045d commit bf62ddd
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/components/CookieComply.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,16 @@ export default {
};
</script>

<style>
<style lang="css">
@import '../styles/variables.css';
/* Render cookie comply out of viewport to reduce LCP */
@keyframes fade-in {
0% {
opacity(0);
opacity: 0;
}
100% {
opacity(1);
opacity: 1;
}
}
@keyframes slide-up {
Expand All @@ -235,11 +235,6 @@ export default {
}
}
.out-of-viewport {
transform: translateY(110vh);
animation: slide-up 1s forwards;
}
.cookie-comply-body-grey-out {
position: fixed;
top: 0;
Expand All @@ -266,7 +261,7 @@ export default {
box-shadow: var(--box-shadow);
padding: var(--spacing-md);
border-radius: var(--border-radius);
transform: translateY(100%);
animation: slide-up 1s forwards;
}
.cookie-comply-edit {
Expand Down

0 comments on commit bf62ddd

Please sign in to comment.