MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus KiwiThek
Wechseln zu: Navigation, Suche
Zeile 13: Zeile 13:
 
.mw-body-content h5,
 
.mw-body-content h5,
 
.mw-body-content h6 {
 
.mw-body-content h6 {
  font-family: 'ABeeZee', sans-serif !important;
+
    font-family: 'ABeeZee', sans-serif !important;
 
}
 
}
  
 
html {
 
html {
  background-color: #ffec8b;
+
    background-color: #ffec8b;
 
}
 
}
  
 
body {
 
body {
  height:   auto;
+
    height: auto;
  font-size: 18px;
+
    font-size: 18px;
 
}
 
}
  
 
pre, textarea {
 
pre, textarea {
  font-family: monospace, monospace;
+
    font-family: monospace, monospace;
 
}
 
}
  
 
@media (max-width: 1199px) {
 
@media (max-width: 1199px) {
  #content {
+
    #content {
    margin-left: calc(11em + 15px); /* #mw-panel padding */
+
        margin-left: calc(11em + 15px); /* #mw-panel padding */
  }
+
    }
  
  #left-navigation {
+
    #left-navigation {
    margin-left: calc(11em + 15px);
+
        margin-left: calc(11em + 15px);
  }
+
    }
 
}
 
}
  
 
@media (min-width: 1200px) {
 
@media (min-width: 1200px) {
  body {
+
    body {
    background-color: #ffec8b;
+
        background-color: #ffec8b;
  }
+
    }
  
  #mw-head-base {
+
    #mw-head-base {
    display: none;
+
        display: none;
  }
+
    }
  
  #mw-page-base {
+
    #mw-page-base {
    max-width: 1200px;
+
        max-width: 1200px;
    margin:   0 auto;
+
        margin: 0 auto;
  }
+
    }
  
  #mw-head {
+
    #mw-head {
    box-sizing: border-box;
+
        box-sizing: border-box;
    max-width: calc(1200px + 3px);
+
        max-width: calc(1200px + 3px);
    margin:     0 auto;
+
        margin: 0 auto;
    right:     auto;
+
        right: auto;
  }
+
    }
  
  #content {
+
    #content {
    position:   relative;
+
        position: relative;
    box-sizing: border-box;
+
        box-sizing: border-box;
    max-width:   calc(1200px - 10em - 27px); /* 27px body padding, 24px sidebar padding/margin */
+
        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 */
+
        margin-left: calc(50% + 10em - 1200px / 2 + 24px + 3px); /* 1px body border */
  }
+
    }
  
  #mw-navigation > * {
+
    #mw-navigation > * {
    /*background-color: #f6f6f6;*/
+
        /*background-color: #f6f6f6;*/
    position:           absolute;
+
        position: absolute;
    --content-left-part: calc(1200px / 2 - 10em + 27px); /* 27px body padding */
+
        --content-left-part: calc(1200px / 2 - 10em + 27px); /* 27px body padding */
    margin-left:         calc(50% - 10em - var(--content-left-part) + 24px);
+
        margin-left: calc(50% - 10em - var(--content-left-part) + 24px);
  }
+
    }
  
  #left-navigation {
+
    #left-navigation {
    margin-left: calc(11em + 12px);
+
        margin-left: calc(11em + 12px);
  }
+
    }
  
  #mw-panel, #footer {
+
    #mw-panel, #footer {
    background-color: #f6f6f6;
+
        background-color: #f6f6f6;
  }
+
    }
  
  #footer {
+
    #footer {
    margin-left: calc(50% + 10em - 1200px / 2 + 24px + 3px); /* 1px body border */
+
        margin-left: calc(50% + 10em - 1200px / 2 + 24px + 3px); /* 1px body border */
    box-sizing: border-box;
+
        box-sizing: border-box;
    max-width:   calc(1200px - 10em - 27px);
+
        max-width: calc(1200px - 10em - 27px);
  }
+
    }
 
}
 
}
  
 
#mw-panel {
 
#mw-panel {
  font-size:       20px;
+
    font-size: 20px;
  background-image: -webkit-linear-gradient(top, #fff 2.5em, #f6f6f6 5em);
+
    background-image: -webkit-linear-gradient(top, #fff 2.5em, #f6f6f6 5em);
  background-image: -moz-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);
+
    background-image: linear-gradient(#fff 2.5em, #f6f6f6 5em);
 
}
 
}
  
 
.mw-wiki-logo {
 
.mw-wiki-logo {
  background-size: contain;
+
    background-size: contain;
 
}
 
}
  
 
.box {
 
.box {
  border:       1px solid lightgrey;
+
    border: 1px solid lightgrey;
  box-shadow:   0px 0px 3px lightgrey;
+
    box-shadow: 0px 0px 3px lightgrey;
  padding:       0px 15px 10px 15px;
+
    padding: 0px 15px 10px 15px;
  margin-bottom: 1em;
+
    margin-bottom: 1em;
 
}
 
}
  
 
.box::after {
 
.box::after {
  content: '';
+
    content: '';
  display: block;
+
    display: block;
  clear:   both;
+
    clear: both;
 
}
 
}
  
 
.box .mw-pt-languages {
 
.box .mw-pt-languages {
  display: none;
+
    display: none;
 
}
 
}
  
 
#mw-content-text[lang="de-easy"] {
 
#mw-content-text[lang="de-easy"] {
  font-size: 20px;
+
    font-size: 20px;
 
}
 
}
  
 
body[lang="de-easy"] .firstHeading {
 
body[lang="de-easy"] .firstHeading {
  font-size: 2em;
+
    font-size: 2em;
 
}
 
}
  
 
li#footer-poweredbyico > a:not(:last-child) {
 
li#footer-poweredbyico > a:not(:last-child) {
  margin-right: 1em;
+
    margin-right: 1em;
 
}
 
}
  
 
li#footer-poweredbyico > a img {
 
li#footer-poweredbyico > a img {
  height: auto;
+
    height: auto;
 
}
 
}
  
Zeile 144: Zeile 144:
 
#bodyContent h6*/
 
#bodyContent h6*/
 
{
 
{
  margin-top:   1em;
+
    margin-top: 1em;
  margin-bottom: 1em;
+
    margin-bottom: 1em;
  max-width:     600px;
+
    max-width: 600px;
 
}
 
}
  
 
#bodyContent .portale,
 
#bodyContent .portale,
 
#bodyContent .portale > * {
 
#bodyContent .portale > * {
  max-width: 100%;
+
    max-width: 100%;
 
}
 
}
  
 
#bodyContent .portale {
 
#bodyContent .portale {
  /*max-width: 750px;*/
+
    /*max-width: 750px;*/
  line-height: 2.5em;
+
    line-height: 2.5em;
  margin-left: 0;
+
    margin-left: 0;
  margin-right: 0;
+
    margin-right: 0;
  text-align:   left;
+
    text-align: left;
 
}
 
}
  
 
#bodyContent .portale p {
 
#bodyContent .portale p {
  display:               grid;
+
    display: grid;
  column-gap:           15px;
+
    column-gap: 15px;
  grid-template-columns: repeat(4, 1fr);
+
    grid-template-columns: repeat(4, 1fr);
  grid-auto-rows:       1fr;
+
    grid-auto-rows: 1fr;
  grid-auto-flow:       row;
+
    grid-auto-flow: row;
 
}
 
}
  
 
body[lang="de-easy"] #bodyContent .portale p {
 
body[lang="de-easy"] #bodyContent .portale p {
  grid-template-columns: repeat(3, 1fr);
+
    grid-template-columns: repeat(3, 1fr);
 
}
 
}
  
 
#bodyContent table {
 
#bodyContent table {
  max-width: 600px;
+
    max-width: 600px;
 
}
 
}
  
 
#bodyContent table tr:nth-child(even) {
 
#bodyContent table tr:nth-child(even) {
  background-color: #fff;
+
    background-color: #fff;
 
}
 
}
  
 
.hauptartikel {
 
.hauptartikel {
  margin-bottom: 1.5em;
+
    margin-bottom: 1.5em;
 
}
 
}
  
 
.frontpage-icon {
 
.frontpage-icon {
  white-space: nowrap;
+
    white-space: nowrap;
 
}
 
}
  
 
.toclevel-1 ul {
 
.toclevel-1 ul {
  margin-top:   0 !important;
+
    margin-top: 0 !important;
  margin-bottom: 0 !important;
+
    margin-bottom: 0 !important;
 
}
 
}
  
 
.clearfix {
 
.clearfix {
  clear: both;
+
    clear: both;
 
}
 
}
  
 
.full-width,
 
.full-width,
 
.full-width p {
 
.full-width p {
  max-width: 100% !important;
+
    max-width: 100% !important;
 
}
 
}
  
Zeile 208: Zeile 208:
 
  */
 
  */
 
li#ca-talk {
 
li#ca-talk {
  display: none;
+
    display: none;
 
}
 
}
  
 
ns-2 li#ca-talk,
 
ns-2 li#ca-talk,
 
ns-3 li#ca-talk {
 
ns-3 li#ca-talk {
  display: block;
+
    display: block;
 
}
 
}
  
Zeile 220: Zeile 220:
 
  */
 
  */
 
.portale {
 
.portale {
  text-align: center;
+
    text-align: center;
 
}
 
}
  
 
.portale > span {
 
.portale > span {
  white-space: nowrap;
+
    white-space: nowrap;
 
}
 
}
  
Zeile 231: Zeile 231:
 
  */
 
  */
 
#pt-createaccount {
 
#pt-createaccount {
  display: none;
+
    display: none;
 
}
 
}
  
Zeile 239: Zeile 239:
 
  */
 
  */
 
.wibs-language-selector {
 
.wibs-language-selector {
  background-color: #f8f9fa;
+
    background-color: #f8f9fa;
  display:         table;
+
    display: table;
  border:           1px solid #a2a9b1;
+
    border: 1px solid #a2a9b1;
  box-sizing:       border-box;
+
    box-sizing: border-box;
  line-height:     1.2;
+
    line-height: 1.2;
  width:           100%;
+
    width: 100%;
  clear:           both;
+
    clear: both;
  overflow:         auto;
+
    overflow: auto;
 
}
 
}
  
 
.wibs-language-selector-label {
 
.wibs-language-selector-label {
  background-color: #eaecf0;
+
    background-color: #eaecf0;
  display:         table-cell;
+
    display: table-cell;
  /* Given `white-space: nowrap` above, label never shrinks underneath textual content. */
+
    /* Given `white-space: nowrap` above, label never shrinks underneath textual content. */
  width:           1%;
+
    width: 1%;
  padding:         0.5em;
+
    padding: 0.5em;
  font-weight:     bold;
+
    font-weight: bold;
  white-space:     nowrap;
+
    white-space: nowrap;
 
}
 
}
  
 
.wibs-language-selector-list {
 
.wibs-language-selector-list {
  display: flex;
+
    display: flex;
 
}
 
}
  
 
.wibs-language-selector-language {
 
.wibs-language-selector-language {
  padding-left: 5px;
+
    padding-left: 5px;
  padding-right: 5px;
+
    padding-right: 5px;
 
}
 
}
  
 
.box__content .wibs-language-selector {
 
.box__content .wibs-language-selector {
  display: none;
+
    display: none;
 
}
 
}
  
Zeile 276: Zeile 276:
 
  */
 
  */
 
.wikitable.header-left th {
 
.wikitable.header-left th {
  text-align: left;
+
    text-align: left;
 
}
 
}
  
 
.wikitable.header-right th {
 
.wikitable.header-right th {
  text-align: right;
+
    text-align: right;
 
}
 
}
  
 
.wikitable.header-center th {
 
.wikitable.header-center th {
  text-align: center;
+
    text-align: center;
 
}
 
}
  
 
.wikitable.content-left td {
 
.wikitable.content-left td {
  text-align: left;
+
    text-align: left;
 
}
 
}
  
 
.wikitable.content-right td {
 
.wikitable.content-right td {
  text-align: right;
+
    text-align: right;
 
}
 
}
  
 
.wikitable.content-center td {
 
.wikitable.content-center td {
  text-align: center;
+
    text-align: center;
 
}
 
}
  
 
.wikitable.justify {
 
.wikitable.justify {
  width: 100%;
+
    width: 100%;
 
}
 
}
  
Zeile 306: Zeile 306:
 
#mw-upload-form .mw-htmlform-field-Licenses,
 
#mw-upload-form .mw-htmlform-field-Licenses,
 
#mw-upload-form > fieldset:nth-child(3) {
 
#mw-upload-form > fieldset:nth-child(3) {
  display: none;
+
    display: none;
 
}
 
}
  
Zeile 312: Zeile 312:
 
  * Badges
 
  * Badges
 
  */
 
  */
 +
#content {
 +
    position: relative;
 +
}
 +
 
.badge {
 
.badge {
  display: block;
+
    display: block;
  position: absolute;
+
    position: absolute;
  right:   15px;
+
    right: 15px;
  top:     15px;
+
    top: 15px;
  height:   64px;
+
    height: 64px;
  width:   auto;
+
    width: auto;
 
}
 
}
  
 
.badge img {
 
.badge img {
  max-height: 100%;
+
    max-height: 100%;
  width:     auto;
+
    width: auto;
 
}
 
}

Version vom 8. Oktober 2020, 13:27 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);
}

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