MediaWiki:Mobile.css: Unterschied zwischen den Versionen

Aus HG Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 554: Zeile 554:
}
}
.hgbox {
.hgbox {
   background-color: #eaecf0;
   background-color: var(--common-background);
}
}
.hgwindow {
.hgwindow {

Aktuelle Version vom 26. November 2021, 20:19 Uhr

/** Define variables for light- and darkmode */
:root {
  --text-color: #212529;
  --background-color: #fff;
  --link-color: #0645ad;
  --link-color-visited: #04317c;
  --common-background: #f8f9fa;
  --common-border: #3a3a3a;
  --header-background: #eaecf0;
  --code-background: #f8f9fa;
  --code-color: #4e6a8e;
  --notice-color: #17a2b8;
  --error-color: #dc3545;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --wrapper-hint: #c6ecf7;
  --wrapper-task: #BEE599;
  --wrapper-bonus: #e4cda1;
  --wrapper-tldr: #f8f9fa;
  --wrapper-solution: #f5f599;
  --wrapper-shortlink: #f5f8da;
  --wrapper-important: #ff593f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #f8f9fa;
    --background-color: #26292C;
    --link-color: #0dff83;
    --link-color-visited: #00d96a;
    --common-background: #3a3a3a;
    --common-border: #212121;
    --header-background: #070707;
    --code-background: #212121;
    --code-color: #83a8d8;
    --notice-color: #76e5f8;
    --error-color: #de6571;
    --success-color: #84ec9b;
    --warning-color: #ffd44a;
    --wrapper-hint: #8db1bb;
    --wrapper-task: #648746;
    --wrapper-bonus: #9f762a;
    --wrapper-tldr: #7d7d7d;
    --wrapper-solution: #7c8003;
    --wrapper-shortlink: #6a6e46;
    --wrapper-important: #9a210e;
  }
}
/******************
   General styles
 ******************/
body,
.mw-body,
.mw-body-content,
.parsoid-body,
#mw-head {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
}
.pre-content h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
/** General darkmode changes */
@media (prefers-color-scheme: dark) {
  .vector-menu-tabs,
  .vector-menu-tabs a,
  #mw-head .vector-menu-dropdown h3 {
    background-image: linear-gradient(to bottom, rgba(13, 255, 131, 0) 0%, #0dff83 100%);
    color: var(--link-color);
  }
  .vector-menu-tabs li {
    background-image: linear-gradient(to top, #00d96a 0, #26292C 50%);
  }
  .vector-menu-tabs .selected,
  .vector-menu-dropdown li {
    background-color: var(--background-color);
  }
  .vector-menu-tabs .selected a:link,
  .vector-menu-dropdown li a:link,
  .vector-menu-tabs .selected a:active,
  .vector-menu-dropdown li a:active {
    color: var(--link-color);
  }
  .vector-menu-tabs .selected a:visited,
  .vector-menu-dropdown li a:visited {
    color: var(--link-color-visited);
  }
  .vector-menu-dropdown .vector-menu-content {
    background-color: var(--common-background);
    color: var(--text-color);
    border-color: var(--link-color);
  }
  .vector-menu-dropdown h3 {
    color: var(--text-color);
  }
  .mw-body {
    border-color: var(--link-color);
  }
  .catlinks {
    background-color: var(--common-background);
  }
  .catlinks a:link,
  .catlinks a:active {
    color: var(--link-color);
  }
  .catlinks a:visited {
    color: var(--link-color-visited);
  }
}
.last-modified-bar {
  border-bottom: solid 1px var(--common-border);
  background-color: var(--common-background);
  color: var(--text-color);
}
.mw-ui-button:link,
.mw-ui-button:active,
.mw-ui-button:visited {
  background-color: var(--common-background);
  color: var(--text-color);
  border-color: var(--common-border);
}
/******************
       Links
 ******************/
a:link,
.mw-parser-output a.external:link,
.vector-menu-portal .vector-menu-content li a:link,
.vector-menu-tabs li a:link,
a.mw-collapsible-text:link,
a:active,
.mw-parser-output a.external:active,
.vector-menu-portal .vector-menu-content li a:active,
.vector-menu-tabs li a:active,
a.mw-collapsible-text:active {
  color: var(--link-color);
}
a:visited,
.mw-parser-output a.external:visited,
.vector-menu-portal .vector-menu-content li a:visited,
.vector-menu-tabs li a:visited,
a.mw-collapsible-text:visited {
  color: var(--link-color-visited);
}
.toctogglelabel {
  color: var(--link-color);
}
a.new:link,
a.new:active,
a.new:visited {
  color: #df6565;
}
@media (prefers-color-scheme: dark) {
  a:not([href]) {
    color: #bcc6cf;
  }
}
.mw-editform #wpTextbox1 {
  font-size: 1rem !important;
}
.text-small {
  font-size: smaller !important;
}
.text-large {
  font-size: larger !important;
}
.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}
.text-right {
  text-align: right !important;
}
pre,
code,
.mw-code,
.pre {
  font-family: monospace, 'Courier';
  color: var(--code-color);
}
pre,
.content pre,
.pre {
  background-color: var(--code-background);
  border: 1px solid var(--common-border);
  padding: 1em;
  white-space: pre-wrap;
  display: block;
  line-height: 1.3em;
}
code,
.content code {
  background-color: transparent;
  border: none;
}
@media (prefers-color-scheme: dark) {
  .mw-content-ltr.mw-highlight-lines pre,
  .mw-content-ltr.content .mw-highlight-lines pre {
    box-shadow: inset 2.75em 0 0 #3a3a3a;
  }
  .mw-highlight .linenos {
    color: var(--text-color);
  }
  .mw-highlight .hll {
    background-color: #393921;
  }
}
/* Color utilities */
.text-white {
  color: #FFF !important;
}
.text-black {
  color: #000 !important;
}
.text-light {
  color: #f8f9fa !important;
}
.text-dark {
  color: #212529 !important;
}
.text-default {
  color: var(--text-color) !important;
}
.text-muted {
  color: #AEAEAE !important;
}
.text-hg,
.text-primary {
  color: #00A651 !important;
}
.text-hgrot,
.text-secondary {
  color: #97373d !important;
}
.bg-dark {
  background-color: #3a3a3a !important;
}
.bg-light {
  background-color: #f8f9fa !important;
}
.bg-hg,
.bg-primary {
  background-color: #00A651 !important;
}
.bg-hgrot,
.bg-secondary {
  background-color: #97373d !important;
}
.key,
.uibutton,
.herobutton {
  background-color: #f8f9fa;
  background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.4), rgba(127, 127, 127, 0.2));
  background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.4), rgba(127, 127, 127, 0.2));
  background-image: -o-linear-gradient(rgba(255, 255, 255, 0.4), rgba(127, 127, 127, 0.2));
  background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(127, 127, 127, 0.2));
  border: 1px solid;
  border-color: #DDD #AAA #888 #CCC;
  border-radius: 2px;
  font-family: inherit;
  padding: 0 0.4em;
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.uibutton {
  border-radius: 4px;
}
.uibutton img {
  max-height: 1em;
  padding: 1px 0;
}
.herobutton {
  /*max-width: 50%;*/
  /*min-width: 240px;*/
  padding: 0;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 0.5em;
}
.herobutton a,
.herobutton span {
  display: block;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: transparent;
  min-height: 60px;
}
.herobutton a:hover,
.herobutton span:hover {
  background-color: rgba(10, 10, 10, 0.1);
}
/* Layout */
.clearfix:after {
  content: ".";
  clear: both;
  display: block;
  visibility: hidden;
  height: 0px;
}
.hidden {
  display: none !important;
}
span.tab {
  display: inline-block;
  width: 4em;
}
span.tabtab {
  display: inline-block;
  width: 8em;
}
span.tabtabtab {
  display: inline-block;
  width: 12em;
}
span.tabtabtabtab {
  display: inline-block;
  width: 16em;
}
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}
.img-inline,
.inline-img {
  display: inline-block;
  max-height: 1.1em;
  width: auto;
  /*vertical-align: middle;
	vertical-align: initial;*/
  vertical-align: baseline;
}
/* Tables */
.infobox {
  position: relative;
  float: right !important;
  margin: 0 0 8px 12px;
}
.infobox table {
  position: relative;
  margin-bottom: 0;
  background-color: #fff;
  max-width: 360px;
  border: 1px solid #dddddd;
  border-collapse: collapse;
  border-spacing: 0;
}
.infobox table caption {
  text-align: center;
  padding: 0 0 4px;
  font-size: smaller;
}
.infobox table .infobox-header {
  text-align: center;
  font-weight: bold;
  background-color: #f5f5f5;
  font-size: 19px;
}
.infobox table th {
  background-color: #f5f5f5;
  font-weight: bold;
  border: 1px solid #dddddd;
  max-width: 358px;
}
.infobox table td {
  border: 1px solid #dddddd;
  max-width: 358px;
}
.logictable {
  border-spacing: 0;
  border-collapse: collapse;
}
.logictable td {
  min-width: 2em;
  min-height: 2em;
  max-width: 4em;
  max-height: 2em;
  text-align: center;
  vertical-align: middle;
}
table.code {
  font-family: monospace, 'Courier';
  color: #4e6a8e;
}
table.code input {
  width: 2em;
}
.wikitable,
.toc {
  -webkit-box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4);
  background-color: var(--common-background);
  border-color: var(--common-border);
  color: var(--text-color);
}
.tocnumber {
  color: var(--text-color);
}
.wikitable > * > tr > th {
  text-align: center;
  color: var(--text-color);
  background-color: var(--header-background);
}
.mw-tablefooter {
  font-size: 0.8em;
  color: #c8ccd1;
  text-align: right;
}
.mw-tablefooter:link,
.mw-tablefooter:active,
.mw-tablefooter:visited,
.mw-tablefooter:hover {
  color: #c8ccd1;
}
.binarytable tr:last-of-type td {
  border-top: 2px solid black;
}
/* Scratchblocks */
code.blocks,
code.blocks2 {
  border: none;
  margin: 0 4px;
  padding: 0;
  background-color: transparent !important;
  vertical-align: middle;
}
pre.blocks,
pre.blocks2 {
  padding: 0;
  background-color: transparent;
  border: none;
  margin: 0.8em 0;
}
/* Navigation */
.lernpfad-nav .back {
  float: left;
  width: 48%;
}
.lernpfad-nav .next {
  float: right;
  width: 48%;
  text-align: right;
}
/*********************
         Alerts
 *********************/
.alert {
  border-radius: 4px;
  padding: 8px;
  margin: 8px;
  font-size: 0.9em;
  border: 1px solid rgba(0, 0, 0, 0.25);
  /*color: @alert-text-color;*/
  -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
}
.alert-title {
  font-weight: 600;
  text-transform: uppercase;
}
.alert p {
  margin: 0;
}
.alert-notice {
  background-color: #17a2b8;
  color: #cbe8ed;
  border-color: #0d5965;
}
.alert-error {
  background-color: #dc3545;
  color: #f2d2d6;
  border-color: #791d26;
}
.alert-success {
  background-color: #28a745;
  color: #cee9d6;
  border-color: #165c26;
}
.alert-warning {
  background-color: #ffc107;
  color: #4d4422;
  border-color: #8c6a04;
}
.hint-notice {
  border-color: #17a2b8 !important;
  background-color: rgba(23, 162, 184, 0.08);
}
.hint-success {
  border-color: #28a745 !important;
  background-color: rgba(40, 167, 69, 0.08);
}
.hint-error {
  border-color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.08);
}
.hint-warning {
  border-color: #ffc107 !important;
  background-color: rgba(255, 193, 7, 0.08);
}
/**********************
   Wrappers and boxes
 **********************/
.collapsible-info {
  border: 1px solid #3a3a3a;
  background-color: var(--common-background);
  padding: 5px;
  overflow: auto;
}
.wrapper,
.hgbox,
.hgwindow,
.hgdrawer,
.hgborder {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  /*color: @wrapper-text-color;*/
  -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4);
}
.wrapper .code {
  font-family: monospace, 'Courier' !important;
  color: #4e6a8e;
}
.wrapper pre {
  /*background-color: fade(@code-background, 75%);
		@media (prefers-color-scheme:dark) {
			background-color: fade(@code-background-dark, 25%);
		}*/
}
.wrapper code.clean,
.wrapper pre.clean {
  background: none;
  border: none;
  padding: 0;
}
.hgbox {
  background-color: var(--common-background);
}
.hgwindow {
  background-color: #c8ccd1;
  border-top: 17px solid rgba(0, 0, 0, 0.25);
}
.hgdrawer {
  border-width: 2px;
  border-left: 9px solid rgba(0, 0, 0, 0.25);
  color: var(--text-color);
}
.hgborder {
  border: 2px solid #26292C;
  background-color: rgba(0, 0, 0, 0);
  color: var(--text-color);
}
.hgbox.inverted,
.hgwindow.inverted,
.hgdrawer.inverted,
.hgborder.inverted {
  border-color: rgba(255, 255, 255, 0.4);
}
.hgborder > :first-child,
.wrapper > :first-child,
.hgbox > :first-child,
.hgwindow > :first-child,
.hgdrawer > :first-child {
  margin-top: 0;
  padding-top: 0;
}
.hgborder > :last-child,
.wrapper > :last-child,
.hgbox > :last-child,
.hgwindow > :last-child,
.hgdrawer > :last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
.hintbox {
  font-size: 0.95em;
  background-color: var(--wrapper-hint);
  /*border: 1px solid gray;*/
}
.taskbox {
  background-color: var(--wrapper-task);
  /*border: 1px solid #a6ca8a;*/
}
.taskbox-bonus .taskbox {
  background-color: var(--wrapper-bonus);
  /*border: 1px solid #a6ca8a;*/
}
.tldrbox {
  background-color: var(--wrapper-tldr);
}
.solutionbox {
  background-color: var(--wrapper-solution);
  /*border: 1px solid #d1d183;*/
}
.importantbox {
  background-color: var(--wrapper-important);
}
.shortlinkbox {
  background-color: var(--wrapper-shortlink);
}
.quote,
blockquote {
  font-style: italic;
  font-size: 0.85rem;
}
.quote-source {
  font-style: normal !important;
  font-size: 0.8rem;
  display: block;
  margin-top: 0.5em;
}
blockquote {
  border-left: 4px solid #3a3a3a;
  padding-left: 4px;
}
.quote blockquote {
  border: none;
  padding: 0;
  margin: 0;
}
.hehodex {
  padding: 0.8em;
  display: inline-block;
  margin: 1em auto;
  font-size: 0.8rem;
}
.hehodex center {
  font-size: 1.2rem;
}
.hehomon-image {
  width: 210px;
  padding: 5px;
  margin: 0 1em 0 0;
  float: left;
}
.hehodex span {
  font-variant: small-caps;
  margin-left: 1em;
}
.hehodex table {
  border-left: 1px solid rgba(0, 0, 0, 0.25);
}
.hehodex.pflanze {
  background-color: #37ce5f;
}
.hehodex.elektro {
  background-color: #edd644;
}
.hehodex.wasser {
  background-color: #57a4ed;
}
.hehodex.feuer {
  background-color: #ed5e5e;
}
.hehodex.drache {
  background-color: #e0a4fc;
}
.hehodex.flug {
  background-color: #a0e1ff;
}
.hehodex.gift {
  background-color: #c19ad3;
}
.hehodex.käfer {
  background-color: #c4e8a7;
}
.hehodex.gestein {
  background-color: #e8dba7;
}
.hehodex.kampf {
  background-color: #e0c2aa;
}
.hehodex.eis {
  background-color: #9bfff3;
}
.hehodex.psycho {
  background-color: #ff9bc9;
}
.hehodex.geist {
  background-color: #a7a3ff;
}
/* Spaltenlayouts */
@media (min-width: 50em) {
  div.hgrow {
    display: flex;
    flex-direction: row;
  }
  div.hgrow > .hgcol {
    flex: 1 1 auto;
    width: 100vw;
    margin: 0 1em 0 0;
  }
  div.hgrow > .hgcol:last-child {
    margin: 0;
  }
  div.hgrow > .hgcol.hgcol-50 {
    width: 50vw;
  }
}
/* RQuiz */
.rquiz-gapfill table.code input {
  width: 30px;
}
h1 {
  font-size: 150%;
}
h2 {
  font-size: 130%;
}
h3 {
  font-size: 110%;
}
h4,
h5,
h6 {
  font-size: 100%;
}
.pre-content h1 {
  font-weight: 900;
  font-size: 2em;
}
/* Tables */
.content .wikitable tbody {
  min-width: 100%;
  display: table;
}
.infobox {
  position: static;
  float: none;
  margin: 8px;
}
.header .branding-box h1,
.header .branding-box a {
  color: var(--link-color);
  font-size: 150%;
}
/** Alerts */
.alert {
  border-radius: 0;
  padding: 8px 16px;
  margin: 0.5em -16px;
  border-left: 0;
  border-right: 0;
}
/** Wrappers and boxes */
.wrapper,
.hgbox,
.hgwindow,
.hgdrawer,
.hgborder {
  padding: 8px 16px;
  margin: 0.5em -16px;
  border-left: 0;
  border-right: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
.alert {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
.hgdrawer {
  padding-left: 8px;
  border-left: 8px solid rgba(0, 0, 0, 0.25);
}
.hgborder {
  padding-left: 14px;
  padding-right: 14px;
}
@media (prefers-color-scheme: dark) {
  .header-container,
  .header-container.header-chrome,
  .mw-footer {
    color: var(--text-color);
    background-color: var(--background-color);
  }
}