|
43 | 43 | min-width: 400px; |
44 | 44 | } |
45 | 45 |
|
| 46 | +/* New activity feed styles */ |
| 47 | +.contributors-activities { |
| 48 | + display: flex; |
| 49 | + flex-direction: column; |
| 50 | + gap: 8px; |
| 51 | + margin-top: 12px; |
| 52 | + max-height: 240px; |
| 53 | + overflow-y: auto; |
| 54 | + scrollbar-width: thin; |
| 55 | + scrollbar-color: rgba(255, 255, 255, 0.2) transparent; |
| 56 | +} |
| 57 | + |
| 58 | +.contributors-activities::-webkit-scrollbar { |
| 59 | + width: 4px; |
| 60 | +} |
| 61 | + |
| 62 | +.contributors-activities::-webkit-scrollbar-track { |
| 63 | + background: transparent; |
| 64 | +} |
| 65 | + |
| 66 | +.contributors-activities::-webkit-scrollbar-thumb { |
| 67 | + background-color: rgba(255, 255, 255, 0.2); |
| 68 | + border-radius: 4px; |
| 69 | +} |
| 70 | + |
| 71 | +.contributor-activity-item { |
| 72 | + display: flex; |
| 73 | + align-items: center; |
| 74 | + padding: 8px 10px; |
| 75 | + border-radius: 10px; |
| 76 | + background-color: rgba(255, 255, 255, 0.08); |
| 77 | + transition: background-color 0.2s ease, transform 0.2s ease; |
| 78 | + cursor: pointer; /* Add pointer cursor to indicate clickable */ |
| 79 | +} |
| 80 | + |
| 81 | +.contributor-activity-item:hover { |
| 82 | + background-color: rgba(255, 255, 255, 0.15); |
| 83 | + transform: translateY(-2px); /* Slight lift effect on hover */ |
| 84 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); |
| 85 | +} |
| 86 | + |
| 87 | +.contributor-activity-item:focus { |
| 88 | + outline: 2px solid rgba(102, 126, 234, 0.6); |
| 89 | + outline-offset: 2px; |
| 90 | +} |
| 91 | + |
| 92 | +.contributor-activity-item:active { |
| 93 | + transform: translateY(0); |
| 94 | + background-color: rgba(255, 255, 255, 0.1); |
| 95 | +} |
| 96 | + |
| 97 | +.activity-item-avatar { |
| 98 | + margin-right: 12px; |
| 99 | + position: relative; |
| 100 | +} |
| 101 | + |
| 102 | +.activity-item-img { |
| 103 | + width: 32px; |
| 104 | + height: 32px; |
| 105 | + border-radius: 50%; |
| 106 | + border: 2px solid rgba(255, 255, 255, 0.2); |
| 107 | +} |
| 108 | + |
| 109 | +.activity-item-content { |
| 110 | + flex: 1; |
| 111 | + min-width: 0; |
| 112 | +} |
| 113 | + |
| 114 | +.activity-item-user { |
| 115 | + display: flex; |
| 116 | + justify-content: space-between; |
| 117 | + align-items: center; |
| 118 | +} |
| 119 | + |
| 120 | +.activity-item-username { |
| 121 | + font-weight: 600; |
| 122 | + font-size: 0.9rem; |
| 123 | + white-space: nowrap; |
| 124 | + overflow: hidden; |
| 125 | + text-overflow: ellipsis; |
| 126 | + color: rgba(255, 255, 255, 0.95); |
| 127 | +} |
| 128 | + |
| 129 | +.activity-item-badge { |
| 130 | + background-color: rgba(59, 130, 246, 0.2); |
| 131 | + padding: 2px 6px; |
| 132 | + border-radius: 12px; |
| 133 | + font-size: 0.8rem; |
| 134 | + color: rgba(255, 255, 255, 0.9); |
| 135 | +} |
| 136 | + |
| 137 | +.activity-item-action { |
| 138 | + font-size: 0.8rem; |
| 139 | + color: rgba(255, 255, 255, 0.7); |
| 140 | + margin-top: 2px; |
| 141 | +} |
| 142 | + |
| 143 | +.activities-more { |
| 144 | + text-align: center; |
| 145 | + padding: 8px; |
| 146 | + font-size: 0.85rem; |
| 147 | + color: rgba(255, 255, 255, 0.7); |
| 148 | + background-color: rgba(255, 255, 255, 0.05); |
| 149 | + border-radius: 8px; |
| 150 | + margin-top: 4px; |
| 151 | +} |
| 152 | + |
46 | 153 | /* Header embedded version - larger size */ |
47 | 154 | .floating-contributors-container.header-embedded .floating-contributors-card { |
48 | 155 | min-width: 450px; |
|
175 | 282 | border: 1px solid rgba(255, 255, 255, 0.1); |
176 | 283 | transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
177 | 284 | cursor: pointer; |
| 285 | + position: relative; |
| 286 | + overflow: hidden; |
178 | 287 | } |
179 | 288 |
|
180 | 289 | .floating-contributors-activity:hover { |
181 | 290 | background: rgba(255, 255, 255, 0.08); |
182 | 291 | border-color: rgba(102, 126, 234, 0.3); |
| 292 | + transform: translateY(-3px); |
| 293 | + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); |
| 294 | +} |
| 295 | + |
| 296 | +.floating-contributors-activity:focus { |
| 297 | + outline: 2px solid rgba(102, 126, 234, 0.6); |
| 298 | + outline-offset: 2px; |
| 299 | +} |
| 300 | + |
| 301 | +.floating-contributors-activity:active { |
183 | 302 | transform: translateY(-1px); |
| 303 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
| 304 | +} |
| 305 | + |
| 306 | +/* Subtle link indicator */ |
| 307 | +.floating-contributors-activity::after { |
| 308 | + content: "→"; |
| 309 | + position: absolute; |
| 310 | + right: 15px; |
| 311 | + top: 50%; |
| 312 | + transform: translateY(-50%) translateX(20px); |
| 313 | + opacity: 0; |
| 314 | + font-size: 16px; |
| 315 | + color: rgba(102, 126, 234, 0.8); |
| 316 | + transition: all 0.3s ease; |
| 317 | +} |
| 318 | + |
| 319 | +.floating-contributors-activity:hover::after { |
| 320 | + transform: translateY(-50%) translateX(0); |
| 321 | + opacity: 1; |
184 | 322 | } |
185 | 323 |
|
186 | 324 | [data-theme='light'] .floating-contributors-activity { |
|
369 | 507 | transform: scale(1.1); |
370 | 508 | } |
371 | 509 |
|
| 510 | +.contributor-link { |
| 511 | + position: relative; |
| 512 | + display: block; |
| 513 | + transition: all 0.3s ease; |
| 514 | +} |
| 515 | + |
| 516 | +.contributor-link::after { |
| 517 | + content: ''; |
| 518 | + position: absolute; |
| 519 | + inset: 0; |
| 520 | + border-radius: 50%; |
| 521 | + border: 2px solid transparent; |
| 522 | + transition: all 0.3s ease; |
| 523 | +} |
| 524 | + |
| 525 | +.contributor-link:focus { |
| 526 | + outline: none; |
| 527 | +} |
| 528 | + |
| 529 | +.contributor-link:focus::after { |
| 530 | + border-color: rgba(102, 126, 234, 0.8); |
| 531 | + box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2); |
| 532 | +} |
| 533 | + |
372 | 534 | [data-theme='light'] .contributor-avatar { |
373 | 535 | border-color: rgba(0, 0, 0, 0.2); |
374 | 536 | } |
|
414 | 576 | transform: translateX(-50%) translateY(-8px); |
415 | 577 | } |
416 | 578 |
|
417 | | -.tooltip-name { |
| 579 | +.tooltip-name, |
| 580 | +.tooltip-username { |
418 | 581 | font-weight: 600; |
419 | 582 | margin-bottom: 2px; |
420 | 583 | } |
|
0 commit comments