MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus KiwiThek
Wechseln zu: Navigation, Suche
K
 
(46 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
/* CSS an dieser Stelle wirkt sich auf alle Skins aus */
+
/**
 +
* MediaWiki:Common.css
 +
*/
 +
@import url('https://fonts.googleapis.com/css?family=ABeeZee&display=swap');
  
 +
body,
 +
html,
 +
.mw-body h1,
 +
.mw-body-content h2,
 +
.mw-body-content h3,
 +
.mw-body-content h3,
 +
.mw-body-content h4,
 +
.mw-body-content h5,
 +
.mw-body-content h6 {
 +
    font-family: 'ABeeZee', sans-serif !important;
 +
}
  
/* CSS-Code um left sidebar und top navigation entsprechen zu gestalten!*/
+
html {
#filehistory {display: none} /* Hides the "File history" header */
+
    background-color: #ffec8b;
#metadata {display: none} /* Hides the "Metadata" header */
 
#mw_metadata {display: none} /* Hides the Metadata graph */
 
#filetoc { display: none; } /* Hides the table of contents for an image */
 
#t-permalink {display:none}
 
#t-specialpages {display:none}
 
 
 
/*für den anmelden button*/
 
#pt-anonlogin {font-size: 15px; font-weight: bold}
 
 
 
/*damit die indexpics nicht in den text rein fließen!!*/
 
#bodyContent h2 {
 
clear: right;
 
 
}
 
}
  
 
body {
 
body {
font-family:Verdana,sans-serif;
+
    height: auto;
}
+
    font-size: 18px;
 
 
div#globalWrapper {
 
margin: 0 auto;
 
position: relative;
 
width: 999px;
 
}
 
 
 
div#content {
 
padding-right:0;
 
 
}
 
}
  
.pBody {
+
pre, textarea {
background-color: #FFF79C;
+
    font-family: monospace, monospace;
 
}
 
}
  
span.titel{
+
@media (max-width: 1199px) {
display: block;
+
    #content {
line-height:1.2em;
+
        margin-left: calc(11em + 15px); /* #mw-panel padding */
margin-bottom:-14px;
+
    }
font-size:188%;
 
border-bottom:1px solid #AAAAAA;
 
}
 
  
div.catlink{
+
    #left-navigation {
border:1px solid #AAAAAA;
+
        margin-left: calc(11em + 15px);
 +
    }
 
}
 
}
  
 +
@media (min-width: 1200px) {
 +
    body {
 +
        background-color: #ffec8b;
 +
    }
  
 +
    #mw-head-base {
 +
        display: none;
 +
    }
  
/*Entfernen von toolbar buttons*/
+
    #mw-page-base {
 +
        max-width: 1200px;
 +
        margin: 0 auto;
 +
    }
  
#mw-editbutton-link{
+
    #mw-head {
display:none;
+
        box-sizing: border-box;
}
+
        max-width: calc(1200px + 3px);
 +
        margin: 0 auto;
 +
        right: auto;
 +
    }
  
#mw-editbutton-signature{
+
    #content {
display:none;
+
        position: relative;
}
+
        box-sizing: border-box;
 +
        max-width: calc(1200px - 10em - 27px); /* 27px body padding, 24px sidebar padding/margin */
 +
        margin-left: calc(50% + 10em - 1200px / 2 + 24px + 3px); /* 1px body border */
 +
    }
  
/*external links css*/
+
    #mw-navigation > * {
 +
        /*background-color: #f6f6f6;*/
 +
        position: absolute;
 +
        --content-left-part: calc(1200px / 2 - 10em + 27px); /* 27px body padding */
 +
        margin-left: calc(50% - 10em - var(--content-left-part) + 24px);
 +
    }
  
#bodyContent a.external,
+
    #left-navigation {
#bodyContent a[href ^="gopher://"] {
+
         margin-left: calc(11em + 12px);
padding-right:28px;
+
    }
        padding-top: 3px;
 
         padding-bottom: 3px;
 
}
 
  
#bodyContent a.external {
+
    #mw-panel, #footer {
         padding-right:28px;
+
         background-color: #f6f6f6;
        padding-top: 3px;
+
    }
        padding-bottom: 3px;
 
}
 
  
div.intern{
+
    #footer {
padding-right: 10px;
+
        margin-left: calc(50% + 10em - 1200px / 2 + 24px + 3px); /* 1px body border */
 +
        box-sizing: border-box;
 +
        max-width: calc(1200px - 10em - 27px);
 +
    }
 
}
 
}
  
div.intern a {
+
#mw-panel {
padding-right: 20px;
+
    font-size: 20px;
 +
    background-image: -webkit-linear-gradient(top, #fff 2.5em, #f6f6f6 5em);
 +
    background-image: -moz-linear-gradient(top, #fff 2.5em, #f6f6f6 5em);
 +
    background-image: linear-gradient(#fff 2.5em, #f6f6f6 5em);
 
}
 
}
  
ul div.intern {
+
.mw-wiki-logo {
float:none;
+
    background-size: contain;
 
}
 
}
  
/*Verlinkung des Ankerbilds*/
+
.box {
 
+
    border: 1px solid lightgrey;
.imagelink_anker {
+
    box-shadow: 0px 0px 3px lightgrey;
width: 22px;
+
    padding: 0px 15px 10px 15px;
 +
    margin-bottom: 1em;
 
}
 
}
  
.imagelink_anker a{
+
.box::after {
  width:22px;
+
    content: '';
  height:24px;
+
    display: block;
  display:block;
+
    clear: both;
  text-decoration:none;
 
  background-image: url("http://kiwithek.kidsweb.at/images/Anker.png")
 
 
}
 
}
  
/*Für die Portalseite, damit Bilder verlinkt werden können*/
+
.box .mw-pt-languages {
 
+
    display: none;
.imagelink_wienportal a {
 
  width:400px;
 
  height:250px;
 
  display:block;
 
  text-decoration:none;
 
  background-image: url("http://kiwithek.kidsweb.at/images/Wien.png")
 
 
}
 
}
  
.imagelink_sportportal a {
+
#mw-content-text[lang="de-easy"] {
  width:400px;
+
    font-size: 20px;
  height:250px;
 
  display:block;
 
  text-decoration:none;
 
  background-image: url("http://kiwithek.kidsweb.at/images/Startbild_sport.png")
 
 
}
 
}
  
.imagelink_kulturportal a {
+
body[lang="de-easy"] .firstHeading {
  width:400px;
+
    font-size: 2em;
  height:250px;
 
  display:block;
 
  text-decoration:none;
 
  background-image: url("http://kiwithek.kidsweb.at/images/Startbild_kunst_kultur.png")
 
 
}
 
}
  
/*Klasse für die kidswiki icons*/
+
li#footer-poweredbyico > a:not(:last-child) {
.icon {
+
    margin-right: 1em;
border-bottom: 1px solid #AAAAAA;
 
margin-bottom:6px;
 
padding-bottom:8px;
 
 
}
 
}
  
.icon h2{
+
li#footer-poweredbyico > a img {
border-bottom: none;
+
    height: auto;
font-size: 250%;
 
padding-top: 0.4em;
 
padding-bottom: 0;
 
margin-left:55px;
 
 
}
 
}
  
.icon .editsection{
+
#bodyContent p,
display: none;
+
#bodyContent ul,
 +
#bodyContent table,
 +
#bodyContent ol /*,
 +
#bodyContent h1,
 +
#bodyContent h2,
 +
#bodyContent h3,
 +
#bodyContent h4,
 +
#bodyContent h5,
 +
#bodyContent h6*/
 +
{
 +
    margin-top: 1em;
 +
    margin-bottom: 1em;
 +
    max-width: 600px;
 
}
 
}
  
.icon img{
+
#bodyContent .portale,
float:left;
+
#bodyContent .portale > * {
 +
    max-width: 100%;
 
}
 
}
  
 
+
#bodyContent .portale {
.imagelink_naturportal a {
+
    /*max-width: 750px;*/
  width:400px;
+
    line-height: 2.5em;
  height:250px;
+
    margin-left: 0;
  display:block;
+
    margin-right: 0;
  text-decoration:none;
+
    text-align: left;
  background-image: url("http://kiwithek.kidsweb.at/images/Startbild_natur_geschiochte_tage.png")
 
 
}
 
}
  
 
+
#bodyContent .portale p {
/*2SpaltenLayout divs*/
+
    display: grid;
 
+
    column-gap: 15px;
div.right {
+
    grid-template-columns: repeat(4, 1fr);
float:right;
+
    grid-auto-rows: 1fr;
width:49%;
+
    grid-auto-flow: row;
 
}
 
}
  
div.left {
+
body[lang="de-easy"] #bodyContent .portale p {
clear: left;
+
    grid-template-columns: repeat(3, 1fr);
float:left;
 
width:49%;
 
 
}
 
}
  
div.cleardiv {
+
@media (max-width: 1200px) {
clear:both;
+
    #bodyContent .portale p {
display:block;
+
        grid-template-columns: repeat(auto-fit, minmax(25%, calc(906px / 4)));
font-size:0;
+
    }
height:0;
 
}
 
  
/*3SpaltenLayout divs*/
+
    body[lang="de-easy"] #bodyContent .portale p {
div.linkeSpalte {
+
        grid-template-columns: repeat(auto-fit, minmax(calc(100% / 3), calc(906px / 3)));
float:left;
+
    }
width:32%;
 
 
}
 
}
  
div.mitteSpalte {
 
float:left;
 
margin-left:7px;
 
width: 33%;
 
}
 
  
div.rechteSpalte {
+
#bodyContent table {
float:left;
+
    max-width: 600px;
margin-left:7px;
 
width:33%;
 
 
}
 
}
  
 
+
#bodyContent table tr:nth-child(even) {
/*Logo und gesamte recht navigation besser positionieren*/
+
    background-color: #fff;
 
 
#p-logo {
 
padding-top: 19px;
 
 
}
 
}
  
#p-search {
+
.hauptartikel {
padding-top: 19px;
+
    margin-bottom: 1.5em;
 
}
 
}
  
#p-search h5 label {
+
.frontpage-icon {
font-weight:bold;
+
    white-space: nowrap;
font-size: 140%;
 
 
}
 
}
  
#p-Navigation {
+
.toclevel-1 ul {
padding-top: 5px;
+
    margin-top: 0 !important;
 +
    margin-bottom: 0 !important;
 
}
 
}
  
#p-tb {
+
.clearfix {
padding-top: 5px;
+
    clear: both;
 
}
 
}
  
/*Damit erster Buchstabe groß geschrieben ist bei Suche, Navigation, Werkzeuge*/
+
.full-width,
 
+
.full-width p {
.portlet h5 {
+
    max-width: 100% !important;
text-transform: none;
 
 
}
 
}
  
/*für die Table in der Hilfe*/
+
/**
 
+
* Hide Discussion Tab
.prettytable {
+
*/
background:#F9F9F9 none repeat scroll 0 0;
+
li#ca-talk {
border:1px solid #AAAAAA;
+
    display: none;
border-collapse:collapse;
 
empty-cells:show;
 
margin:1em 1em 1em 0;
 
}
 
.prettytable td {
 
border:1px solid #AAAAAA;
 
padding:0.3em;
 
}
 
.hintergrundfarbe8 {
 
background-color:#FFEBAD;
 
}
 
 
 
/*für die wiki tabellen*/
 
 
 
.wikitable{
 
border-spacing: 5px;
 
}
 
.wikitable td{
 
padding-right: 15px;
 
padding-bottom: 5px;
 
}
 
 
 
.steckbrief{
 
border-spacing: 5px;
 
border: 1px solid #AAAAAA;
 
}
 
 
 
.steckbrief td{
 
padding-right: 15px;
 
padding-bottom: 5px;
 
}
 
 
 
/*Für den Content rechts vom Index*/
 
 
 
div .indexpic {
 
float:right;
 
padding-top:20px;
 
width:50%;
 
}
 
 
 
/*CSS für die Hauptseite!*/
 
 
 
.orange {
 
color: orange;
 
 
}
 
}
  
.page-Hauptseite h2 {
+
ns-2 li#ca-talk,
border-bottom: none;
+
ns-3 li#ca-talk {
font-size: 250%;
+
    display: block;
padding-top: 0.2em;
 
padding-bottom: 0;
 
 
}
 
}
  
.page-Hauptseite .editsection{
+
/**
display: none;
+
* Portal Icons Frontpage
 +
*/
 +
.portale {
 +
    text-align: center;
 
}
 
}
  
.page-Hauptseite table.toc {
+
.portale > span {
display:none;
+
    white-space: nowrap;
 
}
 
}
  
/*Anders übernimmt er bei h3 den margin-bottom: 0 leider nicht*/
+
/**
#bodyContent div.hauptseite-artikel h3{
+
* Hide Registration Link
margin-bottom: 0;
+
*/
 +
#pt-createaccount {
 +
    display: none;
 
}
 
}
  
.hauptseite-artikel h3 {
 
font-weight: normal;
 
font-size: 116%;
 
border-bottom:1px solid steelBlue;
 
padding-bottom: 0.2em;
 
padding-top: 0.2em;
 
padding-left: 0.4em;
 
height: 50px;
 
}
 
  
.hauptseite-artikel {
+
/**
border:1px solid steelBlue;
+
* Language Selector
float:left;
+
*/
margin-bottom: 10px;
+
.wibs-language-selector {
margin-right: 10px;
+
    background-color: #f8f9fa;
width: 48.2%;
+
    display: table;
 +
    border: 1px solid #a2a9b1;
 +
    box-sizing: border-box;
 +
    line-height: 1.2;
 +
    width: 100%;
 +
    clear: both;
 +
    overflow: auto;
 
}
 
}
  
.hauptseite-artikel a{
+
.wibs-language-selector-label {
float:left;
+
    background-color: #eaecf0;
 +
    display: table-cell;
 +
    /* Given `white-space: nowrap` above, label never shrinks underneath textual content. */
 +
    width: 1%;
 +
    padding: 0.5em;
 +
    font-weight: bold;
 +
    white-space: nowrap;
 
}
 
}
  
.hauptseite-artikel p{
+
.wibs-language-selector-list {
margin:2px;
+
    display: flex;
padding-left:55px;
 
 
}
 
}
  
.hauptseite-artikel p.naturtext{
+
.wibs-language-selector-language {
margin-top: -4px;
+
    padding-left: 5px;
padding-left: 0;
+
    padding-right: 5px;
float:left;
 
margin-bottom: -4px;
 
 
}
 
}
  
 
+
.box__content .wibs-language-selector {
.hauptseite-artikel p.naturtext a{
+
    display: none;
margin:0 13px;
 
font-size: 12px;
 
 
}
 
}
  
.hauptseite-artikel div.natur{
+
/**
line-height: 1.3;
+
* Wikitable Alignments
padding-left: 0;
+
*/
float:left;
+
.wikitable.header-left th {
margin:-2px 14px 0px;
+
    text-align: left;
 
}
 
}
  
.hauptseite-artikel div.natur a{
+
.wikitable.header-right th {
clear:left;
+
    text-align: right;
font-size:12px;
 
 
}
 
}
  
table.gallery{
+
.wikitable.header-center th {
margin: auto;
+
    text-align: center;
 
}
 
}
  
li#ca-viewsource {
+
.wikitable.content-left td {
display:none;
+
    text-align: left;
 
}
 
}
  
li#ca-history {
+
.wikitable.content-right td {
display:none;
+
    text-align: right;
 
}
 
}
  
li#ca-talk {
+
.wikitable.content-center td {
display:none;
+
    text-align: center;
 
}
 
}
  
li#pt-anontalk {
+
.wikitable.justify {
display:none;
+
    width: 100%;
 
}
 
}
  
li#pt-mytalk {
+
#mw-upload-form .mw-htmlform-field-HTMLTextAreaField,
display:none;
+
#mw-upload-form .mw-htmlform-field-Licenses,
 +
#mw-upload-form > fieldset:nth-child(3) {
 +
    display: none;
 
}
 
}
  
 
+
/**
 
+
* Badges
/*IE6 Hacks*/
+
*/
 
+
#content {
 
+
    position: relative;
* html .hauptseite-artikel div.IENatur h3 span.mw-headline{
 
float:left;
 
margin: 3px -2px 0px -12px;
 
 
}
 
}
  
* html .hauptseite-artikel div.IENatur h3{
+
.badge {
padding: 0;
+
    display: block;
margin: -16px 0px 0px;
+
    position: absolute;
 +
    right: 15px;
 +
    top: 15px;
 +
    height: 64px;
 +
    width: auto;
 
}
 
}
  
/*Damit der schwarze Strich nicht mitten im Bild erscheint*/
+
.badge img {
 
+
    max-height: 100%;
* html #globalWrapper a {
+
    width: auto;
text-decoration:none;
 
 
}
 
}

Aktuelle Version vom 14. Oktober 2020, 11:19 Uhr

/**
 * MediaWiki:Common.css
 */
@import url('https://fonts.googleapis.com/css?family=ABeeZee&display=swap');

body,
html,
.mw-body h1,
.mw-body-content h2,
.mw-body-content h3,
.mw-body-content h3,
.mw-body-content h4,
.mw-body-content h5,
.mw-body-content h6 {
    font-family: 'ABeeZee', sans-serif !important;
}

html {
    background-color: #ffec8b;
}

body {
    height: auto;
    font-size: 18px;
}

pre, textarea {
    font-family: monospace, monospace;
}

@media (max-width: 1199px) {
    #content {
        margin-left: calc(11em + 15px); /* #mw-panel padding */
    }

    #left-navigation {
        margin-left: calc(11em + 15px);
    }
}

@media (min-width: 1200px) {
    body {
        background-color: #ffec8b;
    }

    #mw-head-base {
        display: none;
    }

    #mw-page-base {
        max-width: 1200px;
        margin: 0 auto;
    }

    #mw-head {
        box-sizing: border-box;
        max-width: calc(1200px + 3px);
        margin: 0 auto;
        right: auto;
    }

    #content {
        position: relative;
        box-sizing: border-box;
        max-width: calc(1200px - 10em - 27px); /* 27px body padding, 24px sidebar padding/margin */
        margin-left: calc(50% + 10em - 1200px / 2 + 24px + 3px); /* 1px body border */
    }

    #mw-navigation > * {
        /*background-color: #f6f6f6;*/
        position: absolute;
        --content-left-part: calc(1200px / 2 - 10em + 27px); /* 27px body padding */
        margin-left: calc(50% - 10em - var(--content-left-part) + 24px);
    }

    #left-navigation {
        margin-left: calc(11em + 12px);
    }

    #mw-panel, #footer {
        background-color: #f6f6f6;
    }

    #footer {
        margin-left: calc(50% + 10em - 1200px / 2 + 24px + 3px); /* 1px body border */
        box-sizing: border-box;
        max-width: calc(1200px - 10em - 27px);
    }
}

#mw-panel {
    font-size: 20px;
    background-image: -webkit-linear-gradient(top, #fff 2.5em, #f6f6f6 5em);
    background-image: -moz-linear-gradient(top, #fff 2.5em, #f6f6f6 5em);
    background-image: linear-gradient(#fff 2.5em, #f6f6f6 5em);
}

.mw-wiki-logo {
    background-size: contain;
}

.box {
    border: 1px solid lightgrey;
    box-shadow: 0px 0px 3px lightgrey;
    padding: 0px 15px 10px 15px;
    margin-bottom: 1em;
}

.box::after {
    content: '';
    display: block;
    clear: both;
}

.box .mw-pt-languages {
    display: none;
}

#mw-content-text[lang="de-easy"] {
    font-size: 20px;
}

body[lang="de-easy"] .firstHeading {
    font-size: 2em;
}

li#footer-poweredbyico > a:not(:last-child) {
    margin-right: 1em;
}

li#footer-poweredbyico > a img {
    height: auto;
}

#bodyContent p,
#bodyContent ul,
#bodyContent table,
#bodyContent ol /*,
#bodyContent h1,
#bodyContent h2,
#bodyContent h3,
#bodyContent h4,
#bodyContent h5,
#bodyContent h6*/
{
    margin-top: 1em;
    margin-bottom: 1em;
    max-width: 600px;
}

#bodyContent .portale,
#bodyContent .portale > * {
    max-width: 100%;
}

#bodyContent .portale {
    /*max-width: 750px;*/
    line-height: 2.5em;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

#bodyContent .portale p {
    display: grid;
    column-gap: 15px;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    grid-auto-flow: row;
}

body[lang="de-easy"] #bodyContent .portale p {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    #bodyContent .portale p {
        grid-template-columns: repeat(auto-fit, minmax(25%, calc(906px / 4)));
    }

    body[lang="de-easy"] #bodyContent .portale p {
        grid-template-columns: repeat(auto-fit, minmax(calc(100% / 3), calc(906px / 3)));
    }
}


#bodyContent table {
    max-width: 600px;
}

#bodyContent table tr:nth-child(even) {
    background-color: #fff;
}

.hauptartikel {
    margin-bottom: 1.5em;
}

.frontpage-icon {
    white-space: nowrap;
}

.toclevel-1 ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.clearfix {
    clear: both;
}

.full-width,
.full-width p {
    max-width: 100% !important;
}

/**
 * Hide Discussion Tab
 */
li#ca-talk {
    display: none;
}

ns-2 li#ca-talk,
ns-3 li#ca-talk {
    display: block;
}

/**
 * Portal Icons Frontpage
 */
.portale {
    text-align: center;
}

.portale > span {
    white-space: nowrap;
}

/**
 * Hide Registration Link
 */
#pt-createaccount {
    display: none;
}


/**
 * Language Selector
 */
.wibs-language-selector {
    background-color: #f8f9fa;
    display: table;
    border: 1px solid #a2a9b1;
    box-sizing: border-box;
    line-height: 1.2;
    width: 100%;
    clear: both;
    overflow: auto;
}

.wibs-language-selector-label {
    background-color: #eaecf0;
    display: table-cell;
    /* Given `white-space: nowrap` above, label never shrinks underneath textual content. */
    width: 1%;
    padding: 0.5em;
    font-weight: bold;
    white-space: nowrap;
}

.wibs-language-selector-list {
    display: flex;
}

.wibs-language-selector-language {
    padding-left: 5px;
    padding-right: 5px;
}

.box__content .wibs-language-selector {
    display: none;
}

/**
 * Wikitable Alignments
 */
.wikitable.header-left th {
    text-align: left;
}

.wikitable.header-right th {
    text-align: right;
}

.wikitable.header-center th {
    text-align: center;
}

.wikitable.content-left td {
    text-align: left;
}

.wikitable.content-right td {
    text-align: right;
}

.wikitable.content-center td {
    text-align: center;
}

.wikitable.justify {
    width: 100%;
}

#mw-upload-form .mw-htmlform-field-HTMLTextAreaField,
#mw-upload-form .mw-htmlform-field-Licenses,
#mw-upload-form > fieldset:nth-child(3) {
    display: none;
}

/**
 * Badges
 */
#content {
    position: relative;
}

.badge {
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
    height: 64px;
    width: auto;
}

.badge img {
    max-height: 100%;
    width: auto;
}