Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/src/components/Profile/Profile.module.css
rd565449 r0c6b92a 1 img:hover, 2 .menuItem:hover { 1 .fixedProfileContainer { 2 position: fixed; 3 top: 1em; 4 right: 2.5em; 5 z-index: 1000; 6 } 7 8 .inlineProfileContainer { 9 display: inline-block; 3 10 cursor: pointer; 4 11 } 5 12 6 .menuList { 7 list-style: none; 8 padding: 0; 9 margin: 0; 10 text-align: center; 13 .profileWrapper { 14 display: flex; 15 align-items: center; 16 cursor: pointer; 11 17 } 12 18 13 .profileContainer { 14 display: flex; 15 justify-content: center; 16 } 17 18 .profileWrapper { 19 position: relative; 19 .profileIconContainer { 20 position: relative; /* Makes dropdown position relative to this container */ 21 cursor: pointer; 20 22 } 21 23 22 24 .profileImage { 23 height: 48px;24 width: 48px;25 width: 60px; 26 height: 60px; 25 27 border-radius: 50%; 26 /* border: 4px solid #d1d5db; */ 27 object-fit: cover; 28 transition: box-shadow 0.3s ease; 28 29 } 29 30 30 /* Dropdown Menu */ 31 .profileImage:hover { 32 box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2); 33 } 34 31 35 .dropdownMenu { 32 36 position: absolute; 33 top: 50px; /* Adjust according to image size and spacing */ 34 left: 50%; 35 transform: translateX(-50%); /* Center the menu below the image */ 36 width: 13rem; 37 background-color: white; 38 padding: 1rem; 39 box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 37 top: 70px; 38 margin-left: 1.8em; 39 transform: translateX(-50%); 40 background-color: #ffffff; 41 box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); 42 border-radius: 12px; 43 padding: 12px; 44 width: 180px; 45 transition: opacity 0.3s ease; 46 opacity: 1; 40 47 } 41 48 42 /* Menu List and Items */ 49 .username { 50 padding: 10px 0; 51 font-weight: 600; 52 text-align: center; 53 color: #333; 54 border-bottom: 1px solid #eee; 55 } 56 43 57 .menuList { 44 58 list-style-type: none; … … 49 63 .menuItem { 50 64 padding: 10px; 65 cursor: pointer; 66 transition: background-color 0.2s ease, color 0.2s ease; 51 67 text-align: center; 52 border-radius: 5px; 53 transition: background-color 0.3s ease; 68 color: #333; 69 font-weight: 500; 70 border-radius: 8px; 54 71 } 55 72 56 73 .menuItem:hover { 57 background-color: #f0f0f0; 74 background-color: #f5f5f5; 75 color: #007bff; /* Optional: Adds a blue highlight on hover */ 58 76 }
Note:
See TracChangeset
for help on using the changeset viewer.