@tattvafoundation/upyog-css 1.0.41 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tattvafoundation/upyog-css",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "engines": {
@@ -1626,60 +1626,283 @@ body {
1626
1626
  font-weight: 100;
1627
1627
  }
1628
1628
 
1629
+ /* ============================================
1630
+ CITIZEN SIDEBAR - Collapsed/Expanded Design
1631
+ ============================================ */
1632
+
1633
+ /* --- SideBarStatic container (outer wrapper in flex layout) --- */
1629
1634
  .SideBarStatic {
1630
1635
  width: 60px;
1631
- transition: all linear 0.5s;
1632
- overflow: hidden;
1636
+ overflow: visible;
1633
1637
  height: 100%;
1638
+ z-index: 100;
1639
+ flex-shrink: 0;
1634
1640
  }
1635
1641
 
1636
- /* The expanded state of sidebar on hover */
1642
+ /* --- drawer-desktop (the actual fixed sidebar panel) --- */
1637
1643
  .drawer-desktop {
1638
1644
  width: 60px;
1639
- transition: all linear 0.5s;
1645
+ transition: width 0.3s ease;
1640
1646
  height: 100%;
1647
+ overflow: hidden;
1648
+ overflow-y: auto;
1649
+ font-family: 'Open Sans', sans-serif;
1650
+ background-color: #f5eacd;
1651
+ position: fixed;
1652
+ top: 0;
1653
+ bottom: 0;
1654
+ left: 0;
1655
+ padding-top: 80px;
1656
+ z-index: 100;
1657
+ box-shadow: 2px 0 8px rgba(0, 0, 0, 0.06);
1641
1658
  }
1642
1659
 
1643
1660
  .drawer-desktop:hover {
1644
- width: 200px;
1645
- /* Sidebar expands on hover */
1661
+ width: 220px;
1662
+ box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
1646
1663
  }
1647
1664
 
1648
- .drawer-desktop:hover .profile-section {
1649
- display: block;
1650
- /* Show profile when expanded */
1665
+ /* --- Profile Section --- */
1666
+ .drawer-desktop .profile-section {
1667
+ display: flex;
1668
+ flex-direction: column;
1669
+ align-items: center;
1670
+ padding: 16px 8px 0 8px;
1671
+ background-color: transparent;
1672
+ }
1673
+
1674
+ /* Profile image - collapsed: small circle centered in 60px */
1675
+ .drawer-desktop .profile-section img {
1676
+ width: 36px !important;
1677
+ height: 36px !important;
1678
+ object-fit: cover;
1679
+ object-position: center;
1680
+ border-radius: 50%;
1681
+ margin: 0 auto 8px !important;
1682
+ transition: width 0.3s ease, height 0.3s ease;
1683
+ border: 2px solid #C8850A;
1651
1684
  }
1652
1685
 
1686
+ /* Profile image - expanded: larger */
1687
+ .drawer-desktop:hover .profile-section img {
1688
+ width: 72px !important;
1689
+ height: 72px !important;
1690
+ margin-bottom: 12px !important;
1691
+ }
1692
+
1693
+ /* Profile name - hidden when collapsed */
1653
1694
  .drawer-desktop .profile-section .name-Profile {
1654
1695
  display: none;
1655
- /* Hide profile name when collapsed */
1656
1696
  }
1657
1697
 
1658
1698
  .drawer-desktop:hover .profile-section .name-Profile {
1659
1699
  display: block;
1660
- /* Show profile name when expanded */
1661
1700
  }
1662
1701
 
1702
+ .drawer-desktop .profile-section .name-Profile .label-text {
1703
+ text-align: center;
1704
+ font-weight: 700;
1705
+ font-size: 15px;
1706
+ color: #0b0c0c;
1707
+ letter-spacing: 0.3px;
1708
+ line-height: 1.3;
1709
+ white-space: nowrap;
1710
+ overflow: hidden;
1711
+ text-overflow: ellipsis;
1712
+ max-width: 190px;
1713
+ }
1714
+
1715
+ /* Profile location/phone - hidden when collapsed */
1663
1716
  .drawer-desktop .profile-section .loc-Profile {
1664
1717
  display: none;
1665
- /* Hide profile location when collapsed */
1666
1718
  }
1667
1719
 
1668
1720
  .drawer-desktop:hover .profile-section .loc-Profile {
1669
1721
  display: block;
1670
- /* Show profile location when expanded */
1671
1722
  }
1672
1723
 
1673
- .drawer-desktop .profile-section .label-text {
1724
+ .drawer-desktop .profile-section .loc-Profile .label-text {
1674
1725
  text-align: center;
1726
+ font-size: 13px;
1727
+ color: #767676;
1728
+ white-space: nowrap;
1729
+ overflow: hidden;
1730
+ text-overflow: ellipsis;
1731
+ max-width: 190px;
1675
1732
  }
1676
1733
 
1677
- .SideBarStatic:hover {
1678
- width: 200px;
1734
+ /* Profile divider - hidden when collapsed */
1735
+ .drawer-desktop .profile-section .profile-divider {
1736
+ display: none;
1679
1737
  }
1680
1738
 
1681
- .SideBarStatic:hover .drawer-desktop {
1682
- width: 200px;
1739
+ .drawer-desktop:hover .profile-section .profile-divider {
1740
+ display: block;
1741
+ border-top: 1px solid #d6d5d4;
1742
+ width: 85%;
1743
+ margin: 12px auto 4px;
1744
+ }
1745
+
1746
+ /* --- Menu Items --- */
1747
+
1748
+ .drawer-desktop .sidebar-list {
1749
+ padding: 4px 8px !important;
1750
+ margin: 0;
1751
+ border-left: none !important;
1752
+ }
1753
+
1754
+ .drawer-desktop .sidebar-list.active {
1755
+ border-left: none !important;
1756
+ padding-left: 8px !important;
1757
+ }
1758
+
1759
+ .drawer-desktop .sidebar-list.active .menu-label {
1760
+ color: #b08905;
1761
+ font-weight: 600;
1762
+ }
1763
+
1764
+ .drawer-desktop .sidebar-list.active .icon {
1765
+ fill: #b08905 !important;
1766
+ color: #b08905 !important;
1767
+ }
1768
+
1769
+ .drawer-desktop .menu-item {
1770
+ display: flex !important;
1771
+ align-items: center;
1772
+ min-height: 42px;
1773
+ line-height: 42px;
1774
+ padding: 0;
1775
+ cursor: pointer;
1776
+ border-radius: 10px;
1777
+ transition: background-color 0.2s ease;
1778
+ }
1779
+
1780
+ .drawer-desktop .menu-item:hover {
1781
+ background-color: rgba(200, 133, 10, 0.08);
1782
+ }
1783
+
1784
+ /* Active: gold-tinted pill background on the menu-item */
1785
+ .drawer-desktop .sidebar-list.active .menu-item {
1786
+ background-color: rgba(176, 137, 5, 0.14);
1787
+ }
1788
+
1789
+ /* Icon - centered in 60px when collapsed */
1790
+ .drawer-desktop .menu-item .icon {
1791
+ display: flex !important;
1792
+ align-items: center;
1793
+ justify-content: center;
1794
+ float: none !important;
1795
+ width: 21px !important;
1796
+ height: 21px !important;
1797
+ min-width: 21px;
1798
+ margin: 0 !important;
1799
+ margin-left: 11px !important;
1800
+ margin-right: 11px !important;
1801
+ fill: rgb(117, 117, 117);
1802
+ color: rgb(117, 117, 117);
1803
+ transition: fill 0.2s ease, color 0.2s ease, margin 0.3s ease;
1804
+ }
1805
+
1806
+ /* Menu label - hidden when collapsed */
1807
+ .drawer-desktop .menu-item .menu-label {
1808
+ display: none;
1809
+ margin-left: 0;
1810
+ font-size: 14px;
1811
+ color: #5f5c62;
1812
+ white-space: normal !important;
1813
+ word-wrap: break-word;
1814
+ overflow: visible !important;
1815
+ text-overflow: unset !important;
1816
+ line-height: 1.3;
1817
+ }
1818
+
1819
+ /* Show labels on hover (expanded state) */
1820
+ .drawer-desktop:hover .menu-item .menu-label {
1821
+ display: block;
1822
+ }
1823
+
1824
+ /* Adjust icon margin when expanded */
1825
+ .drawer-desktop:hover .menu-item .icon {
1826
+ margin-left: 12px !important;
1827
+ margin-right: 10px !important;
1828
+ }
1829
+
1830
+ /* Expanded: add left border indicator to active item */
1831
+ .drawer-desktop:hover .sidebar-list.active {
1832
+ border-left: 3px solid #b08905;
1833
+ padding-left: 5px;
1834
+ border-radius: 0 10px 10px 0;
1835
+ }
1836
+
1837
+ /* --- Scrollbar styling --- */
1838
+ .drawer-desktop::-webkit-scrollbar {
1839
+ width: 4px;
1840
+ }
1841
+
1842
+ .drawer-desktop::-webkit-scrollbar-track {
1843
+ background: transparent;
1844
+ }
1845
+
1846
+ .drawer-desktop::-webkit-scrollbar-thumb {
1847
+ background-color: rgba(176, 137, 5, 0.3);
1848
+ border-radius: 4px;
1849
+ }
1850
+
1851
+ .drawer-desktop::-webkit-scrollbar-thumb:hover {
1852
+ background-color: rgba(176, 137, 5, 0.5);
1853
+ }
1854
+
1855
+ /* --- Link styling --- */
1856
+ .drawer-desktop .sidebar-list a {
1857
+ text-decoration: none;
1858
+ color: inherit;
1859
+ display: block;
1860
+ width: 100%;
1861
+ }
1862
+
1863
+ /* Menu wrapper */
1864
+ .drawer-desktop .drawer-menu-list {
1865
+ padding-top: 4px;
1866
+ background-color: #f5eacd;
1867
+ }
1868
+
1869
+ /* --- Content width overrides (sidebar is 60px, not 219px) --- */
1870
+ @media (min-width: 780px) {
1871
+ .SideBarStatic {
1872
+ width: 60px;
1873
+ background: transparent;
1874
+ margin-top: -24px;
1875
+ }
1876
+
1877
+ .moduleLinkHomePage {
1878
+ width: calc(100% - 60px) !important;
1879
+ }
1880
+
1881
+ .citizen-form-wrapper {
1882
+ width: calc(100% - 60px) !important;
1883
+ }
1884
+
1885
+ .citizen-obps-wrapper,
1886
+ .selection-card-wrapper,
1887
+ .fsm-citizen-wrapper,
1888
+ .pgr-citizen-wrapper,
1889
+ .pt-citizen,
1890
+ .bill-citizen,
1891
+ .bills-citizen-wrapper,
1892
+ .payer-bills-citizen-wrapper,
1893
+ .engagement-citizen-wrapper,
1894
+ .citizen-all-services-wrapper,
1895
+ .mcollect-citizen,
1896
+ .ws-citizen-wrapper,
1897
+ .tl-citizen {
1898
+ width: calc(100% - 60px) !important;
1899
+ }
1900
+ }
1901
+
1902
+ @media (max-width: 780px) {
1903
+ .SideBarStatic {
1904
+ display: none;
1905
+ }
1683
1906
  }
1684
1907
 
1685
1908
  .card p.message-text {
@@ -129,14 +129,15 @@ body {
129
129
  .inventory_form-select,
130
130
  .inventory_form-textarea {
131
131
  width: 100%;
132
- padding: 0.875rem 1rem;
133
- border: 2px solid var(--border-color);
134
- border-radius: 8px;
135
- font-size: 1rem;
132
+ padding: 10px;
133
+ border: 1px solid #000;
134
+ border-radius: 0px;
135
+ font-size: 16px;
136
136
  transition: all 0.3s ease;
137
- background: white;
138
- color: var(--text-primary);
137
+ background: #e8f0fe;
138
+ color: #000;
139
139
  line-height: normal;
140
+ height: 44px;
140
141
  }
141
142
 
142
143
  .inventory_form-input:focus,