@wizishop/img-manager 0.2.74 → 0.2.75

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.74",
3
+ "version": "0.2.75",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
Binary file
@@ -2154,113 +2154,63 @@ image-cropper {
2154
2154
  .trash {
2155
2155
  display: none!important;
2156
2156
  }
2157
- .wz-img-manager .is-checkradio[type='checkbox'] {
2158
- outline: 0 !important;
2159
- & + label {
2160
- font-size: rem(14);
2161
- line-height: rem(24);
2162
- color: $input-radio-color-label;
2163
- padding-left: 26px;
2164
- outline: 0 !important;
2165
- &:before {
2166
- width: 16px;
2167
- height: 16px;
2168
- border: 1px solid $border-color;
2169
- top: 4px;
2170
- transition: all 0.3s ease-in-out;
2171
- }
2172
- &:after {
2173
- top: 6.3px !important;
2174
- left: 3px !important;
2175
- width: 10px;
2176
- height: 12px;
2177
- border: none !important;
2178
- background: transparent
2179
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='check' viewBox='0 0 512 512' class='svg-inline--fa fa-check fa-w-16 fa-5x'%3E%3Cpath fill='%23ffffff' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E")
2180
- center center / 8px 8px no-repeat;
2181
- transform: scale(1) translateY(0px) translateX(0px) rotate(0deg) !important;
2182
- transition: all 0.3s ease-in-out;
2183
- }
2184
- &:hover,
2185
- &:focus {
2186
- &:before {
2187
- border-color: $input-active-color !important;
2157
+ $default-color-p-alert: #1e5568;
2158
+ $success-color-p-alert: #11552e;
2159
+ $warning-color-p-alert: #3a0505;
2160
+ $primary-button: #e95656;
2161
+ $link-color: #52aecd;
2162
+ $green-color: #2ecc71;
2163
+
2164
+ .wz-alert {
2165
+ width: 100%;
2166
+ background-color: transparentize($link-color, 0.85);
2167
+ color: $link-color;
2168
+ border-radius: 3px;
2169
+ display: flex;
2170
+ flex-wrap: nowrap;
2171
+ justify-content: space-between;
2172
+ padding: 20px;
2173
+ &.success {
2174
+ background-color: transparentize($green-color, 0.85);
2175
+ p {
2176
+ color: $success-color-p-alert;
2177
+ > * {
2178
+ color: $success-color-p-alert;
2188
2179
  }
2189
2180
  }
2190
- &:before,
2191
- &:after {
2192
- outline: 0 !important;
2181
+ i {
2182
+ color: $green-color;
2193
2183
  }
2194
2184
  }
2195
- &:hover {
2196
- & + label {
2197
- color: $input-radio-color-active-label;
2198
- &:before {
2199
- border-color: $input-active-color !important;
2200
- }
2201
- &:after {
2202
- border-color: $white !important;
2185
+ &.warning {
2186
+ background-color: transparentize($primary-button, 0.85);
2187
+ p {
2188
+ color: $warning-color-p-alert;
2189
+ > * {
2190
+ color: $warning-color-p-alert;
2203
2191
  }
2204
2192
  }
2205
- &:not([disabled]) {
2206
- & + label {
2207
- &:before {
2208
- border-color: $input-active-color !important;
2209
- }
2210
- }
2193
+ i {
2194
+ color: $primary-button;
2211
2195
  }
2212
2196
  }
2213
- &:checked + label {
2214
- color: $input-radio-color-active-label;
2215
- &:before {
2216
- border: 1px solid $input-active-color;
2217
- background-color: $input-active-color;
2218
- transition: all 0.3s ease-in-out;
2219
- }
2220
- &:after {
2221
- left: 7px;
2222
- top: 8px;
2223
- transition: all 0.3s ease-in-out;
2197
+ p {
2198
+ width: 100%;
2199
+ font-size: rem(14);
2200
+ line-height: rem(25);
2201
+ margin: 0;
2202
+ padding: 0;
2203
+ color: $default-color-p-alert;
2204
+ > * {
2205
+ color: $default-color-p-alert;
2224
2206
  }
2225
2207
  }
2226
- }
2227
-
2228
- .wz-img-manager .field {
2229
- &__row {
2230
- min-width: 100%;
2231
- margin: 0 0 10px;
2232
- }
2233
- &--nowrap {
2234
- display: inline-block;
2208
+ i {
2235
2209
  width: auto;
2236
- min-width: 0;
2237
- margin: 0 10px 10px 0;
2238
- .field {
2239
- &__row {
2240
- width: auto;
2241
- display: inline-block;
2242
- margin: 0;
2243
- }
2244
- }
2245
- }
2246
- &.alone {
2247
- .is-checkradio[type='checkbox'] {
2248
- & + label {
2249
- padding: 0;
2250
- &:before {
2251
- border-width: 1px;
2252
- width: 16px;
2253
- height: 16px;
2254
- border-radius: 2px;
2255
- }
2256
- }
2257
- &:checked + label {
2258
- &:after {
2259
- top: 7px;
2260
- transform: scale(1.1) translateY(1px) translateX(6px) rotate(45deg);
2261
- }
2262
- }
2263
- }
2210
+ margin: 0 10px 0 0;
2211
+ color: inherit;
2212
+ font-size: rem(14);
2213
+ line-height: rem(25);
2264
2214
  }
2265
2215
  }
2266
2216
  .wz-img-manager {
@@ -2401,121 +2351,116 @@ image-cropper {
2401
2351
  .nwb-snack-bar .column {
2402
2352
  box-sizing: border-box;
2403
2353
  }
2404
- .wz-img-manager .dropdownWizi {
2405
- padding: 10px;
2406
-
2407
- &.is-hoverable {
2408
- .rotate {
2409
- i {
2410
- @include simple_transition();
2411
- transform: rotate(90deg);
2412
- cursor: pointer;
2413
- }
2414
- }
2415
- &:hover,
2416
- &:active {
2417
- .rotate:not(.rotate--disable) {
2418
- i {
2419
- @include simple_transition();
2420
- transform: rotate(0deg);
2421
- }
2422
- }
2423
- }
2354
+ .wz-img-manager .is-checkradio[type='checkbox'] {
2355
+ outline: 0 !important;
2356
+ & + label {
2357
+ font-size: rem(14);
2358
+ line-height: rem(24);
2359
+ color: $input-radio-color-label;
2360
+ padding-left: 26px;
2361
+ outline: 0 !important;
2362
+ &:before {
2363
+ width: 16px;
2364
+ height: 16px;
2365
+ border: 1px solid $border-color;
2366
+ top: 4px;
2367
+ transition: all 0.3s ease-in-out;
2424
2368
  }
2425
-
2426
- &:not(.is-hoverable) {
2427
- .rotate {
2428
- i {
2429
- @include simple_transition();
2430
- transform: rotate(90deg);
2431
- }
2432
- }
2369
+ &:after {
2370
+ top: 6.3px !important;
2371
+ left: 3px !important;
2372
+ width: 10px;
2373
+ height: 12px;
2374
+ border: none !important;
2375
+ background: transparent
2376
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='check' viewBox='0 0 512 512' class='svg-inline--fa fa-check fa-w-16 fa-5x'%3E%3Cpath fill='%23ffffff' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E")
2377
+ center center / 8px 8px no-repeat;
2378
+ transform: scale(1) translateY(0px) translateX(0px) rotate(0deg) !important;
2379
+ transition: all 0.3s ease-in-out;
2433
2380
  }
2434
-
2435
- .dropdown-item.active-item {
2436
- background-color: #F5F8FA;
2437
-
2438
- p, i {
2439
- color: #1D2A3B;
2440
- }
2381
+ &:hover,
2382
+ &:focus {
2383
+ &:before {
2384
+ border-color: $input-active-color !important;
2385
+ }
2441
2386
  }
2442
-
2443
- .dropdown-item {
2444
- margin-left: 10px;
2445
- margin-right: 10px;
2446
- cursor: pointer;
2447
-
2448
- i {
2449
- margin-right: 8px;
2450
- }
2451
- p, i {
2452
- color: #526384;
2453
- display: inline-block;
2454
- }
2455
-
2456
- p {
2457
- margin-top: 0;
2458
- margin-bottom: 0;
2459
- }
2460
-
2461
- > * {
2462
- -webkit-touch-callout: none; /* iOS Safari */
2463
- -webkit-user-select: none; /* Safari */
2464
- -khtml-user-select: none; /* Konqueror HTML */
2465
- -moz-user-select: none; /* Old versions of Firefox */
2466
- -ms-user-select: none; /* Internet Explorer/Edge */
2467
- user-select: none; /* Non-prefixed version, currently
2468
- supported by Chrome, Edge, Opera and Firefox */
2469
- }
2470
-
2471
- &:hover {
2472
- background-color: #F5F8FA;
2473
- p, i {
2474
- color: $img-main-color;
2475
- }
2387
+ &:before,
2388
+ &:after {
2389
+ outline: 0 !important;
2390
+ }
2391
+ }
2392
+ &:hover {
2393
+ & + label {
2394
+ color: $input-radio-color-active-label;
2395
+ &:before {
2396
+ border-color: $input-active-color !important;
2397
+ }
2398
+ &:after {
2399
+ border-color: $white !important;
2400
+ }
2401
+ }
2402
+ &:not([disabled]) {
2403
+ & + label {
2404
+ &:before {
2405
+ border-color: $input-active-color !important;
2476
2406
  }
2407
+ }
2408
+ }
2409
+ }
2410
+ &:checked + label {
2411
+ color: $input-radio-color-active-label;
2412
+ &:before {
2413
+ border: 1px solid $input-active-color;
2414
+ background-color: $input-active-color;
2415
+ transition: all 0.3s ease-in-out;
2416
+ }
2417
+ &:after {
2418
+ left: 7px;
2419
+ top: 8px;
2420
+ transition: all 0.3s ease-in-out;
2477
2421
  }
2422
+ }
2423
+ }
2478
2424
 
2479
- .dropdown-content {
2425
+ .wz-img-manager .field {
2426
+ &__row {
2427
+ min-width: 100%;
2428
+ margin: 0 0 10px;
2429
+ }
2430
+ &--nowrap {
2431
+ display: inline-block;
2432
+ width: auto;
2433
+ min-width: 0;
2434
+ margin: 0 10px 10px 0;
2435
+ .field {
2436
+ &__row {
2437
+ width: auto;
2438
+ display: inline-block;
2439
+ margin: 0;
2440
+ }
2441
+ }
2442
+ }
2443
+ &.alone {
2444
+ .is-checkradio[type='checkbox'] {
2445
+ & + label {
2446
+ padding: 0;
2480
2447
  &:before {
2481
- content: '';
2482
- display: block;
2483
- position: absolute;
2484
- bottom: 100%;
2485
- left: 90%;
2486
- transform: translateX(-50%) translateY(5px);
2487
- width: 0;
2488
- height: 0;
2489
- border-style: solid;
2490
- border-width: 0 6px 8px 6px;
2491
- border-color: transparent transparent #fff transparent;
2492
- z-index: 2;
2448
+ border-width: 1px;
2449
+ width: 16px;
2450
+ height: 16px;
2451
+ border-radius: 2px;
2493
2452
  }
2453
+ }
2454
+ &:checked + label {
2494
2455
  &:after {
2495
- content: '';
2496
- display: block;
2497
- position: absolute;
2498
- bottom: 100%;
2499
- left: 90%;
2500
- transform: translateX(-50%) translateY(4px);
2501
- width: 0;
2502
- height: 0;
2503
- border-style: solid;
2504
- border-width: 0 6px 8px 6px;
2505
- border-color: transparent transparent #dddddd transparent;
2506
- opacity: 0.5;
2507
- z-index: 1;
2456
+ top: 7px;
2457
+ transform: scale(1.1) translateY(1px) translateX(6px) rotate(45deg);
2508
2458
  }
2459
+ }
2509
2460
  }
2510
-
2511
- .dropdown-menu {
2512
- top: 80%;
2513
- }
2461
+ }
2514
2462
  }
2515
-
2516
- .dropdownWizi:not(.is-hoverable) {
2517
- cursor: not-allowed;
2518
- }// .pexels-lib
2463
+ // .pexels-lib
2519
2464
  //.wz-img-manager useful to keep the css priority
2520
2465
  .wz-img-manager .pexels-lib {
2521
2466
  width: 100%;
@@ -3137,66 +3082,121 @@ image-cropper {
3137
3082
  padding: 0;
3138
3083
  background-color: transparent;
3139
3084
  }
3140
- $default-color-p-alert: #1e5568;
3141
- $success-color-p-alert: #11552e;
3142
- $warning-color-p-alert: #3a0505;
3143
- $primary-button: #e95656;
3144
- $link-color: #52aecd;
3145
- $green-color: #2ecc71;
3085
+ .wz-img-manager .dropdownWizi {
3086
+ padding: 10px;
3146
3087
 
3147
- .wz-alert {
3148
- width: 100%;
3149
- background-color: transparentize($link-color, 0.85);
3150
- color: $link-color;
3151
- border-radius: 3px;
3152
- display: flex;
3153
- flex-wrap: nowrap;
3154
- justify-content: space-between;
3155
- padding: 20px;
3156
- &.success {
3157
- background-color: transparentize($green-color, 0.85);
3158
- p {
3159
- color: $success-color-p-alert;
3160
- > * {
3161
- color: $success-color-p-alert;
3162
- }
3088
+ &.is-hoverable {
3089
+ .rotate {
3090
+ i {
3091
+ @include simple_transition();
3092
+ transform: rotate(90deg);
3093
+ cursor: pointer;
3094
+ }
3095
+ }
3096
+ &:hover,
3097
+ &:active {
3098
+ .rotate:not(.rotate--disable) {
3099
+ i {
3100
+ @include simple_transition();
3101
+ transform: rotate(0deg);
3102
+ }
3103
+ }
3104
+ }
3163
3105
  }
3164
- i {
3165
- color: $green-color;
3106
+
3107
+ &:not(.is-hoverable) {
3108
+ .rotate {
3109
+ i {
3110
+ @include simple_transition();
3111
+ transform: rotate(90deg);
3112
+ }
3113
+ }
3166
3114
  }
3167
- }
3168
- &.warning {
3169
- background-color: transparentize($primary-button, 0.85);
3170
- p {
3171
- color: $warning-color-p-alert;
3172
- > * {
3173
- color: $warning-color-p-alert;
3174
- }
3115
+
3116
+ .dropdown-item.active-item {
3117
+ background-color: #F5F8FA;
3118
+
3119
+ p, i {
3120
+ color: #1D2A3B;
3121
+ }
3175
3122
  }
3176
- i {
3177
- color: $primary-button;
3123
+
3124
+ .dropdown-item {
3125
+ margin-left: 10px;
3126
+ margin-right: 10px;
3127
+ cursor: pointer;
3128
+
3129
+ i {
3130
+ margin-right: 8px;
3131
+ }
3132
+ p, i {
3133
+ color: #526384;
3134
+ display: inline-block;
3135
+ }
3136
+
3137
+ p {
3138
+ margin-top: 0;
3139
+ margin-bottom: 0;
3140
+ }
3141
+
3142
+ > * {
3143
+ -webkit-touch-callout: none; /* iOS Safari */
3144
+ -webkit-user-select: none; /* Safari */
3145
+ -khtml-user-select: none; /* Konqueror HTML */
3146
+ -moz-user-select: none; /* Old versions of Firefox */
3147
+ -ms-user-select: none; /* Internet Explorer/Edge */
3148
+ user-select: none; /* Non-prefixed version, currently
3149
+ supported by Chrome, Edge, Opera and Firefox */
3150
+ }
3151
+
3152
+ &:hover {
3153
+ background-color: #F5F8FA;
3154
+ p, i {
3155
+ color: $img-main-color;
3156
+ }
3157
+ }
3178
3158
  }
3179
- }
3180
- p {
3181
- width: 100%;
3182
- font-size: rem(14);
3183
- line-height: rem(25);
3184
- margin: 0;
3185
- padding: 0;
3186
- color: $default-color-p-alert;
3187
- > * {
3188
- color: $default-color-p-alert;
3159
+
3160
+ .dropdown-content {
3161
+ &:before {
3162
+ content: '';
3163
+ display: block;
3164
+ position: absolute;
3165
+ bottom: 100%;
3166
+ left: 90%;
3167
+ transform: translateX(-50%) translateY(5px);
3168
+ width: 0;
3169
+ height: 0;
3170
+ border-style: solid;
3171
+ border-width: 0 6px 8px 6px;
3172
+ border-color: transparent transparent #fff transparent;
3173
+ z-index: 2;
3174
+ }
3175
+ &:after {
3176
+ content: '';
3177
+ display: block;
3178
+ position: absolute;
3179
+ bottom: 100%;
3180
+ left: 90%;
3181
+ transform: translateX(-50%) translateY(4px);
3182
+ width: 0;
3183
+ height: 0;
3184
+ border-style: solid;
3185
+ border-width: 0 6px 8px 6px;
3186
+ border-color: transparent transparent #dddddd transparent;
3187
+ opacity: 0.5;
3188
+ z-index: 1;
3189
+ }
3190
+ }
3191
+
3192
+ .dropdown-menu {
3193
+ top: 80%;
3189
3194
  }
3190
- }
3191
- i {
3192
- width: auto;
3193
- margin: 0 10px 0 0;
3194
- color: inherit;
3195
- font-size: rem(14);
3196
- line-height: rem(25);
3197
- }
3198
3195
  }
3199
- .wz-img-manager .img-editor {
3196
+
3197
+ .dropdownWizi:not(.is-hoverable) {
3198
+ cursor: not-allowed;
3199
+ }.wz-img-manager .img-editor {
3200
3200
  &__scroll {
3201
3201
  position: relative;
3202
3202
  height: 100%;
Binary file