MediaWiki:Common.css: Unterschied zwischen den Versionen

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

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;
}