|
16 | 16 | .project-contribution-changes-page { |
17 | 17 | display: flex; |
18 | 18 | flex-direction: column; |
19 | | - gap: 1.5rem; |
| 19 | + gap: 1rem; |
20 | 20 |
|
21 | 21 | & .branch-diff-content { |
22 | 22 | display: flex; |
23 | 23 | flex-direction: column; |
24 | | - gap: 1.5rem; |
| 24 | + gap: 1rem; |
25 | 25 |
|
26 | 26 | & .branch-diff-content-cards { |
27 | 27 | display: flex; |
28 | 28 | flex-direction: row; |
29 | | - gap: 1.5rem; |
| 29 | + gap: 1rem; |
30 | 30 | } |
31 | 31 | } |
32 | 32 |
|
33 | | - & .change-tree { |
34 | | - width: 18rem; |
35 | | - padding: 1rem; |
| 33 | + & .card.change-tree { |
| 34 | + --c-card_padding: 0.5rem; |
| 35 | + width: 16rem; |
36 | 36 | height: max-content; |
37 | 37 | overflow-x: clip; |
38 | 38 | position: relative; |
|
197 | 197 | & .definition-change.card .diff-side-by-side { |
198 | 198 | display: flex; |
199 | 199 | flex-direction: row; |
| 200 | + font-size: var(--font-size-small); |
200 | 201 | width: 100%; |
201 | 202 | gap: 0; |
202 | 203 |
|
|
206 | 207 |
|
207 | 208 | & header { |
208 | 209 | background: var(--u-color_element_subdued); |
209 | | - padding: 0.5rem 1rem; |
| 210 | + padding: 0.5rem; |
210 | 211 | line-height: 1; |
211 | 212 | font-size: var(--font-size-extra-small); |
212 | 213 | text-transform: uppercase; |
213 | 214 | font-weight: bold; |
214 | 215 | color: var(--u-color_text_subdued); |
| 216 | + border-bottom: 1px solid var(--u-color_border_subdued); |
215 | 217 | } |
216 | 218 |
|
217 | 219 | & code { |
218 | | - padding: 0.5rem 1rem; |
| 220 | + padding: 0.25rem 0.5rem; |
219 | 221 | } |
220 | 222 | } |
221 | 223 |
|
|
265 | 267 | & .definition-change.card.updated .segment-change a:hover { |
266 | 268 | background: var(--color-orange-3); |
267 | 269 | } |
268 | | - |
269 | | - & .definition-change.card .definition-change-details::before { |
270 | | - content: " "; |
271 | | - width: 0.25rem; |
272 | | - position: absolute; |
273 | | - top: 0; |
274 | | - left: 0; |
275 | | - bottom: 0; |
276 | | - border-radius: 0 0 0 3px; |
277 | | - } |
278 | | - |
279 | | - & .definition-change.card.updated .definition-change-details::before { |
280 | | - background: var(--color-orange-4); |
281 | | - } |
282 | | - |
283 | | - & .definition-change.card.removed .definition-change-details::before { |
284 | | - background: var(--color-pink-4); |
285 | | - } |
286 | | - |
287 | | - & .definition-change.card.added .definition-change-details::before { |
288 | | - background: var(--color-green-4); |
289 | | - } |
290 | | - |
291 | | - & .definition-change.card.aliased .definition-change-details::before { |
292 | | - background: var(--color-purple-4); |
293 | | - } |
294 | | - |
295 | | - & .definition-change.card.renamed .definition-change-details::before { |
296 | | - background: var(--color-blue-4); |
297 | | - } |
298 | 270 | } |
299 | 271 |
|
300 | 272 | & .icon { |
|
532 | 504 |
|
533 | 505 | .project-contribution-changes-page .contribution-diff_uncomputable { |
534 | 506 | padding: 1.5rem; |
| 507 | + |
535 | 508 | & h2 { |
536 | 509 | font-size: 1.25rem; |
537 | 510 | display: flex; |
|
548 | 521 | } |
549 | 522 | } |
550 | 523 |
|
551 | | -@container (max-width: 1199px) { |
| 524 | +@container (max-width: 400px) { |
552 | 525 | .project-contribution-changes-page .definition-changes { |
553 | 526 | & .definition-change.card .diff-side-by-side { |
554 | | - font-size: var(--font-size-medium); |
555 | 527 | flex-direction: column; |
556 | 528 | } |
557 | 529 |
|
|
567 | 539 | } |
568 | 540 | } |
569 | 541 |
|
570 | | -@container (min-width: 1200px) { |
571 | | - .diff-side-by-side { |
572 | | - font-size: var(--font-size-small); |
573 | | - flex-direction: row; |
574 | | - } |
575 | | -} |
576 | | - |
577 | | -@container (min-width: 1260px) { |
578 | | - .diff-side-by-side { |
579 | | - font-size: var(--font-size-medium); |
580 | | - flex-direction: row; |
581 | | - } |
582 | | -} |
583 | | - |
584 | | -@media only screen and (--u-viewport_max-xl) { |
585 | | - .project-contribution-changes-page { |
586 | | - & .change-tree { |
587 | | - width: 18rem; |
588 | | - } |
589 | | - } |
590 | | -} |
591 | | - |
592 | 542 | @media only screen and (--u-viewport_max-lg) { |
593 | 543 | .project-contribution-changes-page { |
594 | 544 | & .change-tree { |
|
601 | 551 | .project-contribution-changes-page { |
602 | 552 | & .definition-change.card { |
603 | 553 | & .definition-change-header .change-line { |
604 | | - max-width: 20rem; |
605 | | - overflow: hidden; |
| 554 | + & .change-info .hash, |
| 555 | + & .change-info .extra-info, |
| 556 | + & .change-info .icon.arrow-right, |
| 557 | + & .change-badge label { |
| 558 | + display: none; |
| 559 | + } |
| 560 | + |
| 561 | + & .change-badge_wrapper { |
| 562 | + width: auto; |
| 563 | + } |
| 564 | + |
| 565 | + & .change-badge { |
| 566 | + padding: 0.25rem; |
| 567 | + } |
606 | 568 | } |
607 | 569 |
|
608 | 570 | & .definition-change-details { |
|
612 | 574 | } |
613 | 575 | } |
614 | 576 | } |
| 577 | + |
| 578 | +@media only screen and (--u-viewport_max-sm) { |
| 579 | + :is(:is(.project-contribution-changes-page .change-line) .def-icon-anchor) |
| 580 | + .def-icon { |
| 581 | + display: none; |
| 582 | + } |
| 583 | +} |
0 commit comments