« Utilisateur:Atsarb/vector-2022.css » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 57 : | Ligne 57 : | ||
--color-warning: #ffcc33; | --color-warning: #ffcc33; | ||
--color-link: green; | --color-link: green; | ||
--color-link-visited: # | --color-link-visited: #2A672A; | ||
--border-color-base: rgba(0, 0, 0, 0.1); | --border-color-base: rgba(0, 0, 0, 0.1); | ||
} | } | ||
Version du 4 janvier 2024 à 22:56
/*
---------------------------------------------------
Variables
---------------------------------------------------
Ces variables définissent les couleurs utilisés par
le wiki.
---------------------------------------------------
*/
:root {
--background-color-dp-00: #a9ceea;
--background-color-dp-01: #b1d2ec;
--background-color-dp-02: #bad7ee;
--background-color-dp-03: #c2dcf0;
--background-color-dp-04: #cbe1f2;
--background-color-dp-06: #d4e6f4;
--background-color-dp-08: #dcebf6;
--background-color-dp-12: #e5f0f8;
--background-color-dp-16: #edf5fa;
--background-color-dp-24: #f6fafc;
--background-img: no-repeat url(avt-main-25-background.jpg);
--background-main: #fff;
--box-background-color: #f6fafc;
--box-shadow: 0 0 10px #a9ceea;
--color-base: black;
--color-warning: #ffcc33;
--color-link: #0645ad;
--border-color-base: rgba(0, 0, 0, 0.3);
}
/*
---------------------------------------------------
Mode sombre
---------------------------------------------------
Partie régissant le mode sombre
---------------------------------------------------
*/
:root.client-darkmode {
--background-color-dp-00: #020601;
--background-color-dp-01: #040d02;
--background-color-dp-02: #e5f4e0;
--background-color-dp-03: #d4eccc;
--background-color-dp-04: #0c2205;
--background-color-dp-06: #0e2806;
--background-color-dp-08: #102f07;
--background-color-dp-12: #133608;
--background-color-dp-16: #153d09;
--background-color-dp-24: #18440b;
--background-img: no-repeat url(avt-necropolis-background.jpg);
--background-main: #fff;
--box-background-color: #fafffa;
--box-shadow: 0 0 10px #f1fff2;
--color-base: black;
--homepage-welcome-title: green;
--homepage-box-title: green;
--color-warning: #ffcc33;
--color-link: green;
--color-link-visited: #2A672A;
--border-color-base: rgba(0, 0, 0, 0.1);
}
.client-darkmode {
background: none;
}
.client-darkmode .cdx-thumbnail__image {
filter: none;
-webkit-filter: none;
}
.client-darkmode a,
.client-darkmode .vector-main-menu-group .vector-menu-content li a,
.client-darkmode .toctogglelabel,
.client-darkmode .mw-parser-output a.external,
.client-darkmode .mw-parser-output a.extiw,
.client-darkmode .mw-parser-output a.extiw:active,
.client-darkmode .vector-menu-portal .vector-menu-content li a,
.client-darkmode .vector-menu-tabs li a,
.client-darkmode .sidebar-toc .sidebar-toc-link,
.client-darkmode .vector-pinnable-header-toggle-button,
.client-darkmode #pt-userpage-2 a,
.client-darkmode .vector-dropdown .mw-list-item a,
.client-darkmode .vector-menu-dropdown > .vector-menu-content .mw-list-item a {
color: var(--color-link);
}
.client-darkmode a:visited,
.client-darkmode .vector-main-menu-group .vector-menu-content li a:visited,
.client-darkmode .toctogglelabel:visited,
.client-darkmode .mw-parser-output a.external:visited,
.client-darkmode .mw-parser-output a.extiw:visited,
.client-darkmode .vector-menu-portal .vector-menu-content li a:visited,
.client-darkmode .vector-menu-tabs li a:visited,
.client-darkmode .sidebar-toc .sidebar-toc-link:visited,
.client-darkmode .vector-pinnable-header-toggle-button:visited,
.client-darkmode #pt-userpage-2 a:visited,
.client-darkmode .vector-dropdown .mw-list-item a:visited,
.client-darkmode .vector-menu-dropdown > .vector-menu-content .mw-list-item a:visited {
color: var(--color-link-visited);
}
.client-darkmode .infobox,
.client-darkmode .toc,
.client-darkmode .thumbinner,
.client-darkmode #simpleSearch,
.client-darkmode #searchInput,
.client-darkmode #searchButton,
.client-darkmode #searchGoButton,
.client-darkmode table,
.client-darkmode toccolours,
.client-darkmode .wikitable,
.client-darkmode .mw-notification {
background-color: var(--box-background-color);
border-color: var(--border-color-base);
}
/*
---------------------------------------------------
Legacy
---------------------------------------------------
le style ci-dessous doit être maintenu tant
que les modèles associés sont encore utilisés.
Ces classes doivent être supprimées.
---------------------------------------------------
*/
/* Arrière-plan partagé */
.va-infobox-title,.va-navbox-title{background-color:#383020;background-image:none;background:url(/skins/Vector/images/background/foggy.png)!important}
/* Modèle:Docparam */
.va-docparam{background:#678e6c;border:1px dotted #d9d9d9;margin-bottom:3px;overflow:auto;padding:0 2px 0 20px;text-indent:-20px}.va-docparam-icon{float:left;margin:0;padding:0;width:20px}.va-docparam-default{float:right;font-size:10px}.va-docparam-params{font-family:monospace;color:#000}.va-docparam-desc{margin:0;padding:0 0 5px 20px}
/* Modèle:Console */
.va-console{background-color:#cfc;color:#000;font-family:consolas;padding:2px}.va-console-cmd{color:#555}
/* Modèle:Introduction */
.va-intro-image{padding-left:2px;padding-right:2px}.va-intro td{padding-bottom:2px}.va-intro-header{font-size:16px;font-weight:700}.va-intro-bullets{font-size:11px;line-height:16px;vertical-align:top;font-family:sans-serif}
/* Modèle:Plus */
.va-more{margin-top:.5em}.va-more-link{font-size:10px;line-height:15px}
/* MediaWiki:Newarticle */
.mw-newarticletext,.mw-newarticletextanon{border:1px solid #383838;margin-bottom:10px;padding:10px;background-color:rgba(58,58,58,.2)}.mw-newarticletext h2,.mw-newarticletextanon h2{border:none;color:#51e527;padding:0;margin:10px 0 13px 0}.new-article-game{color:#51e527}
/*
---------------------------------------------------
Extension override
---------------------------------------------------
le style ci-dessous écrase les classes ajoutées
par les extensions MediaWiki
---------------------------------------------------
*/
/* ------------------------------ */
/* Extension:TabberNeue */
/* ------------------------------ */
.tabber__header {
box-shadow: none;
}
.tabber__tabs {
margin-bottom: 1em;
}
/*
---------------------------------------------------
Vector override
---------------------------------------------------
le style ci-dessous écrase les classes par défaut
de l'habillage Vector.
---------------------------------------------------
*/
/* Fond principal */
body {
background: var(--background-img);
background-size: cover;
background-attachment: fixed;
}
/* Cadre central */
.mw-page-container {
background: var(--background-main);
border-left: 1px solid var(--border-color-base);
border-right: 1px solid var(--border-color-base);
}
/* Cadre de la barre latéral gauche */
#vector-main-menu {
background: var(--background-main);
}
/* Barre latérale gauche + sommaire sticky */
.sidebar-toc,
.vector-toc-enabled .mw-sidebar {
background-color: var(--background-main);
border-width: 0px;
}
/* Cacher l'option permettant de switcher vers l'ancien Vector */
.vector-main-menu-action-opt-out {
display: none;
}
/* ------------------------------ */
/* MediaWiki:Sitenotice */
/* ------------------------------ */
.avt-sitenotice {
border: 1px solid var(--border-color-base);
background-color: var(--box-background-color);
box-shadow: var(--box-shadow);
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
/* ----------------------- */
/* Galerie pages-listes */
/* ----------------------- */
.avt-gallery-list-page {
text-align: center;
margin: 0.3em 0 0 0 !important;
}
.avt-gallery-list-page li.gallerybox div.thumb {
border: none;
background-color: transparent;
}
.avt-gallery-list-page li.gallerybox div.thumb img {
transition: transform 0.2s;
}
.avt-gallery-list-page li.gallerybox div.thumb img:hover {
transform: scale(1.5);
}
/* ----------------------- */
/* Tables MediaWiki */
/* ----------------------- */
.wikitable,
.mw-datatable,
.mw_metadata {
box-shadow: var(--box-shadow);
background-color: var(--box-background-color);
font-size: 12px;
line-height: 16px;
margin-bottom: 5px;
font-family: sans-serif;
overflow: auto;
color: var(--color-base);
}
.mw-datatable tr:hover td {
background-color: var(--background-color-dp-04);
}
.wikitable > tr > td,
.wikitable > * > tr > td,
.wikitable > tr > th,
.wikitable > * > tr > th,
.mw-datatable > tr > td,
.mw-datatable > * > tr > td,
.mw-datatable > tr > th,
.mw-datatable > * > tr > th,
.mw_metadata > tr > td,
.mw_metadata > * > tr > td,
.mw_metadata > tr > th,
.mw_metadata > * > tr > th {
border: 1px solid var(--border-color-base);
padding: 4px 8px;
}
.wikitable > tr > th,
.wikitable > * > tr > th,
.mw-datatable > tr > th,
.mw-datatable > * > tr > th,
.mw_metadata > tr > th,
.mw_metadata > * > tr > th {
background-color: var(--background-color-dp-02);
font-weight: bold;
text-align: center;
}
.mw-datatable td,
.mw_metadata td {
background-color: var(--box-background-color);
}
/* ----------------------- */
/* Tables personnalisées */
/* ----------------------- */
.avt-table-large {
table-layout: fixed;
width: 100%;
word-break: break-word;
}
.va-table {
box-shadow: var(--box-shadow);
background-color: var(--box-background-color);
border-collapse: collapse;
empty-cells: show;
font-size: 12px;
line-height: 16px;
margin-bottom: 5px;
font-family: sans-serif;
overflow: auto;
}
.va-table > tr > td,
.va-table > * > tr > td,
.va-table > tr > th,
.va-table > * > tr > th {
border: 1px solid var(--border-color-base);
padding: 4px 8px;
}
.va-table > tr > th,
.va-table > * > tr > th {
background-color: var(--background-color-dp-02);
font-weight: bold;
text-align: center;
}
/* Adapting lists & paragraphs */
.va-table ul,
.va-table ol,
.va-table p {
line-height: 16px;
margin-bottom: 0;
}
.va-table ul,
.va-table ol {
margin-left: 20px;
margin-top: 0;
}
.va-table p,
.va-table * + ul,
.va-table * + ol {
margin-top: 3px;
}
.va-table ul li,
.va-table ol li {
margin-bottom: 0;
}
/* Highlighted rows */
.va-table > tr.va-table-highlight,
.va-table > * > tr.va-table-highlight,
.va-table > tr.va-table-highlight > th,
.va-table > * > tr.va-table-highlight > th {
background-color: var(--background-color-dp-01);
}
/* Tables with specific vertical alignment for cells */
.va-table-top > tr > td,
.va-table-top > * > tr > td {
vertical-align: top;
}
.va-table-middle > tr > td,
.va-table-middle > * > tr > td {
vertical-align: middle;
}
.va-table-bottom > tr > td,
.va-table-bottom > * > tr > td {
vertical-align: bottom;
}
/* Tables with specific horizontal alignment for cells/columns */
.va-table-center > tr > td,
.va-table-center > * > tr > td,
.va-table-center-col1 > * > tr > td:first-child,
.va-table-center-col2 > * > tr > *:first-child + td,
.va-table-center-col3 > * > tr > *:first-child + * + td,
.va-table-center-col4 > * > tr > *:first-child + * + * + td,
.va-table-center-col5 > * > tr > *:first-child + * + * + * + td,
.va-table-center-col6 > * > tr > *:first-child + * + * + * + * + td,
.va-table-center-col7 > * > tr > *:first-child + * + * + * + * + * + td,
.va-table-center-col8 > * > tr > *:first-child + * + * + * + * + * + * + td,
.va-table-center-col9 > * > tr > *:first-child + * + * + * + * + * + * + * + td,
.va-table-center-col10
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-center-col11
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-center-col12
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-center-col13
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-center-col14
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-center-col15
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td {
text-align: center;
}
.va-table-left > tr > td,
.va-table-left > * > tr > td,
.va-table-left-col1 > * > tr > td:first-child,
.va-table-left-col2 > * > tr > *:first-child + td,
.va-table-left-col3 > * > tr > *:first-child + * + td,
.va-table-left-col4 > * > tr > *:first-child + * + * + td,
.va-table-left-col5 > * > tr > *:first-child + * + * + * + td,
.va-table-left-col6 > * > tr > *:first-child + * + * + * + * + td,
.va-table-left-col7 > * > tr > *:first-child + * + * + * + * + * + td,
.va-table-left-col8 > * > tr > *:first-child + * + * + * + * + * + * + td,
.va-table-left-col9 > * > tr > *:first-child + * + * + * + * + * + * + * + td,
.va-table-left-col10
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-left-col11
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-left-col12
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-left-col13
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-left-col14
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-left-col15
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td {
text-align: left;
}
.va-table-right > tr > td,
.va-table-right > * > tr > td,
.va-table-right-col1 > * > tr > td:first-child,
.va-table-right-col2 > * > tr > *:first-child + td,
.va-table-right-col3 > * > tr > *:first-child + * + td,
.va-table-right-col4 > * > tr > *:first-child + * + * + td,
.va-table-right-col5 > * > tr > *:first-child + * + * + * + td,
.va-table-right-col6 > * > tr > *:first-child + * + * + * + * + td,
.va-table-right-col7 > * > tr > *:first-child + * + * + * + * + * + td,
.va-table-right-col8 > * > tr > *:first-child + * + * + * + * + * + * + td,
.va-table-right-col9 > * > tr > *:first-child + * + * + * + * + * + * + * + td,
.va-table-right-col10
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-right-col11
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-right-col12
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-right-col13
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-right-col14
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td,
.va-table-right-col15
> *
> tr
> *:first-child
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ td {
text-align: right;
}
/* Tables which are full width */
.va-table-full {
width: 100%;
}
/* Tables which leave enough space for an infobox on the right */
.va-table-full-infobox {
width: 100%; /*960px;*/
}
/* Tables which are floated */
.va-table-float-left {
clear: left;
float: left;
margin: 0 10px 10px 0;
}
.va-table-float-right {
clear: right;
float: right;
margin: 0 0 10px 10px;
}
/* Tables in which the first column starts with an icon */
.va-table-icon > tr > td:first-child,
.va-table-icon > * > tr > td:first-child {
padding-left: 18px;
text-indent: -18px;
}
/*
---------------------------------------------------
Portals
---------------------------------------------------
Les classes ci-dessous sont utilisées par les
portails.
---------------------------------------------------
*/
/* On cache le titre des portails */
body.action-view.page-Accueil #firstHeading,
body.action-view.page-Portail_Fallout #firstHeading,
body.action-view.page-Portail_Fallout_2 #firstHeading,
body.action-view.page-Portail_Fallout_3 #firstHeading,
body.action-view.page-Portail_Fallout_4 #firstHeading,
body.action-view.page-Portail_Fallout_76 #firstHeading,
body.action-view.page-Portail_Fallout_New_Vegas #firstHeading,
body.action-view.page-Portail_Fallout_Shelter #firstHeading,
body.action-view.page-Portail_Fallout_Tactics #firstHeading {
position: absolute;
top: -5000px;
}
/* On cache l'en-tete fixe pour le moment sur l'accueil */
body.action-view.page-Accueil #vector-sticky-header {
display: none;
}
/* Cadre principale et structure */
.homepage {
display: grid;
grid-gap: 1rem;
grid-template-areas:
"welcome welcome welcome"
"serie serie serie"
"games games games"
"fangames fangames theme"
"anecdotes anecdotes presentation"
"articleday articleday participation";
}
/* Définition des zones */
.homepage-welcome {
grid-area: welcome;
background: linear-gradient(to bottom, #fff, var(--box-background-color));
border-bottom: solid 1px var(--border-color-base);
}
.serie-tv {
grid-area: serie;
border: 1px solid var(--border-color-base);
box-shadow: var(--box-shadow);
}
.homepage-portal-games {
grid-area: games;
}
.homepage-portal-fangames {
grid-area: fangames;
}
.homepage-portal-theme {
grid-area: theme;
}
.homepage-presentation {
grid-area: presentation;
}
.homepage-participation {
grid-area: participation;
}
.homepage-articleday {
grid-area: articleday;
}
.homepage-anecdotes {
grid-area: anecdotes;
}
/* Boîte générique */
.homepage-box {
border: 1px solid var(--border-color-base);
background: var(--box-background-color);
box-shadow: var(--box-shadow);
padding: 1rem;
}
.homepage-welcome-subtitle,
.homepage-welcome-links,
.homepage-portal-theme .homepage-box-content {
text-align: center;
}
.homepage-welcome-fogen {
margin-bottom: 1rem;
text-align: center;
}
.homepage-welcome-title {
text-align: center;
font-size: 200%;
margin: 0 50px 5px 50px;
border-bottom: 1px solid var(--border-color-base);
text-shadow: 0 0 8px #829fce;
color: #41B541;
font-weight: bold;
}
.homepage-box-title {
text-align: center;
font-size: 150%;
border-bottom: 1px solid var(--border-color-base);
margin-bottom: 20px;
text-shadow: 0 0 8px #829fce;
color: #425b84;
}
.homepage-portal-fangames-list {
list-style: none;
margin: 0 !important;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 30px 0;
}
.homepage-portal-games-list {
list-style: none;
margin: 0 !important;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr;
grid-gap: 30px 0;
}
.homepage-portal-games-item {
text-align: center;
font-size: 0.85em;
}
.homepage-portal-games-logo {
height: 60px;
}
.homepage-presentation-title,
.homepage-participation-title,
.homepage-articleday-title,
.homepage-imageday-title {
border-bottom: 1px solid var(--border-color-base);
margin-bottom: 20px;
text-shadow: 0 0 8px var(--color-link);
color: var(--color-link);
}
.homepage-presentation-content,
.homepage-participation-content,
.homepage-articleday-content,
.homepage-imageday-content {
font-size: 0.85em;
}