@wizishop/img-manager 0.2.89 → 0.2.92

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.92",
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);
@@ -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) !important;
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