MDN: Content first (Header to Footer)

Moves main content to the top, so the header with dropdown menus lands above footer.

目前为 2021-03-11 提交的版本。查看 最新版本

/* ==UserStyle==
@name           MDN: Content first (Header to Footer)
@description    Moves main content to the top, so the header with dropdown menus lands above footer.
@namespace      myfonj
@version        1.0.3
@license        CC0 - Public Domain
==/UserStyle== */
@-moz-document domain("developer.mozilla.org") {
 /*
    https://gf.qytechs.cn/en/scripts/409087/versions/new
    2020-12-15 they switched to "signle column grid"
    With explicity set template-row, that matches matural source order.
    Makes no sense to me. Education? Showing off? Questions…
    You know what?
    Flexbox is fine. I think. Natural order, no need to keep track, no overlays.
    2021-03-11 switched to shallow grid with aside and main besides each other
  */
 .document-page .page-header {
  grid-row: 8/9; /* was 1/2 */
 }
 /*
 .document-page .breadcrumb-locale-container {
  grid-row: 2/3;
 }
 .document-page .document-toc-container {
  grid-column: 1/2;
  grid-row: 5/6;
 }
 .document-page .main-content {
  grid-column: 2/3;
  grid-row: 5/7;
 }
 .document-page .sidebar {
  grid-column: 1/2;
  grid-row: 6/7;
 }
 */
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址