|
92 | 92 | } |
93 | 93 |
|
94 | 94 | &.is-child { |
95 | | - height: 24px; |
| 95 | + min-height: 24px; |
96 | 96 | font-size: 12px; |
97 | | - padding-left: calc(#{$size-gap-1} + 14px); |
| 97 | + padding-left: calc(#{$size-gap-1} + 18px); |
98 | 98 | position: relative; |
99 | 99 |
|
100 | 100 | &::before { |
| 101 | + content: ''; |
| 102 | + position: absolute; |
| 103 | + left: 10px; |
| 104 | + top: 0; |
| 105 | + width: 1px; |
| 106 | + height: 50%; |
| 107 | + background: color-mix(in srgb, var(--border-subtle) 88%, transparent); |
| 108 | + opacity: 0.95; |
| 109 | + } |
| 110 | + |
| 111 | + &::after { |
101 | 112 | content: ''; |
102 | 113 | position: absolute; |
103 | 114 | left: 10px; |
104 | 115 | top: 50%; |
105 | | - width: 10px; |
| 116 | + width: 12px; |
106 | 117 | height: 1px; |
107 | | - background: var(--border-subtle); |
108 | | - opacity: 0.9; |
| 118 | + background: color-mix(in srgb, var(--border-subtle) 92%, transparent); |
| 119 | + opacity: 0.95; |
109 | 120 | transform: translateY(-50%); |
110 | 121 | } |
111 | 122 |
|
112 | 123 | .bitfun-nav-panel__inline-item-icon { |
113 | | - opacity: 0.55; |
| 124 | + opacity: 0.72; |
| 125 | + } |
| 126 | + } |
| 127 | + |
| 128 | + &.is-btw-child { |
| 129 | + background: color-mix(in srgb, var(--element-bg-soft) 38%, transparent); |
| 130 | + |
| 131 | + &:hover, |
| 132 | + &.is-active { |
| 133 | + background: color-mix(in srgb, var(--element-bg-soft) 74%, transparent); |
114 | 134 | } |
115 | 135 | } |
116 | 136 | } |
|
136 | 156 | } |
137 | 157 | } |
138 | 158 |
|
| 159 | + &__inline-item-main { |
| 160 | + flex: 1; |
| 161 | + min-width: 0; |
| 162 | + display: flex; |
| 163 | + align-items: center; |
| 164 | + gap: 6px; |
| 165 | + } |
| 166 | + |
139 | 167 | &__inline-item-label { |
140 | 168 | flex: 1; |
| 169 | + min-width: 0; |
141 | 170 | overflow: hidden; |
142 | 171 | text-overflow: ellipsis; |
143 | 172 | white-space: nowrap; |
144 | 173 | } |
145 | 174 |
|
| 175 | + &__inline-item-btw-badge { |
| 176 | + flex: 0 0 auto; |
| 177 | + display: inline-flex; |
| 178 | + align-items: center; |
| 179 | + height: 12px; |
| 180 | + padding: 0 4px; |
| 181 | + border: 1px solid color-mix(in srgb, var(--border-subtle) 85%, transparent); |
| 182 | + border-radius: 999px; |
| 183 | + background: color-mix(in srgb, var(--element-bg-soft) 42%, transparent); |
| 184 | + color: var(--color-text-muted); |
| 185 | + font-size: 9px; |
| 186 | + font-weight: 500; |
| 187 | + letter-spacing: 0.02em; |
| 188 | + opacity: 0.78; |
| 189 | + } |
| 190 | + |
| 191 | + &__inline-item-tooltip { |
| 192 | + display: flex; |
| 193 | + flex-direction: column; |
| 194 | + gap: 2px; |
| 195 | + max-width: 260px; |
| 196 | + } |
| 197 | + |
| 198 | + &__inline-item-tooltip-title { |
| 199 | + font-size: 12px; |
| 200 | + font-weight: 600; |
| 201 | + color: var(--color-text-primary); |
| 202 | + line-height: 1.4; |
| 203 | + word-break: break-word; |
| 204 | + } |
| 205 | + |
| 206 | + &__inline-item-tooltip-meta { |
| 207 | + font-size: 11px; |
| 208 | + color: var(--color-text-secondary); |
| 209 | + line-height: 1.4; |
| 210 | + word-break: break-word; |
| 211 | + } |
| 212 | + |
146 | 213 | &__inline-item-actions { |
147 | 214 | display: none; |
148 | 215 | align-items: center; |
|
170 | 237 | transition: color $motion-fast $easing-standard, |
171 | 238 | background $motion-fast $easing-standard; |
172 | 239 |
|
173 | | - &:hover { |
| 240 | + &:hover, |
| 241 | + &.is-open { |
174 | 242 | color: var(--color-text-primary); |
175 | 243 | background: color-mix(in srgb, var(--color-text-primary) 10%, transparent); |
176 | 244 | } |
| 245 | + } |
| 246 | + |
| 247 | + &__inline-item-menu-popover { |
| 248 | + position: fixed; |
| 249 | + width: max-content; |
| 250 | + min-width: 140px; |
| 251 | + max-width: min(220px, calc(100vw - 24px)); |
| 252 | + padding: $size-gap-1 0; |
| 253 | + border-radius: $size-radius-base; |
| 254 | + background: var(--color-bg-elevated, #1e1e22); |
| 255 | + border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08)); |
| 256 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); |
| 257 | + z-index: 10000; |
| 258 | + transform-origin: top left; |
| 259 | + animation: bitfun-footer-menu-in $motion-fast $easing-decelerate forwards; |
| 260 | + } |
| 261 | + |
| 262 | + &__inline-item-menu-item { |
| 263 | + display: flex; |
| 264 | + align-items: center; |
| 265 | + gap: $size-gap-2; |
| 266 | + width: 100%; |
| 267 | + min-height: 28px; |
| 268 | + padding: 0 $size-gap-2; |
| 269 | + border: none; |
| 270 | + background: transparent; |
| 271 | + color: var(--color-text-secondary); |
| 272 | + font-size: $font-size-sm; |
| 273 | + font-weight: 400; |
| 274 | + cursor: pointer; |
| 275 | + text-align: left; |
| 276 | + white-space: nowrap; |
| 277 | + transition: color $motion-fast $easing-standard, |
| 278 | + background $motion-fast $easing-standard; |
| 279 | + |
| 280 | + svg { |
| 281 | + flex-shrink: 0; |
| 282 | + opacity: 0.7; |
| 283 | + transition: opacity $motion-fast $easing-standard; |
| 284 | + } |
| 285 | + |
| 286 | + &:hover:not(:disabled) { |
| 287 | + color: var(--color-text-primary); |
| 288 | + background: var(--element-bg-soft); |
| 289 | + |
| 290 | + svg { opacity: 1; } |
| 291 | + } |
177 | 292 |
|
178 | | - &.delete:hover { |
| 293 | + &.is-danger:hover:not(:disabled) { |
179 | 294 | color: var(--color-error, #ef4444); |
180 | 295 | background: color-mix(in srgb, var(--color-error, #ef4444) 10%, transparent); |
181 | 296 | } |
|
0 commit comments