MediaWiki:Common.css: Difference between revisions

From The Jolly Contrarian
Jump to navigation Jump to search
Undo revision 89663 by Amwelladmin (talk)
Tag: Undo
No edit summary
Line 139: Line 139:
.custom-bullet-font {
.custom-bullet-font {
     font-family: georgia;
     font-family: georgia;
}
.custom-bullet-font {
    font-family: Georgia; /* Keep this for the font */
}
}


.custom-bullet-font ul {
.custom-bullet-font ul {
     list-style-position: outside;
    list-style-type: disc; /* Ensure bullet points are used */
     padding-left: 0;
     list-style-position: outside; /* Keep bullets outside */
     margin-left: 30px; /* Add this line */
     padding-left: 0; /* Ensure no extra padding */
     margin-left: 0; /* Remove margin to keep bullets flush left */
}
}


.custom-bullet-font ul li {
.custom-bullet-font ul li {
     font-family: Helvetica, Arial, sans-serif !important;
     font-family: Helvetica, Arial, sans-serif !important; /* Keep this line */
     padding-left: 0; /* Change this from 30px to 0 */
     padding-left: 30px; /* Adjust padding to create space for the text */
     text-indent: -30px;
     text-indent: -30px; /* Creates hanging indent by pulling first line back */
     margin-left: -30px; /* Add this line */
     margin-left: 0; /* Set to 0 to align bullets flush left */
}
}


.custom-bullet-font ul li > * {
.custom-bullet-font ul li > * {
    text-indent: 0;
     display: block;
     display: block;
     margin-left: 30px;
     margin-left: 0; /* Remove the extra margin */
    text-indent: 0; /* Ensure no extra indent for nested elements */
}
}


/* Default styles for the tables */
/* Default styles for the tables */

Revision as of 12:52, 28 August 2024

/* CSS placed here will be applied to all skins */
body.page-Main_Page h1.firstHeading { display: none; }
body.Page-main_Page .catlinks { display: none; }
body.mediawiki { font-family: georgia }
#firstHeading{ font-family: helvetica, sans-serif; font-size: 180%; }
#content h2, #content h3, #content h4, #content h5 { font-family: helvetica, sans-serif; font-weight: normal; }
#content h2 { font-size: 160%; }
#content h3 { font-size: 140%; }
#content h4 { font-size: 125%; }
#content h5 { font-size: 110%; }
#content h6 { font-family: helvetica, sans-serif; font-weight: normal; font-size: 105%; font-style: italic;}

.col2 { column-count: 2;  column-gap: 35px; text-align: justify; text-justify: inter-word;  hyphens: auto; }
.col3 { column-count: 3;  column-gap: 30px; text-align: justify; text-justify: inter-word;  hyphens: auto; }
.col4 { column-count: 4;  column-gap: 25px; }
.col5 { column-count: 5;  column-gap: 20px; }
.fontsize { font-size: 50%; } 
.right { text-align: right; }
.italic { font-style: italic; }
.wrap { white-space: pre; }
.indent { text-indent: 30px; }
.quote { margin-left: 30px; }
.quotalic { font-style: italic; margin-left: 30px; }
.smallarial { font-family: arial, sans-serif; font-size: 90%; }
.capitalize { text-transform: capitalize; }

/* make self-links not go bold */
a.mw-selflink {
  font-weight: inherit;
}

/* Change the external link icon to an Adobe icon for all PDF files */
.mw-parser-output a[href$=".pdf"],
.mw-parser-output a[href*=".pdf?"],
.mw-parser-output a[href*=".pdf#"],
.mw-parser-output a[href$=".PDF"],
.mw-parser-output a[href*=".PDF?"],
.mw-parser-output a[href*=".PDF#"] {
	background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
	/* @noflip */
	padding-right: 18px;
}

/* To make images responsive */
img {
	max-width:100%;
	height:auto;
}

/* Autonumbering paragraphs */

.mw-content-ltr dd {
      margin-left: 30px;
}

.mw-content-ltr ul {
     margin-top: 0px;
     margin-bottom: 0px;
     margin-left: 30px;
     margin-right: 0px;
}
.mw-content-ltr ol {
     margin-top: 0px;
     margin-bottom: 0px;
     margin-left: 0px;
     margin-right: 0px;
}
ul {
    list-style-position: outside;
    text-align: left;
    margin-bottom: 0px;
    margin-left: 30px; /* Adjusted margin */
    font-family: georgia;
}

ol {
    counter-reset: number;
    list-style-position: outside;
    text-align: left;
    margin-bottom: 0px;
    counter-reset: list;
    padding-left: 0px; /* No padding */
}
ol > li {
    list-style: none;
    counter-increment: list;
    margin-top: 6px;
    padding-left: 30px; /* Adjust this value to set the inner margin */
}
ol.decimal > li::before {
    content: counter(list);
    vertical-align: left;
    position: absolute;
    margin-left: -30px; /* Adjusted margin */
}
ol.doubledecimal > li::before { 
    content: counters(list, "."); 
    counter-increment: 1;
    vertical-align: left;
    position: absolute;
    margin-left: -30px; /* Adjusted margin */
}
ol.lower-alpha > li::before {
    content: "(" counter(list, lower-alpha) ")   ";
    vertical-align: left;
    position: absolute;
    margin-left: -30px; /* Adjusted margin */
}
ol.upper-alpha > li::before {
    content: "(" counter(list, upper-alpha) ")   ";
    vertical-align: left;
    position: absolute;
    margin-left: -30px; /* Adjusted margin */
}
ol.lower-roman > li::before {
    content: "(" counter(list, lower-roman) ")   ";
    vertical-align: left;
    position: absolute;
    margin-left: -30px; /* Adjusted margin */
}
ol.upper-roman > li::before {
    content: "(" counter(list, upper-roman) ")   ";
    vertical-align: left;
    position: absolute;
    margin-left: -30px; /* Adjusted margin */
}

/* drop caps */
.drop {
  font-weight: regular;
  float: left;
  margin-right: 5px;
  margin-bottom: -5px; 
  font-size: 3.5em;
  font-family: Georgia;
  line-height: 100%;
}

.custom-bullet-font {
    font-family: georgia;
}

.custom-bullet-font {
    font-family: Georgia; /* Keep this for the font */
}

.custom-bullet-font ul {
    list-style-type: disc; /* Ensure bullet points are used */
    list-style-position: outside; /* Keep bullets outside */
    padding-left: 0; /* Ensure no extra padding */
    margin-left: 0; /* Remove margin to keep bullets flush left */
}

.custom-bullet-font ul li {
    font-family: Helvetica, Arial, sans-serif !important; /* Keep this line */
    padding-left: 30px; /* Adjust padding to create space for the text */
    text-indent: -30px; /* Creates hanging indent by pulling first line back */
    margin-left: 0; /* Set to 0 to align bullets flush left */
}

.custom-bullet-font ul li > * {
    display: block;
    margin-left: 0; /* Remove the extra margin */
    text-indent: 0; /* Ensure no extra indent for nested elements */
}


/* Default styles for the tables */
#static-table {
    width: 50%; /* Default width when not beside another table */
    float: right; /* Default float setting */
    margin: 1% 0 0 1%;
    border: 1px solid lightgray; /* Updated border style */
    box-sizing: border-box;
}

#adaptive-table {
    width: 49%;
    margin: 0 1% 1% 0;
    border: 1px solid #000;
    box-sizing: border-box;
}

/* Ensure tables stack properly below one another */
.stacked {
    width: 100% !important;
    float: none !important;
    margin: 1% 0 !important;
}