MediaWiki:Common.css: Difference between revisions

From DelDOT Project Development Manual
Jump to navigation Jump to search
Jtice (talk | contribs)
No edit summary
No edit summary
 
(154 intermediate revisions by 3 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
body h1.firstHeading { display: none; }
/* Hide the default image arrows */
.wikitable.sortable th .mw-sorticon {
    background-image: none !important;
}


.tocnumber {
/* Add Unicode arrows for sorting */
     display:none
.wikitable.sortable th::after {
     content: " ↕"; /* Neutral arrow */
    color: white; /* Match arrow color */
}
}


div ol {
.wikitable.sortable th[data-sort-type="number"]::after {
     list-style-type:decimal
     content: " ↑"; /* Ascending arrow */
}
}


div ol ol {
.wikitable.sortable th[data-sort-type="number"].headerSortDown::after {
     list-style-type:lower-alpha
     content: " ↓"; /* Descending arrow */
}
}


div ol ol ol {
 
    list-style-type:lower-roman
/*START - DELETE  DCK testing 3/22/24*/
.tab {
margin-left: 25px;
}
.h2dck{
  font-family: "Open Sans", sans-serif;
  font-size: 1.8em;
  margin-top: 1.8em;
}
}
 
.cFloat:not(:hover) {
div ol ol ol ol {
opacity: 0.65;
    list-style-type:disc
}
}


div ol ol ol ol ol {
.cFloat:hover {
    list-style:none
opacity: 1.0;
}
}
 
.noautonum .tocnumber {  
div.alpha_list ol {
display: none;
    list-style-type:lower-alpha
}
}


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


div.alpha_list ol ol ol {
.cFloat:not(:hover) {
    list-style-type:decimal
opacity: 0.65;
}
}


div.alpha_list ol ol ol ol {
.cFloat:hover {
    list-style-type:disc
opacity: 1.0;
}
}


div.alpha_list ol ol ol ol ol {
@media (min-width:1200px) {
    list-style:none
.cFloat .toc:not(:hover) {
opacity: 0.65;
}
.cFloat .toc:hover {
opacity: 1.0;
}
}
}


/*Adding in for underlining links*/


div#mydiv ol ol ol ol {
#content a {
    list-style-type:decimal
  text-decoration: underline;
}
}


div ol ol ol ol ol > li {
#toc a {
    counter-increment:section
  text-decoration: none;
}
}


div ol ol ol ol ol > li:before {
 
    content: "(" counter(section, decimal) ") "
/*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: 2000px) {
.toctogglecheckbox:not(:checked) ~ ul {
display: block;
height:60vh;
overflow: scroll;
}
}
}
/*END - DELETE DCK Testing*/


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 {
/* Don't number the table of contents. Currently numbering is applied manually to the heading title */
     content:counter(subsection, disc)" "
.tocnumber {
     display:none
}
}


h2 {
/* Styling for the Main Page */
    color:#fe9901;
    font-size:48px;
    font-style:bold;
    border:none; 
} /* (xxx.x) */


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


h4 {
  .main-flexbox {
     font-size:16p;
     border: 1px solid #CCC;
     font-style:italic;  
    padding: 0 1em 1em;
} /* (xxx.x.x.x) */
     margin: 0 10px 20px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  }


h5 {
  .main-flexbox ul {
     font-size:14p;
     list-style: none;
     font-style:none;
    line-height: 2;
} /* (xxx.x.x.x.x) */
     margin-left: 0.5em;
  }


h6 {
    font-size:14p;
    font-style:italic; 
} /* (xxx.x.x.x.x.x) */


.mw-body-content p {
/* End styling for the Main Page */
    margin: 0.75em 0;
}


/* List styling for reports */
/* Site wide edits here */
div.deldotreport{
  counter-reset: report-section;
}


div.deldotreport ol {  
body #p-coll-print_export {display:none}
  counter-reset: report-subsection;
#footer { display: none; }
list-style-type: upper-roman;  
body { font-size: larger; }
}
div.deldotreport ol::before {  
  counter-increment: report-section;
}


div.deldotreport ol ol {
list-style-type: none;
}
div.deldotreport ol ol::before {
  counter-increment: report-subsection;
  content: counter(report-section) "." counter(report-subsection) " ";
}


div.deldotreport ol ol ol {  
/* Float Table of Contents to the right */
list-style-type: lower-roman;  
#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;
}
}

Latest revision as of 19:11, 26 February 2026

/* CSS placed here will be applied to all skins */
body h1.firstHeading { display: none; }
/* Hide the default image arrows */
.wikitable.sortable th .mw-sorticon {
    background-image: none !important;
}

/* Add Unicode arrows for sorting */
.wikitable.sortable th::after {
    content: " ↕"; /* Neutral arrow */
    color: white; /* Match arrow color */
}

.wikitable.sortable th[data-sort-type="number"]::after {
    content: " ↑"; /* Ascending arrow */
}

.wikitable.sortable th[data-sort-type="number"].headerSortDown::after {
    content: " ↓"; /* Descending arrow */
}


/*START - DELETE  DCK testing 3/22/24*/
.tab {
	margin-left: 25px;
}
.h2dck{
   font-family: "Open Sans", sans-serif;
   font-size: 1.8em;
   margin-top: 1.8em;
}
.cFloat:not(:hover) {
	opacity: 0.65;
}

.cFloat:hover {
	opacity: 1.0;
}
.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;
	}
}

/*Adding in for underlining links*/

#content a {
  text-decoration: underline;
}

#toc a {
  text-decoration: none;
}


/*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: 2000px) {
 .toctogglecheckbox:not(:checked) ~ ul {
	display: block;
	height:60vh;
	overflow: scroll;
 }
}
/*END - DELETE DCK Testing*/



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