|
| 1 | +:global { |
| 2 | + html:not(.dark) { |
| 3 | + --rs-blog-avatar-group-ring: rgba(255, 255, 255, 0.92); |
| 4 | + --rs-blog-avatar-group-overflow-bg: var(--rp-c-bg-soft); |
| 5 | + } |
| 6 | + |
| 7 | + html.dark { |
| 8 | + --rs-blog-avatar-group-ring: #111827; |
| 9 | + --rs-blog-avatar-group-overflow-bg: rgba(255, 255, 255, 0.08); |
| 10 | + } |
| 11 | +} |
| 12 | + |
| 13 | +.root { |
| 14 | + display: inline-flex; |
| 15 | + align-items: center; |
| 16 | + gap: 10px; |
| 17 | + max-width: 100%; |
| 18 | + padding: 4px 0; |
| 19 | +} |
| 20 | + |
| 21 | +.avatar { |
| 22 | + width: 40px; |
| 23 | + height: 40px; |
| 24 | + border-radius: 50%; |
| 25 | + object-fit: cover; |
| 26 | + flex-shrink: 0; |
| 27 | + pointer-events: none; |
| 28 | + box-shadow: 0 0 0 1px rgba(143, 161, 185, 0.18); |
| 29 | +} |
| 30 | + |
| 31 | +.content { |
| 32 | + display: flex; |
| 33 | + flex-direction: column; |
| 34 | + min-width: 0; |
| 35 | + gap: 2px; |
| 36 | +} |
| 37 | + |
| 38 | +.nameRow { |
| 39 | + display: flex; |
| 40 | + align-items: center; |
| 41 | + gap: 8px; |
| 42 | + min-width: 0; |
| 43 | +} |
| 44 | + |
| 45 | +.name { |
| 46 | + color: var(--rp-c-text-1); |
| 47 | + font-size: 0.875rem; |
| 48 | + font-weight: 600; |
| 49 | + line-height: 1.25rem; |
| 50 | + white-space: nowrap; |
| 51 | + overflow: hidden; |
| 52 | + text-overflow: ellipsis; |
| 53 | +} |
| 54 | + |
| 55 | +.title { |
| 56 | + color: var(--rp-c-text-2); |
| 57 | + font-size: 0.75rem; |
| 58 | + line-height: 1.35; |
| 59 | + white-space: nowrap; |
| 60 | + overflow: hidden; |
| 61 | + text-overflow: ellipsis; |
| 62 | +} |
| 63 | + |
| 64 | +.links { |
| 65 | + display: flex; |
| 66 | + align-items: center; |
| 67 | + gap: 4px; |
| 68 | + color: var(--rp-c-text-2); |
| 69 | + opacity: 0.55; |
| 70 | + transition: |
| 71 | + opacity 0.2s ease, |
| 72 | + color 0.2s ease; |
| 73 | +} |
| 74 | + |
| 75 | +.root:hover .links, |
| 76 | +.root:focus-within .links { |
| 77 | + opacity: 1; |
| 78 | +} |
| 79 | + |
| 80 | +.link { |
| 81 | + display: inline-flex; |
| 82 | + align-items: center; |
| 83 | + justify-content: center; |
| 84 | + width: 20px; |
| 85 | + height: 20px; |
| 86 | + border-radius: 999px; |
| 87 | + color: inherit; |
| 88 | + transition: |
| 89 | + color 0.2s ease, |
| 90 | + background-color 0.2s ease; |
| 91 | + |
| 92 | + &:hover, |
| 93 | + &:focus-visible { |
| 94 | + color: var(--rp-c-text-1); |
| 95 | + } |
| 96 | + |
| 97 | + &:focus-visible { |
| 98 | + outline: 2px solid var(--rp-c-text-1); |
| 99 | + outline-offset: 2px; |
| 100 | + } |
| 101 | + |
| 102 | + svg { |
| 103 | + width: 12px; |
| 104 | + height: 12px; |
| 105 | + } |
| 106 | +} |
| 107 | + |
| 108 | +.group { |
| 109 | + display: flex; |
| 110 | + flex-wrap: wrap; |
| 111 | + gap: 10px 20px; |
| 112 | + max-width: 100%; |
| 113 | +} |
| 114 | + |
| 115 | +.groupItem { |
| 116 | + max-width: 100%; |
| 117 | +} |
| 118 | + |
| 119 | +.compactGroup { |
| 120 | + display: flex; |
| 121 | + align-items: center; |
| 122 | + gap: 10px; |
| 123 | + min-width: 0; |
| 124 | + max-width: 100%; |
| 125 | +} |
| 126 | + |
| 127 | +.compactAvatars { |
| 128 | + display: flex; |
| 129 | + align-items: center; |
| 130 | + flex-shrink: 0; |
| 131 | +} |
| 132 | + |
| 133 | +.compactAvatar, |
| 134 | +.compactOverflow { |
| 135 | + width: 28px; |
| 136 | + height: 28px; |
| 137 | + border-radius: 50%; |
| 138 | + box-shadow: 0 0 0 2px var(--rs-blog-avatar-group-ring); |
| 139 | +} |
| 140 | + |
| 141 | +.compactAvatar { |
| 142 | + object-fit: cover; |
| 143 | + background-color: var(--rp-c-bg-soft); |
| 144 | +} |
| 145 | + |
| 146 | +.compactAvatar + .compactAvatar, |
| 147 | +.compactOverflow { |
| 148 | + margin-left: -8px; |
| 149 | +} |
| 150 | + |
| 151 | +.compactOverflow { |
| 152 | + display: inline-flex; |
| 153 | + align-items: center; |
| 154 | + justify-content: center; |
| 155 | + color: var(--rp-c-text-1); |
| 156 | + font-size: 0.75rem; |
| 157 | + font-weight: 600; |
| 158 | + line-height: 1; |
| 159 | + background-color: var(--rs-blog-avatar-group-overflow-bg); |
| 160 | +} |
| 161 | + |
| 162 | +.compactNames { |
| 163 | + min-width: 0; |
| 164 | + color: var(--rp-c-text-2); |
| 165 | + font-size: 0.875rem; |
| 166 | + line-height: 1.35; |
| 167 | + white-space: nowrap; |
| 168 | + overflow: hidden; |
| 169 | + text-overflow: ellipsis; |
| 170 | +} |
| 171 | + |
| 172 | +@media (max-width: 768px) { |
| 173 | + .group { |
| 174 | + gap: 10px 16px; |
| 175 | + } |
| 176 | + |
| 177 | + .compactGroup { |
| 178 | + gap: 8px; |
| 179 | + } |
| 180 | + |
| 181 | + .compactNames { |
| 182 | + font-size: 0.8125rem; |
| 183 | + } |
| 184 | +} |
0 commit comments