@wizishop/img-manager 0.2.89 → 0.2.90

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.89",
3
+ "version": "0.2.90",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
Binary file
@@ -862,7 +862,7 @@ $base-font: 'Work Sans', helvetica !default;@mixin simple_transition($type: null
862
862
  }
863
863
 
864
864
  .wz-img-manager .small .wz-pagination__wrapper {
865
- margin: 0 0 rem(50);
865
+ margin: 0 0 rem(105);
866
866
  }
867
867
 
868
868
  .wz-block--window {
@@ -1070,79 +1070,6 @@ $base-font: 'Work Sans', helvetica !default;@mixin simple_transition($type: null
1070
1070
  font-weight: 500;
1071
1071
  }
1072
1072
  }
1073
- image-cropper {
1074
- max-height: 60vh;
1075
- }.wz-selector {
1076
- &__default {
1077
- position: relative;
1078
- &__base {
1079
- position: relative;
1080
- height: rem(32);
1081
- input {
1082
- font-size: rem(14);
1083
- line-height: rem(24);
1084
- color: $img-second-color;
1085
- border: 1px solid $border-form;
1086
- border-radius: 2px;
1087
- height: rem(32);
1088
- padding: 3px 26px 3px 15px;
1089
- cursor: pointer;
1090
- &:focus {
1091
- cursor: text;
1092
- padding: 3px 7px;
1093
- & + i {
1094
- opacity: 0;
1095
- }
1096
- }
1097
- }
1098
- i {
1099
- position: absolute;
1100
- font-size: rem(10);
1101
- height: 6px;
1102
- color: $img-second-color;
1103
- right: 12px;
1104
- top: 50%;
1105
- transform: translateY(-125%);
1106
- cursor: pointer;
1107
- }
1108
- }
1109
- &__absolute {
1110
- position: absolute;
1111
- bottom: 100%;
1112
- left: 0;
1113
- border-radius: 2px 2px 0 0;
1114
- background-color: $white;
1115
- transform: translateY(1px);
1116
- &__wrapper {
1117
- width: 100%;
1118
- display: flex;
1119
- flex-direction: column;
1120
- &:last-child {
1121
- > div {
1122
- border-bottom: 1px solid $border-form;
1123
- }
1124
- }
1125
- &__item {
1126
- padding: 3px 15px;
1127
- width: 100%;
1128
- color: $img-second-color;
1129
- font-size: rem(14);
1130
- line-height: rem(24);
1131
- border-left: 1px solid $border-form;
1132
- border-right: 1px solid $border-form;
1133
- border-top: 1px solid $border-form;
1134
- transition: .3s ease;
1135
- cursor: pointer;
1136
- text-align: center;
1137
- &:hover, &:focus, &.selected {
1138
- background-color: $wizishop-blue;
1139
- color: $white;
1140
- }
1141
- }
1142
- }
1143
- }
1144
- }
1145
- }
1146
1073
  //.wz-img-manager useful to keep the css priority
1147
1074
  .wz-img-manager .table-view {
1148
1075
 
@@ -1270,171 +1197,102 @@ image-cropper {
1270
1197
  .grey {
1271
1198
  color: $img-grey-color;
1272
1199
  }
1273
- .wz-img-manager {
1274
-
1275
- &__selectionHandler {
1276
- margin-top: -50px;
1277
- }
1278
-
1279
- &__module {
1280
- position: fixed;
1281
- bottom: 0;
1282
- left: 0;
1283
- width: 100%;
1284
- height: 0;
1285
- transition: height .3s ease;
1286
- z-index: 2147483647; // snackbar 10
1287
- transform: translateZ(0);
1288
-
1289
- &:before {
1290
- content: '';
1291
- display: block;
1292
- position: absolute;
1293
- top: 0;
1294
- left: 0;
1295
- width: 100%;
1296
- height: 3px;
1297
- background-color: $img-main-color;
1298
- z-index: 999;
1299
- }
1300
-
1301
- &--closed {
1302
- height: 0;
1303
- }
1304
-
1305
- // .wz-img-manager__module--small
1306
- &--small {
1307
- height: 320px;
1308
- @include media('<tablet') {
1309
- height: calc(100vh - 35px);
1310
- }
1311
- }
1312
-
1313
- // .wz-img-manager__module--full
1314
- &--full {
1315
- height: calc(100vh - 50px);
1316
- @include media('<tablet') {
1317
- height: calc(100vh - 35px);
1318
- }
1319
- }
1320
-
1321
- // .wz-img-manager__module--window
1322
- &--window {
1200
+ .wz-selector {
1201
+ &__default {
1202
+ position: relative;
1203
+ &__base {
1323
1204
  position: relative;
1324
- width: auto;
1325
- bottom: unset;
1326
- left: unset;
1327
- z-index: 29!important;
1328
- height: auto!important;
1329
- padding-bottom: 6.25rem;
1330
-
1331
- &:before {
1332
- content: none;
1333
- height: 0px;
1334
- }
1335
-
1336
- // .wz-img-manager__module--edit
1337
- &--edit {
1338
- .wrapper-tabs {
1339
- display: none;
1205
+ height: rem(32);
1206
+ input {
1207
+ font-size: rem(14);
1208
+ line-height: rem(24);
1209
+ color: $img-second-color;
1210
+ border: 1px solid $border-form;
1211
+ border-radius: 2px;
1212
+ height: rem(32);
1213
+ padding: 3px 26px 3px 15px;
1214
+ cursor: pointer;
1215
+ &:focus {
1216
+ cursor: text;
1217
+ padding: 3px 7px;
1218
+ & + i {
1219
+ opacity: 0;
1220
+ }
1340
1221
  }
1341
1222
  }
1223
+ i {
1224
+ position: absolute;
1225
+ font-size: rem(10);
1226
+ height: 6px;
1227
+ color: $img-second-color;
1228
+ right: 12px;
1229
+ top: 50%;
1230
+ transform: translateY(-125%);
1231
+ cursor: pointer;
1232
+ }
1342
1233
  }
1343
-
1344
- // .wz-img-manager__module__header
1345
- &__header {
1234
+ &__absolute {
1346
1235
  position: absolute;
1347
1236
  bottom: 100%;
1348
- right: 30px;
1349
- width: 101px;
1350
-
1351
- @include media('<tablet') {
1352
- width: 45px;
1353
- right: 0;
1354
- }
1355
-
1356
- // .wz-img-manager__module__header button
1357
- button {
1358
- width: 45px;
1359
- height: 35px;
1360
- background-color: $img-main-color;
1361
- transition: background-color .3s ease;
1362
- border: none;
1363
- box-shadow: none;
1364
- cursor: pointer;
1365
- outline: none!important;
1366
-
1367
- &:first-child {
1368
- @include media('<tablet') {
1369
- display: none;
1370
- }
1371
- }
1372
-
1373
- span {
1374
- display: none;
1375
- }
1376
-
1377
- i {
1378
- color: #fff;
1379
- font-size: 20px;
1380
- &:before {
1381
- font-size: rem(20) !important;
1237
+ left: 0;
1238
+ border-radius: 2px 2px 0 0;
1239
+ background-color: $white;
1240
+ transform: translateY(1px);
1241
+ &__wrapper {
1242
+ width: 100%;
1243
+ display: flex;
1244
+ flex-direction: column;
1245
+ &:last-child {
1246
+ > div {
1247
+ border-bottom: 1px solid $border-form;
1382
1248
  }
1383
1249
  }
1384
-
1385
- &:hover, &:focus {
1386
- background-color: darken($img-main-color, 15%);
1387
- }
1388
-
1389
- // .wz-img-manager__module__header button:first-child
1390
- &:first-child {
1391
- border-radius: 3px 0 0 0;
1392
- }
1393
-
1394
- // .wz-img-manager__module__header button:last-child
1395
- &:last-child {
1396
- margin: 0 0 0 1px;
1397
- border-radius: 0 3px 0 0;
1398
- @include media('<tablet') {
1399
- margin: 0;
1400
- border-radius: 0;
1250
+ &__item {
1251
+ padding: 3px 15px;
1252
+ width: 100%;
1253
+ color: $img-second-color;
1254
+ font-size: rem(14);
1255
+ line-height: rem(24);
1256
+ border-left: 1px solid $border-form;
1257
+ border-right: 1px solid $border-form;
1258
+ border-top: 1px solid $border-form;
1259
+ transition: .3s ease;
1260
+ cursor: pointer;
1261
+ text-align: center;
1262
+ &:hover, &:focus, &.selected {
1263
+ background-color: $wizishop-blue;
1264
+ color: $white;
1401
1265
  }
1402
1266
  }
1403
1267
  }
1404
1268
  }
1405
1269
  }
1406
1270
  }
1271
+ image-cropper {
1272
+ max-height: 60vh;
1273
+ }$green: $really-bad-bad-bad-green !default;
1274
+ $primary: $primary-button !default;
1275
+ $light: $img-placeholder !default;
1276
+ $info: $wizishop-blue !default;
1277
+ $danger: $img-red-color !default;
1278
+ $dark: $img-dark !default;
1407
1279
 
1408
- .wz-img-manager__module .wz-block {
1409
- background-color: #fff;
1410
- box-shadow: 0 0.125rem 0.3125rem rgba(45,62,85,.1);
1411
- padding: 0 0.575rem 0 1.075rem;
1412
-
1413
- @include media('<tablet') {
1414
- padding: 0 20px;
1415
- }
1416
-
1417
- &--window {
1418
- padding: rem(30);
1419
- overflow: hidden;
1420
- max-width: 1450px;
1421
- margin: 0 auto;
1422
- }
1423
- }
1424
-
1425
- .wz-img-manager__module .wz-block:hover {
1426
- box-shadow: 0 0.125rem 0.3125rem rgba(45, 62, 85, 0.2);
1427
- }
1428
-
1429
- .nwb-snack-bar .notification {
1430
- z-index: 10002!important;
1431
- }
1432
-
1433
- .nwb-snack-bar .column {
1434
- box-sizing: border-box;
1435
- }
1280
+ $button-padding-vertical: rem(7) !default;
1281
+ $radius: rem(3) !default;
1436
1282
 
1283
+ $button-color: white!default;
1284
+ $button-hover-color: white !default;
1285
+ $button-focus-color: white !default;
1286
+ $button-active-color: white !default;
1287
+ $button-background-color: $primary !default;
1288
+ $button-disabled-background-color: $primary !default;
1289
+ $button-border-color: $primary-button-hover !default;
1290
+ $button-hover-border-color: $primary-button-hover !default;
1291
+ $button-active-border-color: $primary-button-hover !default;
1292
+ $button-focus-border-color: $primary-button-hover !default;
1293
+ $button-disabled-border-color: $primary-button-hover !default;
1437
1294
 
1295
+ $tag-radius: rem(20px)!default;
1438
1296
  .img-editor__infoSection__propertySEO__tooltips {
1439
1297
  i {
1440
1298
  font-size: rem(16);
@@ -3305,236 +3163,91 @@ $card-img-size-small: 140px;
3305
3163
  text-align: center;
3306
3164
  display: inline-block;
3307
3165
  transition: .3s ease;
3308
- pointer-events: none;
3309
- max-width: 100%;
3310
- }
3311
-
3312
- &__name {
3313
- margin: 0;
3314
- padding: 5px;
3315
- font-size: rem(12);
3316
- color: $img-grey-color;
3317
- line-height: rem(14);
3318
- text-align: center;
3319
- width: 100%;
3320
- min-width: 100%;
3321
- white-space: nowrap;
3322
- overflow: hidden;
3323
- text-overflow: ellipsis;
3324
- transition: .3s ease;
3325
- cursor: initial;
3326
- max-width: 100%;
3327
- position: absolute;
3328
- top: 0;
3329
- left: 0;
3330
- opacity: 0;
3331
- &:focus {
3332
- opacity: 1;
3333
- transform: translateY(-5px);
3334
- & + span {
3335
- opacity: 0;
3336
- }
3337
- }
3338
- }
3339
- }
3340
-
3341
- &:hover, &:focus {
3342
- z-index: 3;
3343
- .img-card {
3344
- &__nameContainer {
3345
- overflow: visible;
3346
- &__name {
3347
- color: #52AECD;
3348
- transform: translateY(-5px);
3349
- }
3350
- }
3351
-
3352
- &__container {
3353
- border-color: $wizishop-blue;
3354
- &__img {
3355
- transform: scale(1.02) translate(-50%,-50%);
3356
- }
3357
- &__config {
3358
- @include media('<tablet') {
3359
- display: none;
3360
- }
3361
- opacity: 1;
3362
- button {
3363
- transform: translateX(0);
3364
- &.size {
3365
- transition: transform .3s ease;
3366
- }
3367
- &.dl {
3368
- transition: transform .3s ease .15s;
3369
- }
3370
- &.edit {
3371
- transition: transform .3s ease .3s;
3372
- }
3373
- &.deleted {
3374
- transition: transform .3s ease .45s;
3375
- }
3376
- &.selected {
3377
- transition: transform .3s ease .6s;
3378
- }
3379
- }
3380
- }
3381
- }
3382
- }
3383
- }
3384
- }
3385
-
3386
- .wz-img-manager .addCssPriority .img-card .smallDisplay,.wz-img-manager .img-card .smallDisplay img {
3387
- width: $card-img-size-small;
3388
- height: $card-img-size-small;
3389
- }
3390
-
3391
- .wz-img-manager .addCssPriority .smallNameDisplay .img-card__nameContainer__name {
3392
- width: $card-img-size-small;
3393
- }
3394
- .wz-img-manager .wz-table {
3395
- width: 100%;
3396
-
3397
- &__head {
3398
- @include flexbox();
3399
- @include flex-flow(row nowrap);
3400
- width: 100%;
3401
- border-top: 1px solid $textarea-border-color;
3402
- border-bottom: 1px solid $textarea-border-color;
3403
- background-color: $gray-background;
3404
-
3405
- &__cell {
3406
- @include flexbox();
3407
- @include flex(1);
3408
- padding: 15px 20px;
3409
- font-size: 14px;
3410
- line-height: 20px;
3411
- color: $main-text;
3412
- font-weight: 600;
3413
-
3414
- &--checkbox {
3415
- @include flex(none);
3416
- width: 80px;
3417
- padding: 10px 20px 6px 20px;
3418
- > * {
3419
- transform: translateX(15px);
3420
- }
3421
- }
3422
-
3423
- &__search {
3424
- color: $main-text;
3425
- padding-right: 23px;
3426
- transition: background-image 0.3s ease-in-out;
3427
- cursor: text;
3428
-
3429
- &:hover {
3430
- color: $main-text;
3431
- }
3432
-
3433
- &--idle {
3434
- background: transparent
3435
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort' viewBox='0 0 320 512' class='svg-inline--fa fa-sort fa-w-10 fa-7x'%3E%3Cpath fill='currentColor' d='M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z'/%3E%3C/svg%3E")
3436
- center right / 14px 14px no-repeat;
3437
- transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3438
- cursor: pointer;
3439
-
3440
- &:hover {
3441
- transition: color 0.3s ease-in-out;
3442
- }
3443
- }
3444
-
3445
- &--up {
3446
- background: transparent
3447
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort-up' viewBox='0 0 320 512' class='svg-inline--fa fa-sort-up fa-w-10 fa-5x'%3E%3Cpath fill='currentColor' d='M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z'/%3E%3C/svg%3E")
3448
- center right / 14px 14px no-repeat;
3449
- transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3450
- cursor: pointer;
3451
-
3452
- &:hover {
3453
- transition: color 0.3s ease-in-out;
3454
- }
3455
- }
3456
-
3457
- &--down {
3458
- background: transparent
3459
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort-down' viewBox='0 0 320 512' class='svg-inline--fa fa-sort-down fa-w-10 fa-7x'%3E%3Cpath fill='currentColor' d='M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z'/%3E%3C/svg%3E")
3460
- center right / 14px 14px no-repeat;
3461
- transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3462
- cursor: pointer;
3166
+ pointer-events: none;
3167
+ max-width: 100%;
3168
+ }
3463
3169
 
3464
- &:hover {
3465
- transition: color 0.3s ease-in-out;
3170
+ &__name {
3171
+ margin: 0;
3172
+ padding: 5px;
3173
+ font-size: rem(12);
3174
+ color: $img-grey-color;
3175
+ line-height: rem(14);
3176
+ text-align: center;
3177
+ width: 100%;
3178
+ min-width: 100%;
3179
+ white-space: nowrap;
3180
+ overflow: hidden;
3181
+ text-overflow: ellipsis;
3182
+ transition: .3s ease;
3183
+ cursor: initial;
3184
+ max-width: 100%;
3185
+ position: absolute;
3186
+ top: 0;
3187
+ left: 0;
3188
+ opacity: 0;
3189
+ &:focus {
3190
+ opacity: 1;
3191
+ transform: translateY(-5px);
3192
+ & + span {
3193
+ opacity: 0;
3466
3194
  }
3467
3195
  }
3468
3196
  }
3469
-
3470
- &--center--left {
3471
- @include align-items(center);
3472
- @include justify-content(left);
3473
- }
3474
- &--center--center {
3475
- @include align-items(center);
3476
- @include justify-content(center);
3477
- }
3478
- &--center--right {
3479
- @include align-items(center);
3480
- @include justify-content(right);
3481
- }
3482
3197
  }
3483
- }
3484
-
3485
- // TODO delete __search
3486
- &__search {
3487
- height: 100px;
3488
- margin-top: 10px;
3489
- }
3490
3198
 
3491
- &__body {
3492
- width: 100%;
3493
- margin-top: -10px;
3199
+ &:hover, &:focus {
3200
+ z-index: 3;
3201
+ .img-card {
3202
+ &__nameContainer {
3203
+ overflow: visible;
3204
+ &__name {
3205
+ color: #52AECD;
3206
+ transform: translateY(-5px);
3207
+ }
3208
+ }
3494
3209
 
3495
- &__loader {
3496
- position: relative;
3497
- min-height: 200px;
3210
+ &__container {
3211
+ border-color: $wizishop-blue;
3212
+ &__img {
3213
+ transform: scale(1.02) translate(-50%,-50%);
3214
+ }
3215
+ &__config {
3216
+ @include media('<tablet') {
3217
+ display: none;
3218
+ }
3219
+ opacity: 1;
3220
+ button {
3221
+ transform: translateX(0);
3222
+ &.size {
3223
+ transition: transform .3s ease;
3224
+ }
3225
+ &.dl {
3226
+ transition: transform .3s ease .15s;
3227
+ }
3228
+ &.edit {
3229
+ transition: transform .3s ease .3s;
3230
+ }
3231
+ &.deleted {
3232
+ transition: transform .3s ease .45s;
3233
+ }
3234
+ &.selected {
3235
+ transition: transform .3s ease .6s;
3236
+ }
3237
+ }
3238
+ }
3239
+ }
3240
+ }
3498
3241
  }
3242
+ }
3499
3243
 
3500
- &__line {
3501
- @include flexbox();
3502
- @include flex-flow(row nowrap);
3503
- width: 100%;
3504
- border-bottom: 1px solid $textarea-border-color;
3505
-
3506
- &__cell {
3507
- @include flexbox();
3508
- @include flex(1);
3509
- padding: 20px 20px 20px 20px;
3510
- font-size: 14px;
3511
- line-height: 25px;
3512
- color: $secondary-color;
3513
-
3514
- &--checkbox {
3515
- @include flexbox();
3516
- @include flex(none);
3517
- @include justify-content(center);
3518
- @include align-items(center);
3519
- width: 80px;
3520
- padding: 8px 20px;
3521
- }
3244
+ .wz-img-manager .addCssPriority .img-card .smallDisplay,.wz-img-manager .img-card .smallDisplay img {
3245
+ width: $card-img-size-small;
3246
+ height: $card-img-size-small;
3247
+ }
3522
3248
 
3523
- &--center--left {
3524
- @include align-items(center);
3525
- @include justify-content(left);
3526
- }
3527
- &--center--center {
3528
- @include align-items(center);
3529
- @include justify-content(center);
3530
- }
3531
- &--center--right {
3532
- @include align-items(center);
3533
- @include justify-content(right);
3534
- }
3535
- }
3536
- }
3537
- }
3249
+ .wz-img-manager .addCssPriority .smallNameDisplay .img-card__nameContainer__name {
3250
+ width: $card-img-size-small;
3538
3251
  }
3539
3252
 
3540
3253
 
@@ -3798,32 +3511,177 @@ $card-img-size-small: 140px;
3798
3511
  &:first-child {
3799
3512
  border-width: 1px 0 1px;
3800
3513
  }
3801
- &:hover,
3802
- &:focus {
3803
- background-color: $gray-background;
3804
- color: $main-text;
3514
+ &:hover,
3515
+ &:focus {
3516
+ background-color: $gray-background;
3517
+ color: $main-text;
3518
+ }
3519
+ > div {
3520
+ padding: 0 10px;
3521
+ &.selected {
3522
+ background-color: $gray-background;
3523
+ color: $main-text;
3524
+ }
3525
+ }
3526
+ }
3527
+ &__empty {
3528
+ display: flex;
3529
+ width: 100%;
3530
+ justify-content: center;
3531
+ align-items: center;
3532
+ padding: 10px;
3533
+ span {
3534
+ font-size: rem(16);
3535
+ font-weight: 400;
3536
+ text-align: center;
3537
+ color: $second-color;
3538
+ display: inline-block;
3539
+ line-height: rem(25);
3540
+ }
3541
+ }
3542
+ }
3543
+ }
3544
+ }
3545
+ .wz-img-manager .wz-table {
3546
+ width: 100%;
3547
+
3548
+ &__head {
3549
+ @include flexbox();
3550
+ @include flex-flow(row nowrap);
3551
+ width: 100%;
3552
+ border-top: 1px solid $textarea-border-color;
3553
+ border-bottom: 1px solid $textarea-border-color;
3554
+ background-color: $gray-background;
3555
+
3556
+ &__cell {
3557
+ @include flexbox();
3558
+ @include flex(1);
3559
+ padding: 15px 20px;
3560
+ font-size: 14px;
3561
+ line-height: 20px;
3562
+ color: $main-text;
3563
+ font-weight: 600;
3564
+
3565
+ &--checkbox {
3566
+ @include flex(none);
3567
+ width: 80px;
3568
+ padding: 10px 20px 6px 20px;
3569
+ > * {
3570
+ transform: translateX(15px);
3571
+ }
3572
+ }
3573
+
3574
+ &__search {
3575
+ color: $main-text;
3576
+ padding-right: 23px;
3577
+ transition: background-image 0.3s ease-in-out;
3578
+ cursor: text;
3579
+
3580
+ &:hover {
3581
+ color: $main-text;
3582
+ }
3583
+
3584
+ &--idle {
3585
+ background: transparent
3586
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort' viewBox='0 0 320 512' class='svg-inline--fa fa-sort fa-w-10 fa-7x'%3E%3Cpath fill='currentColor' d='M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z'/%3E%3C/svg%3E")
3587
+ center right / 14px 14px no-repeat;
3588
+ transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3589
+ cursor: pointer;
3590
+
3591
+ &:hover {
3592
+ transition: color 0.3s ease-in-out;
3593
+ }
3594
+ }
3595
+
3596
+ &--up {
3597
+ background: transparent
3598
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort-up' viewBox='0 0 320 512' class='svg-inline--fa fa-sort-up fa-w-10 fa-5x'%3E%3Cpath fill='currentColor' d='M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z'/%3E%3C/svg%3E")
3599
+ center right / 14px 14px no-repeat;
3600
+ transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3601
+ cursor: pointer;
3602
+
3603
+ &:hover {
3604
+ transition: color 0.3s ease-in-out;
3605
+ }
3606
+ }
3607
+
3608
+ &--down {
3609
+ background: transparent
3610
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort-down' viewBox='0 0 320 512' class='svg-inline--fa fa-sort-down fa-w-10 fa-7x'%3E%3Cpath fill='currentColor' d='M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z'/%3E%3C/svg%3E")
3611
+ center right / 14px 14px no-repeat;
3612
+ transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3613
+ cursor: pointer;
3614
+
3615
+ &:hover {
3616
+ transition: color 0.3s ease-in-out;
3617
+ }
3618
+ }
3619
+ }
3620
+
3621
+ &--center--left {
3622
+ @include align-items(center);
3623
+ @include justify-content(left);
3624
+ }
3625
+ &--center--center {
3626
+ @include align-items(center);
3627
+ @include justify-content(center);
3628
+ }
3629
+ &--center--right {
3630
+ @include align-items(center);
3631
+ @include justify-content(right);
3632
+ }
3633
+ }
3634
+ }
3635
+
3636
+ // TODO delete __search
3637
+ &__search {
3638
+ height: 100px;
3639
+ margin-top: 10px;
3640
+ }
3641
+
3642
+ &__body {
3643
+ width: 100%;
3644
+ margin-top: -10px;
3645
+
3646
+ &__loader {
3647
+ position: relative;
3648
+ min-height: 200px;
3649
+ }
3650
+
3651
+ &__line {
3652
+ @include flexbox();
3653
+ @include flex-flow(row nowrap);
3654
+ width: 100%;
3655
+ border-bottom: 1px solid $textarea-border-color;
3656
+
3657
+ &__cell {
3658
+ @include flexbox();
3659
+ @include flex(1);
3660
+ padding: 20px 20px 20px 20px;
3661
+ font-size: 14px;
3662
+ line-height: 25px;
3663
+ color: $secondary-color;
3664
+
3665
+ &--checkbox {
3666
+ @include flexbox();
3667
+ @include flex(none);
3668
+ @include justify-content(center);
3669
+ @include align-items(center);
3670
+ width: 80px;
3671
+ padding: 8px 20px;
3672
+ }
3673
+
3674
+ &--center--left {
3675
+ @include align-items(center);
3676
+ @include justify-content(left);
3805
3677
  }
3806
- > div {
3807
- padding: 0 10px;
3808
- &.selected {
3809
- background-color: $gray-background;
3810
- color: $main-text;
3811
- }
3678
+ &--center--center {
3679
+ @include align-items(center);
3680
+ @include justify-content(center);
3812
3681
  }
3813
- }
3814
- &__empty {
3815
- display: flex;
3816
- width: 100%;
3817
- justify-content: center;
3818
- align-items: center;
3819
- padding: 10px;
3820
- span {
3821
- font-size: rem(16);
3822
- font-weight: 400;
3823
- text-align: center;
3824
- color: $second-color;
3825
- display: inline-block;
3826
- line-height: rem(25);
3682
+ &--center--right {
3683
+ @include align-items(center);
3684
+ @include justify-content(right);
3827
3685
  }
3828
3686
  }
3829
3687
  }
@@ -4385,26 +4243,168 @@ $card-img-size-small: 140px;
4385
4243
  }
4386
4244
  }
4387
4245
  }
4388
- $green: $really-bad-bad-bad-green !default;
4389
- $primary: $primary-button !default;
4390
- $light: $img-placeholder !default;
4391
- $info: $wizishop-blue !default;
4392
- $danger: $img-red-color !default;
4393
- $dark: $img-dark !default;
4246
+ .wz-img-manager {
4394
4247
 
4395
- $button-padding-vertical: rem(7) !default;
4396
- $radius: rem(3) !default;
4248
+ &__selectionHandler {
4249
+ margin-top: -50px;
4250
+ }
4251
+
4252
+ &__module {
4253
+ position: fixed;
4254
+ bottom: 0;
4255
+ left: 0;
4256
+ width: 100%;
4257
+ height: 0;
4258
+ transition: height .3s ease;
4259
+ z-index: 2147483647; // snackbar 10
4260
+ transform: translateZ(0);
4261
+
4262
+ &:before {
4263
+ content: '';
4264
+ display: block;
4265
+ position: absolute;
4266
+ top: 0;
4267
+ left: 0;
4268
+ width: 100%;
4269
+ height: 3px;
4270
+ background-color: $img-main-color;
4271
+ z-index: 999;
4272
+ }
4273
+
4274
+ &--closed {
4275
+ height: 0;
4276
+ }
4277
+
4278
+ // .wz-img-manager__module--small
4279
+ &--small {
4280
+ height: 320px;
4281
+ @include media('<tablet') {
4282
+ height: calc(100vh - 105px);
4283
+ }
4284
+ }
4285
+
4286
+ // .wz-img-manager__module--full
4287
+ &--full {
4288
+ height: calc(100vh - 50px);
4289
+ @include media('<tablet') {
4290
+ height: calc(100vh - 105px);
4291
+ }
4292
+ }
4293
+
4294
+ // .wz-img-manager__module--window
4295
+ &--window {
4296
+ position: relative;
4297
+ width: auto;
4298
+ bottom: unset;
4299
+ left: unset;
4300
+ z-index: 29!important;
4301
+ height: auto!important;
4302
+ padding-bottom: 6.25rem;
4303
+
4304
+ &:before {
4305
+ content: none;
4306
+ height: 0px;
4307
+ }
4308
+
4309
+ // .wz-img-manager__module--edit
4310
+ &--edit {
4311
+ .wrapper-tabs {
4312
+ display: none;
4313
+ }
4314
+ }
4315
+ }
4316
+
4317
+ // .wz-img-manager__module__header
4318
+ &__header {
4319
+ position: absolute;
4320
+ bottom: 100%;
4321
+ right: 30px;
4322
+ width: 101px;
4323
+
4324
+ @include media('<tablet') {
4325
+ width: 45px;
4326
+ right: 0;
4327
+ }
4328
+
4329
+ // .wz-img-manager__module__header button
4330
+ button {
4331
+ width: 45px;
4332
+ height: 35px;
4333
+ background-color: $img-main-color;
4334
+ transition: background-color .3s ease;
4335
+ border: none;
4336
+ box-shadow: none;
4337
+ cursor: pointer;
4338
+ outline: none!important;
4339
+
4340
+ &:first-child {
4341
+ @include media('<tablet') {
4342
+ display: none;
4343
+ }
4344
+ }
4345
+
4346
+ span {
4347
+ display: none;
4348
+ }
4349
+
4350
+ i {
4351
+ color: #fff;
4352
+ font-size: 20px;
4353
+ &:before {
4354
+ font-size: rem(20) !important;
4355
+ }
4356
+ }
4357
+
4358
+ &:hover, &:focus {
4359
+ background-color: darken($img-main-color, 15%);
4360
+ }
4361
+
4362
+ // .wz-img-manager__module__header button:first-child
4363
+ &:first-child {
4364
+ border-radius: 3px 0 0 0;
4365
+ }
4366
+
4367
+ // .wz-img-manager__module__header button:last-child
4368
+ &:last-child {
4369
+ margin: 0 0 0 1px;
4370
+ border-radius: 0 3px 0 0;
4371
+ @include media('<tablet') {
4372
+ margin: 0;
4373
+ border-radius: 0;
4374
+ }
4375
+ }
4376
+ }
4377
+ }
4378
+ }
4379
+ }
4380
+
4381
+ .wz-img-manager__module .wz-block {
4382
+ background-color: #fff;
4383
+ box-shadow: 0 0.125rem 0.3125rem rgba(45,62,85,.1);
4384
+ padding: 0 0.575rem 0 1.075rem;
4385
+
4386
+ @include media('<tablet') {
4387
+ padding: 0 20px;
4388
+ }
4389
+
4390
+ &--window {
4391
+ padding: rem(30);
4392
+ overflow: hidden;
4393
+ max-width: 1450px;
4394
+ margin: 0 auto;
4395
+ }
4396
+ }
4397
+
4398
+ .wz-img-manager__module .wz-block:hover {
4399
+ box-shadow: 0 0.125rem 0.3125rem rgba(45, 62, 85, 0.2);
4400
+ }
4401
+
4402
+ .nwb-snack-bar .notification {
4403
+ z-index: 10002!important;
4404
+ }
4405
+
4406
+ .nwb-snack-bar .column {
4407
+ box-sizing: border-box;
4408
+ }
4397
4409
 
4398
- $button-color: white!default;
4399
- $button-hover-color: white !default;
4400
- $button-focus-color: white !default;
4401
- $button-active-color: white !default;
4402
- $button-background-color: $primary !default;
4403
- $button-disabled-background-color: $primary !default;
4404
- $button-border-color: $primary-button-hover !default;
4405
- $button-hover-border-color: $primary-button-hover !default;
4406
- $button-active-border-color: $primary-button-hover !default;
4407
- $button-focus-border-color: $primary-button-hover !default;
4408
- $button-disabled-border-color: $primary-button-hover !default;
4409
4410
 
4410
- $tag-radius: rem(20px)!default;
Binary file