File size: 2,991 Bytes
d5c104e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
.add-content-dropdown {
position: absolute;
bottom: 100%;
left: 0;
background-color: #21212f;
/* border: 0.01rem solid #444; */
border-radius: 0.35rem;
box-shadow: 0 0.75rem 0.85rem rgba(0, 0, 0, 0.484);
z-index: 1010;
width: 13.5rem;
padding: 0.3rem 0;
margin-bottom: 0.75rem;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: opacity 0.2s ease, transform 0.2s ease;
}
.add-content-dropdown.open {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.add-content-dropdown ul {
list-style: none;
margin: 0;
padding: 0;
}
.add-content-dropdown li {
display: flex;
align-items: center;
padding: 0.75rem 1rem;
cursor: pointer;
color: #e0e0e0;
font-size: 1rem;
position: relative;
transition: background-color 0.2s ease;
}
.add-content-dropdown li:hover {
background-color: #15151f;
border-radius: 1.35rem;
}
.add-content-dropdown li.selected:hover {
background-color: #4caf5033;
border-radius: 1.35rem;
}
/* Active state for items with open sub-menus */
.add-content-dropdown li.has-submenu.active {
background-color: #15151f;
border-radius: 1.35rem;
}
.add-content-dropdown .dropdown-icon {
margin-right: 0.75rem;
font-size: 1rem;
color: #aaabb9;
}
.selected {
background-color: #4caf501a;
}
.selected:hover {
background-color: #4caf5033;
}
.menu-item-content {
display: flex;
align-items: center;
width: 100%;
}
.add-content-dropdown li.has-submenu {
justify-content: space-between;
user-select: none; /* Prevent text selection on click */
}
.add-content-dropdown .submenu-arrow {
font-size: 0.8rem;
color: #aaabb9;
margin-left: auto;
flex-shrink: 0;
pointer-events: none; /* Prevent arrow from blocking clicks */
}
.dropdown-icon {
margin-right: 8px;
}
.sub-dropdown {
position: absolute;
left: 100%;
/* Default to opening upwards for chat view */
bottom: 0;
background-color: #21212f;
border-radius: 0.35rem;
box-shadow: 0 0.75rem 0.85rem rgba(0, 0, 0, 0.484);
z-index: 1020; /* Higher than main dropdown */
width: 13.5rem;
padding: 0.3rem 0;
opacity: 0;
visibility: hidden;
transform: translateX(10px);
transition: opacity 0.2s ease, transform 0.2s ease;
}
.sub-dropdown.open {
opacity: 1;
visibility: visible;
transform: translateX(0);
}
/* Nested sub-dropdown (third level) */
.sub-dropdown .sub-dropdown {
z-index: 1030; /* Higher than second level */
}
.sub-dropdown li.has-submenu {
justify-content: space-between;
}
/* Initial Chat Window */
.search-bar .add-content-dropdown {
top: 100%;
bottom: auto;
margin-top: 0.6rem;
margin-bottom: 0;
box-shadow: 0 -0.75rem 1rem rgba(0, 0, 0, 0.484);
transform: translateY(-10px);
}
.search-bar .sub-dropdown {
top: 0;
bottom: auto;
}
/* Third level sub-dropdown in search bar - open upward */
.search-bar .sub-dropdown .sub-dropdown {
top: auto;
bottom: 0;
}
.search-bar .add-content-dropdown.open {
transform: translateY(0);
} |