MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
TheOnlyZac (talk | contribs) Hide main page title |
TheOnlyZac (talk | contribs) Added styles for namespace badges |
||
Line 89: | Line 89: | ||
body.skin-minerva .page-heading { |
body.skin-minerva .page-heading { |
||
display: none; |
display: none; |
||
} |
|||
/* change heading font */ |
|||
h1, h2, h3, h4, h5, h6 { |
|||
font-family: Helvetica, sans-serif; |
|||
} |
|||
/* style namespace badges */ |
|||
.firstHeading { |
|||
display: flex; |
|||
flex-direction: row; |
|||
align-items: center; |
|||
justify-content: left; |
|||
} |
|||
.namespace-badge { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
margin: 0px 4px 0px 0px; |
|||
padding: 0.2px 6px; |
|||
min-width: 56px; |
|||
min-height: 21px; |
|||
background-color: #265cad; |
|||
color: white; |
|||
font-family: Geneva, Verdana, Tahoma, sans-serif; |
|||
font-size: 14px; |
|||
border: 1px solid rgba(255, 255, 255, 0.2); |
|||
border-radius: 8px; |
|||
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2); |
|||
cursor: default; |
|||
} |
} |
Revision as of 02:06, 31 July 2022
/* CSS placed here will be applied to all skins */
/* show create article redlink on mobile search pages */
.skin-minerva .mw-search-createlink {
display: block !important;
}
/* 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;
}
.skin-vector .infobox-title {
color: white;
}
.infobox-caption {
text-align: center;
font-style: italic;
}
.infobox-title {
font-size: 125%;
font-weight: bold;
padding: 0.2em;
text-align: center;
}
.infobox td,
.infobox th {
vertical-align: top;
/* @noflip */
}
.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;
}
/* hide main page title always */
body.page-Main_Page #contentSub, body.page-Main_Page #contentSub2 {
display: none;
}
body.skin-minerva .page-heading {
display: none;
}
/* change heading font */
h1, h2, h3, h4, h5, h6 {
font-family: Helvetica, sans-serif;
}
/* style namespace badges */
.firstHeading {
display: flex;
flex-direction: row;
align-items: center;
justify-content: left;
}
.namespace-badge {
display: flex;
align-items: center;
justify-content: center;
margin: 0px 4px 0px 0px;
padding: 0.2px 6px;
min-width: 56px;
min-height: 21px;
background-color: #265cad;
color: white;
font-family: Geneva, Verdana, Tahoma, sans-serif;
font-size: 14px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
cursor: default;
}