Jump to content

MediaWiki:Common.css: Difference between revisions

From WikiPETia.info
No edit summary
No edit summary
 
(103 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


body, body.ns-0, #article { background-color: #fafafa; }
.pp-block-title {
#sitetitle, #toplinks { text-transform: none; background-color: #0470b1; } /* was #6688aa; */
  border:1px solid var(--border-color-subtle);
.mediawiki #content { min-height: 620px; background-color: #e1ebf1; }
  text-align: center;
  background-color: var(--background-color-neutral);
  padding-bottom: 0.5rem !important;
}
 
/* Old infobox template */
.infobox { border: 1px solid var(--border-color-subtle); border-spacing: 3px; background-color: background-color: var(--background-color-neutral); black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 88%; line-height: 1.5em; }
.infobox caption { font-size: 125%; font-weight: bold; padding: 0.2em; background-color: background-color: var(--background-color-neutral); }
.infobox td, .infobox th { vertical-align: top; text-align: left; }
.infobox.bordered { border-collapse: collapse; }
.infobox.bordered td, .infobox.bordered th { border: 1px solid var(--border-color-subtle); }
.infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; }


a, #quickbar a, #footer a, #linkcollection a { text-decoration: none; }
/* Old navbox template */
a:hover, #quickbar a:hover, #footer a:hover, #linkcollection a:hover { text-decoration: underline; }
.navbox { width: 100%; margin-top: 1.5rem; padding: 0.125rem; border: 1px solid var(--border-color-subtle); }
.navbox td { padding: 0; }
.navbox-inner { width: 100%; }
.navbox-title { background-color: var(--background-color-neutral); }
.navbox-title .plainlinks { display: none; }
.navbox-group { background-color: var(--background-color-neutral); white-space: nowrap; text-align: right; padding-left: 5px; padding-right: 5px; }
.navbox-list { border-left-width: 0px !important; }
td.navbox-list ul { list-style-type: none; margin: 4px 0px 0px 10px; }
td.navbox-list li { display: inline; padding-left: 4px; white-space: nowrap; }
td.navbox-list li:before { content: "•"; padding-right: 4px; }


.tagline, div.mw-createacct-benefits-list div.icon-contributors { display: none; }
#article { padding: 0 10px 10px; margin-left: 120px; }
#quickbar { width: 115px; top: 48px; }


#article table.small, #article table.small td, #article table.small th, #article table.small p { font-size: 75%; }
/* Category Tiles Grid */
/* #footer { font-size: 8pt; }
.category-tiles-container {
#quickbar { line-height: 9pt; } */
  --tile-image-size: 120px;
  --tile-font-size: 1.1em;
  --tile-gap: 0.75rem;
 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--tile-image-size) + 2px), 1fr));
  gap: var(--tile-gap);
  margin: 0 auto;
  max-width: 100%;
  width: fit-content;
}


body, #sitetitle, #toplinks, #quickbar, #footer, #article, #article td, #article th, #article p { font-family: Arial,Helvetica,sans-serif; }
/* Size Variants - Override CSS Variables */
.category-tiles-size-small {
  --tile-image-size: 80px;
  --tile-font-size: 0.9em;
}


h1#firstHeading { font-size: 1.9em; margin-bottom: 30px; margin-top: 7px; padding-top: 7px; color: #666666; }
.category-tiles-size-large {
h1 { font-size: 1.7em; color: black; }
  --tile-image-size: 180px;
h2 { font-size: 1.5em; }
  --tile-font-size: 1.3em;
h3 { font-size: 1.3em; }
}
h4 { font-size: 1.1em; }
h2, h3, h4, h5, h6 { margin-bottom: 1em; }


.toc { margin: 30px 0 20px; }
/* Tile Styling */
.category-tile {
  background: var(--background-color-neutral-subtle);
  border-radius: 8px;
  border: 1px solid var(--border-color-subtle);
  overflow: hidden;
  text-align: center;
}


ul.float-left { text-align: left; }
.category-tile:hover {
ul.float-right { text-align: right; }
  background: var(--background-color-neutral);
  border-color: var(--border-color-base);
}


div.center div.floatnone a.image img { max-width: 100%; height: auto; }
.category-tile a {
div.gallerytext { margin-top: 45%; }
  display: block;
ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper, ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper, ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper { height: 100%; }
  width: 100%;
  height: 100%;
  color: var(--color-base);
  text-decoration: none;
}




/* Infobox hinzugefügt am 25.4.2016 von Felix */
.tile-image img {
/* Infobox template style */
  width: var(--tile-image-size) !important;
.infobox {
  height: var(--tile-image-size) !important;
    border: 1px solid #aaa;
  object-fit: cover;
    border-spacing: 3px;
    background-color: #f9f9f9;
    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;
}
}
.infobox caption {
 
    font-size: 125%;
.tile-title {
    font-weight: bold;
  font-weight: bold;
    padding: 0.2em;
  font-size: var(--tile-font-size);
    background-color: #e1ebf1;
  border-top: 1px solid var(--border-color-muted);
  height: 100%;
}
}
.infobox td,
 
.infobox th {
.tile-title span {
    vertical-align: top;
  padding: 0.25rem 0.5rem;
    /* @noflip */
    text-align: left;
}
}
.infobox.bordered {
 
     border-collapse: collapse;
/* Responsive - Mobile First */
}
@media (max-width: 600px) {
.infobox.bordered td,
  .category-tiles-container {
.infobox.bordered th {
     --tile-gap: 0.5rem;
     border: 1px solid #aaa;
  }
}
 
.infobox.bordered .borderless td,
  .category-tiles-size-small {
.infobox.bordered .borderless th {
     --tile-image-size: 60px;
     border: 0;
  }
 
  .category-tiles-size-large {
     --tile-image-size: 120px;
  }
}
}


.infobox.sisterproject {
/* Responsive banner styling */
     width: 20em;
.responsive-banner-container img.mw-file-element {
     font-size: 90%;
     max-width: 800px !important;
     width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
}
}


.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 */
/* top bar category icons */
.infobox.bordered .mergedtoprow td,
#pp-symbols {  
.infobox.bordered .mergedtoprow th {
  display: flex;
    border: 0;
  justify-content: center;
    border-top: 1px solid #aaa;
  gap: 0.25rem;
    /* @noflip */
  flex-grow: 1;
    border-right: 1px solid #aaa;
}
}


.infobox.bordered .mergedrow td,
/* hide top bar category icons on small screens */
.infobox.bordered .mergedrow th {
@media (max-width: 970px)
    border: 0;
{
    /* @noflip */
  #pp-symbols { display: none; }
    border-right: 1px solid #aaa;
}
}

Latest revision as of 23:09, 19 July 2025

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

.pp-block-title {
  border:1px solid var(--border-color-subtle);
  text-align: center;
  background-color: var(--background-color-neutral);
  padding-bottom: 0.5rem !important;
}

/* Old infobox template */
.infobox { border: 1px solid var(--border-color-subtle); border-spacing: 3px; background-color: background-color: var(--background-color-neutral); black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 88%; line-height: 1.5em; }
.infobox caption { font-size: 125%; font-weight: bold; padding: 0.2em; background-color: background-color: var(--background-color-neutral); }
.infobox td, .infobox th { vertical-align: top; text-align: left; }
.infobox.bordered { border-collapse: collapse; }
.infobox.bordered td, .infobox.bordered th { border: 1px solid var(--border-color-subtle); }
.infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; }

/* Old navbox template */
.navbox { width: 100%; margin-top: 1.5rem; padding: 0.125rem; border: 1px solid var(--border-color-subtle); }
.navbox td { padding: 0; }
.navbox-inner { width: 100%; }
.navbox-title { background-color: var(--background-color-neutral); }
.navbox-title .plainlinks { display: none; }
.navbox-group { background-color: var(--background-color-neutral); white-space: nowrap; text-align: right; padding-left: 5px; padding-right: 5px; }
.navbox-list { border-left-width: 0px !important; }
td.navbox-list ul { list-style-type: none; margin: 4px 0px 0px 10px; }
td.navbox-list li { display: inline; padding-left: 4px; white-space: nowrap; }
td.navbox-list li:before { content: "•"; padding-right: 4px; }


/* Category Tiles Grid */
.category-tiles-container {
  --tile-image-size: 120px;
  --tile-font-size: 1.1em;
  --tile-gap: 0.75rem;
  
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--tile-image-size) + 2px), 1fr));
  gap: var(--tile-gap);
  margin: 0 auto;
  max-width: 100%;
  width: fit-content;
}

/* Size Variants - Override CSS Variables */
.category-tiles-size-small {
  --tile-image-size: 80px;
  --tile-font-size: 0.9em;
}

.category-tiles-size-large {
  --tile-image-size: 180px;
  --tile-font-size: 1.3em;
}

/* Tile Styling */
.category-tile {
  background: var(--background-color-neutral-subtle);
  border-radius: 8px;
  border: 1px solid var(--border-color-subtle);
  overflow: hidden;
  text-align: center;
}

.category-tile:hover {
  background: var(--background-color-neutral);
  border-color: var(--border-color-base);
}

.category-tile a {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--color-base);
  text-decoration: none;
}


.tile-image img {
  width: var(--tile-image-size) !important;
  height: var(--tile-image-size) !important;
  object-fit: cover;
}

.tile-title {
  font-weight: bold;
  font-size: var(--tile-font-size);
  border-top: 1px solid var(--border-color-muted);
  height: 100%;
}

.tile-title span {
  padding: 0.25rem 0.5rem;
}

/* Responsive - Mobile First */
@media (max-width: 600px) {
  .category-tiles-container {
    --tile-gap: 0.5rem;
  }
  
  .category-tiles-size-small {
    --tile-image-size: 60px;
  }
  
  .category-tiles-size-large {
    --tile-image-size: 120px;
  }
}

/* Responsive banner styling */
.responsive-banner-container img.mw-file-element {
    max-width: 800px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
}


/* top bar category icons */
#pp-symbols { 
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  flex-grow: 1;
}

/* hide top bar category icons on small screens */
@media (max-width: 970px)
{
  #pp-symbols { display: none; }
}