review tab: keep chapril banner on top

* the 'top' value (0px) for '.repository .diff-detail-box.sticky'
  classes is defined here:
  4a20eadfd7/web_src/less/_repository.less (L1610)
* the 'top' values (46px, 77px) for
  '.ui.attached.header.diff-file-header.sticky-2nd-row' classes is
  defined here:
  4a20eadfd7/web_src/less/_repository.less (L3102)

Update #5733
This commit is contained in:
Pierre-Louis Bonicoli 2022-01-20 03:57:59 +01:00
parent 0985abbe59
commit a57f59671a
No known key found for this signature in database
GPG Key ID: 06914C4A5EDAA6DD
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
/* 42px: height of the chapril banner */
.repository .diff-detail-box.sticky {
top: 42px; /* default value (0) + 42px */
}
.ui.attached.header.diff-file-header.sticky-2nd-row {
top: 88px; /* default value (46px) + 42px */
}
@media (min-width: 768px) and (max-width: 991px) {
.ui.attached.header.diff-file-header.sticky-2nd-row {
top: 119px; /* default value (77px) + 42px */
}
}
@media (max-width: 767px) {
.ui.attached.header.diff-file-header.sticky-2nd-row {
top: 119px; /* default value (77px) + 42px */
}
}

View File

@ -1 +1,2 @@
<link rel="stylesheet" type="text/css" href="/Chapril-banner/v2/chapril-banner.css" /> <link rel="stylesheet" type="text/css" href="/Chapril-banner/v2/chapril-banner.css" />
<link rel="stylesheet" type="text/css" href="/assets/chapril-banner-v2.css" />