|
3 | 3 | .requests-event-item { |
4 | 4 | box-sizing: border-box; |
5 | 5 |
|
6 | | - &.selected .event, &:target .event { |
7 | | - outline: 2px solid @primaryColor; |
| 6 | + &.selected, &:target { |
| 7 | + & > .requests-event-container > .requests-event-inner-container > .event { |
| 8 | + outline: 2px solid @primaryColor; |
| 9 | + } |
8 | 10 | } |
9 | 11 | } |
10 | 12 |
|
11 | 13 | .requests-event-container { |
12 | 14 | position: relative; |
13 | 15 | padding: @defaultPadding 0; |
14 | 16 |
|
15 | | - &::before { |
| 17 | + &:not(.reply)::before { |
16 | 18 | position: absolute; |
17 | 19 | top: 0; |
18 | 20 | bottom: 0; |
|
31 | 33 | padding-top: 0; |
32 | 34 | } |
33 | 35 |
|
| 36 | + &.reply { |
| 37 | + padding: (@eventPadding / 2) @eventPadding; |
| 38 | + |
| 39 | + &:hover { |
| 40 | + background-color: @whiteHover; |
| 41 | + } |
| 42 | + |
| 43 | + .requests-avatar-container { |
| 44 | + margin-top: 0; |
| 45 | + } |
| 46 | + |
| 47 | + .content { |
| 48 | + margin: 0; |
| 49 | + } |
| 50 | + |
| 51 | + .event { |
| 52 | + background: none; |
| 53 | + } |
| 54 | + } |
| 55 | + |
| 56 | + .timeline-comment-editor-container { |
| 57 | + padding: @eventPadding; |
| 58 | + padding-top: 0; |
| 59 | + } |
34 | 60 | } |
35 | 61 |
|
36 | 62 | .requests-avatar-container { |
37 | 63 | padding-right: 0.5em; |
38 | 64 | margin-top: 1rem; |
| 65 | + position: relative; |
39 | 66 |
|
40 | 67 | @media screen and (max-width: @largestMobileScreen) { |
41 | 68 | margin-top: 0; |
|
45 | 72 | max-height: 40px; |
46 | 73 | width: auto; |
47 | 74 | } |
| 75 | + |
| 76 | + &.has-line::before { |
| 77 | + content: ""; |
| 78 | + position: absolute; |
| 79 | + display: block; |
| 80 | + top: 0; |
| 81 | + bottom: 0; |
| 82 | + // Half the width of the avatar minus the width of the line |
| 83 | + left: calc(1em - 2px); |
| 84 | + width: 2px; |
| 85 | + background-color: @borderColor; |
| 86 | + // Full height of the comment + the margin of the next comment |
| 87 | + height: calc(100% + 1rem); |
| 88 | + |
| 89 | + @media screen and (max-width: @largestMobileScreen) { |
| 90 | + & { |
| 91 | + display: none; |
| 92 | + } |
| 93 | + } |
| 94 | + } |
| 95 | + } |
| 96 | + |
| 97 | + .requests-comment-fake-reply { |
| 98 | + display: flex; |
| 99 | + align-items: center; |
| 100 | + padding: @eventPadding; |
| 101 | + padding-top: 0; |
| 102 | + |
| 103 | + .requests-avatar-container { |
| 104 | + margin-top: 0; |
| 105 | + } |
| 106 | + |
| 107 | + .requests-comment-fake-reply-input { |
| 108 | + width: 100%; |
| 109 | + } |
48 | 110 | } |
49 | 111 |
|
50 | 112 | .requests-event-inner-container { |
|
72 | 134 | flex: 1; |
73 | 135 | border: @defaultBorder; |
74 | 136 | border-radius: @defaultBorderRadius; |
75 | | - padding: 0.5 * @defaultPadding; |
76 | 137 | background-color: @white; |
77 | 138 | position: relative; |
78 | 139 |
|
|
94 | 155 | } |
95 | 156 | } |
96 | 157 |
|
| 158 | + .button.requests-reply-expand { |
| 159 | + margin-left: @eventPadding; |
| 160 | + } |
| 161 | + |
97 | 162 | &.requests-action-event { |
98 | 163 | border: 0; |
99 | 164 | display: flex; |
|
103 | 168 | margin-right: 0.5 * @defaultMargin; |
104 | 169 | } |
105 | 170 | } |
| 171 | + |
| 172 | + &.requests-reply-event { |
| 173 | + border: none; |
| 174 | + padding: 0; |
| 175 | + margin-left: 0.5rem; |
| 176 | + } |
| 177 | + |
| 178 | + p.requests-event-body-deleted { |
| 179 | + font-style: italic; |
| 180 | + color: @mutedTextColor; |
| 181 | + } |
106 | 182 | } |
107 | 183 |
|
108 | 184 | .requests-action-event-icon { |
|
113 | 189 | background-color: @white; |
114 | 190 | } |
115 | 191 | } |
| 192 | + |
| 193 | + .requests-comment-fake-reply { |
| 194 | + display: flex; |
| 195 | + align-items: center; |
| 196 | + |
| 197 | + .requests-avatar-container { |
| 198 | + margin-top: 0; |
| 199 | + } |
| 200 | + } |
| 201 | + |
| 202 | + .requests-reply-count { |
| 203 | + background-color: @primaryColor; |
| 204 | + color: white; |
| 205 | + padding: 2px 4px; |
| 206 | + border-radius: @defaultBorderRadius; |
| 207 | + font-weight: normal; |
| 208 | + // Default font Helvetica has non-standard metrics so doesn't look middle-aligned on Firefox |
| 209 | + font-family: sans-serif; |
| 210 | + font-size: 0.75rem; |
| 211 | + } |
| 212 | + |
| 213 | + .requests-reply-caret { |
| 214 | + margin-left: 2px !important; |
| 215 | + // The button styles add a right margin when the `right` class is added, despite that just being |
| 216 | + // part of the icon name. |
| 217 | + margin-right: 0 !important; |
| 218 | + } |
| 219 | + |
| 220 | + .requests-reply-load-more { |
| 221 | + // Padding + width of avatar + padding on right-side of avatar + margin on left-side of main content |
| 222 | + margin-left: calc(@eventPadding + 28px + 1em + 0.5rem); |
| 223 | + margin-top: 0.5rem; |
| 224 | + margin-bottom: 0.5rem; |
| 225 | + position: relative; |
| 226 | + color: @linkColor; |
| 227 | + font-weight: normal; |
| 228 | + |
| 229 | + &::before { |
| 230 | + content: ""; |
| 231 | + position: absolute; |
| 232 | + display: block; |
| 233 | + top: 0; |
| 234 | + bottom: 0; |
| 235 | + // Margin on left-side of main content, padding on right-side of avatar, half width of line |
| 236 | + left: calc(-1rem - 1em); |
| 237 | + width: 2px; |
| 238 | + background: linear-gradient(to bottom, white, @borderColor); |
| 239 | + // Full height of the comment + the margin of the next comment |
| 240 | + height: calc(100% + 1rem); |
| 241 | + } |
| 242 | + |
| 243 | + @media screen and (max-width: @largestMobileScreen) { |
| 244 | + & { |
| 245 | + margin: 0.5rem @eventPadding; |
| 246 | + &::before { |
| 247 | + display: none; |
| 248 | + } |
| 249 | + } |
| 250 | + } |
| 251 | + } |
116 | 252 | } |
117 | 253 | .ui.feed.last-page .requests-event-item:first-child .requests-event-container { |
118 | 254 | padding-top: @defaultPadding; |
|
134 | 270 | vertical-align: @userImageVerticalAlign; |
135 | 271 | } |
136 | 272 |
|
| 273 | + .event > .content { |
| 274 | + margin: @eventPadding; |
| 275 | + } |
| 276 | + |
137 | 277 | /*-------------- |
138 | 278 | Inline Date |
139 | 279 | ---------------*/ |
|
0 commit comments