@wizishop/img-manager 0.2.45 → 0.2.46

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.45",
3
+ "version": "0.2.46",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -886,6 +886,9 @@ $base-font: 'Work Sans', helvetica !default;@mixin simple_transition($type: null
886
886
  }
887
887
  }
888
888
  &.wz-img-manager__module--edit {
889
+ .img-editor__container {
890
+ align-items: flex-start;
891
+ }
889
892
  .wz-img-manager__module__content, .img-tabs {
890
893
  position: absolute;
891
894
  width: 100%;
@@ -1714,145 +1717,212 @@ $button-disabled-border-color: $primary-button-hover !default;
1714
1717
  $tag-radius: rem(20px)!default;
1715
1718
  image-cropper {
1716
1719
  max-height: 60vh;
1717
- }//.wz-img-manager useful to keep the css priority
1718
- .wz-img-manager .canva-btn {
1719
- background-color: $img-main-color;
1720
- border: 2px solid $img-main-color;
1721
- padding: 0;
1722
- height: fit-content;
1723
- color: white;
1724
- padding-left: rem(9);
1725
- transition: .3s ease;
1726
- &:hover, &:focus {
1727
- border-color: darken($img-main-color, 15%);
1728
- }
1729
- > span {
1730
- &:first-child {
1731
- z-index: 2;
1732
- position: relative;
1733
- transform: translateX(7px);
1720
+ }.wz-img-manager .images-view {
1721
+ text-align: left;
1722
+
1723
+ &.fullSize {
1724
+ & + .images-view__scroll {
1725
+ max-height: 1160px;
1734
1726
  }
1735
1727
  }
1736
- &__logo {
1737
- z-index: 1;
1738
- }
1739
- }
1740
1728
 
1741
- .wz-img-manager .canva-btn .btnLoadingAnnimation {
1742
- background-color: $img-main-color;
1743
- cursor: not-allowed;
1744
- }
1729
+ &__scroll {
1730
+ position: relative;
1731
+ height: 100%;
1732
+ z-index: 1;
1745
1733
 
1746
- .wz-img-manager .canva.dropdown {
1747
- .dropdown-menu {
1748
- margin-top: 10px!important;
1749
- &:before {
1750
- content: '';
1751
- display: block;
1752
- position: absolute;
1753
- bottom: 100%;
1754
- left: 0;
1755
- width: 100%;
1756
- height: 10px;
1757
- }
1758
- }
1734
+ &--full {
1735
+ max-height: calc(100vh - 160px)!important;
1736
+ min-height: calc(100vh - 160px) !important;
1737
+ }
1759
1738
 
1760
- .dropdown-menu:hover {
1761
- display: block;
1762
- }
1739
+ &--smallDisplay {
1740
+ max-height: 275px!important;
1741
+ }
1763
1742
 
1764
- .displayDropDownMenu {
1765
- display: block;
1766
- }
1743
+ &--smallUploadDisplay {
1744
+ max-height: 230px!important;
1745
+ }
1767
1746
 
1768
- .dropdown-menu.dropDownShadow {
1769
- padding-bottom: 0;
1770
- padding-top: 0;
1771
- margin-top: 1px;
1747
+ &--window {
1748
+ max-height: unset!important;
1749
+ }
1750
+
1751
+ &--hide {
1752
+ &--mosaic {
1753
+ min-height: 100px !important;
1754
+ &--small {
1755
+ min-height: unset !important;
1756
+ }
1757
+ }
1758
+ &--table {
1759
+ min-height: 170px !important;
1760
+ }
1761
+
1762
+ }
1763
+
1764
+ .ng-scroll-content {
1765
+ min-width: calc(100% - 1rem) !important;
1766
+ width: calc(100% - 1rem) !important;
1767
+ }
1772
1768
  }
1773
1769
 
1774
- .dropdown-menu {
1775
- min-width: 300px;
1776
- width: 300px;
1770
+ &__container {
1771
+ display: flex;
1772
+ justify-content: space-between;
1773
+ margin: 0 0 rem(20);
1777
1774
 
1778
- .dropdown-content {
1779
- padding-top: 0px;
1775
+ > div {
1776
+ display: flex;
1777
+ align-items: center;
1778
+ .mainColor {
1779
+ margin: 0;
1780
1780
  }
1781
+ }
1781
1782
 
1782
- .dropdown-item {
1783
- color: $img-grey-color;
1783
+ &--window {
1784
+ margin: rem(30) 0 rem(20);
1785
+ }
1786
+
1787
+ &--uploadTab {
1788
+ margin: 0 0 rem(20);
1789
+ }
1790
+
1791
+ &__boxAction {
1792
+ width: 525px;
1793
+ overflow: visible;
1784
1794
  display: flex;
1785
- justify-content: space-between;
1795
+ position: relative;
1796
+ justify-content: flex-end;
1797
+ margin-right: 13px;
1798
+ height: 40px;
1786
1799
  align-items: center;
1787
- padding: 12px 20px;
1788
- margin: 0 0 5px;
1789
- &:last-child {
1790
- margin: 0;
1791
- }
1800
+ transform: translate(-41px,-3px);
1792
1801
 
1793
- p {
1794
- margin: 0;
1795
- line-height: rem(16);
1796
- }
1802
+ &__confirmSup {
1803
+ display: flex;
1804
+ justify-content: space-between;
1805
+ align-items: center;
1806
+ border-left: solid 1px #d8d8d8;
1807
+ color: $img-grey-color;
1808
+ padding-left: 1rem;
1809
+ width: 0;
1810
+ position: absolute;
1811
+ opacity: 0;
1812
+ transition: width .3s ease, opacity .3s ease-in-out;
1813
+ visibility: hidden;
1814
+ z-index: 2;
1797
1815
 
1798
- p:first-child {
1799
- color: #1D2A3B;
1800
- font-size: rem(14);
1816
+ &--visible {
1817
+ max-width: unset;
1818
+ width: auto;
1819
+ opacity: 1;
1820
+ transition: width .3s ease .05s, opacity .3s ease-in-out .05s, visibility 0s linear 0s;
1821
+ visibility: visible;
1822
+
1823
+ p {
1824
+ transition: left .3s ease-in-out;
1825
+ right: 100%;
1826
+ left: auto;
1827
+ white-space: nowrap;
1828
+ margin-right: 30px;
1829
+ }
1830
+ }
1831
+
1832
+ &__cancel {
1833
+ margin-right: 14px;
1834
+ background-color: white;
1835
+ border-color: #dbdbdb;
1836
+ color: $img-main-text;
1837
+ }
1838
+
1839
+ &__text {
1840
+ font-size: 14px;
1841
+ position: absolute;
1842
+ left: -126%;
1843
+ transition: font-size .3s ease-in-out, left .3s ease-in-out;
1844
+ }
1801
1845
  }
1802
1846
 
1803
- p:last-child {
1804
- color: #526384;
1805
- font-size: rem(14);
1847
+ &__delBtn {
1848
+ i {
1849
+ margin-right: 13px!important;
1850
+ }
1806
1851
  }
1807
- }
1808
1852
 
1809
- .dropdown-item:hover {
1810
- background-color: whitesmoke;
1811
- cursor: pointer;
1812
- color: black;
1853
+ &__import {
1854
+ margin-right: 13px;
1855
+ i {
1856
+ margin-right: 13px!important;
1857
+ }
1858
+ }
1813
1859
  }
1814
1860
 
1815
- .dropdown-item.expectedSizes {
1816
- font-weight: 500;
1817
- }
1861
+ &__buttonBox {
1862
+ margin: 0;
1863
+ width: rem(40);
1864
+ height: rem(40);
1865
+ border: solid $img-light-white-color;
1866
+ border-width: 1px 0 1px 1px;
1818
1867
 
1819
- .dropdownTitle {
1820
- font-size: 14px;
1821
- background-color: $img-main-color;
1822
- padding: rem(9.5) 0;
1823
- text-align: center;
1868
+ border-radius: 3px 0 0 3px;
1869
+ outline: none!important;
1824
1870
 
1825
1871
  p {
1826
- font-size: 14px;
1827
- color: white;
1828
- margin: 0;
1829
- font-weight: 500;
1872
+ margin-top: 0;
1873
+ margin-bottom: 0;
1874
+ height: 40px;
1875
+ &:nth-child(2) {
1876
+ border: solid $img-light-white-color;
1877
+ border-width: 1px 1px 1px 0;
1878
+ transform: translateY(-1px);
1879
+ border-radius: 0 3px 3px 0;
1880
+ }
1881
+ button {
1882
+ height: 38px;
1883
+ }
1830
1884
  }
1831
- }
1832
1885
 
1833
- .infoItem {
1834
- padding: 18px 20px 11px 20px;
1835
- line-height: 1.5;
1836
- font-weight: 500;
1886
+ .actifDisplayed {
1887
+ color:$img-main-color;
1888
+ }
1837
1889
 
1838
- p {
1890
+ i {
1839
1891
  margin: 0;
1840
- font-size: rem(16);
1841
- line-height: rem(19);
1842
- font-weight: 500;
1843
1892
  }
1844
1893
  }
1845
1894
 
1846
- .dropdown-item-wrapper {
1847
- border: 1px solid #DEE2ED;
1848
- border-radius: 3px;
1849
- margin: 0 20px 5px 20px;
1895
+ &__cards {
1896
+ display: flex;
1897
+ justify-content: space-between;
1898
+ flex-wrap: wrap;
1899
+ align-items: center;
1900
+ padding-top: 30px;
1901
+ margin-right: calc(0.8rem - 20px);
1902
+ margin-left: 0.3rem;
1903
+ margin-bottom: 30px;
1850
1904
  }
1851
1905
  }
1906
+
1907
+ &--pexels {
1908
+ margin-top: -30px;
1909
+ }
1910
+
1911
+ .subHeaderActions .button i {
1912
+ margin-right: 0;
1913
+ }
1852
1914
  }
1853
1915
 
1854
- .noTooltip .tooltip.is-tooltip-left:hover::before, .noTooltip .tooltip.is-tooltip-left:hover:not(.is-loading)::after {
1855
- display: none;
1916
+ @media screen and (max-width: 768px) {
1917
+ .wz-img-manager .img-tabs__tabsFirst .img-tabs__tabsFirst__list .images-view__scroll {
1918
+ max-height: none!important;
1919
+
1920
+ .ng-scroll-content {
1921
+ margin: 0 !important;
1922
+ min-width: 100%!important;
1923
+ width: 100%!important;
1924
+ }
1925
+ }
1856
1926
  }
1857
1927
  .img-editor__infoSection__propertySEO__tooltips {
1858
1928
  i {
@@ -2461,209 +2531,145 @@ $green-color: #2ecc71;
2461
2531
  cursor: pointer;
2462
2532
  }
2463
2533
  }
2464
- .wz-img-manager .images-view {
2465
- text-align: left;
2466
-
2467
- &.fullSize {
2468
- & + .images-view__scroll {
2469
- max-height: 1160px;
2470
- }
2534
+ //.wz-img-manager useful to keep the css priority
2535
+ .wz-img-manager .canva-btn {
2536
+ background-color: $img-main-color;
2537
+ border: 2px solid $img-main-color;
2538
+ padding: 0;
2539
+ height: fit-content;
2540
+ color: white;
2541
+ padding-left: rem(9);
2542
+ transition: .3s ease;
2543
+ &:hover, &:focus {
2544
+ border-color: darken($img-main-color, 15%);
2471
2545
  }
2472
-
2473
- &__scroll {
2546
+ > span {
2547
+ &:first-child {
2548
+ z-index: 2;
2474
2549
  position: relative;
2475
- height: 100%;
2476
- z-index: 1;
2477
-
2478
- &--full {
2479
- max-height: calc(100vh - 160px)!important;
2480
- min-height: calc(100vh - 160px) !important;
2481
- }
2482
-
2483
- &--smallDisplay {
2484
- max-height: 275px!important;
2485
- }
2486
-
2487
- &--smallUploadDisplay {
2488
- max-height: 230px!important;
2489
- }
2490
-
2491
- &--window {
2492
- max-height: unset!important;
2493
- }
2550
+ transform: translateX(7px);
2551
+ }
2552
+ }
2553
+ &__logo {
2554
+ z-index: 1;
2555
+ }
2556
+ }
2494
2557
 
2495
- &--hide {
2496
- &--mosaic {
2497
- min-height: 100px !important;
2498
- &--small {
2499
- min-height: unset !important;
2500
- }
2501
- }
2502
- &--table {
2503
- min-height: 170px !important;
2504
- }
2558
+ .wz-img-manager .canva-btn .btnLoadingAnnimation {
2559
+ background-color: $img-main-color;
2560
+ cursor: not-allowed;
2561
+ }
2505
2562
 
2506
- }
2563
+ .wz-img-manager .canva.dropdown {
2564
+ .dropdown-menu {
2565
+ margin-top: 10px!important;
2566
+ &:before {
2567
+ content: '';
2568
+ display: block;
2569
+ position: absolute;
2570
+ bottom: 100%;
2571
+ left: 0;
2572
+ width: 100%;
2573
+ height: 10px;
2574
+ }
2575
+ }
2507
2576
 
2508
- .ng-scroll-content {
2509
- min-width: calc(100% - 1rem) !important;
2510
- width: calc(100% - 1rem) !important;
2511
- }
2577
+ .dropdown-menu:hover {
2578
+ display: block;
2512
2579
  }
2513
2580
 
2514
- &__container {
2515
- display: flex;
2516
- justify-content: space-between;
2517
- margin: 0 0 rem(20);
2581
+ .displayDropDownMenu {
2582
+ display: block;
2583
+ }
2518
2584
 
2519
- > div {
2520
- display: flex;
2521
- align-items: center;
2522
- .mainColor {
2523
- margin: 0;
2524
- }
2525
- }
2585
+ .dropdown-menu.dropDownShadow {
2586
+ padding-bottom: 0;
2587
+ padding-top: 0;
2588
+ margin-top: 1px;
2589
+ }
2526
2590
 
2527
- &--window {
2528
- margin: rem(30) 0 rem(20);
2529
- }
2591
+ .dropdown-menu {
2592
+ min-width: 300px;
2593
+ width: 300px;
2530
2594
 
2531
- &--uploadTab {
2532
- margin: 0 0 rem(20);
2595
+ .dropdown-content {
2596
+ padding-top: 0px;
2533
2597
  }
2534
2598
 
2535
- &__boxAction {
2536
- width: 525px;
2537
- overflow: visible;
2599
+ .dropdown-item {
2600
+ color: $img-grey-color;
2538
2601
  display: flex;
2539
- position: relative;
2540
- justify-content: flex-end;
2541
- margin-right: 13px;
2542
- height: 40px;
2602
+ justify-content: space-between;
2543
2603
  align-items: center;
2544
- transform: translate(-41px,-3px);
2545
-
2546
- &__confirmSup {
2547
- display: flex;
2548
- justify-content: space-between;
2549
- align-items: center;
2550
- border-left: solid 1px #d8d8d8;
2551
- color: $img-grey-color;
2552
- padding-left: 1rem;
2553
- width: 0;
2554
- position: absolute;
2555
- opacity: 0;
2556
- transition: width .3s ease, opacity .3s ease-in-out;
2557
- visibility: hidden;
2558
- z-index: 2;
2559
-
2560
- &--visible {
2561
- max-width: unset;
2562
- width: auto;
2563
- opacity: 1;
2564
- transition: width .3s ease .05s, opacity .3s ease-in-out .05s, visibility 0s linear 0s;
2565
- visibility: visible;
2566
-
2567
- p {
2568
- transition: left .3s ease-in-out;
2569
- left: -130%;
2570
- }
2571
- }
2572
-
2573
- &__cancel {
2574
- margin-right: 14px;
2575
- background-color: white;
2576
- border-color: #dbdbdb;
2577
- color: $img-main-text;
2578
- }
2604
+ padding: 12px 20px;
2605
+ margin: 0 0 5px;
2606
+ &:last-child {
2607
+ margin: 0;
2608
+ }
2579
2609
 
2580
- &__text {
2581
- font-size: 14px;
2582
- position: absolute;
2583
- left: -126%;
2584
- transition: font-size .3s ease-in-out, left .3s ease-in-out;
2585
- }
2610
+ p {
2611
+ margin: 0;
2612
+ line-height: rem(16);
2586
2613
  }
2587
2614
 
2588
- &__delBtn {
2589
- i {
2590
- margin-right: 13px!important;
2591
- }
2615
+ p:first-child {
2616
+ color: #1D2A3B;
2617
+ font-size: rem(14);
2592
2618
  }
2593
2619
 
2594
- &__import {
2595
- margin-right: 13px;
2596
- i {
2597
- margin-right: 13px!important;
2598
- }
2620
+ p:last-child {
2621
+ color: #526384;
2622
+ font-size: rem(14);
2599
2623
  }
2600
2624
  }
2601
2625
 
2602
- &__buttonBox {
2603
- margin: 0;
2604
- width: rem(40);
2605
- height: rem(40);
2606
- border: solid $img-light-white-color;
2607
- border-width: 1px 0 1px 1px;
2626
+ .dropdown-item:hover {
2627
+ background-color: whitesmoke;
2628
+ cursor: pointer;
2629
+ color: black;
2630
+ }
2608
2631
 
2609
- border-radius: 3px 0 0 3px;
2610
- outline: none!important;
2632
+ .dropdown-item.expectedSizes {
2633
+ font-weight: 500;
2634
+ }
2635
+
2636
+ .dropdownTitle {
2637
+ font-size: 14px;
2638
+ background-color: $img-main-color;
2639
+ padding: rem(9.5) 0;
2640
+ text-align: center;
2611
2641
 
2612
2642
  p {
2613
- margin-top: 0;
2614
- margin-bottom: 0;
2615
- height: 40px;
2616
- &:nth-child(2) {
2617
- border: solid $img-light-white-color;
2618
- border-width: 1px 1px 1px 0;
2619
- transform: translateY(-1px);
2620
- border-radius: 0 3px 3px 0;
2621
- }
2622
- button {
2623
- height: 38px;
2624
- }
2643
+ font-size: 14px;
2644
+ color: white;
2645
+ margin: 0;
2646
+ font-weight: 500;
2625
2647
  }
2648
+ }
2626
2649
 
2627
- .actifDisplayed {
2628
- color:$img-main-color;
2629
- }
2650
+ .infoItem {
2651
+ padding: 18px 20px 11px 20px;
2652
+ line-height: 1.5;
2653
+ font-weight: 500;
2630
2654
 
2631
- i {
2655
+ p {
2632
2656
  margin: 0;
2657
+ font-size: rem(16);
2658
+ line-height: rem(19);
2659
+ font-weight: 500;
2633
2660
  }
2634
2661
  }
2635
2662
 
2636
- &__cards {
2637
- display: flex;
2638
- justify-content: space-between;
2639
- flex-wrap: wrap;
2640
- align-items: center;
2641
- padding-top: 30px;
2642
- margin-right: calc(0.8rem - 20px);
2643
- margin-left: 0.3rem;
2644
- margin-bottom: 30px;
2663
+ .dropdown-item-wrapper {
2664
+ border: 1px solid #DEE2ED;
2665
+ border-radius: 3px;
2666
+ margin: 0 20px 5px 20px;
2645
2667
  }
2646
2668
  }
2647
-
2648
- &--pexels {
2649
- margin-top: -30px;
2650
- }
2651
-
2652
- .subHeaderActions .button i {
2653
- margin-right: 0;
2654
- }
2655
2669
  }
2656
2670
 
2657
- @media screen and (max-width: 768px) {
2658
- .wz-img-manager .img-tabs__tabsFirst .img-tabs__tabsFirst__list .images-view__scroll {
2659
- max-height: none!important;
2660
-
2661
- .ng-scroll-content {
2662
- margin: 0 !important;
2663
- min-width: 100%!important;
2664
- width: 100%!important;
2665
- }
2666
- }
2671
+ .noTooltip .tooltip.is-tooltip-left:hover::before, .noTooltip .tooltip.is-tooltip-left:hover:not(.is-loading)::after {
2672
+ display: none;
2667
2673
  }
2668
2674
  .wz-img-manager .wz-table {
2669
2675
  width: 100%;