Modèle:InfoboxV2/style.css

De Wiki Lylat
Version datée du 13 mai 2026 à 21:00 par Lucas5201 (discussion | contributions) (Page créée avec « .infobox { width: 300px; border: 1px solid transparent; border-collapse: collapse; background-color: black; color: white; float: right; overflow: hidden; word-wrap: break-word; box-sizing: border-box; border-radius: 3px; margin-left: 5px; margin-bottom: 1em; clear: both; } .infobox tr > td:first-child, .infobox tr > th:first-child { width: 40%; } .infobox tr > td:last-child, .infobox tr > th:last-child { width: 100%; box-siz... »)
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)
Aller à la navigationAller à la recherche
.infobox {
  width: 300px;
  border: 1px solid transparent; 
  border-collapse: collapse;
  background-color: black;
  color: white;
  float: right; 
  overflow: hidden; 
  word-wrap: break-word; 
  box-sizing: border-box;
  border-radius: 3px;
  margin-left: 5px;
  margin-bottom: 1em;
  clear: both;
}

.infobox tr > td:first-child,
.infobox tr > th:first-child {
  width: 40%;
}

.infobox tr > td:last-child,
.infobox tr > th:last-child {
  width: 100%; 
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  vertical-align: top;
}

.infobox .title 
{
  background-color: #ff9999 !important; 
  font-size: 16px; 
  color: white; 
  text-align: center; 
  padding-top: 5px; 
  padding-bottom: 5px; 
  width: 300px !important;
}

.infobox td {
  vertical-align: top;
}

.infobox p br
{
  display: none;
}

.image-infobox
{
  width: 299px;
}

.image-infobox img
{
 max-width: 250px !important;
 height: auto;
}

.infobox tabber
{
  max-width: 290px;
}

.infobox tabber img 
{
  max-width: 250px;
}

.infobox .thumb {
  float: none !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.infobox .thumbinner {
  width: 100% !important;
  max-width: 100% !important;
}

.infobox .thumbimage {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

pre, .mw-code
{
 padding: unset;
 background-color: unset;
}

.infobox th 
{
  background-color: #ff9999;
}

.mw-tmh-player
{
  width: 200px !important;
}

/* Adaptation pour écran mobile */
@media (max-width: 1024px) {
  .infobox {
    width: 299px;
    float: right !important;       
    margin-left: auto !important; 
    margin-right: auto !important;
    max-width: 100% !important;       
  }

.image-infobox img
{
 width: 299px !important;
 height: auto;
}

  .infobox tr:not(:last-child) {
   border-bottom: 1px solid black !important;
  }

.infobox audio {
  width: 200px;
  height: 30px;
}

.content .infobox td:only-child, .content .infobox th:only-child
{
   width: unset;
}

}

@media (max-width: 600px) {
  .infobox {
    width: 90%;
    float: none !important;       
    margin-left: auto !important; 
    margin-right: auto !important;
    max-width: 90% !important;       
  }

  .infobox th.title {
    display: table-cell !important;
    width: 100% !important;
  }
  .infobox th, .infobox td {
    display: table-cell !important;
    word-break: break-word;
  }
}

.infobox > p {
  display: none;
}

.more 
{
  display: table !important;
}
.more tr:first-child
{
  background-color: #ff9999;
  text-align: center;
  font-weight: bold;
}

.music-title
{
 font-weight: bold;
 text-align: center !important;
}