MediaWiki:Common.css: Difference between revisions

(add styles for message boxes)
No edit summary
 
(408 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
/* [[Template:Other languages]] */
.goog-logo-link {
 
     display:none !important;
#otherlangs {
}
 
.goog-te-gadget {
     margin:0.5em;
     color: transparent !important;
    padding:2px;
}
    border:1px solid #CCC;
.goog-te-gadget div:first-child::after {
     background:#FAFAFA;
     display:none !important;
    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]]
  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; }




/* Default skin for navigation boxes */
/* Temp fix START */
table.navbox {            /* Navbox container style */
/* Need to incorporate this correctly into FsLookAndFeel */
  border: 1px solid #aaa;
.vector-menu-tabs-legacy ul {
  width: 100%;
    font-size: 18.8px;
  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)      */
.fullFooter {
    float:left;
}
}
.navbox-title,
*/
.navbox-abovebelow,
#global-footer {
table.navbox th {
    all: unset;
  text-align: center;     /* Title and above/below styles */
    display: block;
  padding-left: 1em;
    padding: 17px 24px 18px 8px;
  padding-right: 1em;
    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;
}
}
.navbox-group {            /* Group style */
 
  white-space: nowrap;
/*
  text-align: right;
#global-footer {
  font-weight: bold;
    display: none;
  padding-left: 1em;
  padding-right: 1em;
}
}
.navbox, .navbox-subgroup {
.footer-left {
  background: #fdfdfd;     /* Background color */
display:block !important;
}
}
.navbox-list {
.footer-right {
  border-color: #fdfdfd;  /* Must match background color */
display:block !important;
  margin-bottom: 0px;
}
}
.navbox-title,
*/
table.navbox th {
 
  background: #ccccff;     /* Level 1 color */
/* Temp fix END */
 
/* Charles edit comment out
.flex-container{
display:flex;
flex-wrap:wrap;
gap:20px
}
}
.navbox-abovebelow,
*/
.navbox-group,
 
.navbox-subgroup .navbox-title {
.button1{
  background: #ddddff;     /* Level 2 color */
border-radius:10px;
background:#4d94ff;  
color:#ffffff;
padding:5px;
width:230px;
text-align:center;
font-size:15px;
cursor:pointer;
width:230px;
 
}
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
.button2{
  background: #e6e6ff;     /* Level 3 color */
border-radius:10px;
background:#f16458;  
color:#ffffff;
padding:5px;
width:230px;
text-align:center;
font-size:15px;
cursor:pointer;
width:230px;
}
}
.navbox-even {
 
  background: #f7f7f7;     /* Even row striping */
 
 
/* Header stylying */
.red_online_button {
padding:5px;
}
}
.navbox-odd {
.mw-body-content h2 {
  background: transparent; /* Odd row striping */
font-weight:bold;
line-height:1.3 !important;
font-size:1.5rem !important;
}
}


.collapseButton {         /* 'show'/'hide' buttons created dynamically */
.mw-body-content h3 {
    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.4rem !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.        */


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


/* For template documentation */
.mw-body-content h5 {
.template-documentation {
font-weight:normal;
    clear: both;
line-height:1.6 !important;
    margin: 1em 0 0 0;
font-size:1.2rem !important;
    border: 1px solid #aaa;  
    background-color: #eaede9;
    padding: 1em;
}
}


/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
.mw-body-content h6 {
th.mbox-text, td.mbox-text {     /* The message body cell(s) */
font-weight:normal;
    border: none;  
line-height:1.6 !important;
    padding: 0.25em 0.9em;       /* 0.9em left/right */
font-size:1.1em !important;
    width: 100%;   /* Make all mboxes the same width regardless of text length */
font-style:italic;
}
}
td.mbox-image {                  /* The left image cell */
 
    border: none;
#mw-head .vector-menu-dropdown h3 {
    padding: 2px 0 2px 0.9em;    /* 0.9em left, 0px right */
font-size: 0.875em;
    text-align: center;
line-height: 1.125em;
}
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;
}
}


/* Article message box styles */
#mw-head .vector-menu-dropdown .vector-menu-content-list {
table.ambox {
font-size: 1.6em;
    margin: 0px 10%;  /* 10% = Will not overlap with other elements */
    border: 1px solid #aaa;
    border-left: 10px solid #1e90ff;    /* Default "notice" blue */
    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 .vector-menu-content-list {
    border-left: 10px solid #1e90ff;    /* Blue */
     top: 38px;
}
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 */
/** Remove file upload links from edit menus (Source & VE) **/
table.imbox {
.wikiEditor-ui-toolbar .section-main .group-insert .oo-ui-widget[rel="file"] {
    margin: 4px 10%;
  display: none !important;
    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 {
.oo-ui-toolbar-popups .oo-ui-toolGroup-tools .oo-ui-tool-name-media {
    border: 3px solid #1e90ff;    /* Blue */
  display: none !important;
}
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 the regular search bar from the Main Page */
table.cmbox {
.page-Main_Page #mw-head #right-navigation #p-search {
    margin: 3px 10%;
display: none !important;
    border-collapse: collapse;
    border: 1px solid #aaa;
    background: #DFE8FF;   /* Default "notice" blue */
}
}


table.cmbox-notice {
    background: #D8E8FF;    /* Blue */
}
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 */
/** Fix layout shift **/
table.ombox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #aaa;      /* Default "notice" gray */
    background: #f9f9f9;
}


table.ombox-notice {
.skiptranslate {
    border: 1px solid #aaa;       /* Gray */
  margin-top: 0 !important;
}
}
table.ombox-speedy {
#p-namespaces {
    border: 2px solid #b22222;    /* Red */
  display: flex;
    background: #fee;             /* Pink */
   height: 42px;
}
}
table.ombox-delete {
#ca-watch a span,
    border: 2px solid #b22222;   /* Red */
#ca-unwatch a span {
  display: none;
}
}
table.ombox-content {
#ca-watch,
    border: 1px solid #f28500;    /* Orange */
#ca-unwatch {
  display: flex;
   width: 24px;
}
}
table.ombox-style {
#p-namespaces .vector-menu-content-list li,
    border: 1px solid #f4c430;   /* Yellow */
#p-views .vector-menu-content-list li {
  font-size:.8rem !important;
}
}
table.ombox-move {
#mw-head-base {
    border: 1px solid #9932cc;   /* Purple */
  height: unset !important;
}
}
table.ombox-protection {
.mw-body {
    border: 2px solid #bba;       /* Gray-gold */
  margin-top: unset !important;
}
}
.vector-menu-tabs #ca-watch.icon a::before {
/* Talk page message box styles */
   margin-top: 6px;
table.tmbox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #c0c090;   /* Default "notice" gray-brown */
    background: #f8eaba;
}
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" */
.vector-menu-tabs-legacy li a {
    margin: 2px 0;               /* class ensures that this declaration overrides other */
  float: left;
    width: 100%; /* For Safari and Opera */    /* styles (including mbox-small above) */
  height: 100% !important;
  padding-top: 1.5em;
}
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
.vector-menu-tabs-legacy {
    line-height: 1.5em;          /* also "nested", so reset styles that are  */ 
  height: 2.8em;
    font-size: 100%;             /* set in "mbox-small" above.                */
}
}
 
#right-navigation {
table.tmbox-speedy {
   margin-top: 2.5em;
    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 */
table.dmbox {
    clear: both;
    margin: 0.9em 1em;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background: transparent;
}
}
#left-navigation {
/* Footer and header message box styles */
  margin-top: 2.5em;
table.fmbox {
  margin-bottom: -2.5em;
    clear: both;
    margin: 0.2em 0;
    width: 100%;
    border: 1px solid #aaa;
    background: #f9f9f9;     /* Default "system" gray */
}
}
table.fmbox-system {
#mw-page-base {
    background: #f9f9f9;
  height: 5.2rem;
}
}
table.fmbox-warning {
#mw-head-base {
    border: 1px solid #bb7070; /* Dark pink */
  margin-top: unset !important;
    background: #ffdbdb;       /* Pink */
  height: unset !important;
}
}
table.fmbox-editnotice {
#p-views .vector-menu-content {
    background: transparent;
  display: flex;
  align-items: end;
  height: 42px;
}
}

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