forked from ORGANISATION-KA-INTERNATIONALE/FEDIVERSE-OKI
118 lines
3.2 KiB
CSS
118 lines
3.2 KiB
CSS
|
|
/* Layout grid pour Hero, Castopod, Funkwhale, Mastodon et WordPress */
|
||
|
|
/* Ce fichier surcharge les anciens styles pour le nouveau layout responsive */
|
||
|
|
|
||
|
|
/* Force le wrapper parent à être un simple bloc, pas une grille */
|
||
|
|
.hero-mastodon-wrapper {
|
||
|
|
display: block !important;
|
||
|
|
grid-template-columns: none !important;
|
||
|
|
width: 100%;
|
||
|
|
padding: 0 20px;
|
||
|
|
margin-bottom: 30px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Le vrai container grid qui contient tous les éléments */
|
||
|
|
.timeline-wordpress-container {
|
||
|
|
display: grid !important;
|
||
|
|
gap: 20px;
|
||
|
|
margin: 0;
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Supprime toutes les limitations de largeur sur les anciens containers */
|
||
|
|
.timeline-container {
|
||
|
|
max-width: none !important;
|
||
|
|
width: 100% !important;
|
||
|
|
justify-self: auto !important;
|
||
|
|
grid-template-columns: none !important;
|
||
|
|
display: block !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* S'assurer que les sections prennent toute la largeur disponible */
|
||
|
|
.castopod-section,
|
||
|
|
.funkwhale-section,
|
||
|
|
.mastodon-section,
|
||
|
|
.wordpress-section {
|
||
|
|
width: 100% !important;
|
||
|
|
max-width: none !important;
|
||
|
|
min-width: 0 !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Desktop : 2 éléments par ligne */
|
||
|
|
@media (min-width: 1200px) {
|
||
|
|
.timeline-wordpress-container {
|
||
|
|
grid-template-columns: repeat(2, 1fr) !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Hero prend toute la largeur si présent */
|
||
|
|
.hero-video-container,
|
||
|
|
.hero-live-container,
|
||
|
|
.hero-playlist-container {
|
||
|
|
grid-column: 1 / -1 !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Centrer Mastodon quand il est seul (HERO_TYPE='none', pas de Castopod ni Funkwhale) */
|
||
|
|
.timeline-wordpress-container:not(:has(.castopod-section)):not(:has(.funkwhale-section)) {
|
||
|
|
grid-template-columns: 1fr !important;
|
||
|
|
justify-items: center !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.timeline-wordpress-container:not(:has(.castopod-section)):not(:has(.funkwhale-section)) .mastodon-section {
|
||
|
|
max-width: 800px !important;
|
||
|
|
width: 100% !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Centrer le dernier élément quand il est seul sur sa ligne (nombre impair d'éléments) */
|
||
|
|
/* Cas : Castopod + Funkwhale + Mastodon (3 éléments) */
|
||
|
|
/* Mastodon sera le 3e élément (impair) et doit être centré */
|
||
|
|
.timeline-wordpress-container:has(.castopod-section):has(.funkwhale-section) .mastodon-section:nth-child(3) {
|
||
|
|
grid-column: 1 / -1 !important;
|
||
|
|
max-width: 800px !important;
|
||
|
|
width: 800px !important;
|
||
|
|
margin: 0 auto !important;
|
||
|
|
justify-self: center !important;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Tablette et Mobile : 1 élément par ligne */
|
||
|
|
@media (max-width: 1199px) {
|
||
|
|
.timeline-wordpress-container {
|
||
|
|
grid-template-columns: 1fr !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.hero-mastodon-wrapper {
|
||
|
|
padding: 0 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* En mobile, tous les éléments prennent toute la largeur */
|
||
|
|
.castopod-section,
|
||
|
|
.funkwhale-section,
|
||
|
|
.mastodon-section,
|
||
|
|
.wordpress-section {
|
||
|
|
width: 100% !important;
|
||
|
|
max-width: none !important;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.hero-mastodon-wrapper {
|
||
|
|
padding: 0 10px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Hauteurs fixes pour les containers scrollables */
|
||
|
|
.castopod-container,
|
||
|
|
.funkwhale-container,
|
||
|
|
.mt-container,
|
||
|
|
.wordpress-container {
|
||
|
|
height: 400px;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.castopod-container,
|
||
|
|
.funkwhale-container,
|
||
|
|
.mt-container,
|
||
|
|
.wordpress-container {
|
||
|
|
height: 350px;
|
||
|
|
}
|
||
|
|
}
|