MediaWiki:Common.css: Difference between revisions

From DelDOT Project Development Manual
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
/* Adding hook to Font Awesome --------------------------------------------------------------------*/
@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css";


/*---------------DCK Edits 11/15/2021---------------*/
/* 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;
}
/*---------------DCK Edits 11/15/2021---------------*/
/* CSS placed here will be applied to all skins --------------------------------------------------*/
/* Color values used on this site. ---------------------------------------------------------------*/
/*
Black = #000
White = #fff
Red = #ff0000
Blue = #2d5296
Orange = #fa6c34
Light Grey = #ededed (Table Background Color)
*/
/* Sets the width of the content on the Foreground Skin ------------------------------------------*/
.row {
max-width: 80%;
}
/* Navigation Container Settings -----------------------------------------------------------------*/
nav.top-bar,
.top-bar.expanded .title-area {
    background: #2d5296;
}
#navwrapper {
    background: #2d5296;
}
#top-bar-left li,
#top-bar-left li a {
    background: #2d5296;
    border: 1px solid #2d5296;
}


#top-bar-right li,
/* CSS placed here will be applied to all skins */
#top-bar-right li a {
    background: #2d5296;
}


#top-bar-left li:hover,
/* Don't number the table of contents. Currently numbering is applied manually to the heading title */
#top-bar-left li a:hover,
.tocnumber {
#top-bar-right li:hover:not(.has-form),
     display:none
#top-bar-right li a:hover {
     background: #fa6c34;
    color: #fff;
}
}
 
/* Preferred ordered list styles (to match the old PDF BDMs) */
.page-Main_Page #firstHeading {
div ol {
     display: none;
     list-style-type:decimal
}
}


#tagline {
div ol ol {
     display: none;
     list-style-type:lower-alpha
}
}


#editform, #toolbar, #wpTextbox1 {
div ol ol ol {
     width: 100%;
     list-style-type:lower-roman
}
}


.top-bar-section .has-dropdown > a:hover:after {
div ol ol ol ol {
     border-color: #fa6c34 transparent transparent transparent;
     list-style-type:disc
}
}


.top-bar-section .has-dropdown > a:hover:after {
div ol ol ol ol ol {
     border-color: #fff transparent transparent transparent;
     list-style:none
}
}


/* Back to Top Button Settings ------------------------------------------------------------------*/
/* Custom "alpha" list style */
.noprint {
div.alpha_list ol {
font-family: "Open Sans", sans-serif;
    list-style-type:lower-alpha
font-size: 1.0em;
color: #2d5296;
background-color: #fff;
position: fixed;
bottom: 2.0%;
left: 0.5%;
padding: 0;
margin: 0%;
}
}


/* Change the body font-family for entire site. -------------------------------------------------*/
div.alpha_list ol ol {
body {
    list-style-type:lower-roman
  font-family: "Open Sans", sans-serif;
  font-size: 1.0em;
  color: #000;
}
}


p {
div.alpha_list ol ol ol {
font-family: "Open Sans", sans-serif;
    list-style-type:decimal
font-size: 1.0em;
color: #000;
margin: 0 0 1.0em 0;
line-height: 1.5em;
}
}


#p_white {
div.alpha_list ol ol ol ol {
font-family: "Open Sans", sans-serif;
    list-style-type:disc
font-size: 1.0em;
color: #fff;
margin: 0 0 1.0em 0;
line-height: 1.5em;
}
}


 
div.alpha_list ol ol ol ol ol {
.note_black {
    list-style:none
font-family: "Open Sans", sans-serif;
font-size: 1.0em;
color: #000;
background-color: #E8E8E8;
border: 2px solid #000;
padding: 1em
}
}


.note_green {
/* Not sure what these are for */
font-family: "Open Sans", sans-serif;
div#mydiv ol ol ol ol {
font-size: 1.0em;
    list-style-type:decimal
color: green;
background-color: #E8E8E8;
border: 2px solid #000;
padding: 1em
}
}


.note_red {
div ol ol ol ol ol > li {
font-family: "Open Sans", sans-serif;
    counter-increment:section
font-size: 1.0em;
color: red;
background-color: #E8E8E8;
border: 2px solid #000;
padding: 1em
}
}


.image_center{
div ol ol ol ol ol > li:before {
     margin: 0;
     content: "(" counter(section, decimal) ") "
    padding: 0;
    color: #ff0000;
    text-align: center;
}
}


#engineering_scale {
div ol ol ol ol ol ol {
     width: 45%;
     list-style:none;
     float:left;
     margin:0;
     box-sizing: border-box;
     padding:0
}
}


#architectural_scale {
div ol ol ol ol ol ol > li {
     width: 45%;
     counter-increment:subsection
    float:right;
    box-sizing: border-box;
    clear: right;
}
}


.clear_float {
div ol ol ol ol ol ol > li:before {
clear: both;
    content:counter(subsection, disc)" "
}
}


.main_page {
/* Change page sections to DelDOT orange */
border: 1px solid #2d5296;
}
 
#welcome_main {
color: #ffffff;
background-color: #fa6c34;
border-left: 20px solid #2d5296;
padding: 10px;
text-transform: uppercase;
}
 
 
/* Hiding categories at the bottom of each page. -------------------------------------------------*/
.catlinks { display: none; }
 
 
/* Headers - For Use Inside of MediaWiki Table of Contents ---------------------------------------*/
#firstHeading.title {
  font-family: "Open Sans", sans-serif;
  font-size: 2.3em;
  color: #fff;
  background-color: #fa6c34;
  line-height: 1.60em;
  border-left: 20px solid #2d5296;
  padding-left: 10px;
  text-transform: uppercase;
  }
 
h1 {
  font-family: "Open Sans", sans-serif;
  font-size: 2.0em;
  color: #2d5296;
  }
 
h2 {
h2 {
  font-family: "Open Sans", sans-serif;
/* color:#fe9901; This is the DelDOT website button orange */
  font-size: 1.8em;
    color:#F47920; /* Got this orange from the Restore the Corridor website */
  color: #2d5296;
} /* (xxx.x) */
  margin-top: 1.8em;
  border-bottom: 1px solid #2d5296;
  }
 
h2.first_on_page {
  font-family: "Open Sans", sans-serif;
  font-size: 1.8em;
  color: #2d5296;
  margin-top: 1.0em;
  border-bottom: 1px solid #2d5296;
  }
 
h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 1.2em;
  color: #2d5296;
  margin-top: 1.2em;
  font-weight: bold;
  /*text-decoration: underline;*/
  }
 
h4 {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1em;
  color: #2d5296;
  }
 
h5 {
  font-family: "Open Sans", sans-serif;
  font-size: 1.0em;
  color: #2d5296;
  }
 
h6 {
  font-family: "Open Sans", sans-serif;
  font-size: 0.9em;
  color: #2d5296;
  }
 
 
/* Header - For use Outside of MediaWiki Table of Contents ---------------------------------------*/
.h1_outtoc {
  font-family: "Open Sans", sans-serif;
  font-size: 2.0em;
  color: #2d5296;
  }
 
.h2_outtoc {
  font-family: "Open Sans", sans-serif;
  font-size: 1.8em;
  color: #2d5296;
  margin-top: 1.8em;
  border-bottom: 1px solid #2d5296;
  }
 
h2.outtoc_first_on_page {
  font-family: "Open Sans", sans-serif;
  font-size: 1.8em;
  color: #2d5296;
  margin-top: 1.0em;
  border-bottom: 1px solid #2d5296;
  }
 
.h3_outtoc {
  font-family: "Open Sans", sans-serif;
  /*font-size: 1.6em;*/
  font-size: 1.2em;
  color: #2d5296;
  /*border-bottom: 1px solid #2d5296; */
  }
 
.h4_outtoc {
  font-family: "Open Sans", sans-serif;
/*font-size: 1.4em;*/
  font-size: 1.1em;
  color: #2d5296;
  }
 
.h5_outtoc {
  font-family: "Open Sans", sans-serif;
/*font-size: 1.2em;*/
  font-size: 1.0em;
  color: #2d5296;
  }
 
.h6_outtoc {
  font-family: "Open Sans", sans-serif;
/*font-size: 1.0em;*/
  font-size: 0.9em;
  color: #2d5296;
  }


 
h5, h6 {
/* Headers - For Use With Manual Type Wiki Pages -------------------------------------------------*/
  font-style: italic; /* Most skins don't do this. It matches the PDF BDM */
h2.manual {
  font-family: "Open Sans", sans-serif;
  font-size: 1.8em;
  color: #2d5296;
  margin-top: 3.6em;
  border-bottom: 1px solid #2d5296;
  }
 
h3.manual {
  font-family: "Open Sans", sans-serif;
  font-size: 1.2em;
  color: #2d5296;
  margin-top: 2.0em;
  font-weight: bold;
  text-decoration: underline;
  }
 
 
/* Alerts or Warnings text settings---------------------------------------------------------------*/
.warning_red{
color: #ff0000;
font-size: 20px;
text-decoration: underline;
}
}


 
/* Adds some space between paragraphs */
/* Class for adding margin-bottom to tags requiring addition bottom offsets, such as <li> --------*/
.mw-body-content p {
li.page_content {
    margin: 0.75em 0;
margin-bottom: 1.25em;
}
}


li.page_content_1-1 {
/* List styling for reports */
margin-bottom: 1.0em;
}


ul.ul_proper_spacing {
.deldotreport ol {
margin: 0 0 0 2.0em;
  counter-reset: section;
  list-style-type: none;
}
}


/* CSS for Links ---------------------------------------------------------------------------------*/
.deldotreport ol li::before {
/* A link that has not been visited */
  counter-increment: section;
a:link {
  content: counter(section, upper-roman) ". ";
    color: blue;
}
}


/* A link that has been visited */
.deldotreport ol li > ol li::before {
a:visited {
  counter-increment: section;
    color: blue;
  content: counters(section,".") " ";
}
}
/* End styling for reports */


/* A link that is hovered on */
/* Styling for the Main Page */
a:hover {
    color: red;
}


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


/* Indentation Settings -------------------------------------------------------------------------*/
  .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);
  }


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


.tab0 {
margin-left: 0px;
}


.tab1 {
/* End styling for the Main Page */
margin-left: 25px;
}


.tab2 {
body #p-coll-print_export {display:none}
margin-left:25px;
#footer { display: Lastmodifiedat; }
body { font-size: larger; }
#toc {float:right;margin:0 0 1em 1em;position:fixed;top:150px;right:10px;}
.cFloat:not(:hover) {
opacity: 0.65;
}
}


.tab3 {
.cFloat:hover {
margin-left: 25px;
opacity: 1.0;
}
}


.tab4 {
@media (min-width:1200px) {
margin-left: 25px;
.cFloat .toc:not(:hover) {
}
opacity: 0.65;
 
}
 
.cFloat .toc:hover {
/* Style the button that is used to open and close the collapsible content -----------------------*/
opacity: 1.0;
.collapsible {
background-color: #fa6c34;
color: #fff;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
 
 
/* Add a background color to the button if it is clicked on --------------------------------------*/
/* Add the .active class with JS, and when you move the mouse over it (hover) --------------------*/
.active, .collapsible:hover {
background-color: #ccc;
}
 
 
/* Style the collapsible content. Note: hidden by default */
.content {
padding: 0 18px;
display: none;
overflow: hidden;
background-color: #f1f1f1;
}
 
 
/* DelDOT Table Settings -------------------------------------------------------------------------*/
.deldot_table {
    color: #000;
background-color: #ededed;
margin: 1em 0;
border: 1px solid #2d5296;
border-collapse: collapse;
}
table.deldot_table > * > tr > th,
table.deldot_table > * > tr > td {
border: 1px solid #2d5296;
}
table.deldot_table > * > tr > th {
color: #fff;
background-color: #2d5296;
text-align: center;
}
}
table.deldot_table * ul {
    padding: 0;
    margin: 0;
    }
table.deldot_table * li {
        padding: 5px 0 ;
        margin: 0;
        }
table.deldot_table * th,
table.deldot_table * td {
    padding: 10px;
}
table.deldot_table * ul,
table.deldot_table * ol {
margin: 0 0 0 30px;
}
}

Revision as of 19:48, 5 March 2024



/* 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; }
#toc {float:right;margin:0 0 1em 1em;position:fixed;top:150px;right:10px;}
.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;
	}
}