MediaWiki:Common.css: Difference between revisions

(remove h2 / #toc ul {margin-left: 1em;})
No edit summary
 
(362 intermediate revisions by 11 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */  
/* Hiding Powered by Google Translate */
 
/* Removing for now
/* Entries to counter wiki.css code that is disrupting the ability of text to flow */
.goog-logo-link {
#mainContent p {
    display:none !important;
clear: none;
}
.goog-te-gadget {
    color: transparent !important;
}
}
 
.goog-te-gadget div:first-child::after {
#contentSub {
    display:none !important;
display: block;
font-size: 84%;
line-height: 1.2em;
margin: 0 0 1.4em 1em;
color: #7D7D7D;
width: auto;
}
}
*/


/* Entries to counter wiki.css code for TOC */
#toc {
width: auto;
}
#toc ul {
margin-top: 0px;
}
#toc ul {
margin-left: 1em;
}


/* images */
/* Temp fix START */
div.floatright, table.floatright {
/* Need to incorporate this correctly into FsLookAndFeel */
clear: right;
.vector-menu-tabs-legacy ul {
float: right;
    font-size: 18.8px;
position: relative;
margin: 0 0 .5em .5em;
border: 0;
}
}
div.floatleft, table.floatleft {
/*
float: left;
.fullFooter {
clear: left;
    float:left;
position: relative;
margin: 0 .5em .5em 0;
border: 0;
}
}
 
*/
/* Make the list of references smaller */
#global-footer {
ol.references,
    all: unset;
div.reflist,
    display: block;
div.refbegin {
    padding: 17px 24px 18px 8px;
     font-size: 90%;           /* Default font-size */
     box-sizing: border-box;
}
    -webkit-justify-content: space-between;
div.reflist ol.references {
    justify-content: space-between;
     font-size: 100%;           /* Reset font-size when nested in div.reflist */
    -webkit-align-items: flex-end;
     list-style-type: inherit; /* Enable custom list style types */
     align-items: flex-end;
     margin-left: 150px;
}
}


th { font-weight: bold; }
/*
 
#global-footer {
/* Ensure refs in table headers and the like aren't bold or italic */
     display: none;
sup.reference {
     vertical-align: super;
    font-size: smaller;
    font-weight: normal;
    font-style: normal;
}
}
 
.footer-left {
/* Font styles */
display:block !important;
pre, code, tt, kbd, samp {           /* mono-spaced */
    font-family: monospace,"Courier New";
}
}
 
.footer-right {
/* [[Template:Other languages]] */
display:block !important;
 
#otherlangs {
 
    margin:0.5em;
    padding:2px;
    border:1px solid #CCC;
    background:#FAFAFA;
    font-size:0.9em;
 
}
 
#otherlangs span {
 
    margin:0 2px;
    padding-left:2px;
    border-left:1px solid gray;
 
}
 
#otherlangs span.firstlang {
 
    border:none;
 
}
}
*/


/* Geographical coordinates defaults. See [[Template:Coord/link]]
/* Temp fix END */
  for how these are used. The classes "geo", "longitude", and
  "latitude" are used by the [[Geo microformat]].
*/
.geo-default, .geo-dms, .geo-dec  { display: inline; }
.geo-nondefault, .geo-multi-punct { display: none; }
.longitude, .latitude            { white-space: nowrap; }


#coordinates {
/* Charles edit comment out
position: absolute;
.flex-container{
top: 0em;
display:flex;
right: 0em;
flex-wrap:wrap;
float: right;
gap:20px
margin: 0.0em;
padding: 0.0em;
line-height: 1.5em;
text-align: right;
text-indent: 0;
font-size: 85%;
text-transform: none;
white-space: nowrap;
}
}
*/


/* Infobox template style */
.button1{
.infobox {
border-radius:10px;
    border: 1px solid #aaa;
background:#4d94ff;  
    background-color: #f9f9f9;
color:#ffffff;
    color: black;
padding:5px;
    margin: 0.5em 0 0.5em 1em;
width:230px;
    padding: 0.2em;
text-align:center;
    float: right;
font-size:15px;
    clear: right;
cursor:pointer;
    position: relative;
width:230px;
    z-index: 100;
}
.infobox td,
.infobox th {
    vertical-align: top;
}
.infobox caption {
    font-size: larger;
}
.infobox.bordered {
    border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
    border: 0;
}


/* Sidebar template style */
.sidebar {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    color: black;
    margin: 0.5em 1.5em 0.5em 0.5em;
    padding: 0.2em;
    float: left;
    clear: left;
    position: relative;
    z-index: 100;
}
}
.sidebar p,
.button2{
.sidebar table,
border-radius:10px;
.sidebar ul {
background:#f16458;
    margin-bottom: 6px;
color:#ffffff;
padding:5px;
width:230px;
text-align:center;
font-size:15px;
cursor:pointer;
width:230px;
}
}




/* Userbox template style */
.userboxes {
    position: relative;
    z-index: 100;
}


/* Default skin for navigation boxes */
/* Header stylying */
table.navbox {           /* Navbox container style */
.red_online_button {
  border: 1px solid #aaa;
padding:5px;
  width: 100%;
  margin: auto;
  margin-bottom: 0px;
  clear: both;
  text-align: center;
  padding: 1px;
}
table.navbox + table.navbox {  /* Single pixel border between adjacent navboxes */
  margin-top: -1px;            /* (doesn't work for IE6, but that's okay)      */
}
}
.navbox-title,
.mw-body-content h2 {
.navbox-abovebelow,
font-weight:bold;
table.navbox th {
line-height:1.3 !important;
  text-align: center;      /* Title and above/below styles */
font-size:1.5rem !important;
  padding-left: 1em;
  padding-right: 1em;
}
.navbox-group {           /* Group style */
  white-space: nowrap;
  text-align: right;
  font-weight: bold;
  padding-left: 1em;
  padding-right: 1em;
}
.navbox, .navbox-subgroup {
  background: #fdfdfd;     /* Background color */
}
.navbox-list {
  border-color: #fdfdfd;  /* Must match background color */
  margin-bottom: 0px;
}
.navbox-title,
table.navbox th {
  background: #ccccff;    /* Level 1 color */
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
  background: #ddddff;    /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
  background: #e6e6ff;    /* Level 3 color */
}
.navbox-even {
  background: #f7f7f7;    /* Even row striping */
}
.navbox-odd {
  background: transparent; /* Odd row striping */
}
}


/* Collapsible Tables */
.mw-body-content h3 {
.collapsible td {
font-weight:bold;
    vertical-align: middle;
line-height:1.6 !important;
font-size:1.4rem !important;
}
}


.collapseButton {         /* 'show'/'hide' buttons created dynamically */
.mw-body-content h4 {
    float: right;          /* by the CollapsibleTables javascript in    */
font-weight:bold;
    font-weight: normal;   /* [[MediaWiki:Common.js]]are styled here    */
line-height: 1.6 !important;
    text-align: right;    /* so they can be customised.               */
font-size:1.3rem !important;
    width: auto;
}
}
.navbox .collapseButton {  /* In navboxes, the show/hide button balances */
    width: 6em;            /* the vde links from [[Template:Tnavbar]],  */
}                          /* so they need to be the same width.        */


/* Documentation at [[Wikipedia:NavFrame]]. */
.mw-body-content h5 {
div.NavFrame {
font-weight:normal;
    margin: 0;
line-height:1.6 !important;
    padding: 4px;
font-size:1.2rem !important;
    border: 1px solid #aaa;
    text-align: center;
    border-collapse: collapse;
    font-size: 95%;
}
div.NavFrame + div.NavFrame {
    border-top-style: none;
    border-top-style: hidden;
}
div.NavPic {
    background-color: #fff;
    margin: 0;
    padding: 2px;
    float: left;
}
div.NavFrame div.NavHead {
    height: 1.6em;
    font-weight: bold;
    background-color: #ccf;
    position: relative;
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
    font-size: 100%;
}
div.NavEnd {
    margin: 0;
    padding: 0;
    line-height: 1px;
    clear: both;
}
a.NavToggle {
    position: absolute;
    top: 0;
    right: 3px;
    font-weight: normal;
    font-size: 90%;
}
/* For template documentation */
.template-documentation {
    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa;
    background-color: #eaede9;
    padding: 1em;
}
 
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
th.mbox-text, td.mbox-text {    /* The message body cell(s) */
    border: none;
    padding: 0.25em 0.9em;      /* 0.9em left/right */
    width: 100%;    /* Make all mboxes the same width regardless of text length */
}
td.mbox-image {                  /* The left image cell */
    border: none;
    padding: 2px 0 2px 0.9em;    /* 0.9em left, 0px right */
    text-align: center;
}
td.mbox-imageright {            /* The right image cell */
    border: none;
    padding: 2px 0.9em 2px 0;    /* 0px left, 0.9em right */
    text-align: center;
}
td.mbox-empty-cell {        /* An empty narrow cell */
    border: none;
    padding: 0px;
    width: 1px;
}
ul.mbox-text {
  margin-bottom: 0px;
}
ul ul {    /* Nested lists */
  margin-bottom: 0px;
}
}


/* Article message box styles */
.mw-body-content h6 {
table.ambox {
font-weight:normal;
    margin: 0px 10%;  /* 10% = Will not overlap with other elements */
line-height:1.6 !important;
    border: 1px solid #aaa;
font-size:1.1em !important;
    border-left: 10px solid #1e90ff;    /* Default "notice" blue */
font-style:italic;
    background: #fbfbfb;
}
table.ambox + table.ambox {   /* Single border between stacked boxes. */
    margin-top: -1px;
}
.ambox th.mbox-text,
.ambox td.mbox-text {            /* The message body cell(s) */
    padding: 0.25em 0.5em;       /* 0.5em left/right */
}
.ambox td.mbox-image {          /* The left image cell */
    padding: 2px 0 2px 0.5em;   /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright {      /* The right image cell */
    padding: 2px 0.5em 2px 0;   /* 0px left, 0.5em right */
}
}


table.ambox-notice {
#mw-head .vector-menu-dropdown h3 {
    border-left: 10px solid #1e90ff;    /* Blue */
font-size: 0.875em;
}
line-height: 1.125em;
table.ambox-speedy {
    border-left: 10px solid #b22222;    /* Red */
    background: #fee;                  /* Pink */
}
table.ambox-delete {
    border-left: 10px solid #b22222;    /* Red */
}
table.ambox-content {
    border-left: 10px solid #f28500;    /* Orange */
}
table.ambox-style {
    border-left: 10px solid #f4c430;   /* Yellow */
}
table.ambox-move {
    border-left: 10px solid #9932cc;    /* Purple */
}
table.ambox-protection {
    border-left: 10px solid #bba;       /* Gray-gold */
}
}


/* Image message box styles */
#mw-head .vector-menu-dropdown .vector-menu-content-list {
table.imbox {
font-size: 1.6em;
    margin: 4px 10%;
    border-collapse: collapse;
    border: 3px solid #1e90ff;    /* Default "notice" blue */
    background: #fbfbfb;
}
.imbox .mbox-text .imbox {    /* For imboxes inside imbox-text cells. */
    margin: 0 -0.5em;    /* 0.9 - 0.5 = 0.4em left/right. */
}
.mbox-inside .imbox {   /* For imboxes inside other templates. */
    margin: 4px;
}
}


table.imbox-notice {
#mw-head .vector-menu-dropdown .vector-menu-content-list {
    border: 3px solid #1e90ff;    /* Blue */
     top: 38px;
}
table.imbox-speedy {
    border: 3px solid #b22222;    /* Red */
    background: #fee;            /* Pink */
}
table.imbox-delete {
    border: 3px solid #b22222;    /* Red */
}
table.imbox-content {
    border: 3px solid #f28500;    /* Orange */
}
table.imbox-style {
    border: 3px solid #f4c430;    /* Yellow */
}
table.imbox-move {
    border: 3px solid #9932cc;    /* Purple */
}
table.imbox-protection {
    border: 3px solid #bba;      /* Gray-gold */
}
table.imbox-license {
    border: 3px solid #88a;      /* Dark gray */
    background: #f7f8ff;          /* Light gray */
}
table.imbox-featured {
     border: 3px solid #cba135;   /* Brown-gold */
}
}


/* Category message box styles */
/** Remove file upload links from edit menus (Source & VE) **/
table.cmbox {
.wikiEditor-ui-toolbar .section-main .group-insert .oo-ui-widget[rel="file"] {
    margin: 3px 10%;
  display: none !important;
    border-collapse: collapse;
    border: 1px solid #aaa;
    background: #DFE8FF;    /* Default "notice" blue */
}
}


table.cmbox-notice {
.oo-ui-toolbar-popups .oo-ui-toolGroup-tools .oo-ui-tool-name-media {
    background: #D8E8FF;    /* Blue */
  display: none !important;
}
table.cmbox-speedy {
    margin-top: 4px;
    margin-bottom: 4px;
    border: 4px solid #b22222;    /* Red */
    background: #FFDBDB;          /* Pink */
}
table.cmbox-delete {
    background: #FFDBDB;    /* Red */
}
table.cmbox-content {
    background: #FFE7CE;    /* Orange */
}
table.cmbox-style {
    background: #FFF9DB;    /* Yellow */
}
table.cmbox-move {
    background: #E4D8FF;    /* Purple */
}
table.cmbox-protection {
    background: #EFEFE1;   /* Gray-gold */
}
}


/* Other pages message box styles */
/* Remove the regular search bar from the Main Page */
table.ombox {
.page-Main_Page #mw-head #right-navigation #p-search {
    margin: 4px 10%;
display: none !important;
    border-collapse: collapse;
    border: 1px solid #aaa;      /* Default "notice" gray */
    background: #f9f9f9;
}
}


table.ombox-notice {
    border: 1px solid #aaa;      /* Gray */
}
table.ombox-speedy {
    border: 2px solid #b22222;    /* Red */
    background: #fee;            /* Pink */
}
table.ombox-delete {
    border: 2px solid #b22222;    /* Red */
}
table.ombox-content {
    border: 1px solid #f28500;    /* Orange */
}
table.ombox-style {
    border: 1px solid #f4c430;    /* Yellow */
}
table.ombox-move {
    border: 1px solid #9932cc;    /* Purple */
}
table.ombox-protection {
    border: 2px solid #bba;      /* Gray-gold */
}
/* Talk page message box styles */
table.tmbox {
    margin: 4px 5%;
    border-collapse: collapse;
    border: 1px solid #c0c090;    /* Default "notice" gray-brown */
    background: #f8eaba;
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" */
    margin: 2px 0;              /* class ensures that this declaration overrides other */
    width: 100%;  /* For Safari and Opera */    /* styles (including mbox-small above) */
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
    line-height: 1.5em;          /* also "nested", so reset styles that are  */ 
    font-size: 100%;            /* set in "mbox-small" above.                */
}


table.tmbox-speedy {
/** Fix layout shift **/
    border: 2px solid #b22222;    /* Red */
    background: #fee;            /* Pink */
}
table.tmbox-delete {
    border: 2px solid #b22222;    /* Red */
}
table.tmbox-content {
    border: 2px solid #f28500;    /* Orange */
}
table.tmbox-style {
    border: 2px solid #f4c430;    /* Yellow */
}
table.tmbox-move {
    border: 2px solid #9932cc;    /* Purple */
}
table.tmbox-protection,
table.tmbox-notice {
    border: 1px solid #c0c090;    /* Gray-brown */
}


/* Disambig and set index box styles */
.skiptranslate {
table.dmbox {
  margin-top: 0 !important;
    clear: both;
    margin: 0.9em 1em;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background: transparent;
}
/* Footer and header message box styles */
table.fmbox {
    clear: both;
    margin: 0.2em 0;
    width: 100%;
    border: 1px solid #aaa;
    background: #f9f9f9;    /* Default "system" gray */
}
}
table.fmbox-system {
#p-namespaces {
    background: #f9f9f9;
  display: flex;
  height: 42px;
}
}
table.fmbox-warning {
#ca-watch a span,
    border: 1px solid #bb7070;  /* Dark pink */
#ca-unwatch a span {
    background: #ffdbdb;       /* Pink */
  display: none;
}
}
table.fmbox-editnotice {
#ca-watch,
    background: transparent;
#ca-unwatch {
  display: flex;
  width: 24px;
}
}
.messagebox {
#p-namespaces .vector-menu-content-list li,
    border: 1px solid #AAA;
#p-views .vector-menu-content-list li {
    background: #F9F9F9;
  font-size:.8rem !important;
    width: 80%;
    margin: 0 auto 1em;
    padding: 0.2em;
    text-align: justify;
}
}
.messagebox tr th td {
#mw-head-base {
    vertical-align: top;
  height: unset !important;
}
}
 
.mw-body {
/* this can be used to switch off
  margin-top: unset !important;
special external link styling */
plainlinks a {
background: none !important;
padding: 0 !important;
}
}
 
.vector-menu-tabs #ca-watch.icon a::before {
/* TextArea */
  margin-top: 6px;
textarea {
    width: 100%;
}
}
 
.vector-menu-tabs-legacy li a {
/* Wikitable */
  float: left;
table.wikitable {
  height: 100% !important;
    background: #F9F9F9;
  padding-top: 1.5em;
    margin: 1em 1em 1em 0;
    border:solid 1px #AAAAAA;
    border-collapse: collapse;
    empty-cells:show;
}
}
.wikitable th,.wikitable td.hl3,.wikitable th.hl3 {
.vector-menu-tabs-legacy {
    background:#8da7d6
  height: 2.8em;
}
}
.wikitable td.hl1,.wikitable th.hl1 {
#right-navigation {
    background:#c5d8fc
  margin-top: 2.5em;
}
}
.wikitable td.hl2,.wikitable th.hl2 {
#left-navigation {
    background:#a7c1f2
   margin-top: 2.5em;
}
  margin-bottom: -2.5em;
 
/* Allow limiting of which header levels are shown in a TOC;
  <div class="toclimit-3">, for instance, will limit to
  showing ==headings== and ===headings=== but no further
   (as long as there are no =headings= on the page, which
  there shouldn't be according to the MoS).
*/
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
    display: none;
}
}
 
#mw-page-base {
/* These mbox-small classes must be placed after all other
  height: 5.2rem;
  ambox/tmbox/ombox etc classes. "body.mediawiki" is so
  they override "table.ambox + table.ambox" above. */
body.mediawiki table.mbox-small {   /* For the "small=yes" option. */
    clear: right;
    float: right;
    margin: 4px 0 4px 1em;
    width: 238px;
    font-size: 88%;
    line-height: 1.25em;
}
}
body.mediawiki table.mbox-small-left {   /* For the "small=left" option. */
#mw-head-base {
    margin: 4px 1em 4px 0;
  margin-top: unset !important;
    width: 238px;
  height: unset !important;
    border-collapse: collapse;
    font-size: 88%;
    line-height: 1.25em;
}
}
 
#p-views .vector-menu-content {
/* Top Icon placement */
  display: flex;
div.topicon {
  align-items: end;
    position: absolute;
  height: 42px;
    top: -2em;
    margin-right: -10px;
    display: block !important;
}
}
/* IE PNG Fix */
img,div { behavior:url(/learn/wiki/en/skins/familysearch/css/iepngfix.htc) }

Latest revision as of 16:49, 5 December 2024

/* Hiding Powered by Google Translate */
/* Removing for now
.goog-logo-link {
    display:none !important;
}
.goog-te-gadget {
    color: transparent !important;
}
.goog-te-gadget div:first-child::after {
    display:none !important;
}
*/


/* Temp fix START */
/* Need to incorporate this correctly into FsLookAndFeel */
.vector-menu-tabs-legacy ul {
    font-size: 18.8px;
}
/*
.fullFooter {
    float:left;
}
*/
#global-footer {
    all: unset;
    display: block;
    padding: 17px 24px 18px 8px;
    box-sizing: border-box;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: flex-end;
    align-items: flex-end;
    margin-left: 150px;
}

/*
#global-footer {
    display: none;
}
.footer-left {
	display:block !important;
}
.footer-right {
	display:block !important;
}
*/

/* Temp fix END */

/* Charles edit comment out
.flex-container{
	display:flex;
	flex-wrap:wrap;
	gap:20px
}
*/

.button1{
	border-radius:10px;
	background:#4d94ff; 
	color:#ffffff;
	padding:5px;
	width:230px;
	text-align:center;
	font-size:15px;
	cursor:pointer;
	width:230px;

}
.button2{
	border-radius:10px;
	background:#f16458; 
	color:#ffffff;
	padding:5px;
	width:230px;
	text-align:center;
	font-size:15px;
	cursor:pointer;
	width:230px;
}



/* Header stylying */
.red_online_button {
	padding:5px;
}
.mw-body-content h2 {
	font-weight:bold;
	line-height:1.3 !important;
	font-size:1.5rem !important;
}

.mw-body-content h3 {
	font-weight:bold;
	line-height:1.6 !important;
	font-size:1.4rem !important;
}

.mw-body-content h4 {
	font-weight:bold;
	line-height: 1.6 !important;
	font-size:1.3rem !important;
}

.mw-body-content h5 {
	font-weight:normal;
	line-height:1.6 !important;
	font-size:1.2rem !important;
}

.mw-body-content h6 {
	font-weight:normal;
	line-height:1.6 !important;
	font-size:1.1em !important;
	font-style:italic;
}

#mw-head .vector-menu-dropdown h3 {
	font-size: 0.875em;
	line-height: 1.125em;
}

#mw-head .vector-menu-dropdown .vector-menu-content-list {
	font-size: 1.6em;
}

#mw-head .vector-menu-dropdown .vector-menu-content-list {
    top: 38px;
}

/** Remove file upload links from edit menus (Source & VE) **/
.wikiEditor-ui-toolbar .section-main .group-insert .oo-ui-widget[rel="file"] {
  display: none !important;
}

.oo-ui-toolbar-popups .oo-ui-toolGroup-tools .oo-ui-tool-name-media {
  display: none !important;
}

/* Remove the regular search bar from the Main Page */
.page-Main_Page #mw-head #right-navigation #p-search {
	display: none !important;
}


/** Fix layout shift **/

.skiptranslate {
   margin-top: 0 !important;
}
#p-namespaces {
   display: flex;
   height: 42px;
}
#ca-watch a span,
#ca-unwatch a span {
   display: none;
}
#ca-watch,
#ca-unwatch {
   display: flex;
   width: 24px;
}
#p-namespaces .vector-menu-content-list li, 
#p-views .vector-menu-content-list li {
   font-size:.8rem !important;
}
#mw-head-base {
   height: unset !important;
}
.mw-body {
   margin-top: unset !important;
}
.vector-menu-tabs #ca-watch.icon a::before {
   margin-top: 6px;
}
.vector-menu-tabs-legacy li a {
   float: left;
   height: 100% !important;
   padding-top: 1.5em;
}
.vector-menu-tabs-legacy {
   height: 2.8em;
}
#right-navigation {
   margin-top: 2.5em;
}
#left-navigation {
   margin-top: 2.5em;
   margin-bottom: -2.5em;
}
#mw-page-base {
   height: 5.2rem;
}
#mw-head-base {
   margin-top: unset !important;
   height: unset !important;
}
#p-views .vector-menu-content {
  display: flex;
  align-items: end;
  height: 42px;
}