MediaWiki:Common.css

From DelDOT Project Development Manual
Revision as of 19:41, 5 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 */

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

/* Preferred ordered list styles (to match the old PDF BDMs) */
div ol {
    list-style-type:decimal
}

div ol ol {
    list-style-type:lower-alpha
}

div ol ol ol {
    list-style-type:lower-roman
}

div ol ol ol ol {
    list-style-type:disc
}

div ol ol ol ol ol {
    list-style:none
}

/* Custom "alpha" list style */
div.alpha_list ol {
    list-style-type:lower-alpha
}

div.alpha_list ol ol {
    list-style-type:lower-roman
}

div.alpha_list ol ol ol {
    list-style-type:decimal
}

div.alpha_list ol ol ol ol {
    list-style-type:disc
}

div.alpha_list ol ol ol ol ol {
    list-style:none
}

/* Not sure what these are for */
div#mydiv ol ol ol ol {
    list-style-type:decimal
}

div ol ol ol ol ol > li {
    counter-increment:section
}

div ol ol ol ol ol > li:before {
    content: "(" counter(section, decimal) ") "
}

div ol ol ol ol ol ol {
    list-style:none;
    margin:0;
    padding:0
}

div ol ol ol ol ol ol > li {
    counter-increment:subsection
}

div ol ol ol ol ol ol > li:before {
    content:counter(subsection, disc)" "
}

/* Change page sections to DelDOT orange */
h2 {
/*  color:#fe9901; This is the DelDOT website button orange */
    color:#F47920; /* Got this orange from the Restore the Corridor website */
} /* (xxx.x) */

h5, h6 {
  font-style: italic; /* Most skins don't do this. It matches the PDF BDM */
}

/* Adds some space between paragraphs */
.mw-body-content p {
    margin: 0.75em 0;
}

/* List styling for reports */

.deldotreport ol {
  counter-reset: section;
  list-style-type: none;
}

.deldotreport ol li::before {
  counter-increment: section;
  content: counter(section, upper-roman) ". ";
}

.deldotreport ol li > ol li::before {
  counter-increment: section;
  content: counters(section,".") " ";
}
/* End styling for reports */

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

body #p-coll-print_export {display:none}
#footer { display: Lastmodifiedat; }
body { font-size: larger; }
/* Adding hook to Font Awesome --------------------------------------------------------------------*/
@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css";


/* Table of Contents modifications ---------------------------------------------------------------*/
#toc{
    margin: 0;
}
.toctogglecheckbox:checked ~ ul {
    display: none;
}
@media print {
    .toctogglecheckbox:checked + .toctitle {
        display: none;
    }
}
@media screen {
    :not(:checked) > .toctogglecheckbox {
        display: inline !important;
        position: absolute;
        opacity: 0;
        z-index: -1;
    }
    .toctogglespan {
        font-size: 94%;
    }
    :not(:checked) > .toctogglespan:before {
        content: " [";
    }
    :not(:checked) > .toctogglespan:after {
        content: "]";
    }
    .toctogglelabel {
        cursor: pointer;
        color: #0645ad;
    }
    .toctogglelabel:hover {
        text-decoration: underline;
    }
    .toctogglecheckbox:focus + .toctitle .toctogglelabel {
        text-decoration: underline;
        outline: dotted 1px;
        outline: auto -webkit-focus-ring-color;
    }
    .toctogglecheckbox:checked + .toctitle .toctogglelabel:after {
        content: "show";
    }
    .toctogglecheckbox:not(:checked) + .toctitle .toctogglelabel:after {
        content: "hide";
    }
    .toc h2 {
        display: inline;
        /*border: 0;
        padding: 0;
        font-size: 100%;
        font-weight: bold;*/
    }
}

.noautonum .tocnumber { 
	display: none;
}

.cFloat {
	position: fixed;
	right: 2em;
	top: 6em;
	background-color: #fff;
	z-index: 1; /*This keeps it above the Circles.*/
	max-width: 700px;
}

.cFloat:not(:hover) {
	opacity: 0.65;
}

.cFloat:hover {
	opacity: 1.0;
}

@media (min-width:1200px) {
	.cFloat .toc:not(:hover) {
		opacity: 0.65;
	}
	.cFloat .toc:hover {
		opacity: 1.0;
	}
}
/*This will add scroll bars to the TOC based on the visible height of the window. ----------------*/
/*Figuring out how to get it to only do this when not collapsed was a bear -----------------------*/
@media only screen and (max-height: 800px) {
 .toctogglecheckbox:not(:checked) ~ ul {
	display: block;
	height:70vh;
	overflow: scroll;
 }
}

/*This will create a circle around the item.*/
.justthetip {
	height: 25px;
	width: 25px;
	background-color: #13548e;
	border-radius: 50%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-weight: bold;
	z-index: -1;
}

.TMI {
	height: 25px;
	width: 25px;
	background-color: #555555;
	border-radius: 10%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-weight: bold;
	z-index: -1;
}

.tooltip {
	position: relative;
	display: inline-block;
	background: none;
	width:auto;
	left: auto;
	padding: 0;
}

.tooltipTMI {
	position: relative;
	display: inline-block;
	background: none;
	width:auto;
	left: auto;
	padding: 0;
}

.tooltiptext{
	z-index: 1;
}
.tooltip .tooltiptext {
	visibility: hidden;
	width: 300px; /*I don't like that this is static, but I've got bigger fish to fry */
	background-color: #13548e;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 10px;
	position: absolute;
	top: 120%;
	margin-left: -162px;
	z-index: 1;
}

.tooltipTMI .tooltiptext {
	visibility: hidden;
	width: 300px; /*I don't like that this is static, but I've got bigger fish to fry */
	background-color: #555555;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 10px;
	position: absolute;
	top: 120%;
	margin-left: -162px;
	z-index: 1;
}

.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	bottom: 100%;
	margin-left: -5px;
	border-width: 5px 5px 5px 5px;
	left: 50%;
	border-style: solid;
	border-color: transparent transparent #004684 transparent;
}
/*This is the little triangle */
.tooltipTMI .tooltiptext::after {
	content: "";
	position: absolute;
	bottom: 100%;
	margin-left: -5px;
	border-width: 5px 5px 5px 5px;
	left: 50%;
	border-style: solid;
	border-color: transparent transparent #555555 transparent;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	/*This causes the tooltip window to be on top of everything else, since it temporary.*/
	z-index: 1;
}

.tooltipTMI:hover .tooltiptext {
	visibility: visible;
	/*This causes the tooltip window to be on top of everything else, since it temporary.*/
	z-index: 1;
}