MediaWiki:Common.css: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Jneug (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Jneug (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 45: | Zeile 45: | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
.vector-menu-tabs li { | .vector-menu-tabs li { | ||
background-image: linear-gradient(to top, # | background-image: linear-gradient(to top, #00A651, rgba(38, 41, 44, 0.5), rgba(38, 41, 44, 0)); | ||
} | } | ||
.vector-menu-tabs .selected { | .vector-menu-tabs .selected { |
Version vom 9. November 2021, 12:40 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;
}
@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;
}
}
/******************
Genreal 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);
}
/** General darkmode changes */
@media (prefers-color-scheme: dark) {
.vector-menu-tabs li {
background-image: linear-gradient(to top, #00A651, rgba(38, 41, 44, 0.5), rgba(38, 41, 44, 0));
}
.vector-menu-tabs .selected {
background-color: #34393d;
background-color: #26292C;
}
.vector-menu-tabs .selected a:link,
.vector-menu-tabs .selected a:active {
color: #0dff83;
}
.vector-menu-tabs .selected a:visited {
color: #00A651;
}
}
/******************
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);
}
span.toctogglelabel {
color: var(--link-color);
}
a.new:link,
a.new:active,
a.new:visited {
color: #df6565;
}
.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: #4e6a8e;
}
.pre {
background-color: #f8f9fa;
border: 1px solid #3a3a3a;
padding: 1em;
white-space: pre-wrap;
display: block;
line-height: 1.3em;
}
code {
background-color: transparent;
border: none;
}
/* Color utilities */
.text-white {
color: #FFF !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);
}
.wikitable th {
text-align: center;
}
.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: #212529;
-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);
}
.alert-title {
font-weight: 600;
text-transform: uppercase;
}
.alert p {
margin: 0;
}
.alert-error {
/*background: #ffecec;
border: 1px solid #f5aca6;*/
background: #dc3545;
color: #fff;
}
.alert-success {
/*background: #e9ffd9;
border: 1px solid #a6ca8a;*/
background: #28a745;
color: #fff;
}
.alert-warning {
/*background: #fff8c4;
border: 1px solid #f2c779;*/
background: #ffc107;
color: #212529;
}
.alert-notice {
/*background: #e3f7fc;
border: 1px solid #8ed9f6;*/
background: #17a2b8;
/*color: @clr-gray2;*/
color: #212529;
}
/**********************
Wrappers and boxes
**********************/
.collapsible-info {
border: 1px solid #3a3a3a;
background-color: #f8f9fa;
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: #212529;
-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 code,
.wrapper pre {
background-color: rgba(248, 249, 250, 0.75);
}
.wrapper code.clean,
.wrapper pre.clean {
background: none;
border: none;
padding: 0;
}
.hgbox {
background-color: #eaecf0;
}
.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);
}
.hgborder {
border: 2px solid #26292C;
background-color: rgba(0, 0, 0, 0);
}
.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: #c6ecf7;
/*border: 1px solid gray;*/
}
.taskbox {
background-color: #BEE599;
/*border: 1px solid #a6ca8a;*/
}
.taskbox-bonus .taskbox {
background-color: #e4cda1;
/*border: 1px solid #a6ca8a;*/
}
.tldrbox {
background-color: #f8f9fa;
}
.solutionbox {
background-color: #f5f599;
/*border: 1px solid #d1d183;*/
}
.importantbox {
border-color: #ff593f;
}
.shortlinkbox {
background-color: #f5f8da;
}
.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;
}