@wizishop/img-manager 0.2.92 → 0.2.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/img-manager",
3
- "version": "0.2.92",
3
+ "version": "0.2.96",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1298,221 +1298,144 @@ $tag-radius: rem(20px)!default;
1298
1298
  font-size: rem(16);
1299
1299
  color: $main-text;
1300
1300
  }
1301
- }.wz-img-manager .images-view {
1302
- text-align: left;
1303
-
1304
- &.fullSize {
1305
- & + .images-view__scroll {
1306
- max-height: 1160px;
1307
- }
1301
+ }//.wz-img-manager useful to keep the css priority
1302
+ .wz-img-manager .canva-btn {
1303
+ background-color: $img-main-color;
1304
+ border: 2px solid $img-main-color;
1305
+ padding: 0;
1306
+ height: fit-content;
1307
+ color: white;
1308
+ padding-left: rem(9);
1309
+ transition: .3s ease;
1310
+ margin: 0!important;
1311
+ &:hover, &:focus {
1312
+ border-color: darken($img-main-color, 15%);
1308
1313
  }
1309
-
1310
- &__scroll {
1314
+ > span {
1315
+ &:first-child {
1316
+ z-index: 2;
1311
1317
  position: relative;
1312
- height: 100%;
1313
- z-index: 1;
1314
-
1315
- &--full {
1316
- max-height: calc(100vh - 160px)!important;
1317
- min-height: calc(100vh - 160px) !important;
1318
- }
1319
-
1320
- &--smallDisplay {
1321
- max-height: 275px!important;
1322
- @include media('<tablet') {
1323
- max-height: calc(100vh - 90px)!important;
1324
- min-height: calc(100vh - 90px) !important;
1325
- }
1326
- }
1327
-
1328
- &--smallUploadDisplay {
1329
- max-height: 230px!important;
1330
- }
1331
-
1332
- &--window {
1333
- max-height: unset!important;
1334
- }
1335
-
1336
- &--hide {
1337
- &--mosaic {
1338
- min-height: 100px !important;
1339
- &--small {
1340
- min-height: unset !important;
1341
- }
1342
- }
1343
- &--table {
1344
- min-height: 170px !important;
1345
- }
1318
+ transform: translateX(7px);
1319
+ }
1320
+ }
1321
+ &__logo {
1322
+ z-index: 1;
1323
+ }
1324
+ }
1346
1325
 
1347
- }
1326
+ .wz-img-manager .canva-btn .btnLoadingAnnimation {
1327
+ background-color: $img-main-color;
1328
+ cursor: not-allowed;
1329
+ }
1348
1330
 
1349
- .ng-scroll-content {
1350
- min-width: calc(100% - 1rem) !important;
1351
- width: calc(100% - 1rem) !important;
1352
- @include media('<tablet') {
1353
- min-width: 100%!important;
1354
- }
1355
- }
1331
+ .wz-img-manager .canva.dropdown {
1332
+ z-index: 9999;
1333
+ .dropdown-menu {
1334
+ display: none!important;
1335
+ margin-top: 10px!important;
1336
+ &:before {
1337
+ content: '';
1338
+ display: block;
1339
+ position: absolute;
1340
+ bottom: 100%;
1341
+ left: 0;
1342
+ width: 100%;
1343
+ height: 10px;
1344
+ }
1356
1345
  }
1357
1346
 
1358
- &__container {
1359
- display: flex;
1360
- justify-content: space-between;
1361
- margin: 0 0 rem(20);
1347
+ .displayDropDownMenu {
1348
+ display: block!important;
1349
+ }
1362
1350
 
1363
- > div {
1364
- display: flex;
1365
- align-items: center;
1366
- .mainColor {
1367
- margin: 0;
1368
- }
1369
- }
1351
+ .dropdown-menu.dropDownShadow {
1352
+ padding-bottom: 0;
1353
+ padding-top: 0;
1354
+ margin-top: 1px;
1355
+ }
1370
1356
 
1371
- &--window {
1372
- margin: rem(30) 0 rem(20);
1373
- }
1357
+ .dropdown-menu {
1358
+ min-width: 300px;
1359
+ width: 300px;
1374
1360
 
1375
- &--uploadTab {
1376
- margin: 0 0 rem(20);
1361
+ .dropdown-content {
1362
+ padding-top: 0px;
1377
1363
  }
1378
1364
 
1379
- &__boxAction {
1380
- width: 525px;
1381
- overflow: visible;
1365
+ .dropdown-item {
1366
+ color: $img-grey-color;
1382
1367
  display: flex;
1383
- position: relative;
1384
- justify-content: flex-end;
1385
- margin-right: 13px;
1386
- height: 40px;
1368
+ justify-content: space-between;
1387
1369
  align-items: center;
1388
- transform: translate(-41px,-3px);
1389
-
1390
- &__confirmSup {
1391
- display: flex;
1392
- justify-content: space-between;
1393
- align-items: center;
1394
- border-left: solid 1px #d8d8d8;
1395
- color: $img-grey-color;
1396
- padding-left: 1rem;
1397
- width: 0;
1398
- position: absolute;
1399
- opacity: 0;
1400
- transition: 0s;
1401
- visibility: hidden;
1402
- z-index: 2;
1403
-
1404
- &--visible {
1405
- max-width: unset;
1406
- width: auto;
1407
- opacity: 1;
1408
- transition: 0s;
1409
- visibility: visible;
1410
-
1411
- p {
1412
- transition: left .3s ease-in-out;
1413
- right: 100%;
1414
- left: auto;
1415
- white-space: nowrap;
1416
- margin-right: 30px;
1417
- }
1418
- }
1419
-
1420
- &__cancel {
1421
- margin-right: 14px;
1422
- background-color: white;
1423
- border-color: #dbdbdb;
1424
- color: $img-main-text;
1425
- }
1370
+ padding: 12px 20px;
1371
+ margin: 0 0 5px;
1372
+ &:last-child {
1373
+ margin: 0;
1374
+ }
1426
1375
 
1427
- &__text {
1428
- font-size: 14px;
1429
- position: absolute;
1430
- left: -126%;
1431
- transition: font-size .3s ease-in-out, left .3s ease-in-out;
1432
- }
1376
+ p {
1377
+ margin: 0;
1378
+ line-height: rem(16);
1433
1379
  }
1434
1380
 
1435
- &__delBtn {
1436
- i {
1437
- margin-right: 13px!important;
1438
- }
1381
+ p:first-child {
1382
+ color: #1D2A3B;
1383
+ font-size: rem(14);
1439
1384
  }
1440
1385
 
1441
- &__import {
1442
- margin-right: 13px;
1443
- i {
1444
- margin-right: 13px!important;
1445
- }
1386
+ p:last-child {
1387
+ color: #526384;
1388
+ font-size: rem(14);
1446
1389
  }
1447
1390
  }
1448
1391
 
1449
- &__buttonBox {
1450
- margin: 0;
1451
- width: rem(40);
1452
- height: rem(40);
1453
- border: solid $img-light-white-color;
1454
- border-width: 1px 0 1px 1px;
1455
-
1456
- border-radius: 3px 0 0 3px;
1457
- outline: none!important;
1392
+ .dropdown-item:hover {
1393
+ background-color: whitesmoke;
1394
+ cursor: pointer;
1395
+ color: black;
1396
+ }
1458
1397
 
1459
- > div {
1460
- margin-top: 0;
1461
- margin-bottom: 0;
1462
- height: 40px;
1463
- &:nth-child(2) {
1464
- border: solid $img-light-white-color;
1465
- border-width: 1px 1px 1px 0;
1466
- transform: translateY(-1px);
1467
- border-radius: 0 3px 3px 0;
1468
- }
1469
- div {
1470
- height: 38px;
1471
- margin: 0!important;
1472
- }
1473
- }
1398
+ .dropdown-item.expectedSizes {
1399
+ font-weight: 500;
1400
+ }
1474
1401
 
1475
- .actifDisplayed {
1476
- color:$img-main-color;
1477
- }
1402
+ .dropdownTitle {
1403
+ font-size: 14px;
1404
+ background-color: $img-main-color;
1405
+ padding: rem(9.5) 0;
1406
+ text-align: center;
1478
1407
 
1479
- i {
1408
+ p {
1409
+ font-size: 14px;
1410
+ color: white;
1480
1411
  margin: 0;
1412
+ font-weight: 500;
1481
1413
  }
1482
1414
  }
1483
1415
 
1484
- &__cards {
1485
- display: flex;
1486
- justify-content: space-between;
1487
- flex-wrap: wrap;
1488
- align-items: center;
1489
- padding-top: 30px;
1490
- margin-right: calc(0.8rem - 20px);
1491
- margin-left: 0.3rem;
1492
- margin-bottom: 30px;
1416
+ .infoItem {
1417
+ padding: 18px 20px 11px 20px;
1418
+ line-height: 1.5;
1419
+ font-weight: 500;
1493
1420
 
1421
+ p {
1422
+ margin: 0;
1423
+ font-size: rem(16);
1424
+ line-height: rem(19);
1425
+ font-weight: 500;
1426
+ }
1494
1427
  }
1495
- }
1496
-
1497
- &--pexels {
1498
- margin-top: -30px;
1499
- }
1500
1428
 
1501
- .subHeaderActions .button i {
1502
- margin-right: 0;
1429
+ .dropdown-item-wrapper {
1430
+ border: 1px solid #DEE2ED;
1431
+ border-radius: 3px;
1432
+ margin: 0 20px 5px 20px;
1433
+ }
1503
1434
  }
1504
1435
  }
1505
1436
 
1506
- @media screen and (max-width: 768px) {
1507
- .wz-img-manager .img-tabs__tabsFirst .img-tabs__tabsFirst__list .images-view__scroll {
1508
- max-height: none!important;
1509
-
1510
- .ng-scroll-content {
1511
- margin: 0 !important;
1512
- min-width: 100%!important;
1513
- width: 100%!important;
1514
- }
1515
- }
1437
+ .noTooltip .tooltip.is-tooltip-left:hover::before, .noTooltip .tooltip.is-tooltip-left:hover:not(.is-loading)::after {
1438
+ display: none;
1516
1439
  }
1517
1440
  $default-color-p-alert: #1e5568;
1518
1441
  $success-color-p-alert: #11552e;
@@ -1892,6 +1815,18 @@ $green-color: #2ecc71;
1892
1815
  justify-content: center;
1893
1816
  align-items: center;
1894
1817
  }
1818
+ &__dropImgIconDiv {
1819
+ @include media('<720px') {
1820
+ p {
1821
+ display: none;
1822
+ }
1823
+ }
1824
+ }
1825
+ &__or {
1826
+ @include media('<720px') {
1827
+ display: none;
1828
+ }
1829
+ }
1895
1830
  .blueColor {
1896
1831
  img {
1897
1832
  min-width: rem(65);
@@ -3950,151 +3885,228 @@ $card-img-size-small: 140px;
3950
3885
  @include media('<tablet') {
3951
3886
  display: none!important;
3952
3887
  }
3953
- }
3954
- .select-mobile-page {
3955
- @include media('>=tablet') {
3956
- display: none;
3957
- }
3958
- padding: 20px 0;
3959
- }
3960
- }//.wz-img-manager useful to keep the css priority
3961
- .wz-img-manager .canva-btn {
3962
- background-color: $img-main-color;
3963
- border: 2px solid $img-main-color;
3964
- padding: 0;
3965
- height: fit-content;
3966
- color: white;
3967
- padding-left: rem(9);
3968
- transition: .3s ease;
3969
- margin: 0!important;
3970
- &:hover, &:focus {
3971
- border-color: darken($img-main-color, 15%);
3972
- }
3973
- > span {
3974
- &:first-child {
3975
- z-index: 2;
3976
- position: relative;
3977
- transform: translateX(7px);
3978
- }
3979
- }
3980
- &__logo {
3981
- z-index: 1;
3982
- }
3983
- }
3984
-
3985
- .wz-img-manager .canva-btn .btnLoadingAnnimation {
3986
- background-color: $img-main-color;
3987
- cursor: not-allowed;
3988
- }
3989
-
3990
- .wz-img-manager .canva.dropdown {
3991
- z-index: 9999;
3992
- .dropdown-menu {
3993
- display: none!important;
3994
- margin-top: 10px!important;
3995
- &:before {
3996
- content: '';
3997
- display: block;
3998
- position: absolute;
3999
- bottom: 100%;
4000
- left: 0;
4001
- width: 100%;
4002
- height: 10px;
4003
- }
4004
- }
4005
-
4006
- .displayDropDownMenu {
4007
- display: block!important;
3888
+ }
3889
+ .select-mobile-page {
3890
+ @include media('>=tablet') {
3891
+ display: none;
4008
3892
  }
3893
+ padding: 20px 0;
3894
+ }
3895
+ }.wz-img-manager .images-view {
3896
+ text-align: left;
4009
3897
 
4010
- .dropdown-menu.dropDownShadow {
4011
- padding-bottom: 0;
4012
- padding-top: 0;
4013
- margin-top: 1px;
3898
+ &.fullSize {
3899
+ & + .images-view__scroll {
3900
+ max-height: 1160px;
3901
+ }
4014
3902
  }
4015
3903
 
4016
- .dropdown-menu {
4017
- min-width: 300px;
4018
- width: 300px;
3904
+ &__scroll {
3905
+ position: relative;
3906
+ height: 100%;
3907
+ z-index: 1;
4019
3908
 
4020
- .dropdown-content {
4021
- padding-top: 0px;
3909
+ &--full {
3910
+ max-height: calc(100vh - 160px)!important;
3911
+ min-height: calc(100vh - 160px) !important;
4022
3912
  }
4023
3913
 
4024
- .dropdown-item {
4025
- color: $img-grey-color;
4026
- display: flex;
4027
- justify-content: space-between;
4028
- align-items: center;
4029
- padding: 12px 20px;
4030
- margin: 0 0 5px;
4031
- &:last-child {
4032
- margin: 0;
3914
+ &--smallDisplay {
3915
+ max-height: 275px!important;
3916
+ @include media('<tablet') {
3917
+ max-height: calc(100vh - 90px)!important;
3918
+ min-height: calc(100vh - 90px) !important;
4033
3919
  }
3920
+ }
4034
3921
 
4035
- p {
4036
- margin: 0;
4037
- line-height: rem(16);
4038
- }
3922
+ &--smallUploadDisplay {
3923
+ max-height: 230px!important;
3924
+ }
4039
3925
 
4040
- p:first-child {
4041
- color: #1D2A3B;
4042
- font-size: rem(14);
3926
+ &--window {
3927
+ max-height: unset!important;
3928
+ }
3929
+
3930
+ &--hide {
3931
+ &--mosaic {
3932
+ min-height: 100px !important;
3933
+ &--small {
3934
+ min-height: unset !important;
3935
+ }
3936
+ }
3937
+ &--table {
3938
+ min-height: 170px !important;
4043
3939
  }
4044
3940
 
4045
- p:last-child {
4046
- color: #526384;
4047
- font-size: rem(14);
3941
+ }
3942
+
3943
+ .ng-scroll-content {
3944
+ min-width: calc(100% - 1rem) !important;
3945
+ width: calc(100% - 1rem) !important;
3946
+ @include media('<tablet') {
3947
+ min-width: 100%!important;
4048
3948
  }
4049
3949
  }
3950
+ }
4050
3951
 
4051
- .dropdown-item:hover {
4052
- background-color: whitesmoke;
4053
- cursor: pointer;
4054
- color: black;
3952
+ &__container {
3953
+ display: flex;
3954
+ justify-content: space-between;
3955
+ margin: 0 0 rem(20);
3956
+
3957
+ > div {
3958
+ display: flex;
3959
+ align-items: center;
3960
+ .mainColor {
3961
+ margin: 0;
4055
3962
  }
3963
+ }
4056
3964
 
4057
- .dropdown-item.expectedSizes {
4058
- font-weight: 500;
3965
+ &--window {
3966
+ margin: rem(30) 0 rem(20);
4059
3967
  }
4060
3968
 
4061
- .dropdownTitle {
4062
- font-size: 14px;
4063
- background-color: $img-main-color;
4064
- padding: rem(9.5) 0;
4065
- text-align: center;
3969
+ &--uploadTab {
3970
+ margin: 0 0 rem(20);
3971
+ }
4066
3972
 
4067
- p {
4068
- font-size: 14px;
4069
- color: white;
4070
- margin: 0;
4071
- font-weight: 500;
3973
+ &__boxAction {
3974
+ width: 525px;
3975
+ overflow: visible;
3976
+ display: flex;
3977
+ position: relative;
3978
+ justify-content: flex-end;
3979
+ margin-right: 13px;
3980
+ height: 40px;
3981
+ align-items: center;
3982
+ transform: translate(-41px,-3px);
3983
+
3984
+ &__confirmSup {
3985
+ display: flex;
3986
+ justify-content: space-between;
3987
+ align-items: center;
3988
+ border-left: solid 1px #d8d8d8;
3989
+ color: $img-grey-color;
3990
+ padding-left: 1rem;
3991
+ width: 0;
3992
+ position: absolute;
3993
+ opacity: 0;
3994
+ transition: 0s;
3995
+ visibility: hidden;
3996
+ z-index: 2;
3997
+
3998
+ &--visible {
3999
+ max-width: unset;
4000
+ width: auto;
4001
+ opacity: 1;
4002
+ transition: 0s;
4003
+ visibility: visible;
4004
+
4005
+ p {
4006
+ transition: left .3s ease-in-out;
4007
+ right: 100%;
4008
+ left: auto;
4009
+ white-space: nowrap;
4010
+ margin-right: 30px;
4011
+ }
4012
+ }
4013
+
4014
+ &__cancel {
4015
+ margin-right: 14px;
4016
+ background-color: white;
4017
+ border-color: #dbdbdb;
4018
+ color: $img-main-text;
4019
+ }
4020
+
4021
+ &__text {
4022
+ font-size: 14px;
4023
+ position: absolute;
4024
+ left: -126%;
4025
+ transition: font-size .3s ease-in-out, left .3s ease-in-out;
4026
+ }
4027
+ }
4028
+
4029
+ &__delBtn {
4030
+ i {
4031
+ margin-right: 13px!important;
4032
+ }
4033
+ }
4034
+
4035
+ &__import {
4036
+ margin-right: 13px;
4037
+ i {
4038
+ margin-right: 13px!important;
4039
+ }
4072
4040
  }
4073
4041
  }
4074
4042
 
4075
- .infoItem {
4076
- padding: 18px 20px 11px 20px;
4077
- line-height: 1.5;
4078
- font-weight: 500;
4043
+ &__buttonBox {
4044
+ margin: 0;
4045
+ width: rem(40);
4046
+ height: rem(40);
4047
+ border: solid $img-light-white-color;
4048
+ border-width: 1px 0 1px 1px;
4079
4049
 
4080
- p {
4050
+ border-radius: 3px 0 0 3px;
4051
+ outline: none!important;
4052
+
4053
+ > div {
4054
+ margin-top: 0;
4055
+ margin-bottom: 0;
4056
+ height: 40px;
4057
+ &:nth-child(2) {
4058
+ border: solid $img-light-white-color;
4059
+ border-width: 1px 1px 1px 0;
4060
+ transform: translateY(-1px);
4061
+ border-radius: 0 3px 3px 0;
4062
+ }
4063
+ div {
4064
+ height: 38px;
4065
+ margin: 0!important;
4066
+ }
4067
+ }
4068
+
4069
+ .actifDisplayed {
4070
+ color:$img-main-color;
4071
+ }
4072
+
4073
+ i {
4081
4074
  margin: 0;
4082
- font-size: rem(16);
4083
- line-height: rem(19);
4084
- font-weight: 500;
4085
4075
  }
4086
4076
  }
4087
4077
 
4088
- .dropdown-item-wrapper {
4089
- border: 1px solid #DEE2ED;
4090
- border-radius: 3px;
4091
- margin: 0 20px 5px 20px;
4078
+ &__cards {
4079
+ display: flex;
4080
+ justify-content: space-between;
4081
+ flex-wrap: wrap;
4082
+ align-items: center;
4083
+ padding-top: 30px;
4084
+ margin-right: calc(0.8rem - 20px);
4085
+ margin-left: 0.3rem;
4086
+ margin-bottom: 30px;
4087
+
4092
4088
  }
4093
4089
  }
4090
+
4091
+ &--pexels {
4092
+ margin-top: -30px;
4093
+ }
4094
+
4095
+ .subHeaderActions .button i {
4096
+ margin-right: 0;
4097
+ }
4094
4098
  }
4095
4099
 
4096
- .noTooltip .tooltip.is-tooltip-left:hover::before, .noTooltip .tooltip.is-tooltip-left:hover:not(.is-loading)::after {
4097
- display: none;
4100
+ @media screen and (max-width: 768px) {
4101
+ .wz-img-manager .img-tabs__tabsFirst .img-tabs__tabsFirst__list .images-view__scroll {
4102
+ max-height: none!important;
4103
+
4104
+ .ng-scroll-content {
4105
+ margin: 0 !important;
4106
+ min-width: 100%!important;
4107
+ width: 100%!important;
4108
+ }
4109
+ }
4098
4110
  }
4099
4111
  //.wz-img-manager useful to keep the css priority
4100
4112
  .wz-img-manager .upload-list {
@@ -4279,7 +4291,7 @@ $card-img-size-small: 140px;
4279
4291
  &--small {
4280
4292
  height: 320px;
4281
4293
  @include media('<tablet') {
4282
- height: calc(100vh - 105px) !important;
4294
+ height: 100vh!important;
4283
4295
  }
4284
4296
  }
4285
4297
 
@@ -4287,7 +4299,7 @@ $card-img-size-small: 140px;
4287
4299
  &--full {
4288
4300
  height: calc(100vh - 50px);
4289
4301
  @include media('<tablet') {
4290
- height: calc(100vh - 105px);
4302
+ height: 100vh!important;
4291
4303
  }
4292
4304
  }
4293
4305
 
@@ -4323,6 +4335,8 @@ $card-img-size-small: 140px;
4323
4335
 
4324
4336
  @include media('<tablet') {
4325
4337
  width: 45px;
4338
+ bottom: auto;
4339
+ top: 10px;
4326
4340
  right: 0;
4327
4341
  }
4328
4342
 
@@ -4337,6 +4351,13 @@ $card-img-size-small: 140px;
4337
4351
  cursor: pointer;
4338
4352
  outline: none!important;
4339
4353
 
4354
+ @include media('<tablet') {
4355
+ background-color: transparent!important;
4356
+ i {
4357
+ color: $img-main-color!important;
4358
+ }
4359
+ }
4360
+
4340
4361
  &:first-child {
4341
4362
  @include media('<tablet') {
4342
4363
  display: none;
@@ -4384,7 +4405,7 @@ $card-img-size-small: 140px;
4384
4405
  padding: 0 0.575rem 0 1.075rem;
4385
4406
 
4386
4407
  @include media('<tablet') {
4387
- padding: 0 20px;
4408
+ padding: 40px 20px 0;
4388
4409
  }
4389
4410
 
4390
4411
  &--window {