MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 42: | Line 42: | ||
} | } | ||
.vector-menu-tabs { | .mw-portlet.mw-portlet-views.vector-menu.vector-menu-tabs { | ||
background-image: linear-gradient(to bottom,#b5b5b5 0,#b5b5b5 100%); | background-image: linear-gradient(to bottom,#b5b5b5 0,#b5b5b5 100%); | ||
} | } | ||
.vector-menu-tabs { | |||
background-image: linear-gradient(to bottom,#f6eddf 0,#f6eddf 100%); | |||
# | |||
# | |||
} | } | ||
Line 105: | Line 62: | ||
/* Background color */ | /* Background color */ | ||
.mw-body { | .mw-body { | ||
background-color: #f9f4eb; | background-color: #f9f4eb; | ||
} | } | ||
body { | |||
background-color: #f6eddf; | |||
} | |||
/* Font? */ | /* Font? */ | ||
Line 146: | Line 104: | ||
.new.mw-list-item { | .new.mw-list-item { | ||
background-image: linear-gradient(to top,#000000 0,#f6eddf 1px,#ffffff 100%); | background-image: linear-gradient(to top,#000000 0,#f6eddf 1px,#ffffff 100%); | ||
} | |||
/* Add template for front page */ | |||
/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */ | |||
.mainpage_row { | |||
display: flex; | |||
flex-direction: row; | |||
flex-flow: row wrap; | |||
justify-content: space-between; | |||
padding: 0; | |||
margin: 0 -5px 0 -5px; | |||
} | |||
.mainpage_box { | |||
flex: 1; | |||
margin: 5px; | |||
min-width: 210px; | |||
border: 1px solid #CCC; | |||
padding: 0 10px 10px 10px; | |||
box-shadow: 0 2px 2px rgba(0,0,0,0.1); | |||
} | |||
.mainpage_box h3 { | |||
/* Reset padding so is equal across skins */ | |||
padding-right: 0; | |||
padding-top: 0; | |||
padding-bottom: 0; | |||
/* Padding left gets overridden by headanchor gadget */ | |||
margin: 0.5em 0; | |||
} | |||
/* Set padding left only if headanchor gadget is not enabled */ | |||
.mainpage_box h3:not(.tpl-vheadanchor-heading) { | |||
padding-left: 0; | |||
} | |||
.mainpage_box h3 .header_icon { | |||
float: left; | |||
margin-right: 5px; | |||
} | |||
.mainpage_box .items { | |||
border-top: 1px solid #CCC; | |||
padding-top: 0.5em; | |||
} | |||
.mainpage_box p:last-child { | |||
margin-bottom: 0; | |||
} | |||
.mainpage_boxcontents_small { | |||
font-size: 95%; | |||
} | |||
/* Style the "other languages" box the same way as other boxes on the main page */ | |||
.mw-pt-languages { | |||
display: block; | |||
background: none; | |||
border: 1px solid #CCC; | |||
box-shadow: 0 2px 2px rgba(0,0,0,0.1); | |||
width: auto; | |||
} | |||
.mw-pt-languages-label { | |||
background: none; | |||
border-right: none; | |||
} | |||
@media screen and (max-width: 719px) { | |||
.thumb { | |||
float: none; | |||
} | |||
.thumb, .thumbinner { | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
} | |||
/* Suppress "Main Page" page title on Main Page. */ | |||
body.page-Main_Page h1#firstHeading { display: none; } | |||
} | |||
/* Reducing the huge margins above and below paragraphs */ | |||
.page-content p + p { | |||
margin-top: 12px; | |||
} | |||
.page-content p, .page-content section { | |||
margin: 0 0 12px 0; | |||
} | } |
Latest revision as of 16:55, 20 November 2022
/* Infobox */
.infobox {
background: transparent;
border: 1px solid #aaa;
float: right;
margin: 0 0 1em 1em;
padding: 1em;
width: 400px;
}
.infobox-title {
font-size: 2em;
text-align: center;
}
.infobox-image {
text-align: center;
}
.infobox th {
text-align: right;
vertical-align: top;
width: 120px;
}
.infobox td {
vertical-align: top;
}
/* Remove navigation from top of page */
#ca-talk { display:none!important; }
#ca-nstab-main { display:none!important; }
#ca-unwatch { display:none!important; }
#ca-nstab-mediawiki { display:none!important; }
/* change background color of top menu navigation */
.mw-portlet.mw-portlet-views.vector-menu.vector-menu-tabs {
background-image: linear-gradient(to bottom,#b5b5b5 0,#b5b5b5 100%);
}
.mw-portlet.mw-portlet-namespaces.vector-menu.vector-menu-tabs {
background-image: linear-gradient(to bottom,#f6eddf 0,#f6eddf 100%);
}
.mw-portlet.mw-portlet-views.vector-menu.vector-menu-tabs {
background-image: linear-gradient(to bottom,#b5b5b5 0,#b5b5b5 100%);
}
.vector-menu-tabs {
background-image: linear-gradient(to bottom,#f6eddf 0,#f6eddf 100%);
}
/* maakt de background van de bovenste balk doorzichtig */
#mw-page-base {
background-color: transparent;
background-image: none;
background-position: bottom left;
height: 5em;
}
/* Background color */
.mw-body {
background-color: #f9f4eb;
}
body {
background-color: #f6eddf;
}
/* Font? */
#body {
# font-family: Papyrus;
#}
/* Change border color */
.mw-body {
margin-top: -1px;
border: 1px solid #b5b5b5;
border-right-width: 1px;
border-right-width: 1px;
}
/* Disable section editing */
.mw-editsection { display:none!important; }
/* Remove items from footer */
#footer-places-privacy { display: none; }
#footer-places-about { display: none; }
#footer-places-disclaimer { display: none; }
#footer-info-lastmod { display: none; }
/* Change button color */
.mw-list-item.collapsible {
background-image: linear-gradient(to top,#000000 0,#f6eddf 1px,#ffffff 100%);
}
.new.mw-list-item {
background-image: linear-gradient(to top,#000000 0,#f6eddf 1px,#ffffff 100%);
}
/* Add template for front page */
/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 210px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.mainpage_box h3 {
/* Reset padding so is equal across skins */
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
/* Padding left gets overridden by headanchor gadget */
margin: 0.5em 0;
}
/* Set padding left only if headanchor gadget is not enabled */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
padding-left: 0;
}
.mainpage_box h3 .header_icon {
float: left;
margin-right: 5px;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
.mainpage_boxcontents_small {
font-size: 95%;
}
/* Style the "other languages" box the same way as other boxes on the main page */
.mw-pt-languages {
display: block;
background: none;
border: 1px solid #CCC;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
width: auto;
}
.mw-pt-languages-label {
background: none;
border-right: none;
}
@media screen and (max-width: 719px) {
.thumb {
float: none;
}
.thumb, .thumbinner {
margin-left: auto;
margin-right: auto;
}
}
/* Suppress "Main Page" page title on Main Page. */
body.page-Main_Page h1#firstHeading { display: none; }
}
/* Reducing the huge margins above and below paragraphs */
.page-content p + p {
margin-top: 12px;
}
.page-content p, .page-content section {
margin: 0 0 12px 0;
}