Browse Source

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
main
Pierre-Louis Bonicoli 6 months ago
parent
commit
a57f59671a
No known key found for this signature in database
GPG Key ID: 6914C4A5EDAA6DD
  1. 21
      public/chapril-banner-v2.css
  2. 1
      templates/custom/header.tmpl

21
public/chapril-banner-v2.css

@ -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 */
}
}

1
templates/custom/header.tmpl

@ -1 +1,2 @@
<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" />

Loading…
Cancel
Save