MediaWiki:Common.css: Difference between revisions

From He is Coming Official Wiki
mNo edit summary
mNo edit summary
Line 7: Line 7:
   position: relative;
   position: relative;
   padding-bottom: 5px;
   padding-bottom: 5px;
  /* DO NOT set display:inline-block here! */
}
}


/* Add pixel-art border under h3 and h4 headings using background shorthand */
.mw-parser-output h3::after,
.mw-parser-output h3::after,
.mw-parser-output h4::after {
.mw-parser-output h4::after {
Line 15: Line 15:
   display: block;
   display: block;
   height: 5px;
   height: 5px;
   width: 100%;
   width: 100%;     /* This makes it span only the heading block, which will stop at the infobox */
   margin-top: 4px;
   margin-top: 4px;
   background:
   background:

Revision as of 20:09, 1 August 2025

/* CSS placed here will be applied to all skins */
/* Remove default border line on h3 and h4 headings */
.mw-parser-output h3,
.mw-parser-output h4 {
  border-bottom: none !important;
  box-shadow: none !important;
  position: relative;
  padding-bottom: 5px;
  /* DO NOT set display:inline-block here! */
}

.mw-parser-output h3::after,
.mw-parser-output h4::after {
  content: "";
  display: block;
  height: 5px;
  width: 100%;      /* This makes it span only the heading block, which will stop at the infobox */
  margin-top: 4px;
  background:
    no-repeat left center / auto 5px url(/images/mbhh_hisc/0/0c/Border_line_left.png?20250801175416),
    repeat-x center center / auto 5px url(/images/mbhh_hisc/2/2b/Border_line_middle.png?20250801175434),
    no-repeat right center / auto 5px url(/images/mbhh_hisc/b/b3/Border_line_right.png?20250801175454);
}