« MediaWiki:Common.css » : différence entre les versions

De Baripedia
Aucun résumé des modifications
(Contenu remplacé par « →‎====================== GLOBAL STYLES ====================== : :root { --primary-color: #3366cc; --secondary-color: #f16633; --neutral-color: #f6f6f6; --text-color: #333; --font-primary: 'Open Sans', Arial, sans-serif; --font-secondary: 'Roboto', sans-serif; } body { margin: 0; font-family: var(--font-primary); background-color: var(--neutral-color); color: var(--text-color); line-height: 1.6; } img { max... »)
Balise : Contenu remplacé
 
(22 versions intermédiaires par un autre utilisateur non affichées)
Ligne 1 : Ligne 1 :
/* ajustement teme timelapse */
/* ======================
  GLOBAL STYLES
  ====================== */
:root {
    --primary-color: #3366cc;
    --secondary-color: #f16633;
    --neutral-color: #f6f6f6;
    --text-color: #333;
    --font-primary: 'Open Sans', Arial, sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}


.color-middle, .color-left, .color-right {
body {
background: #4eacea;
    margin: 0;
height: 0.11em;
    font-family: var(--font-primary);
    background-color: var(--neutral-color);
    color: var(--text-color);
    line-height: 1.6;
}
}


.mw-editsection-divider {
img {
display: none;
    max-width: 100%;
    height: auto;
}
}
.mw-editsection a:nth-of-type(2) {
 
/* ======================
  HOMEPAGE SPECIFIC STYLES
  ====================== */
body.page-Accueil header.mw-body-header {
     display: none;
     display: none;
}
}


#mw-content h1.firstHeading {
.mw-body {
     margin: 0.25em 0 0.5em;
     padding: 0;
    border-bottom: solid 2.5px #cccccc;
width: 100%;
}
}


/* Infobox V3 */
.mw-header .mw-logo-container {
div.infobox_v3 {
    display: none;
padding: 5px;
width: 25em;
background: #f9f9f9;
border: 1px solid #aaa;
clear: right;
float: right;
font-size: 0.9em;
line-height: 1.4;
margin: 0 0 0.5em 1em;
max-width: 325px;
word-wrap: break-word;
}
}
.infobox_v3 .entete {
 
display: table;
.accueil-contenu {
height: 45px;
    display: flex;
width: 100%;
    flex-wrap: wrap;
font-weight: bold;
    gap: 16px;
text-align: center;
    padding: 20px;
font-size: 1.4em;
line-height: 1.1;
margin-bottom: 10px;
background-color: #dfedff;
}
}
.infobox_v3 .entete > div {
 
display: table-cell;
.accueil-cadre {
vertical-align: middle;
    background-color: #ffffff;
padding: 3px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(50% - 16px);
}
}
.infobox_v3:not(.large) .entete.icon > div {
 
padding: 3px 48px;
.accueil-cadre h2 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 4px;
    margin-bottom: 12px;
}
}
/* Images */
 
.infobox_v3 .images {
.accueil-cadre p {
text-align: center;
    margin-bottom: 12px;
display: flex;
justify-content: space-around;
align-items: center;
}
}
.infobox_v3 .images a {
 
max-width: 100%;
/* ======================
flex: 0 0 auto; /* be kind ie11 */
  TYPOGRAPHY
  ====================== */
.italique {
    font-style: italic;
}
}
.infobox_v3 .deux-images a {
 
max-width: 48%;
.italique i {
    font-style: normal;
}
}
.infobox_v3 .images img {
 
max-width: 100%;
h1, h2, h3, h4, h5, h6 {
height: auto;
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}
}
.infobox_v3 .legend {
 
font-size: 0.9em;
p, ul, ol {
text-align: center;
    margin: 0 0 1em;
margin: 5px 0 8px 0;
    padding: 0;
}
}
/* Tableaux */
 
.infobox_v3 table {
/* ======================
width: 100%;
  LINKS
margin: 5px 0;
  ====================== */
table-layout: fixed;
a {
border-collapse: collapse;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
}
.infobox_v3 th[scope="col"] {
 
text-align: center;
a:hover {
word-wrap: normal;
    color: var(--secondary-color);
}
    text-decoration: underline;
.infobox_v3 th[scope=row] {
text-align: left;
padding-right: 10px;
width: 8em;
max-width: 140px;
word-wrap: normal;
}
.infobox_v3 th[scope=row],
.infobox_v3 td {
padding-top: 4px;
vertical-align: super;
}
.infobox_v3 th[scope=row].middle {
vertical-align: middle;
}
.infobox_v3.bordered th[scope=row],
.infobox_v3.bordered td {
padding-bottom: 4px;
border-top: 1px solid #dfedff;
}
.infobox_v3.bordered caption.bordered {
margin: 0 0 -1px 0;
}
.infobox_v3 tr.left td {
text-align: left;
}
.infobox_v3 tr.vborder td {
border-left: 1px dotted #aaa;
}
.infobox_v3 tr.vborder td:first-child {
border-left: none;
}
.infobox_v3 td.data {
text-align: center;
}
.infobox_v3 tr:first-child ul:first-child {
margin-top: 0;
}
/* Titres bloc et caption tableaux */
.infobox_v3 p.bloc,
.infobox_v3 caption {
font-weight: bold;
text-align: center;
line-height: 1.1;
margin: 0 0 5px 0;
padding: 4px;
background: #dfedff;
}
.infobox_v3 p.bloc {
margin: 5px 0;
}
.infobox_v3 caption.bordered,
.infobox_v3 p.bordered {
border-top: 1px solid #dfedff;
border-bottom: 1px solid #dfedff;
background: transparent;
}
.infobox_v3 .bordered.navbar,
.infobox_v3 .bordered.nav {
padding-top: 4px;
border-bottom: 0;
}
/* TODO : mettre à jour la classe .hidden générique */
.infobox_v3 caption.hidden {
margin: 0 !important;
padding: 0 !important;
}
/* Séparateur */
.infobox_v3 .hr {
font-size: 1px;
line-height: 1px;
margin: 5px 0;
background-color: #dfedff;
}
.infobox_v3 .hr.collapse {
margin: 5px 0 -8px 0;
}
/* Tnavbar */
.infobox_v3 .navbar {
text-align: right;
font-size: 0.8em;
line-height: 1.1;
margin: 8px 0 0;
}
.infobox_v3 .navbar .plainlinks {
float: left;
}
/* Navigateur */
.infobox_v3 .overflow {
overflow: hidden;
}
.infobox_v3 .prev a,
.infobox_v3 .prev_bloc {
background: url("//upload.wikimedia.org/wikipedia/commons/thumb/4/49/ArrowLeftNavbox.svg/12px-ArrowLeftNavbox.svg.png") no-repeat left center;
float: left;
max-width: 40%;
padding: 0 0 0 18px;
text-align: left;
}
.infobox_v3 .next a,
.infobox_v3 .next_bloc {
background: url("//upload.wikimedia.org/wikipedia/commons/thumb/1/10/ArrowRightNavbox.svg/12px-ArrowRightNavbox.svg.png") no-repeat right center;
float: right;
max-width: 40%;
padding: 0 18px 0 0;
text-align: right;
}
/* Divers */
.infobox_v3 table.maillot-equipe td {
padding: 0;
}
.infobox_v3 table.maillot-equipe {
table-layout: auto;
}
}


/* Taxobox V3 (cf. [[Utilisateur:Hexasoft/Taxobox code V3]]) */
/* ======================
.taxobox_v3 {
  TABLES
font-size: 0.99em !important;
  ====================== */
padding: 1px;
table {
}
    width: 100%;
/* Style global par défaut */
    border-collapse: collapse;
div.taxobox_v3 .entete,
    margin-bottom: 16px;
.taxobox_v3 caption,
.taxobox_v3 p.bloc {
font-style: normal;
}
/* Ne pas utiliser le gras dans la partie gauche des lignes données mixtes */
.taxobox_v3 th {
font-weight: normal;
}
/* Change la couleur des séparateur d'un bleu pâle à gris pâle */
div.taxobox_v3.bordered th[scope=row],
div.taxobox_v3.bordered td {
padding-bottom: 4px;
border-top: 1px solid #ededed;
}
}


/* Couleur "animal" (titre, sections) */
td, th {
div.taxobox_v3.animal .entete {
    border: 1px solid #ddd;
background-color: LightSalmon;
    padding: 8px;
}
    text-align: left;
.taxobox_v3.animal caption,
.taxobox_v3.animal p.bloc {
background-color: Bisque;
}
/* Couleur "plante" (titre, sections) */
div.taxobox_v3.plante .entete {
background-color: lightgreen;
}
.taxobox_v3.plante caption,
.taxobox_v3.plante p.bloc {
background-color: #ccffcc;
}
/* Couleur "champignon" (titre, sections) */
div.taxobox_v3.champignon .entete {
background-color: SkyBlue;
}
.taxobox_v3.champignon caption,
.taxobox_v3.champignon p.bloc {
background-color: PowderBlue;
}
/* Couleur "test" (titre, sections) */
div.taxobox_v3.test .entete {
background-color: #50a0a0;
}
.taxobox_v3.test caption,
.taxobox_v3.test p.bloc {
background-color: #70c0c0;
}
/* Couleur "algue" (titre, sections) */
div.taxobox_v3.algue .entete {
background-color: MediumAquamarine;
}
.taxobox_v3.algue caption,
.taxobox_v3.algue p.bloc {
background-color: #bfffe6;
}
/* Couleur "archaea" (titre, sections) */
div.taxobox_v3.archaea .entete {
background-color: darkgray;
}
.taxobox_v3.archaea caption,
.taxobox_v3.archaea p.bloc {
background-color: lightgray;
}
/* Couleur "protiste" (titre, sections) */
div.taxobox_v3.protiste .entete {
background-color: khaki;
}
.taxobox_v3.protiste caption,
.taxobox_v3.protiste p.bloc {
background-color: PaleGoldenrod;
}
/* Couleur "virus" (titre, sections) */
div.taxobox_v3.virus .entete {
background-color: #d1d1f9;
}
.taxobox_v3.virus caption,
.taxobox_v3.virus p.bloc {
background-color: Lavender;
}
/* Couleur "neutre" (titre, sections) */
div.taxobox_v3.neutre .entete {
background-color: #eee;
}
.taxobox_v3.neutre caption,
.taxobox_v3.neutre p.bloc {
background-color: #eee;
}
/* Couleurs "bactérie", "eucaryote" et "procaryote" (titre, sections) */
div.taxobox_v3.bacterie .entete,
div.taxobox_v3.eucaryote .entete,
div.taxobox_v3.procaryote .entete {
background-color: lightgrey;
}
.taxobox_v3.bacterie caption,
.taxobox_v3.bacterie p.bloc,
.taxobox_v3.eucaryote caption,
.taxobox_v3.eucaryote p.bloc,
.taxobox_v3.procaryote caption,
.taxobox_v3.procaryote p.bloc {
background-color: #e6e6e6;
}
}


/* Style typographique : zoologie ou rien (botanique) */
th {
div.taxobox_v3 .taxobox_classification {
    background-color: var(--neutral-color);
font-style: italic;
    font-weight: bold;
}
div.taxobox_v3 .taxobox_classification .rnormal,
div.taxobox_v3.zoologie .taxobox_classification .normal,
div.taxobox_v3 th[scope="row"] {
font-style: normal;
}
}


/* Version distincte de "alternance", afin d'être indépendant des choix fait par
/* ======================
   ailleurs et de pouvoir modifier à volonté l'aspect. */
  BUTTONS
table.taxoalternance tr,
   ====================== */
.taxoalternance.wikitable th[scope="row"] {
button, .button {
background: #fff;
    background-color: var(--primary-color);
}
    color: white;
table.taxoalternance tr:nth-child(odd),
    border: none;
.taxoalternance.wikitable tr:nth-child(odd) th[scope="row"] {
    padding: 10px 20px;
background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: background-color 0.3s ease;
}
}


/* Effets dégradés : utilisables pour un effet ombragé dans les modèles de cadre
button:hover, .button:hover {
  (par exemple : [[Portail:Montréal/Cadre]]). Ceux-ci ne doivent pas dépasser 43
    background-color: var(--secondary-color);
  pixels de hauteur au risque d'y voir un effet indésirable. */
.degrade {
background-image: url("//upload.wikimedia.org/wikipedia/commons/f/fb/Gradient_43px.png");
background-position: top;
background-size: 100% 100%;
background-repeat: repeat-x;
}
.degrade_rev {
background-image: url("//upload.wikimedia.org/wikipedia/commons/6/61/Gradient_reversed_43px.png");
background-position: top;
background-repeat: repeat-x;
}
.degrade_double {
background-image: url("//upload.wikimedia.org/wikipedia/commons/b/ba/Double_Gradient_60px_V.png");
background-position: top;
background-repeat: repeat;
}
}


/* Classe de masquage, remplace display:none. Contenu non affiché mais lisible par les lecteurs d'écrans. */
/* ======================
.hidden {
  MEDIA QUERIES
position: absolute;
  ====================== */
left: 0;
@media (max-width: 768px) {
top: -5000px;
    .accueil-cadre {
width: 1px;
        flex: 1 1 100%;
height: 1px;
    }
overflow: hidden;
}
caption.hidden {
position: static;
text-indent: -5000px;
}
}

Version actuelle datée du 5 janvier 2025 à 22:08

/* ======================
   GLOBAL STYLES
   ====================== */
:root {
    --primary-color: #3366cc;
    --secondary-color: #f16633;
    --neutral-color: #f6f6f6;
    --text-color: #333;
    --font-primary: 'Open Sans', Arial, sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--neutral-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* ======================
   HOMEPAGE SPECIFIC STYLES
   ====================== */
body.page-Accueil header.mw-body-header {
    display: none;
}

.mw-body {
    padding: 0;
}

.mw-header .mw-logo-container {
    display: none;
}

.accueil-contenu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
}

.accueil-cadre {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(50% - 16px);
}

.accueil-cadre h2 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 4px;
    margin-bottom: 12px;
}

.accueil-cadre p {
    margin-bottom: 12px;
}

/* ======================
   TYPOGRAPHY
   ====================== */
.italique {
    font-style: italic;
}

.italique i {
    font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

p, ul, ol {
    margin: 0 0 1em;
    padding: 0;
}

/* ======================
   LINKS
   ====================== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ======================
   TABLES
   ====================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

td, th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: var(--neutral-color);
    font-weight: bold;
}

/* ======================
   BUTTONS
   ====================== */
button, .button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background-color: var(--secondary-color);
}

/* ======================
   MEDIA QUERIES
   ====================== */
@media (max-width: 768px) {
    .accueil-cadre {
        flex: 1 1 100%;
    }
}