MediaWiki:Common.css: Difference between revisions

From Doc-Wiki
Jump to navigation Jump to search
Add infobox and common styles
 
Add citation styles
Line 155: Line 155:
.biography.vcard .fn {
.biography.vcard .fn {
     font-weight: bold;
     font-weight: bold;
}
/* Citation styles */
.citation {
    word-wrap: break-word;
}
.citation .cs1-lock-free {
    background: url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg) right 0.1em center/9px no-repeat;
}
.citation .cs1-lock-limited, .citation .cs1-lock-registration {
    background: url(//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg) right 0.1em center/9px no-repeat;
}
.citation .cs1-lock-subscription {
    background: url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg) right 0.1em center/9px no-repeat;
}
.cs1-visible-error {
    color: #d33;
}
.cs1-maint {
    display: none;
    color: #3a3;
    margin-left: 0.3em;
}
.cs1-kern-left {
    padding-left: 0.2em;
}
.cs1-kern-right {
    padding-right: 0.2em;
}
cite.citation {
    font-style: inherit;
}
.reference {
    font-size: 90%;
}
}

Revision as of 18:43, 2 January 2026

/* Infobox styles */ .infobox {

   border: 1px solid #a2a9b1;
   border-spacing: 3px;
   background-color: #f8f9fa;
   color: #202122;
   margin: 0.5em 0 0.5em 1em;
   padding: 0.2em;
   float: right;
   clear: right;
   font-size: 88%;
   line-height: 1.5em;
   width: 22em;

}

.infobox-above, .infobox-title, .infobox caption {

   font-size: 125%;
   font-weight: bold;
   text-align: center;
   padding: 0.2em;

}

.infobox-header {

   font-weight: bold;
   text-align: center;
   background-color: #eaecf0;
   padding: 0.2em;

}

.infobox-subheader {

   text-align: center;
   font-style: italic;
   padding: 0.2em;

}

.infobox-image {

   text-align: center;
   padding: 0.4em;

}

.infobox-image img {

   max-width: 100%;
   height: auto;

}

.infobox-label {

   vertical-align: top;
   text-align: left;
   padding: 0.2em 0.4em;
   white-space: nowrap;
   font-weight: bold;

}

.infobox-data {

   vertical-align: top;
   text-align: left;
   padding: 0.2em 0.4em;

}

.infobox-full-data {

   text-align: center;
   padding: 0.2em;

}

.infobox-below {

   text-align: center;
   padding: 0.2em;
   font-size: smaller;

}

/* Horizontal lists */ .hlist dl, .hlist ol, .hlist ul {

   margin: 0;
   padding: 0;

}

.hlist dd, .hlist dt, .hlist li {

   margin: 0;
   display: inline;

}

.hlist dd:after, .hlist li:after {

   content: " · ";
   font-weight: bold;

}

.hlist dd:last-child:after, .hlist li:last-child:after {

   content: none;

}

/* Plainlist */ .plainlist ol, .plainlist ul {

   list-style: none;
   margin: 0;
   padding: 0;

}

/* Nowrap */ .nowrap {

   white-space: nowrap;

}

/* Message boxes */ .messagebox {

   border: 1px solid #a2a9b1;
   background-color: #f8f9fa;
   padding: 0.5em;
   margin: 1em 0;

}

/* Navboxes */ .navbox {

   border: 1px solid #a2a9b1;
   background-color: #fdfdfd;
   margin: 1em 0;
   padding: 0;

}

.navbox-title {

   background-color: #ccccff;
   padding: 0.25em;
   font-weight: bold;
   text-align: center;

}

.navbox-group {

   background-color: #ddf;
   padding: 0.25em;
   font-weight: bold;
   text-align: right;
   white-space: nowrap;

}

.navbox-list {

   padding: 0.25em;
   text-align: left;

}

/* Signature styles for infobox */ .infobox-signature {

   max-width: 150px;
   height: auto;

}

/* Biography vcard */ .biography.vcard .fn {

   font-weight: bold;

}

/* Citation styles */ .citation {

   word-wrap: break-word;

} .citation .cs1-lock-free {

   background: url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg) right 0.1em center/9px no-repeat;

} .citation .cs1-lock-limited, .citation .cs1-lock-registration {

   background: url(//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg) right 0.1em center/9px no-repeat;

} .citation .cs1-lock-subscription {

   background: url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg) right 0.1em center/9px no-repeat;

} .cs1-visible-error {

   color: #d33;

} .cs1-maint {

   display: none;
   color: #3a3;
   margin-left: 0.3em;

} .cs1-kern-left {

   padding-left: 0.2em;

} .cs1-kern-right {

   padding-right: 0.2em;

} cite.citation {

   font-style: inherit;

} .reference {

   font-size: 90%;

}