« 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é
 
(74 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
/* Boîtes déroulantes */
/* ======================
.NavFrame {
  GLOBAL STYLES
background: #F9F9F9;
  ====================== */
border: 1px #AAA solid;
:root {
padding: 5px;
    --primary-color: #3366cc;
    --secondary-color: #f16633;
    --neutral-color: #f6f6f6;
    --text-color: #333;
    --font-primary: 'Open Sans', Arial, sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}
}
.NavFrame .NavHead {
 
background: #EFEFEF;
body {
border: 1px #AAA solid;
    margin: 0;
text-align: center;
    font-family: var(--font-primary);
font-weight: bold;
    background-color: var(--neutral-color);
    color: var(--text-color);
    line-height: 1.6;
}
}
.NavFrame .NavContent { padding: 5px 0 }
 
.collapseButton {
img {
        font-weight: normal;
    max-width: 100%;
        float: right;
    height: auto;
        textAlign: right;
width: 6em;
marginLeft: -100%;
}
}


/* Classes permettant d'alterner les couleurs de ligne dans les
/* ======================
   tableaux selon le nombre de lignes d'en-tête :
   HOMEPAGE SPECIFIC STYLES
   * .alternance si nombre impair ou .alternance2 si nombre pair.
   ====================== */
  * .sortable : les tableaux triables nécessitent d'inverser
body.page-Accueil header.mw-body-header {
    l'alternance. */
    display: none;
.alternance,
.alternance2 {
border-collapse: collapse;
}
}
table.alternance > * > tr > th,
 
table.alternance2 > * > tr > th {
.mw-body {
background: #e6e6e6;
    padding: 0;
}
}
.alternance tr,
 
.alternance th[scope="row"] {
.mw-header .mw-logo-container {
background: #fcfcfc;
    display: none;
}
}
.alternance:not(.sortable) tr:nth-child(odd),
 
.alternance.sortable tr:nth-child(even),
.accueil-contenu {
.alternance:not(.sortable) tr:nth-child(odd) th[scope="row"],
    display: flex;
.alternance.sortable tr:nth-child(even) th[scope="row"] {
    flex-wrap: wrap;
background: #eee;
    gap: 16px;
    padding: 20px;
}
}
.alternance2 tr,
 
.alternance2 th[scope="row"] {
.accueil-cadre {
background: #eee;
    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;
}
}
.alternance2 tr:nth-child(odd),
 
.alternance2 tr:nth-child(odd) th[scope="row"] {
.accueil-cadre p {
background: #fcfcfc;
    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%;
    }
}
}

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%;
    }
}