Commit 9bb9b0a2 authored by Caleb Crawley's avatar Caleb Crawley Committed by Neil Drumm
Browse files

Issue #3279771: CSS: Add “Toggle commit list” control to long merge request commit listings

parent 179e6934
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -18,3 +18,26 @@
    width: 100%;
  }
}

.merge-request-note {
  & > .collapsed {
    display: block;
    max-height: (18em / 13 * 3); // 3× line height
    position: relative;

    &::after {
      background: linear-gradient(transparent, #fff);
      content: ' ';
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      bottom: 0;
    }
  }

  .see-more {
    text-align: left;
    padding-bottom: 1em;
  }
}