MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus Ottonien Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 139: Zeile 139:


/* ---- START MAINPAGE SHOWCASE ---- */
/* ---- START MAINPAGE SHOWCASE ---- */
.mainpage-showcase {
@gray-darker:              #444444;
     margin: 2.6em 1.75em 1.5em;
@gray-dark:                #696969;
    column-gap: 10px;
@gray:                      #999999;
    display: flex;
@gray-light:                #cccccc;
    flex-direction: row;
@gray-lighter:              #ececec;
     flex-wrap: nowrap;
@gray-lightest:            lighten(@gray-lighter,4%);
     justify-content: space-between;
 
     align-items: center;
*,
     align-content: flex-start;
*::before,
*::after {
  box-sizing: border-box;
}
 
html {
  background-color: #f0f0f0;
}
 
body {
  color: @gray;
  font-family: 'Roboto','Helvetica Neue', Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  padding: 1rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga" on;
}
 
img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}
 
.btn {
  background-color: white;
  border: 1px solid @gray-light;
  //border-radius: 1rem;
  color: @gray-dark;
  padding: 0.5rem;
  text-transform: lowercase;
}
 
.btn--block {
  display: block;
  width: 100%;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
 
.cards__item {
  display: flex;
  padding: 1rem;
  @media(min-width: 40rem) {
     width: 50%;
  }
  @media(min-width: 56rem) {
    width: 33.3333%;
  }
}
 
.card {
  background-color: white;
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  &:hover {
    .card__image {
      filter: contrast(100%);
     }
  }
}
 
.card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem;
}
 
.card__image {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  filter: contrast(70%);
  //filter: saturate(180%);
  overflow: hidden;
  position: relative;
  transition: filter 0.5s cubic-bezier(.43,.41,.22,.91);;
  &::before {
     content: "";
  display: block;
    padding-top: 56.25%; // 16:9 aspect ratio
  }
  @media(min-width: 40rem) {
     &::before {
      padding-top: 66.6%; // 3:2 aspect ratio
     }
  }
}
 
.card__image--flowers {
  background-image: url(https://unsplash.it/800/600?image=82);
}
 
.card__image--river {
  background-image: url(https://unsplash.it/800/600?image=11);
}
 
.card__image--record {
  background-image: url(https://unsplash.it/800/600?image=39);
}
}


.mainpage-showcase .showcase-tile {
.card__image--fence {
    flex: 1 1 auto;
  background-image: url(https://unsplash.it/800/600?image=59);
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    flex-direction: row;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}
}


.mainpage-showcase .showcase-tile .tile-top {
.card__title {
   height: 40px;
  color: @gray-dark;
   border-style: solid;
  font-size: 1.25rem;
   border-color: blue;
   font-weight: 300;
   letter-spacing: 2px;
   text-transform: uppercase;
}
}


.mainpage-showcase .showcase-tile .tile-bottom {
.card__text {
   background-color: red;
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.5;
   margin-bottom: 1.25rem;
}
}
/* ---- END MAINPAGE CONTENTS ---- */
/* ---- END MAINPAGE CONTENTS ---- */

Version vom 26. Juli 2024, 02:41 Uhr

/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* CSS für das Desktop-Theme (Vector) wird hier angepasst: [[Mediawiki:Vector.css]] */
/* CSS für das Mobile-Theme (Minerva) wird hier angepasst: [[Mediawiki:Minerva.css]] */


/* ---- START VARIABLEN ---- */
@import url( 'https://fonts.googleapis.com/css?family=Metamorphous|Metamorphous ');
@import url( 'https://www.fonts.googleapis.com/css?family=Marcellus|Marcellus');
:root {
    --beige-dark: #c7aa90;
    --beige-dark-2: #ceb499;
    --beige-light: #dbd2bf;
    --dark-grey: #3c3c3c;

    --text-brown: #513e2a;
    --text-color: #3c3c3c;
    --link-color: #8f7459;
    --redlink-color: #c7aa90;
}
/* ---- ENDE VARIABLEN ---- */


/* ---- START BACKGROUND ---- */
body {
    background: url(/Ottonien_Wiki_background.jpg) no-repeat, var(--beige-dark-2);
}

/* ---- ENDE BACKGROUND ---- */


/* ---- START TOP BAR ---- */
#mw-page-base {
    background: none;
}
/* ---- END TOP BAR ---- */


/* ---- START CONTENT TYPO ---- */
#content h1, 
#content h2 {
  font-family: "Metamorphous";
  color: var(--text-brown);
  border-bottom: 1px solid var(--beige-dark-2);
}

a {
    color: var(--link-color);
}

a:visited,
a:active {
    color: var(--link-color);
}

a.new {
    color: var(--redlink-color);
}

a.new:visited {
    color: var(--redlink-color);
}

a.external {
    color: var(--link-color);
}

a.external:visited {
    color: var(--link-color);
}
/* ---- ENDE CONTENT TYPO ---- */


/* ---- START PAGE CONTENT ---- */
.mw-body {
    background-color: var(--beige-light);
    color: var(--text-color);
    border-color: transparent;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.15);
    margin-top: 0;
}
/* ---- END PAGE CONTENT ---- */


/* ---- START SIDEBAR ---- */

.mw-wiki-logo {
    transform: scale(0.85);
}
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
    font-weight: bold;
    background-image: unset;
    color: var(--dark-grey);
}

.vector-menu-content li a {
    color: #665d52 !important;
}

/* ---- END SIDEBAR ---- */



/* ---- START MAINPAGE SPECIAL CSS ---- */

body.page-Hauptseite h1.firstHeading { 
    display:none;
}

.mainpage-header {
    display: flex;
    margin: 2.6em 1.75em 1.5em;
}

.mainpage-header .header-intro {
    flex: 2;
}

.mainpage-header .header-intro h1 {
    font-size: 2.5em;
    border: none;
    font-weight: bold;
    margin: 0 0 0.15em;
}

.mainpage-header .header-intro p {
    font-size: 1.1em;
    line-height: 1.7em;
}

.mainpage-header .header-stats {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -1em;
}
/* ---- ENDE MAINPAGE CSS ---- */


/* ---- START MAINPAGE SHOWCASE ---- */
@gray-darker:               #444444;
@gray-dark:                 #696969;
@gray:                      #999999;
@gray-light:                #cccccc;
@gray-lighter:              #ececec;
@gray-lightest:             lighten(@gray-lighter,4%);

*,
*::before,
*::after { 
  box-sizing: border-box;
}

html {
  background-color: #f0f0f0;
}

body {
  color: @gray;
  font-family: 'Roboto','Helvetica Neue', Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  padding: 1rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga" on;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.btn {
  background-color: white;
  border: 1px solid @gray-light;
  //border-radius: 1rem;
  color: @gray-dark;
  padding: 0.5rem;
  text-transform: lowercase;
}

.btn--block {
  display: block;
  width: 100%;
}
 
.cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards__item {
  display: flex;
  padding: 1rem;
  @media(min-width: 40rem) {
    width: 50%;
  }
  @media(min-width: 56rem) {
    width: 33.3333%;
  }
}

.card {
  background-color: white;
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  &:hover {
    .card__image {
      filter: contrast(100%);
    }
  }
}

.card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem;
}

.card__image {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  filter: contrast(70%);
  //filter: saturate(180%);
  overflow: hidden;
  position: relative;
  transition: filter 0.5s cubic-bezier(.43,.41,.22,.91);;
  &::before {
    content: "";
	  display: block;
    padding-top: 56.25%; // 16:9 aspect ratio
  }
  @media(min-width: 40rem) {
    &::before {
      padding-top: 66.6%; // 3:2 aspect ratio
    }
  }
}

.card__image--flowers {
  background-image: url(https://unsplash.it/800/600?image=82);
}

.card__image--river {
  background-image: url(https://unsplash.it/800/600?image=11);
}

.card__image--record {
  background-image: url(https://unsplash.it/800/600?image=39);
}

.card__image--fence {
  background-image: url(https://unsplash.it/800/600?image=59);
}

.card__title {
  color: @gray-dark;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.card__text {
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
/* ---- END MAINPAGE CONTENTS ---- */