Template:Ambox/styles.css: Difference between revisions

From The Audiovisual Identity Database
Jump to navigation Jump to search
imported>Hb1290
No edit summary
imported>Compooper
m (Text replacement - "border-left: 25px solid #ffffff" to "border-left: 25px solid #f8f9fa")
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* Message box templates */
.messagebox {
border: 1px solid #a2a9b1;
background: #f8f9fa;
width: 80%;
margin: 0 auto 1em;
padding: 0.2em;
text-align: justify;
}
.messagebox.merge {
border: 1px solid #cf9fff;
background: #f5edf5;
text-align: center;
}
.messagebox.cleanup {
border: 1px solid #9f9fff;
background: #efefff;
text-align: center;
}
.messagebox.standard-talk {
border: 1px solid #c0c090;
background: #f8eaba;
}
/* 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: 0;
    width: 1px;
}
/* Article message box styles */
/* Article message box styles */
table.ambox {
table.ambox {
    margin: 0 10%;   /* 10% = Will not overlap with other elements */
margin: 0 10%;                 /* 10% = Will not overlap with other elements */
    border: 1px solid #a2a9b1;
border: 0px solid #a2a9b1;
    border-left: 10px solid #36c;   /* Default "notice" blue */
/* @noflip */
    background: #fbfbfb;
border-left: 25px  solid #0c62da; /* Standard AVID blue */
background-color: #f8f9fa;
box-sizing: border-box;
border-radius: 5px;
}
}
table.ambox + table.ambox {   /* Single border between stacked boxes. */
/* Take into account templatestyles between two amboxes */
    margin-top: -1px;
table.ambox + link + link + table.ambox,
table.ambox + table.ambox {     /* Single border between stacked boxes. */
margin-top: -1px;
}
}
.ambox th.mbox-text,
.ambox th.mbox-text,
.ambox td.mbox-text {            /* The message body cell(s) */
.ambox td.mbox-text {            /* The message body cell(s) */
    padding: 0.25em 0.5em;      /* 0.5em left/right */
padding: 0.25em 0.5em;      /* 0.5em left/right */
}
}
.ambox td.mbox-image {          /* The left image cell */
.ambox td.mbox-image {          /* The left image cell */
    padding: 2px 0 2px 0.5em;    /* 0.5em left, 0px right */
/* @noflip */
padding: 2px 0 2px 0.5em;    /* 0.5em left, 0px right */
}
}
.ambox td.mbox-imageright {      /* The right image cell */
.ambox td.mbox-imageright {      /* The right image cell */
    padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
/* @noflip */
padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
}
}


table.ambox-notice {
table.ambox-notice {
/* @noflip */
/* @noflip */
border-left: 10px solid #36c;       /* Blue */
border-left: 25px  solid #0c62da; /* Standard AVID blue */
}
}
table.ambox-speedy {
table.ambox-speedy {
/* @noflip */
/* @noflip */
border-left: 10px solid #b32424;    /* Red */
border-left: 25px solid #f8f9fa;    /* White */
background-color: #fee7e6;          /* Pink */
background-color: #da0c3f;          /* AVID red */
}
}
table.ambox-delete {
table.ambox-delete {
/* @noflip */
/* @noflip */
border-left: 10px solid #b32424;    /* Red */
border-left: 25px solid #da0c3f;    /* AVID red */
}
}
table.ambox-content {
table.ambox-content {
/* @noflip */
/* @noflip */
border-left: 10px solid #f28500;    /* Orange */
border-left: 25px solid #ffa800;    /* AVID yellow */
}
}
table.ambox-style {
table.ambox-style {
/* @noflip */
/* @noflip */
border-left: 10px solid #fc3;       /* Yellow */
border-left: 25px solid #ffa800;   /* AVID yellow */
}
}
table.ambox-move {
table.ambox-move {
/* @noflip */
/* @noflip */
border-left: 10px solid #9932cc;    /* Purple */
border-left: 25px solid #9932cc;    /* Purple */
}
}
table.ambox-protection {
table.ambox-protection {
/* @noflip */
/* @noflip */
border-left: 10px solid #a2a9b1;    /* Gray-gold */
border-left: 25px solid #a2a9b1;    /* Gray-gold */
}
}
/* Style for compact ambox */
 
/* Hide the images */
/* Style for compact ambox, as used inside multiple issues etc. */
.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;
}
.skin-vector .compact-ambox table .mbox-text-span {
list-style-type: disc;
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
display: none;
}
/* These mbox-small classes must be placed after all other
  ambox/tmbox/ombox etc classes. "html body.mediawiki" is so
  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 */
/* Hide the images */
/* Hide the images */
.compact-ambox table .mbox-image,
.compact-ambox table .mbox-image,
Line 176: Line 74:
display: block;
display: block;
}
}
body.mediawiki .compact-ambox table.mbox-small-left {
.compact-ambox table.mbox-small-left.mbox-small-left {
font-size: 100%;
font-size: 100%;
width: auto;
width: auto;
Line 190: Line 88:
line-height: 1.5em;
line-height: 1.5em;
list-style-type: square;
list-style-type: square;
/*list-style-image: url(/w/skins/MonoBook/resources/images/bullet.gif);*/
}
}
.skin-vector .compact-ambox table .mbox-text-span {
.skin-vector .compact-ambox table .mbox-text-span {
list-style-type: disc;
list-style-type: disc;
/*list-style-image: url(/w/skins/Vector/images/bullet-icon.svg);*/
}
}
/* Allow for hiding text in compact form */
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
.compact-ambox .hide-when-compact {
display: none;
display: none;
}
/* Hide (formatting) elements from screen, but not from screenreaders */
.visualhide {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
/* Remove underlines from certain links */
.nounderlines a,
.IPA a:link, .IPA a:visited {
text-decoration: none !important;
}
/* Standard Navigationsleisten, aka box hiding thingy
  from .de.  Documentation at [[Wikipedia:NavFrame]]. */
div.NavFrame {
margin: 0;
padding: 4px;
border: 1px solid #a2a9b1;
text-align: center;
border-collapse: collapse;
font-size: 95%;
}
div.NavFrame + div.NavFrame {
border-top-style: none;
border-top-style: hidden;
}
div.NavFrame div.NavHead {
line-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%;
}
a.NavToggle {
position: absolute;
top: 0;
/* @noflip */
right: 3px;
font-weight: normal;
font-size: 90%;
}
/* 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;
}
/* Allow transcluded pages to display in lists rather than a table. */
.listify td {
display: list-item;
}
.listify tr {
display: block;
}
.listify table {
display: block;
}
}

Latest revision as of 11:53, 25 November 2023

/* Article message box styles */
table.ambox {
	margin: 0 10%;                  /* 10% = Will not overlap with other elements */
	border: 0px solid #a2a9b1;
	/* @noflip */
	border-left: 25px  solid #0c62da;  /* Standard AVID blue */
	background-color: #f8f9fa;
	box-sizing: border-box;
	border-radius: 5px;
}
/* Take into account templatestyles between two amboxes */
table.ambox + link + link + table.ambox,
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 */
	/* @noflip */
	padding: 2px 0 2px 0.5em;    /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright {      /* The right image cell */
	/* @noflip */
	padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
}

table.ambox-notice {
	/* @noflip */
	border-left: 25px  solid #0c62da;  /* Standard AVID blue */
}
table.ambox-speedy {
	/* @noflip */
	border-left: 25px solid #f8f9fa;    /* White */
	background-color: #da0c3f;          /* AVID red */
}
table.ambox-delete {
	/* @noflip */
	border-left: 25px solid #da0c3f;    /* AVID red */
}
table.ambox-content {
	/* @noflip */
	border-left: 25px solid #ffa800;    /* AVID yellow */
}
table.ambox-style {
	/* @noflip */
	border-left: 25px solid #ffa800;    /* AVID yellow */
}
table.ambox-move {
	/* @noflip */
	border-left: 25px solid #9932cc;    /* Purple */
}
table.ambox-protection {
	/* @noflip */
	border-left: 25px solid #a2a9b1;    /* Gray-gold */
}

/* Style for compact ambox, as used inside multiple issues etc. */
/* 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;
}
.compact-ambox table.mbox-small-left.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.gif);*/
}
.skin-vector .compact-ambox table .mbox-text-span {
	list-style-type: disc;
	/*list-style-image: url(/w/skins/Vector/images/bullet-icon.svg);*/
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
	display: none;
}