Skip to content

Commit

Permalink
Backup: removed backup-in-progress animation on small viewports (#21624)
Browse files Browse the repository at this point in the history
* Backup: hide backup in progress animation on small screens

* Add missing change file
  • Loading branch information
monsieur-z authored Nov 10, 2021
1 parent ac1fda9 commit 6027209
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Backup: removed backup-in-progress animation on small viewports
2 changes: 1 addition & 1 deletion projects/plugins/backup/src/js/components/Backups.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const Backups = () => {
const renderInProgressBackup = () => {
return (
<div class="jp-row">
<div class="lg-col-span-5 md-col-span-4 sm-col-span-4">
<div class="lg-col-span-5 md-col-span-8 sm-col-span-4">
<div class="backup__progress">
<div class="backup__progress-info">
<p>{ __( 'Backing up Your Groovy Site…', 'jetpack-backup' ) }</p>
Expand Down
18 changes: 12 additions & 6 deletions projects/plugins/backup/src/js/components/backups-style.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@import 'rna-styles';
@import 'masthead/calypso-mixins';

.backup__card {
padding: 24px;
background:var( --jp-white );
background: var( --jp-white );
box-shadow: 0px 0px 40px rgba( 0, 0, 0, 0.08 );
border-radius: var( --jp-border-radius );
}
Expand Down Expand Up @@ -56,7 +57,8 @@
align-items: center;
margin-bottom: 8px;

svg, img {
svg,
img {
min-width: 32px;
min-height: 32px;
}
Expand All @@ -74,6 +76,10 @@

.backup__animation {
position: relative;

@include responsive( full-width ) {
display: none;
}
}

.backup__animation-el-1,
Expand Down Expand Up @@ -123,7 +129,7 @@
}
100% {
opacity: 0;
transform: translateY( -96px );
transform: translateY( -96px );
}
}

Expand All @@ -146,7 +152,7 @@
}
100% {
opacity: 0;
transform: translateY( -96px );
transform: translateY( -96px );
}
}

Expand All @@ -169,6 +175,6 @@
}
100% {
opacity: 0;
transform: translateY( -84px );
transform: translateY( -84px );
}
}
}

0 comments on commit 6027209

Please sign in to comment.