Skip to content

Commit cacd210

Browse files
committed
fix cancel button behaviour + small ui twist to the toggle
1 parent cd491db commit cacd210

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

includes/views/css/import-metabox-edit.css

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
}
2424

2525
input.feedzy-toggle-round + label {
26-
width: 60px;
27-
height: 22px;
26+
width: 2rem;
27+
height: 1rem;
2828
border-radius: 22px;
29-
background-color: #ddd;
29+
background-color: #f1f1f1;
3030
}
3131

3232
input.feedzy-toggle-round + label:before,
@@ -48,27 +48,22 @@ input.feedzy-toggle-round + label:before {
4848
}
4949

5050
input.feedzy-toggle-round + label:after {
51-
width: 23px;
52-
height: 23px;
51+
width: 0.75rem;
52+
height: 0.75rem;
5353
border-radius: 100%;
54-
background-color: #fff;
55-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
54+
background-color: #f6f7f7;
5655
-webkit-transition: margin 0.4s;
5756
transition: margin 0.4s;
5857
}
5958

6059
input.feedzy-toggle-round:checked + label:before {
61-
background-color: #44cf6c;
60+
background-color:#2271b1;
6261
}
6362

6463
input.feedzy-toggle-round:checked + label:after {
65-
margin-left: 36px;
64+
margin-left: 16px;
6665
}
6766

68-
input.feedzy-toggle-round + label {
69-
padding: 2px;
70-
background-color: #ddd;
71-
}
7267

7368
input.feedzy-toggle-round + label:before,
7469
input.feedzy-toggle-round + label:after {
@@ -90,10 +85,10 @@ input.feedzy-toggle-round + label:before {
9085

9186
input.feedzy-toggle-round + label:after {
9287
border-radius: 100%;
93-
background-color: #fff;
94-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
88+
background-color: #f1f1f1;
9589
-webkit-transition: margin 0.4s;
9690
transition: margin 0.4s;
91+
margin-top:1px;
9792
}
9893
span.feedzy-spinner:not(.is-active) {
9994
display: none;

includes/views/js/import-metabox-edit.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,9 @@
711711
e.preventDefault();
712712
var element = $(this);
713713
var deleteImportedPosts = confirm(feedzy.i10n.delete_post_message);
714+
if (!deleteImportedPosts) {
715+
return;
716+
}
714717
showSpinner(element);
715718
$.ajax({
716719
url: ajaxurl,

0 commit comments

Comments
 (0)