@wizishop/img-manager 0.2.41 → 0.2.42

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.
@@ -738,6 +738,10 @@ $base-font: 'Work Sans', helvetica !default;@mixin simple_transition($type: null
738
738
  min-height: 145px;
739
739
  }
740
740
 
741
+ .wz-img-manager .canva .smallScroll {
742
+ min-height: 238px;
743
+ }
744
+
741
745
  .wz-img-manager .dropDownShadow {
742
746
  background-color: white;
743
747
  border-radius: 4px;
@@ -780,18 +784,21 @@ $base-font: 'Work Sans', helvetica !default;@mixin simple_transition($type: null
780
784
  display: none;
781
785
  }
782
786
  }
787
+
788
+ .wz-img-manager .wz-img-manager__module:not(.wz-img-manager__module--window) .img-tabs__tabsThird > .column {
789
+ padding: 0;
790
+ }
791
+
792
+ .wz-img-manager .wz-img-manager__module:not(.wz-img-manager__module--window) .pexels-lib__scroll .ng-scroll-content {
793
+ padding-right: 20px;
794
+ }
795
+
796
+ .tabs--notWindow ul {
797
+ transform: translateY(5px);
798
+ }
783
799
  .img-upload {
784
800
  position: relative;
785
- background-position: 0 0, 0 0, 100% 0, 0 100%;
786
- background-size: 1px 100%, 100% 1px, 1px 100% , 100% 1px;
787
- background-repeat: no-repeat;
788
- background-image:
789
- repeating-linear-gradient(0deg, $border-upload-color, $border-upload-color 10px, transparent 10px, transparent 20px), // left
790
- repeating-linear-gradient(90deg, $border-upload-color, $border-upload-color 10px, transparent 10px, transparent 20px), // top
791
- repeating-linear-gradient(180deg, $border-upload-color, $border-upload-color 10px, transparent 10px, transparent 20px), // right
792
- repeating-linear-gradient(270deg, $border-upload-color, $border-upload-color 10px, transparent 10px, transparent 20px) // bottom
793
- ;
794
- border-image: repeating-linear-gradient(0deg, $border-upload-color, $border-upload-color 10px, transparent 10px, transparent 20px);
801
+ background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='3' ry='3' stroke='%2352AECD' stroke-width='2' stroke-dasharray='4%2c 8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
795
802
  border-radius: 3px;
796
803
  &:before {
797
804
  content: '';
@@ -1043,6 +1050,9 @@ $base-font: 'Work Sans', helvetica !default;@mixin simple_transition($type: null
1043
1050
  width: 100%;
1044
1051
  display: flex;
1045
1052
  flex-wrap: wrap;
1053
+ &--padding {
1054
+ padding-right: 20px;
1055
+ }
1046
1056
  }
1047
1057
  }
1048
1058
  }
@@ -1091,6 +1101,39 @@ $card-img-size-small: 140px;
1091
1101
  }
1092
1102
  }
1093
1103
 
1104
+ &__valid {
1105
+ display: flex;
1106
+ position: absolute;
1107
+ top: 100%;
1108
+ left: 50%;
1109
+ transform: translate(-50%,0);
1110
+ justify-content: center;
1111
+ align-items: center;
1112
+ width: auto;
1113
+ background-color: $img-green-color;
1114
+ border-radius: 3px;
1115
+ padding: 5px;
1116
+ transition: .3s ease;
1117
+ i {
1118
+ font-size: rem(10);
1119
+ color: $white;
1120
+ margin: 0 5px 0 0;
1121
+ }
1122
+ span {
1123
+ color: $white;
1124
+ font-weight: 500;
1125
+ font-size: rem(10);
1126
+ }
1127
+ }
1128
+
1129
+ &:hover, &:focus {
1130
+ .img-card__container {
1131
+ &__valid {
1132
+ transform: translate(-50%, -40px);
1133
+ }
1134
+ }
1135
+ }
1136
+
1094
1137
  &__img {
1095
1138
  width: auto!important;
1096
1139
  height: auto!important;
@@ -1372,10 +1415,6 @@ $card-img-size-small: 140px;
1372
1415
  .wz-img-manager .addCssPriority .smallNameDisplay .img-card__nameContainer__name {
1373
1416
  width: $card-img-size-small;
1374
1417
  }
1375
-
1376
- .addCssPriority:not(.fullSize) {
1377
-
1378
- }
1379
1418
  //.wz-img-manager useful to keep the css priority
1380
1419
  .wz-img-manager .table-view {
1381
1420
 
@@ -1503,29 +1542,140 @@ $card-img-size-small: 140px;
1503
1542
  .grey {
1504
1543
  color: $img-grey-color;
1505
1544
  }
1506
- $green: $really-bad-bad-bad-green !default;
1507
- $primary: $primary-button !default;
1508
- $light: $img-placeholder !default;
1509
- $info: $wizishop-blue !default;
1510
- $danger: $img-red-color !default;
1511
- $dark: $img-dark !default;
1545
+ .wz-img-manager {
1512
1546
 
1513
- $button-padding-vertical: rem(7) !default;
1514
- $radius: rem(3) !default;
1547
+ &__selectionHandler {
1548
+ margin-top: -50px;
1549
+ }
1515
1550
 
1516
- $button-color: white!default;
1517
- $button-hover-color: white !default;
1518
- $button-focus-color: white !default;
1519
- $button-active-color: white !default;
1520
- $button-background-color: $primary !default;
1521
- $button-disabled-background-color: $primary !default;
1522
- $button-border-color: $primary-button-hover !default;
1523
- $button-hover-border-color: $primary-button-hover !default;
1524
- $button-active-border-color: $primary-button-hover !default;
1525
- $button-focus-border-color: $primary-button-hover !default;
1526
- $button-disabled-border-color: $primary-button-hover !default;
1551
+ &__module {
1552
+ position: fixed;
1553
+ bottom: 0;
1554
+ left: 0;
1555
+ width: 100%;
1556
+ height: 0;
1557
+ transition: height .3s ease;
1558
+ z-index: 2147483647; // snackbar 10
1559
+ transform: translateZ(0);
1527
1560
 
1528
- $tag-radius: rem(20px)!default;
1561
+ &:before {
1562
+ content: '';
1563
+ display: block;
1564
+ position: absolute;
1565
+ top: 0;
1566
+ left: 0;
1567
+ width: 100%;
1568
+ height: 3px;
1569
+ background-color: $img-main-color;
1570
+ }
1571
+
1572
+ &--closed {
1573
+ height: 0;
1574
+ }
1575
+
1576
+ // .wz-img-manager__module--small
1577
+ &--small {
1578
+ height: 320px;
1579
+ }
1580
+
1581
+ // .wz-img-manager__module--full
1582
+ &--full {
1583
+ height: calc(100vh - 50px);
1584
+ }
1585
+
1586
+ // .wz-img-manager__module--window
1587
+ &--window {
1588
+ position: relative;
1589
+ width: auto;
1590
+ bottom: unset;
1591
+ left: unset;
1592
+ z-index: 29!important;
1593
+ height: auto!important;
1594
+ padding-bottom: 6.25rem;
1595
+
1596
+ &:before {
1597
+ content: none;
1598
+ height: 0px;
1599
+ }
1600
+
1601
+ // .wz-img-manager__module--edit
1602
+ &--edit {
1603
+ .wrapper-tabs {
1604
+ display: none;
1605
+ }
1606
+ }
1607
+ }
1608
+
1609
+ // .wz-img-manager__module__header
1610
+ &__header {
1611
+ position: absolute;
1612
+ bottom: 100%;
1613
+ right: 30px;
1614
+ width: 101px;
1615
+
1616
+ // .wz-img-manager__module__header button
1617
+ button {
1618
+ width: 45px;
1619
+ height: 35px;
1620
+ background-color: $img-main-color;
1621
+ transition: background-color .3s ease;
1622
+ border: none;
1623
+ box-shadow: none;
1624
+ cursor: pointer;
1625
+ outline: none!important;
1626
+
1627
+ span {
1628
+ display: none;
1629
+ }
1630
+
1631
+ i {
1632
+ color: #fff;
1633
+ font-size: 20px;
1634
+ }
1635
+
1636
+ &:hover, &:focus {
1637
+ background-color: darken($img-main-color, 15%);
1638
+ }
1639
+
1640
+ // .wz-img-manager__module__header button:first-child
1641
+ &:first-child {
1642
+ border-radius: 3px 0 0 0;
1643
+ }
1644
+
1645
+ // .wz-img-manager__module__header button:last-child
1646
+ &:last-child {
1647
+ margin: 0 0 0 1px;
1648
+ border-radius: 0 3px 0 0;
1649
+ }
1650
+ }
1651
+ }
1652
+ }
1653
+ }
1654
+
1655
+ .wz-img-manager__module .wz-block {
1656
+ background-color: #fff;
1657
+ box-shadow: 0 0.125rem 0.3125rem rgba(45,62,85,.1);
1658
+ padding: 0 0.575rem 0 1.075rem;
1659
+
1660
+ &--window {
1661
+ padding: rem(30);
1662
+ overflow: hidden;
1663
+ max-width: 1450px;
1664
+ margin: 0 auto;
1665
+ }
1666
+ }
1667
+
1668
+ .wz-img-manager__module .wz-block:hover {
1669
+ box-shadow: 0 0.125rem 0.3125rem rgba(45, 62, 85, 0.2);
1670
+ }
1671
+
1672
+ .nwb-snack-bar .notification {
1673
+ z-index: 10002!important;
1674
+ }
1675
+
1676
+ .nwb-snack-bar .column {
1677
+ box-sizing: border-box;
1678
+ }
1529
1679
  image-cropper {
1530
1680
  max-height: 60vh;
1531
1681
  }.wz-img-manager .images-view {
@@ -1907,140 +2057,29 @@ $green-color: #2ecc71;
1907
2057
  line-height: rem(25);
1908
2058
  }
1909
2059
  }
1910
- .wz-img-manager {
1911
-
1912
- &__selectionHandler {
1913
- margin-top: -50px;
1914
- }
1915
-
1916
- &__module {
1917
- position: fixed;
1918
- bottom: 0;
1919
- left: 0;
1920
- width: 100%;
1921
- height: 0;
1922
- transition: height .3s ease;
1923
- z-index: 2147483647; // snackbar 10
1924
- transform: translateZ(0);
1925
-
1926
- &:before {
1927
- content: '';
1928
- display: block;
1929
- position: absolute;
1930
- top: 0;
1931
- left: 0;
1932
- width: 100%;
1933
- height: 3px;
1934
- background-color: $img-main-color;
1935
- }
1936
-
1937
- &--closed {
1938
- height: 0;
1939
- }
1940
-
1941
- // .wz-img-manager__module--small
1942
- &--small {
1943
- height: 320px;
1944
- }
1945
-
1946
- // .wz-img-manager__module--full
1947
- &--full {
1948
- height: calc(100vh - 40px);
1949
- }
1950
-
1951
- // .wz-img-manager__module--window
1952
- &--window {
1953
- position: relative;
1954
- width: auto;
1955
- bottom: unset;
1956
- left: unset;
1957
- z-index: 29!important;
1958
- height: auto!important;
1959
- padding-bottom: 6.25rem;
1960
-
1961
- &:before {
1962
- content: none;
1963
- height: 0px;
1964
- }
1965
-
1966
- // .wz-img-manager__module--edit
1967
- &--edit {
1968
- .wrapper-tabs {
1969
- display: none;
1970
- }
1971
- }
1972
- }
1973
-
1974
- // .wz-img-manager__module__header
1975
- &__header {
1976
- position: absolute;
1977
- bottom: 100%;
1978
- right: 30px;
1979
- width: 101px;
1980
-
1981
- // .wz-img-manager__module__header button
1982
- button {
1983
- width: 50px;
1984
- height: 40px;
1985
- background-color: $img-main-color;
1986
- transition: background-color .3s ease;
1987
- border: none;
1988
- box-shadow: none;
1989
- cursor: pointer;
1990
- outline: none!important;
1991
-
1992
- span {
1993
- display: none;
1994
- }
1995
-
1996
- i {
1997
- color: #fff;
1998
- font-size: 20px;
1999
- }
2000
-
2001
- &:hover, &:focus {
2002
- background-color: darken($img-main-color, 15%);
2003
- }
2004
-
2005
- // .wz-img-manager__module__header button:first-child
2006
- &:first-child {
2007
- border-radius: 3px 0 0 0;
2008
- }
2009
-
2010
- // .wz-img-manager__module__header button:last-child
2011
- &:last-child {
2012
- margin: 0 0 0 1px;
2013
- border-radius: 0 3px 0 0;
2014
- }
2015
- }
2016
- }
2017
- }
2018
- }
2019
-
2020
- .wz-img-manager__module .wz-block {
2021
- background-color: #fff;
2022
- box-shadow: 0 0.125rem 0.3125rem rgba(45,62,85,.1);
2023
- padding: 0 0.575rem 0 1.075rem;
2024
-
2025
- &--window {
2026
- padding: rem(30);
2027
- overflow: hidden;
2028
- max-width: 1450px;
2029
- margin: 0 auto;
2030
- }
2031
- }
2060
+ $green: $really-bad-bad-bad-green !default;
2061
+ $primary: $primary-button !default;
2062
+ $light: $img-placeholder !default;
2063
+ $info: $wizishop-blue !default;
2064
+ $danger: $img-red-color !default;
2065
+ $dark: $img-dark !default;
2032
2066
 
2033
- .wz-img-manager__module .wz-block:hover {
2034
- box-shadow: 0 0.125rem 0.3125rem rgba(45, 62, 85, 0.2);
2035
- }
2067
+ $button-padding-vertical: rem(7) !default;
2068
+ $radius: rem(3) !default;
2036
2069
 
2037
- .nwb-snack-bar .notification {
2038
- z-index: 10002!important;
2039
- }
2070
+ $button-color: white!default;
2071
+ $button-hover-color: white !default;
2072
+ $button-focus-color: white !default;
2073
+ $button-active-color: white !default;
2074
+ $button-background-color: $primary !default;
2075
+ $button-disabled-background-color: $primary !default;
2076
+ $button-border-color: $primary-button-hover !default;
2077
+ $button-hover-border-color: $primary-button-hover !default;
2078
+ $button-active-border-color: $primary-button-hover !default;
2079
+ $button-focus-border-color: $primary-button-hover !default;
2080
+ $button-disabled-border-color: $primary-button-hover !default;
2040
2081
 
2041
- .nwb-snack-bar .column {
2042
- box-sizing: border-box;
2043
- }
2082
+ $tag-radius: rem(20px)!default;
2044
2083
  .wz-img-manager .is-checkradio[type='checkbox'] {
2045
2084
  outline: 0 !important;
2046
2085
  & + label {
@@ -2163,21 +2202,10 @@ $green-color: #2ecc71;
2163
2202
  &--smallDisplay {
2164
2203
  max-height: 275px!important;
2165
2204
  }
2166
-
2167
- .ng-scroll-content {
2168
- margin-left: 0.5rem !important;
2169
- margin-right: 0.5rem !important;
2170
- min-width: calc(100% - 1rem) !important;
2171
- width: calc(100% - 1rem) !important;
2172
- min-height: 100vh !important;
2173
- }
2174
2205
  }
2175
2206
 
2176
2207
  &__search {
2177
- margin-right: 0.8rem;
2178
- margin-left: 0.3rem;
2179
- margin-bottom: 30px;
2180
- margin-top: 30px;
2208
+ margin: 30px 0;
2181
2209
 
2182
2210
  &--smallDisplay {
2183
2211
  margin-top: 10px;
@@ -2186,23 +2214,20 @@ $green-color: #2ecc71;
2186
2214
 
2187
2215
  // .pexels-lib__wrapper
2188
2216
  &__wrapper {
2189
- margin-right: 0.8rem;
2190
- margin-left: 0.3rem;
2191
- margin-bottom: 30px;
2192
- margin-top: 30px;
2217
+ margin: 30px 0;
2193
2218
 
2194
2219
  // .pexels-lib__wrapper__result
2195
2220
  &__result {
2196
- width: calc(100% + 20px);
2221
+ width: calc(100% + 10px);
2197
2222
  display: flex;
2198
2223
  flex-direction: row;
2199
2224
  justify-content: space-between;
2200
- margin-left: -10px;
2225
+ margin-left: -5px;
2201
2226
 
2202
2227
  // .pexels-lib__wrapper__result__column
2203
2228
  &__column {
2204
2229
  flex: 1;
2205
- margin: 0 10px;
2230
+ margin: 0 5px;
2206
2231
 
2207
2232
  // .pexels-lib__wrapper__result__column__element
2208
2233
  &__element {
@@ -2220,7 +2245,7 @@ $green-color: #2ecc71;
2220
2245
 
2221
2246
  // .pexels-lib__wrapper__result__column__element:not(:last-child)
2222
2247
  &:not(:last-child) {
2223
- margin-bottom: 20px;
2248
+ margin-bottom: 10px;
2224
2249
  }
2225
2250
 
2226
2251
  // .pexels-lib__wrapper__result__column__element__img
@@ -2236,9 +2261,9 @@ $green-color: #2ecc71;
2236
2261
  position: absolute;
2237
2262
  display: flex;
2238
2263
  justify-content: space-between;
2239
- width: calc(100% - 20px);
2240
- bottom: 10px;
2241
- left: 10px;
2264
+ width: calc(100% - 10px);
2265
+ bottom: 5px;
2266
+ left: 5px;
2242
2267
  opacity: 0;
2243
2268
  transition: opacity .3s ease-in-out;
2244
2269
  align-items: flex-end;
@@ -2348,14 +2373,19 @@ $green-color: #2ecc71;
2348
2373
  background-color: #fafafa;
2349
2374
  cursor: pointer;
2350
2375
  }
2351
- }//.wz-img-manager useful to keep the css priority
2376
+ }
2377
+ //.wz-img-manager useful to keep the css priority
2352
2378
  .wz-img-manager .canva-btn {
2353
2379
  background-color: $img-main-color;
2354
- border: none;
2380
+ border: 2px solid $img-main-color;
2355
2381
  padding: 0;
2356
2382
  height: fit-content;
2357
2383
  color: white;
2358
2384
  padding-left: rem(9);
2385
+ transition: .3s ease;
2386
+ &:hover, &:focus {
2387
+ border-color: darken($img-main-color, 15%);
2388
+ }
2359
2389
  > span {
2360
2390
  &:first-child {
2361
2391
  z-index: 2;
@@ -2374,6 +2404,18 @@ $green-color: #2ecc71;
2374
2404
  }
2375
2405
 
2376
2406
  .wz-img-manager .canva.dropdown {
2407
+ .dropdown-menu {
2408
+ margin-top: 10px!important;
2409
+ &:before {
2410
+ content: '';
2411
+ display: block;
2412
+ position: absolute;
2413
+ bottom: 100%;
2414
+ left: 0;
2415
+ width: 100%;
2416
+ height: 10px;
2417
+ }
2418
+ }
2377
2419
 
2378
2420
  .dropdown-menu:hover {
2379
2421
  display: block;
@@ -2402,19 +2444,25 @@ $green-color: #2ecc71;
2402
2444
  display: flex;
2403
2445
  justify-content: space-between;
2404
2446
  align-items: center;
2447
+ padding: 12px 20px;
2448
+ margin: 0 0 5px;
2449
+ &:last-child {
2450
+ margin: 0;
2451
+ }
2405
2452
 
2406
2453
  p {
2407
2454
  margin: 0;
2455
+ line-height: rem(16);
2408
2456
  }
2409
2457
 
2410
2458
  p:first-child {
2411
2459
  color: #1D2A3B;
2412
- font-size: 16px;
2460
+ font-size: rem(14);
2413
2461
  }
2414
2462
 
2415
2463
  p:last-child {
2416
2464
  color: #526384;
2417
- font-size: 14px;
2465
+ font-size: rem(14);
2418
2466
  }
2419
2467
  }
2420
2468
 
@@ -2431,24 +2479,27 @@ $green-color: #2ecc71;
2431
2479
  .dropdownTitle {
2432
2480
  font-size: 14px;
2433
2481
  background-color: $img-main-color;
2434
- padding: 0.8rem 0;
2482
+ padding: rem(9.5) 0;
2435
2483
  text-align: center;
2436
2484
 
2437
2485
  p {
2438
2486
  font-size: 14px;
2439
2487
  color: white;
2440
2488
  margin: 0;
2489
+ font-weight: 500;
2441
2490
  }
2442
2491
  }
2443
2492
 
2444
2493
  .infoItem {
2445
- padding: 12px 1rem;
2494
+ padding: 18px 20px 11px 20px;
2446
2495
  line-height: 1.5;
2447
2496
  font-weight: 500;
2448
2497
 
2449
2498
  p {
2450
2499
  margin: 0;
2451
- font-size: 14px;
2500
+ font-size: rem(16);
2501
+ line-height: rem(19);
2502
+ font-weight: 500;
2452
2503
  }
2453
2504
  }
2454
2505
 
@@ -2754,6 +2805,11 @@ $green-color: #2ecc71;
2754
2805
  height: rem(18);
2755
2806
  }
2756
2807
  }
2808
+
2809
+ .wz-img-manager .wz-img-manager__module:not(.wz-img-manager__module--window) .pexels-lib__search .input-search.field {
2810
+ padding: 0;
2811
+ background-color: transparent;
2812
+ }
2757
2813
  .wz-img-manager .dropdownWizi {
2758
2814
  padding: 10px;
2759
2815
 
@@ -3409,8 +3465,7 @@ $green-color: #2ecc71;
3409
3465
  overflow: visible!important;
3410
3466
 
3411
3467
  &--notWindow {
3412
- background-color: transparentize($img-main-color, .9);
3413
- padding: rem(15) rem(30) rem(10);
3468
+ padding: rem(20) rem(30) rem(20);
3414
3469
  margin-left: -1.075rem;
3415
3470
  margin-right: -0.575rem;
3416
3471
  margin-bottom: rem(20);
@@ -3439,7 +3494,7 @@ $green-color: #2ecc71;
3439
3494
  display: block;
3440
3495
  position: absolute;
3441
3496
  width: 100%;
3442
- height: 3px;
3497
+ height: 2px;
3443
3498
  background-color: $img-main-color;
3444
3499
  bottom: 0;
3445
3500
  left: 0;
Binary file