MediaWiki:Common.css
Page de l’interface de MediaWiki
Autres actions
Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
- Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
- Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
/* Setting the backgrounds for galleries. */
#content .gallerybox div.thumb {
background-color: #F9F9F9;
}
.gallerybox .thumb img {
background: white url("http://upload.wikimedia.org/wikipedia/en/a/a2/Checker-soft.png") repeat;
}
.ns-0 .gallerybox .thumb img,
.ns-2 .gallerybox .thumb img,
.ns-100 .gallerybox .thumb img {
background: white;
}
ol.references{font-size:80%; }
ol.reference{font-size:80%; }
ol.references > li:target {
background-color: #DEF;
}
/* BEGIN Diff rendering */
table.diff { padding: 0.5em; }
table.diff td { vertical-align: top; }
td.diff-addedline { background:#D8E4F6; }
td.diff-addedline span.diffchange { background: #B0C0F0; color: #001040; font-weight: bold; }
td.diff-deletedline { background:#E4F6D8; }
td.diff-deletedline span.diffchange { background: #B0E897; color: #104000; font-weight: bold; }
td.diff-context { background:#FEFEFE; }
/* END Diff rendering */
/* ══ Page d'accueil TJ ══ */
#tj-accueil { padding: 0; }
/* ── Slider ── */
#tj-slider {
position: relative;
height: 220px;
border-radius: 14px;
overflow: hidden;
margin-bottom: 1.5rem;
background: #1a2a3a;
transition: background 0.6s ease;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
text-align: center;
}
#tj-slider-noise {
position: absolute;
inset: 0;
background-image: repeating-linear-gradient(
45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px,
transparent 1px, transparent 8px
);
}
#tj-slide-icon { font-size: 3rem; margin-bottom: 0.5rem; position: relative; z-index: 1; }
#tj-slide-site {
font-size: 2rem;
font-weight: 700;
color: #c9a84c;
letter-spacing: 0.06em;
position: relative;
z-index: 1;
text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
#tj-slide-label {
font-size: 0.85rem;
font-weight: 600;
color: rgba(255,255,255,0.55);
text-transform: uppercase;
letter-spacing: 0.12em;
position: relative;
z-index: 1;
margin-top: 4px;
}
#tj-slide-desc {
font-size: 0.9rem;
color: rgba(255,255,255,0.75);
margin-top: 6px;
position: relative;
z-index: 1;
max-width: 520px;
line-height: 1.5;
}
#tj-dots {
position: absolute;
bottom: 14px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 6px;
z-index: 2;
}
.tj-dot {
height: 8px;
width: 8px;
border-radius: 4px;
background: #c9a84c;
cursor: pointer;
transition: width 0.3s, opacity 0.3s;
opacity: 0.35;
}
/* ── Catégories ── */
#tj-cats {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 8px;
margin-bottom: 1.5rem;
}
.tj-cat {
position: relative;
height: 75px;
border-radius: 10px;
overflow: hidden;
cursor: pointer;
border: 2px solid transparent;
transition: border-color 0.2s, transform 0.2s;
}
.tj-cat:hover { border-color: #c9a84c; transform: translateY(-2px); }
.tj-cat-icon {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
background: #1a1a2a;
}
.tj-cat-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 70%);
transition: background 0.2s;
}
.tj-cat:hover .tj-cat-overlay {
background: linear-gradient(to top, rgba(160,110,0,0.6) 0%, transparent 70%);
}
.tj-cat-label {
position: absolute;
bottom: 6px;
left: 8px;
color: #fff;
font-size: 11px;
font-weight: 600;
text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
/* ── Titres de section ── */
.tj-section-title {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
color: #888;
margin: 1.5rem 0 0.75rem;
padding-bottom: 6px;
border-bottom: 1px solid rgba(128,128,128,0.2);
}
/* ── Cartes articles ── */
#tj-articles {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
.tj-art-card {
position: relative;
height: 190px;
border-radius: 12px;
overflow: hidden;
cursor: pointer;
border: 1px solid rgba(128,128,128,0.2);
transition: transform 0.2s;
text-decoration: none !important;
display: block;
}
.tj-art-card:hover { transform: translateY(-3px); }
.tj-art-bg {
position: absolute;
inset: 0;
background-color: #1a1a2a;
background-size: cover;
background-position: center;
}
.tj-art-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
}
.tj-art-content {
position: absolute;
bottom: 0; left: 0; right: 0;
padding: 10px 12px;
}
.tj-art-badge {
display: inline-block;
font-size: 10px;
font-weight: 700;
padding: 2px 7px;
border-radius: 4px;
margin-bottom: 5px;
}
.tj-art-title {
color: #fff;
font-size: 12px;
font-weight: 600;
line-height: 1.4;
text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.tj-empty { color: #888; font-size: 13px; }
/* ── Bas de page ── */
.tj-bloc {
background: rgba(128,128,128,0.06);
border-radius: 8px;
padding: 1rem;
}
#tj-stats {
margin-top: 1.5rem;
font-size: 12px;
color: #888;
text-align: center;
}
/* ── Le saviez-vous ── */
#tj-saviez-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1rem; }
.tj-saviez-bloc { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(128,128,128,0.2); display: flex; flex-direction: column; }
.tj-saviez-inner { flex: 1; }
.tj-saviez-item { display: none; position: relative; min-height: 220px; cursor: pointer; }
.tj-saviez-item.actif { display: block; }
.tj-saviez-bg { position: absolute; inset: 0; background-color: #1a1a2a; background-size: cover; background-position: center; }
.tj-saviez-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.15) 100%); transition: background 0.2s; }
.tj-saviez-item:hover .tj-saviez-overlay { background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%); }
.tj-saviez-content { position: relative; z-index: 1; padding: 1.5rem 1.25rem 1rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; }
.tj-saviez-texte { color: #fff; font-size: 14px; line-height: 1.7; text-shadow: 0 1px 4px rgba(0,0,0,0.9); margin: 0; }