Difference between revisions of "MediaWiki:Common.css"

From MormonWiki
Jump to: navigation, search
Line 1: Line 1:
 
/** CSS placed here will be applied to all skins */
 
/** CSS placed here will be applied to all skins */
  
/* --- {{t|Ambox}} TEMPLATE DESIGNS --- */
+
/* Article message box template styles */
+
table.ambox {
/* {{t|Ambox}} design */
+
    margin: 0 10%;                       /* Will not overlap with other elements */
.ambox {
+
    border-collapse: collapse;  
  font-size: 95%;
+
    background: #fbfbfb;  
  width: 80%;  
+
    border: 1px solid #aaa;  
  margin: 0 auto;
+
    border-left: 10px solid #1e90ff;    /* Default "notice" blue */
  border: 1px #AAA solid;
+
}
  border-left: 10px solid #228b22;
+
table.ambox th.ambox-text, table.ambox td.ambox-text {      /* The message body cell(s) */
  border-collapse: collapse;
+
    padding: 0.25em 0.5em;            /* 0.5em left/right */
  background-color: #EEE;
+
    width: 100%;                     /* Make all templates the same width regardless of text size */
}
+
}
+
table.ambox td.ambox-image {          /* The left image cell */
/* {{t|Ambox}} colours */
+
    padding: 2px 0px 2px 0.5em;       /* 0.5em left, 0px right */
.ambox-blue {
+
    text-align: center;  
  border-left: 10px solid #1e90ff;       /* Blue (notice) */
+
}
  }
+
table.ambox td.ambox-imageright {    /* The right image cell */
.ambox-red {
+
    padding: 2px 4px 2px 0px;        /* 0px left, 4px right */
  border-left: 10px solid #b22222;       /* Red (delete/serious) */
+
    text-align: center;
}
+
}
.ambox-orange {
+
table.ambox-notice {
  border-left: 10px solid #f28500;       /* Orange (content) */
+
    border-left: 10px solid #1e90ff;     /* Blue */
}
+
/* border-right: 10px solid #1e90ff; */ /* If you want two blue bars */
.ambox-yellow {
+
}
  border-left: 10px solid #f4c430;       /* Yellow (style) */
+
table.ambox-delete,
}
+
table.ambox-serious {
.ambox-purple {
+
    border-left: 10px solid #b22222;     /* Red */
  border-left: 10px solid #9932cc;       /* Purple (merge) */
+
}
}
+
table.ambox-content {
.ambox-gray {
+
    border-left: 10px solid #f28500;     /* Orange */
  border-left: 10px solid #bba;         /* Gray (protection) */
+
}
}
+
table.ambox-style {
.ambox-green {
+
    border-left: 10px solid #f4c430;     /* Yellow */
  border-left: 10px solid #228b22;      /* Green */
+
}
}
+
table.ambox-merge {
+
    border-left: 10px solid #9932cc;     /* Purple */
/* {{t|Ambox}} small text */
+
}
.amsmalltext {
+
table.ambox-protection {
  font-size: smaller;
+
    border-left: 10px solid #bba;       /* Gray */
  margin-top:0.5em;
+
}
  margin-left:0.8em;
+
table.ambox.ambox-mini {                 /* small floating box variant */
}
+
    float: right;
+
    clear: right;
/* {{t|Ambox}} image */
+
    margin: 0 0 0 1em;
.ambox-image {                          /* The left image cell */
+
    width: 25%;
  width: 60px;
+
}
  padding: 2px 0px 2px 0.5em;           /* 0.5em left, 0px right */
 
  text-align: center;
 
}
 

Revision as of 12:10, 7 December 2007

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

/* Article message box template styles */
table.ambox {
    margin: 0 10%;                       /* Will not overlap with other elements */
    border-collapse: collapse; 
    background: #fbfbfb; 
    border: 1px solid #aaa; 
    border-left: 10px solid #1e90ff;     /* Default "notice" blue */
}
table.ambox th.ambox-text, table.ambox td.ambox-text {      /* The message body cell(s) */
    padding: 0.25em 0.5em;            /* 0.5em left/right */
    width: 100%;                      /* Make all templates the same width regardless of text size */
}
table.ambox td.ambox-image {          /* The left image cell */
    padding: 2px 0px 2px 0.5em;       /* 0.5em left, 0px right */
    text-align: center; 
}
table.ambox td.ambox-imageright {     /* The right image cell */
    padding: 2px 4px 2px 0px;         /* 0px left, 4px right */
    text-align: center; 
}
table.ambox-notice {
    border-left: 10px solid #1e90ff;     /* Blue */
/* border-right: 10px solid #1e90ff; */  /* If you want two blue bars */
}
table.ambox-delete,
table.ambox-serious {
    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-merge {
    border-left: 10px solid #9932cc;     /* Purple */
}
table.ambox-protection {
    border-left: 10px solid #bba;        /* Gray */
}
table.ambox.ambox-mini {                 /* small floating box variant */
    float: right;
    clear: right;
    margin: 0 0 0 1em;
    width: 25%;
}