Skip to content

Commit afbbe67

Browse files
authored
Merge pull request #415 from cloudinary/uat
Uat
2 parents 98efce3 + 87c504a commit afbbe67

27 files changed

+662
-313
lines changed

cloudinary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Cloudinary
44
* Plugin URI: https://cloudinary.com/documentation/wordpress_integration
55
* Description: With the Cloudinary plugin, you can upload and manage your media assets in the cloud, then deliver them to your users through a fast content delivery network, improving your website’s loading speed and overall user experience. Apply multiple transformations and take advantage of a full digital asset management solution without leaving WordPress.
6-
* Version: 2.7.0
6+
* Version: 2.7.1-rc-4
77
* Author: Cloudinary Ltd., XWP
88
* Author URI: https://cloudinary.com/
99
* License: GPLv2+

css/cloudinary.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/src/_variables.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ $color-notification-success: #20b832;
1111

1212
/** Sizes */
1313
$content-width: 870px;
14+
$size-small: 783px;
15+
$size-medium: 960px;
16+
$size-large: 1200px;

css/src/components/_settings.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@
313313
margin-top: 0.5em;
314314
}
315315

316+
input[type="checkbox"] ~ label {
317+
margin-left: .25em;
318+
}
319+
316320
.modal-footer {
317321
background-color: #fcfcfc;
318322
border-top: 1px solid #ddd;
@@ -334,5 +338,9 @@
334338
textarea {
335339
resize: none;
336340
}
341+
342+
p {
343+
display: flex;
344+
}
337345
}
338346

css/src/components/_ui.scss

Lines changed: 59 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
.cld {
1313

1414
&-syncing {
15-
background-image: url("./loading.svg");
16-
background-repeat: no-repeat;
17-
background-position: center center;
15+
background: url("./loading.svg") no-repeat center center;
1816
width: 30px;
1917
height: 20px;
2018
margin-left: 12px;
@@ -29,7 +27,14 @@
2927
right: 0;
3028
padding: 0;
3129
color: #555d66;
32-
margin-left: 160px;
30+
31+
@media only screen and (min-width: $size-small) {
32+
margin-left: 36px;
33+
}
34+
35+
@media only screen and (min-width: $size-medium) {
36+
margin-left: 160px;
37+
}
3338

3439
.cld-notice-box.is-success{
3540
border: 0;
@@ -66,7 +71,7 @@
6671
margin-right: 20px;
6772
margin-bottom: 12px;
6873
.cld-notice {
69-
padding: 1rem 1.2rem 0.75rem 1.2rem;
74+
padding: 1rem 2.2rem 0.75rem 1.2rem;
7075

7176
img.cld-ui-icon {
7277
height: 100%;
@@ -81,12 +86,12 @@
8186
padding-left: 38px;
8287
}
8388

84-
8589
&.is-success,
8690
&.is-updated,
8791
&.is-created {
8892
background-color: #ebf5ec;
8993
border-left: 4px solid #42ad4f;
94+
9095
.dashicons{
9196
color: $color-success;
9297
}
@@ -138,18 +143,6 @@
138143
}
139144

140145
&-ui {
141-
&-settings {
142-
143-
/* Small devices */
144-
@media only screen and (max-width: 992px) {
145-
margin: 0 10px 0 -10px;
146-
}
147-
148-
@media only screen and (max-width: 782px) {
149-
margin: 0 -1px 0 -10px;
150-
}
151-
152-
}
153146

154147
&-collapse {
155148
align-self: center;
@@ -181,10 +174,18 @@
181174

182175
.cld-column {
183176
padding: 0 1.75em;
177+
float: left;
178+
width: 100%;
179+
box-sizing: border-box;
184180

185-
/* Small devices */
186-
@media only screen and (max-width: 782px) {
187-
width: 100% !important;
181+
@media only screen and (min-width: $size-small) {
182+
&.column-45 {
183+
width: 45%;
184+
}
185+
186+
&.column-55 {
187+
width: 55%;
188+
}
188189
}
189190
}
190191

@@ -193,25 +194,13 @@
193194
clear: both;
194195
display: table;
195196
}
196-
197-
@media only screen {
198-
199-
.cld-column {
200-
float: left;
201-
width: 100%;
202-
box-sizing: border-box;
203-
}
204-
}
205-
206-
207197
}
208198
}
209199

210200
&-image,
211201
&-video {
212202

213203
&-preview {
214-
215204
background-color: rgba(216, 216, 216, 0.5);
216205
padding: 7px;
217206
border-radius: 5px;
@@ -252,6 +241,7 @@
252241
padding: 0 1rem;
253242
margin-left: -20px;
254243
margin-top: -1em;
244+
flex-wrap: wrap;
255245

256246
&-tab {
257247
list-style: none;
@@ -295,7 +285,6 @@
295285
}
296286

297287
&-input {
298-
299288
@include input;
300289

301290
.regular-text,
@@ -388,8 +377,6 @@
388377
}
389378
}
390379
}
391-
392-
393380
}
394381
}
395382

@@ -411,18 +398,26 @@
411398

412399
&-panel,
413400
&-info-box,
414-
&-panel-short {
401+
&-panel-short,
402+
&-submit,
403+
&-switch-cloud {
415404
background-color: #fff;
416405
border: 1px solid $color-light-grey;
417-
padding: 2rem 1.75rem;
418-
margin-top: 1rem;
419406
margin-right: 1rem;
420-
width: $content-width;
407+
max-width: $content-width;
408+
}
421409

422-
/* Medium devices until large */
423-
@media only screen and (min-width: 993px) {
424-
max-width: 900px;
425-
}
410+
&-submit,
411+
&-switch-cloud {
412+
border-top: 0;
413+
padding: 1.2rem 1.75rem;
414+
}
415+
416+
&-panel,
417+
&-info-box,
418+
&-panel-short {
419+
margin-top: 1rem;
420+
padding: 2rem 1.75rem;
426421

427422
&-inner {
428423
padding: 1.3rem;
@@ -451,26 +446,12 @@
451446

452447
&-heading {
453448
display: flex;
454-
background-color: #fff;
455-
border: 1px solid $color-light-grey;
456449
border-bottom: 0;
457450
padding: 0.4rem 1.75rem 0.2rem;
458-
width: $content-width;
459-
margin-top: 1rem;
460451

461452
img {
462453
margin-right: 0.6rem;
463454
}
464-
465-
/* Small devices */
466-
@media only screen and (max-width: 960px) {
467-
width: auto;
468-
}
469-
470-
/* Medium devices until large */
471-
@media only screen and (min-width: 961px) and (max-width: 1200px) {
472-
width: 85%;
473-
}
474455
}
475456

476457
ul {
@@ -527,7 +508,7 @@
527508
font-weight: 400;
528509
}
529510

530-
@media only screen and (min-width: 783px) {
511+
@media only screen and (min-width: $size-small) {
531512
display: flex;
532513
flex-wrap: nowrap;
533514
font-size: 1em;
@@ -543,13 +524,14 @@
543524
}
544525
}
545526

546-
@media only screen and (min-width: 1200px) {
527+
@media only screen and (min-width: $size-large) {
547528
font-size: 1.2em;
548529
}
549530
}
550531

551532
.img-connection-string {
552533
max-width: 607px;
534+
width: 100%;
553535
}
554536

555537
.connection-string {
@@ -619,8 +601,12 @@
619601
}
620602

621603
&-info-box {
622-
623604
display: flex;
605+
flex-direction: column;
606+
607+
@media only screen and (min-width: $size-small) {
608+
flex-direction: row;
609+
}
624610

625611
img,
626612
a.button {
@@ -638,42 +624,27 @@
638624
display: inline-block;
639625
}
640626

641-
&-submit,
642-
&-switch-cloud {
643-
644-
&.cld-ui-wrap {
645-
background-color: #fff;
646-
border: 1px solid $color-light-grey;
647-
border-top: 0;
648-
padding: 1.2rem 1.75rem;
649-
width: $content-width;
650-
651-
/* Small devices */
652-
@media only screen and (max-width: 960px) {
653-
width: auto;
654-
}
655-
656-
/* Medium devices until large */
657-
@media only screen and (min-width: 961px) and (max-width: 1200px) {
658-
width: 85%;
659-
}
660-
}
661-
}
662-
663627
&-gallery-settings {
664628
width: 100%;
665629
display: flex;
666630
flex-wrap: wrap;
667631
padding: 1rem 0;
668-
margin-left: -1rem;
669-
margin-right: -1rem;
670632
box-sizing: border-box;
671633

634+
@media only screen and (min-width: $size-medium) {
635+
margin-left: -1rem;
636+
margin-right: -1rem;
637+
}
638+
672639
&__column {
673-
width: 50%;
674-
padding-left: 1rem;
675-
padding-right: 1rem;
676640
box-sizing: border-box;
641+
width: 100%;
642+
643+
@media only screen and (min-width: $size-medium) {
644+
padding-left: 1rem;
645+
padding-right: 1rem;
646+
width: 50%;
647+
}
677648
}
678649
}
679650
}

gruntfile.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ module.exports = function ( grunt ) {
66
.read( 'cloudinary.php' )
77
.match( /Version:\s*(.+)$/im )[ 1 ];
88

9+
const options = {
10+
plugin_slug:
11+
'cloudinary-image-management-and-manipulation-in-the-cloud-cdn',
12+
plugin_main_file: 'cloudinary.php',
13+
build_dir: '<%= dist_dir %>',
14+
assets_dir: 'assets',
15+
svn_user: 'cloudinary',
16+
};
17+
918
grunt.initConfig( {
1019
dist_dir: 'build',
1120

@@ -56,18 +65,13 @@ module.exports = function ( grunt ) {
5665
},
5766

5867
wp_deploy: {
59-
options: {
60-
plugin_slug:
61-
'cloudinary-image-management-and-manipulation-in-the-cloud-cdn',
62-
plugin_main_file: 'cloudinary.php',
63-
build_dir: '<%= dist_dir %>',
64-
assets_dir: 'assets',
65-
},
6668
default: {
6769
// Default deploy to trunk and a tag release.
70+
options,
6871
},
6972
assets: {
7073
// Deploy only screenshots and icons.
74+
...options,
7175
deploy_trunk: false,
7276
deploy_tag: false,
7377
},

js/deactivate.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'be441971594d2402081dd17cd9006ce5');
1+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'e862bb5e9c2155662e26dab8ad582baa');

js/deactivate.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)