MediaWiki:Common.css

From DelDOT Project Development Manual
Revision as of 19:01, 12 March 2024 by BBarnard (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
body h1.firstHeading { display: none; }

/* Indentation Settings -------------------------------------------------------------------------*/

/* Indent subheadings and their text */
h2, h3, h4, h5, h6 {
    margin-left: 20px; /* Adjust the indentation size as needed */
}

/* Increase indentation for deeper levels of subheadings */
h3 {
    margin-left: 40px; /* Adjust the indentation size as needed */
}

h4 {
    margin-left: 60px; /* Adjust the indentation size as needed */
}

h5 {
    margin-left: 80px; /* Adjust the indentation size as needed */
}

h6 {
    margin-left: 100px; /* Adjust the indentation size as needed */
}

/* Indent all text by the same amount */
body {
    margin-left: 20px; /* Adjust the indentation size as needed */
}

/* Don't number the table of contents. Currently numbering is applied manually to the heading title */
.tocnumber {
    display:none
}

/* Styling for the Main Page */

body.page-Main_Page h1 {
    display: none;  /* Don't show the title ("Main Page") of the main page */
}
/* Apply flex-box to screens (not print) */
@media screen {
  .main-flexcontainer {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
  }

  .main-flexbox {
    border: 1px solid #CCC;
    padding: 0 1em 1em;
    margin: 0 10px 20px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  }

  .main-flexbox ul {
    list-style: none;
    line-height: 2;
    margin-left: 0.5em;
  }


/* End styling for the Main Page */

/* Site wide edits here */

body #p-coll-print_export {display:none}
#footer { display: none; }
body { font-size: larger; }


/* Float Table of Contents to the right */
#toc {
    float: right;
    margin:0 0 1em 1em;
    position:fixed;
    top:100px;
    right:10px;
    max-width:50%;
    max-height: 1%; /* Adjust the maximum height as needed */
    overflow-y: scroll;
}

/* Limit the number of subheadings to one level */
#toc ul ul ul {
    display: none;
}

#toc > ul > li > ul > li > ul {
    display: block;
}

/* Add ellipsis (...) for hidden second-level subheadings */
#toc li.tochidden:after {
    content: ' ...'; /* You can customize the ellipsis as needed */
    color: #888; /* Adjust the color as needed */
}