MediaWiki:Common.css: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
message box css
 
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
 
th.mbox-text, td.mbox-text {  /* The message body cell(s) */
/* Anton is an open-source font similar to Impact. This is to be used as a backup for Impact, for devices that don't have Impact installed such as iPhone. */
border: none;
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
/* @noflip */
.impact {
padding: 0.25em 0.9em;     /* 0.9em left/right */
font-family: Impact, 'Anton';
width: 100%;               /* Make all mboxes the same width regardless of text length */
}
}
td.mbox-image {               /* The left image cell */
 
border: none;
.plainbutton {
/* @noflip */
appearance: none;
padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */
background: none;
text-align: center;
color: #3366cc;
}
margin: 0;
td.mbox-imageright {          /* The right image cell */
border: none;
/* @noflip */
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: 0;
padding: 0;
width: 1px;
border: 0;
font: inherit;
cursor: pointer;
}
}


/* Article message box styles */
.link-inherit-color a, .link-inherit-color a.new {
table.ambox {
color: inherit;
margin: 0 10%;                  /* 10% = Will not overlap with other elements */
border: 1px solid #a2a9b1;
/* @noflip */
border-left: 10px solid #36c;  /* Default "notice" blue */
background-color: #fbfbfb;
box-sizing: border-box;
}
}
table.ambox + table.ambox {      /* Single border between stacked boxes. */
 
margin-top: -1px;
/* Hatnotes and disambiguation notices */
.hatnote {
font-style: italic;
}
}
.ambox th.mbox-text,
.hatnote i {
.ambox td.mbox-text {           /* The message body cell(s) */
font-style: normal;
padding: 0.25em 0.5em;       /* 0.5em left/right */
}
}
.ambox td.mbox-image {           /* The left image cell */
div.hatnote {
/* @noflip */
/* @noflip */
padding: 2px 0 2px 0.5em;   /* 0.5em left, 0px right */
padding-left: 1.6em;
margin-bottom: 0.5em;
}
}
.ambox td.mbox-imageright {     /* The right image cell */
div.hatnote + div.hatnote {
/* @noflip */
margin-top: -0.5em;
padding: 2px 0.5em 2px 0;   /* 0px left, 0.5em right */
}
}


table.ambox-notice {
/* Style for compact ambox */
/* @noflip */
/* Hide the images */
border-left: 10px solid #36c;       /* Blue */
.compact-ambox table .mbox-image,
.compact-ambox table .mbox-imageright,
.compact-ambox table .mbox-empty-cell {
display: none;
}
}
table.ambox-speedy {
/* Remove borders, backgrounds, padding, etc. */
/* @noflip */
.compact-ambox table.ambox {
border-left: 10px solid #b32424;   /* Red */
border: none;
background-color: #fee7e6;         /* Pink */
border-collapse: collapse;
background-color: transparent;
margin: 0 0 0 1.6em !important;
padding: 0 !important;
width: auto;
display: block;
}
}
table.ambox-delete {
body.mediawiki .compact-ambox table.mbox-small-left {
/* @noflip */
font-size: 100%;
border-left: 10px solid #b32424;   /* Red */
width: auto;
margin: 0;
}
}
table.ambox-content {
/* Style the text cell as a list item and remove its padding */
/* @noflip */
.compact-ambox table .mbox-text {
border-left: 10px solid #f28500;   /* Orange */
padding: 0 !important;
margin: 0 !important;
}
}
table.ambox-style {
.compact-ambox table .mbox-text-span {
/* @noflip */
display: list-item;
border-left: 10px solid #fc3;       /* Yellow */
line-height: 1.5em;
list-style-type: square;
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg);
}
}
table.ambox-move {
.skin-vector .compact-ambox table .mbox-text-span {
/* @noflip */
list-style-type: disc;
border-left: 10px solid #9932cc;    /* Purple */
list-style-image: url(/w/skins/Vector/resources/skins.vector.styles/images/bullet-icon.svg);
}
}
table.ambox-protection {
/* Allow for hiding text in compact form */
/* @noflip */
.compact-ambox .hide-when-compact {
border-left: 10px solid #a2a9b1;   /* Gray-gold */
display: none;
}
}


/* Image message box styles */
/* Default styling for Navbar template */
table.imbox {
.navbar {
margin: 4px 10%;
display: inline;
border-collapse: collapse;
font-size: 88%;
border: 3px solid #36c;    /* Default "notice" blue */
font-weight: normal;
background-color: #fbfbfb;
box-sizing: border-box;
}
}
.imbox .mbox-text .imbox { /* For imboxes inside imbox-text cells. */
.navbar ul {
margin: 0 -0.5em;       /* 0.9 - 0.5 = 0.4em left/right.        */
display: inline-block;
display: block;         /* Fix for webkit to force 100% width.  */
white-space: nowrap;
}
}
.mbox-inside .imbox {       /* For imboxes inside other templates.  */
.mw-body-content .navbar ul {
margin: 4px;
line-height: inherit;
}
}
 
.navbar li {
table.imbox-notice {
word-spacing: -0.125em;
border: 3px solid #36c;       /* Blue */
}
}
table.imbox-speedy {
.navbar.mini li abbr[title] {
border: 3px solid #b32424;   /* Red */
font-variant: small-caps;
background-color: #fee7e6;   /* Pink */
border-bottom: none;
text-decoration: none;
cursor: inherit;
}
}
table.imbox-delete {
/* Navbar styling when nested in infobox and navbox */
border: 3px solid #b32424;   /* Red */
.infobox .navbar {
font-size: 100%;
}
}
table.imbox-content {
.navbox .navbar {
border: 3px solid #f28500;   /* Orange */
display: block;
font-size: 100%;
}
}
table.imbox-style {
.navbox-title .navbar {
border: 3px solid #fc3;       /* Yellow */
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
}
}
table.imbox-move {
 
border: 3px solid #9932cc;   /* Purple */
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle {
font-weight: normal;
/* @noflip */
text-align: right;
padding-right: 0.2em;
padding-left: 0.2em;
}
}
table.imbox-protection {
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
border: 3px solid #a2a9b1;    /* Gray-gold */
/* @noflip */
}
float: left;
table.imbox-license {
/* @noflip */
border: 3px solid #88a;      /* Dark gray */
text-align: left;
background-color: #f7f8ff;   /* Light gray */
}
table.imbox-featured {
border: 3px solid #cba135;   /* Brown-gold */
}
}


/* Category message box styles */
/* Infobox template style */
table.cmbox {
.infobox {
margin: 3px 10%;
border-collapse: collapse;
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
background-color: #dfe8ff;   /* Default "notice" blue */
border-spacing: 3px;
box-sizing: border-box;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
}
}
 
.infobox caption {
table.cmbox-notice {
font-size: 125%;
background-color: #d8e8ff;   /* Blue */
font-weight: bold;
padding: 0.2em;
text-align: center;
}
}
table.cmbox-speedy {
.infobox td,
margin-top: 4px;
.infobox th {
margin-bottom: 4px;
vertical-align: top;
border: 4px solid #b32424;    /* Red */
/* @noflip */
background-color: #ffdbdb;   /* Pink */
text-align: left;
}
}
table.cmbox-delete {
.infobox.bordered {
background-color: #ffdbdb;   /* Pink */
border-collapse: collapse;
}
}
table.cmbox-content {
.infobox.bordered td,
background-color: #ffe7ce;   /* Orange */
.infobox.bordered th {
border: 1px solid #a2a9b1;
}
}
table.cmbox-style {
.infobox.bordered .borderless td,
background-color: #fff9db;    /* Yellow */
.infobox.bordered .borderless th {
}
border: 0;
table.cmbox-move {
background-color: #e4d8ff;    /* Purple */
}
table.cmbox-protection {
background-color: #efefe1;   /* Gray-gold */
}
}


/* Other pages message box styles */
.infobox.sisterproject {
table.ombox {
width: 20em;
margin: 4px 10%;
font-size: 90%;
border-collapse: collapse;
border: 1px solid #a2a9b1;    /* Default "notice" gray */
background-color: #f8f9fa;
box-sizing: border-box;
}
}


table.ombox-notice {
.infobox.standard-talk {
border: 1px solid #a2a9b1;   /* Gray */
border: 1px solid #c0c090;
background-color: #f8eaba;
}
}
table.ombox-speedy {
.infobox.standard-talk.bordered td,
border: 2px solid #b32424;    /* Red */
.infobox.standard-talk.bordered th {
background-color: #fee7e6;   /* Pink */
border: 1px solid #c0c090;
}
}
table.ombox-delete {
 
border: 2px solid #b32424;   /* Red */
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
border: 0;
border-top: 1px solid #a2a9b1;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
}
table.ombox-content {
 
border: 1px solid #f28500;    /* Orange */
.infobox.bordered .mergedrow td,
}
.infobox.bordered .mergedrow th {
table.ombox-style {
border: 0;
border: 1px solid #fc3;       /* Yellow */
/* @noflip */
}
border-right: 1px solid #a2a9b1;
table.ombox-move {
border: 1px solid #9932cc;    /* Purple */
}
table.ombox-protection {
border: 2px solid #a2a9b1;   /* Gray-gold */
}
}


/* Talk page message box styles */
/* Styles for geography infoboxes, eg countries,
table.tmbox {
  country subdivisions, cities, etc.            */
margin: 4px 10%;
.infobox.geography {
border-collapse: collapse;
border-collapse: collapse;
border: 1px solid #c0c090;    /* Default "notice" gray-brown */
line-height: 1.2em;
background-color: #f8eaba;
font-size: 90%;
min-width: 80%;
box-sizing: border-box;
}
}
.tmbox.mbox-small {
 
min-width: 0;               /* reset the min-width of tmbox above        */
.infobox.geography  td,
.infobox.geography  th {
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.4em 0.6em;
}
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
.infobox.geography .mergedtoprow td,
margin: 2px 0;               /* this declaration overrides other styles (including mbox-small above)  */
.infobox.geography .mergedtoprow th {
width: 100%;                 /* For Safari and Opera */
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.2em 0.6em;
}
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
 
line-height: 1.5em;         /* also "nested", so reset styles that are  */
.infobox.geography .mergedrow td,
font-size: 100%;             /* set in "mbox-small" above.                */
.infobox.geography .mergedrow th {
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
}


table.tmbox-speedy {
.infobox.geography .mergedbottomrow td,
border: 2px solid #b32424;   /* Red */
.infobox.geography .mergedbottomrow th {
background-color: #fee7e6;   /* Pink */
border-top: 0;
border-bottom: 1px solid #a2a9b1;
padding: 0 0.6em 0.4em 0.6em;
}
}
table.tmbox-delete {
 
border: 2px solid #b32424;    /* Red */
.infobox.geography .maptable td,
}
.infobox.geography .maptable th {
table.tmbox-content {
border: 0;
border: 2px solid #f28500;    /* Orange */
padding: 0;
}
table.tmbox-style {
border: 2px solid #fc3;      /* Yellow */
}
table.tmbox-move {
border: 2px solid #9932cc;   /* Purple */
}
table.tmbox-protection,
table.tmbox-notice {
border: 1px solid #c0c090;   /* Gray-brown */
}
}


/* Footer and header message box styles */
 
table.fmbox {
/* Main page desktop-only CSS */
clear: both;
.desktop-flex-container {
margin: 0.2em 0;
width: 100%;
width: 100%;
border: 1px solid #a2a9b1;
display: flex;
background-color: #f8f9fa;    /* Default "system" gray */
box-sizing: border-box;
}
}
table.fmbox-system {
 
background-color: #f8f9fa;
.mainpage-column {
display: flex;
flex-basis: 0;
flex-grow: 1;
flex-wrap: wrap;
}
}
table.fmbox-warning {
 
border: 1px solid #bb7070;  /* Dark pink */
.mainpage-col-left {
background-color: #ffdbdb; /* Pink */
border-right: 2px solid #0a5ba6;
}
}
table.fmbox-editnotice {
 
background-color: transparent;
.mainpage-col-middle {
}
border-left: 2px solid #0a5ba6;
/* Div based "warning" style fmbox messages. */
border-right: 2px solid #0a5ba6;
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning,
div.locked-warning {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: #ffdbdb;
padding: 0.25em 0.9em;
box-sizing: border-box;
}
}


/* These mbox-small classes must be placed after all other
.mainpage-col-right {
  ambox/tmbox/ombox etc classes. "html body.mediawiki" is so
border-left: 2px solid #0a5ba6;
  they override "table.ambox + table.ambox" above. */
html body.mediawiki .mbox-small {   /* For the "small=yes" option. */
/* @noflip */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: 4px 0 4px 1em;
box-sizing: border-box;
width: 238px;
font-size: 88%;
line-height: 1.25em;
}
html body.mediawiki .mbox-small-left {  /* For the "small=left" option. */
/* @noflip */
margin: 4px 1em 4px 0;
box-sizing: border-box;
overflow: hidden;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em;
}
}


/* Style for compact ambox */
.mainpage-column .col-content {
/* Hide the images */
flex-basis: 0;
.compact-ambox table .mbox-image,
flex-grow: 1;
.compact-ambox table .mbox-imageright,
margin-bottom: auto;
.compact-ambox table .mbox-empty-cell {
display: none;
}
/* Remove borders, backgrounds, padding, etc. */
.compact-ambox table.ambox {
border: none;
border-collapse: collapse;
background-color: transparent;
margin: 0 0 0 1.6em !important;
padding: 0 !important;
width: auto;
display: block;
}
body.mediawiki .compact-ambox table.mbox-small-left {
font-size: 100%;
width: auto;
margin: 0;
}
/* Style the text cell as a list item and remove its padding */
.compact-ambox table .mbox-text {
padding: 0 !important;
margin: 0 !important;
}
.compact-ambox table .mbox-text-span {
display: list-item;
line-height: 1.5em;
list-style-type: square;
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg);
}
.skin-vector .compact-ambox table .mbox-text-span {
list-style-type: disc;
list-style-image: url(/w/skins/Vector/resources/skins.vector.styles/images/bullet-icon.svg);
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
display: none;
}
}

Latest revision as of 05:47, 25 July 2023

/* CSS placed here will be applied to all skins */

/* Anton is an open-source font similar to Impact. This is to be used as a backup for Impact, for devices that don't have Impact installed such as iPhone. */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
.impact {
	font-family: Impact, 'Anton';
}

.plainbutton {
	appearance: none;
	background: none;
	color: #3366cc;
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	cursor: pointer;
}

.link-inherit-color a, .link-inherit-color a.new {
	color: inherit;
}

/* Hatnotes and disambiguation notices */
.hatnote {
	font-style: italic;
}
.hatnote i {
	font-style: normal;
}
div.hatnote {
	/* @noflip */
	padding-left: 1.6em;
	margin-bottom: 0.5em;
}
div.hatnote + div.hatnote {
	margin-top: -0.5em;
}

/* Style for compact ambox */
/* Hide the images */
.compact-ambox table .mbox-image,
.compact-ambox table .mbox-imageright,
.compact-ambox table .mbox-empty-cell {
	display: none;
}
/* Remove borders, backgrounds, padding, etc. */
.compact-ambox table.ambox {
	border: none;
	border-collapse: collapse;
	background-color: transparent;
	margin: 0 0 0 1.6em !important;
	padding: 0 !important;
	width: auto;
	display: block;
}
body.mediawiki .compact-ambox table.mbox-small-left {
	font-size: 100%;
	width: auto;
	margin: 0;
}
/* Style the text cell as a list item and remove its padding */
.compact-ambox table .mbox-text {
	padding: 0 !important;
	margin: 0 !important;
}
.compact-ambox table .mbox-text-span {
	display: list-item;
	line-height: 1.5em;
	list-style-type: square;
	list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg);
}
.skin-vector .compact-ambox table .mbox-text-span {
	list-style-type: disc;
	list-style-image: url(/w/skins/Vector/resources/skins.vector.styles/images/bullet-icon.svg);
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
	display: none;
}

/* Default styling for Navbar template */
.navbar {
	display: inline;
	font-size: 88%;
	font-weight: normal;
}
.navbar ul {
	display: inline-block;
	white-space: nowrap;
}
.mw-body-content .navbar ul {
	line-height: inherit;
}
.navbar li {
	word-spacing: -0.125em;
}
.navbar.mini li abbr[title] {
	font-variant: small-caps;
	border-bottom: none;
	text-decoration: none;
	cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
	font-size: 100%;
}
.navbox .navbar {
	display: block;
	font-size: 100%;
}
.navbox-title .navbar {
	/* @noflip */
	float: left;
	/* @noflip */
	text-align: left;
	/* @noflip */
	margin-right: 0.5em;
}

/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle {
	font-weight: normal;
	/* @noflip */
	text-align: right;
	padding-right: 0.2em;
	padding-left: 0.2em;
}
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
	/* @noflip */
	float: left;
	/* @noflip */
	text-align: left;
}

/* Infobox template style */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	/* @noflip */
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	/* @noflip */
	float: right;
	/* @noflip */
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
}
.infobox caption {
	font-size: 125%;
	font-weight: bold;
	padding: 0.2em;
	text-align: center;
}
.infobox td,
.infobox th {
	vertical-align: top;
	/* @noflip */
	text-align: left;
}
.infobox.bordered {
	border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
	border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
	border: 0;
}

.infobox.sisterproject {
	width: 20em;
	font-size: 90%;
}

.infobox.standard-talk {
	border: 1px solid #c0c090;
	background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
	border: 1px solid #c0c090;
}

/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
	border: 0;
	border-top: 1px solid #a2a9b1;
	/* @noflip */
	border-right: 1px solid #a2a9b1;
}

.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
	border: 0;
	/* @noflip */
	border-right: 1px solid #a2a9b1;
}

/* Styles for geography infoboxes, eg countries,
   country subdivisions, cities, etc.            */
.infobox.geography {
	border-collapse: collapse;
	line-height: 1.2em;
	font-size: 90%;
}

.infobox.geography  td,
.infobox.geography  th {
	border-top: 1px solid #a2a9b1;
	padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
	border-top: 1px solid #a2a9b1;
	padding: 0.4em 0.6em 0.2em 0.6em;
}

.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
	border: 0;
	padding: 0 0.6em 0.2em 0.6em;
}

.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
	border-top: 0;
	border-bottom: 1px solid #a2a9b1;
	padding: 0 0.6em 0.4em 0.6em;
}

.infobox.geography .maptable td,
.infobox.geography .maptable th {
	border: 0;
	padding: 0;
}


/* Main page desktop-only CSS */
.desktop-flex-container {
	width: 100%;
	display: flex;
}

.mainpage-column {
	display: flex;
	flex-basis: 0;
	flex-grow: 1;
	flex-wrap: wrap;
}

.mainpage-col-left {
	border-right: 2px solid #0a5ba6;
}

.mainpage-col-middle {
	border-left: 2px solid #0a5ba6;
	border-right: 2px solid #0a5ba6;
}

.mainpage-col-right {
	border-left: 2px solid #0a5ba6;
}

.mainpage-column .col-content {
	flex-basis: 0;
	flex-grow: 1;
	margin-bottom: auto;
}