« MediaWiki:Mobile.css » : différence entre les versions
(essais dark mode version mobile) |
mAucun résumé des modifications |
||
Ligne 7 : | Ligne 7 : | ||
body { | body { | ||
background-image: none; | background-image: none; | ||
background-color: #000; | background-color: #000; | ||
} | |||
&, | &, | ||
Ligne 41 : | Ligne 37 : | ||
.wikitable, | .wikitable, | ||
.mw-notification { | .mw-notification { | ||
background-color: | background-color: #ddd; | ||
} | } | ||
Ligne 105 : | Ligne 101 : | ||
.infobox_v2 { | .infobox_v2 { | ||
/* French/Portuguese Wikipedia, etc. */ | /* French/Portuguese Wikipedia, etc. */ | ||
background-color: | background-color: #ddd; | ||
border-color: @darkmode-border-color; | border-color: @darkmode-border-color; | ||
} | } | ||
Ligne 111 : | Ligne 107 : | ||
/* Maintenance templates you see atop some articles */ | /* Maintenance templates you see atop some articles */ | ||
.ambox-content { | .ambox-content { | ||
background-color: | background-color: #ddd; | ||
border-color: @darkmode-border-color; | border-color: @darkmode-border-color; | ||
} | } | ||
Version du 23 août 2020 à 01:41
/* Le CSS placé ici n’affectera que les utilisateurs du site mobile */ @darkmode-table-background-color: #ddd; @darkmode-border-color: #cdcbc8; @darkmode-link-color: #69f; @darkmode-link-visited-color: #709bbd; @darkmode-red-link-color: #ff6e6e; body { background-image: none; background-color: #000; } &, img, video, svg, iframe, /* some maps are iframes */ .mw-wiki-logo, .mw-no-invert, .mw-mmv-overlay, .mw-mmv-pre-image, .mw-kartographer-map, .mw-kartographer-mapDialog-map { filter: invert(1) hue-rotate(180deg); -webkit-filter: invert(1) hue-rotate(180deg); } /* Backgrounds */ .toc, .thumbinner, #simpleSearch, #searchInput, #searchButton, #searchGoButton, table, table.toccolours, .wikitable, .mw-notification { background-color: #ddd; } /* Borders */ body, #mw-head, #mw-panel, #content.mw-body, h1, h2, h3, h4, h5, h6, .toc, div.thumbinner, #simpleSearch, #searchInput, table.toccolours, .mw-notification { border-color: @darkmode-border-color; } .thumbimage { border: 0; } /* Normal links */ a, #mw-panel .portal .body li a, .toctogglelabel, .mw-parser-output a.external, .mw-parser-output a.extiw, .mw-parser-output a.extiw:active { color: @darkmode-link-color; } /* Visited links */ a:visited, #mw-panel .portal .body li a:visited { color: @darkmode-link-visited-color; } /* Red links */ a.new, .new a { color: @darkmode-red-link-color; } /** * Skin-specific overrides */ .vectorTabs li a { color: @darkmode-link-color; } /** * Non-MediaWiki overrides */ .infobox, /* English Wikipedia, most other wikis with infoboxes */ .infobox_v2 { /* French/Portuguese Wikipedia, etc. */ background-color: #ddd; border-color: @darkmode-border-color; } /* Maintenance templates you see atop some articles */ .ambox-content { background-color: #ddd; border-color: @darkmode-border-color; }