Aller au contenu

MediaWiki:Common.css

De Wikiquestia

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.
.copy-box {
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1em;
}

.copy-header {
  background: #f0f0f0;
  padding: 0.5em 1em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
}

.copy-button {
  font-size: 0.9em;
  padding: 2px 8px;
  cursor: pointer;
}

.ligne-accueil {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.2em; /* espace entre les deux */
  margin-bottom: 0.2em;
}

.ligne-haute > div {
  flex: 1 1 0;
}

[class$="-picto"] {
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  background-blend-mode: multiply;
  background-color: transparent;
}

.biographie-picto {
  background-image: url(https://wiki.alakihel.ovh/images/1/19/Pictogram_flower.png);
}
.darkgods-picto {
    background-image: url(https://wiki.alakihel.ovh/images/e/ea/Pictogram_darkgods.png);
}
.hitaruato {
  background-image: url(https://wiki.alakihel.ovh/images/f/f4/Pictogram_hitaruato.png);
}

.empire-picto {
  background-image: url(https://wiki.alakihel.ovh/images/d/df/Pictogram_feather.png);
}


.björkan-picto {
  background-image: url(https://wiki.alakihel.ovh/images/9/9b/Pictogram_Björkan_Närävar.png);
}

.accueil-picto {
    background-image: url("https://wiki.alakihel.ovh/images/3/3e/RdVW.png");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 100px;
}


.mw-ahnentafel-tree table {
  border-collapse: separate;
  border-spacing: 10px;
}
.mw-ahnentafel-tree td {
  vertical-align: top;
  padding: 0.5em;
}


.td-verticalalign-center {
  vertical-align: center;
}


.infobox > p:only-child {
  display: none;
}

.infobox table {
  border: none;
  box-shadow: none;
  border-collapse: none;
  width: 100%;
}

.infobox th,
.infobox td {
  border: none;
}


.infobox table {
  text-align: left;
  padding: 5px;
  width: 100%;
}

.infobox_v3 table {
    width: 100%;
    margin: 5px 0;
    table-layout: fixed;
}

.infobox th {
  font-weight: bold;
  width: 10em;
vertical-align: top;
}

.infobox td {
  width: 15em;
  vertical-align: top;
}

.empire {
    background-image: url(https://wiki.alakihel.ovh/images/d/df/Pictogram_feather.png);
}

.biographie {
    background-image: url(https://wiki.alakihel.ovh/images/1/19/Pictogram_flower.png);
}

.björkan{
  background-image: url(https://wiki.alakihel.ovh/images/9/9b/Pictogram_Björkan_Närävar.png);
}

.geographie {
background-image: url(https://wiki.alakihel.ovh/images/c/c8/Pictogram_sonlight.png);
}

.cite_independante {
background-image: url(https://wiki.alakihel.ovh/images/2/28/Pictogram_freecity.png);
}


.darkgods {
    background-image: url(https://wiki.alakihel.ovh/images/e/ea/Pictogram_darkgods.png);
    color: #fff;
}

.infobox-modifier {    
    text-align: right;
}

.modifier {
  font-weight: bold;
  padding: 2px 4px;
  margin: 0.5em;
}

.Alerte {    
    float: center;
}

.documentation {
    border: 1px solid #aaa;
    margin: 0 0 0.5em 1em;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #e6f4ea;
    padding: 3em;
}

.entete {
    font-weight: bold;
    text-align: center;
    font-size: 1.4em;
    padding: 0.5em;
    margin: 5px;
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
}

.soustitre {    
    font-weight: bold;
    text-align: center;
    padding: 0.5em;
    margin: 5px;

}


.tabber__tabs {
        justify-content: space-evenly;
}

hr {
  margin: 0 0.5em;
}

.infobox, .infobox_top_border, .infobox_bottom_border {
    padding: 5px;
    background: #f9f9f9;
    border: 1px solid #aaa;
    width: 325px;
    word-wrap: break-word;
    float: right;
    clear: right;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0 0 0.5em 1em;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1)
}

.infobox_bottom_border {
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #aaa;
}

.infobox-title {
    font-weight: bold;
    text-align: center;
    color: #000;
    background: #54994C;
    padding: 1px;
    width: 100%;
    height: 45px;
}

.infobox-subtitle, .infobox-subtitle-biography {
    font-weight: bold;
    text-align: center;
    background-color: #5c76be;
    margin: 0.5em;
    padding: 0.2em;
}

.infobox-LO, .infobox-caption {
    font-size: small;
    font-style: italic;
    margin: 0.5em 0;
    text-align: center;
    width: -webkit-fill-available;
}

.infobox-séparateur, .infobox_separator {
    padding: 0.5em;
    border-top: 1px solid;
    border-bottom: 1px solid;
    font-weight: bold;
    text-align: center;
    background: #EBEBEB;
    color: #333;
}

.infobox-image {
    font-size: smaller;
    font-style: italic;
    margin: 0.5em 0;
    text-align: center;
}

.infobox-center, .infobox-left, .infobox-right {
    font-size: smaller;
    font-style: italic;
    margin: 0.5em 0;
    text-align: center;
    width: -webkit-fill-available;
}

.infobox-left {
    text-align: left;
}

.infobox-right {
    text-align: right;
}

.infobox-table th, .infobox-table td {
    text-align: left;
    vertical-align: top;
}

.infobox-table th {
    width: 10em;
}

.infobox-table td {
    width: 15em;
}

.infobox-list-left {
    text-align: center;
    float: left;
    width: 45%;
}

.infobox-list-right {
    text-align: center;
    float: right;
    width: 45%;
}

.border-line {
    border-top-style: solid;
    border-width: 1px;
    height: 2px;
    margin: 5px 0.5em;
}

hr.nation {
    background-color: #65cec9cc;
    margin: 0.5em;
}

.infobox-container {
    float: right;
    clear: right;
    width: 33%;
    margin-left: 10px;
}

audio {
    width: -webkit-fill-available;
    height: 20px;
}

.row {
    display: table;
    clear: both;
}

.column {
    float: left;
    width: 50%;
    padding: 10px;
}

/* Navbox Template */

/* Navbox Styling */
.navbox {
    border: 1px solid #aaa;
    padding: 2px;
    font-size: 88%;
    background: #f9f9f9;
    margin: 5px 0;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.navbox-title {
    background-color: #ccccff;
    font-weight: bold;
    text-align: center;
    padding: 2px;
}

.navbox-list {
    text-align: left;
    padding: 5px;
}

.navbox-group {
    width: 12%;
    text-align: right;
    padding-right: 0.5em;
    font-weight: bold;
    white-space: nowrap;
}

.navbox-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

.navbox hlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbox hlist ul {
    display: inline;
}

.navbox hlist li {
    display: inline;
    margin-right: 10px;
}



.selectable-table tr:hover {
    background-color: #f0f8ff;
    cursor: pointer;
}

/* Conteneur des onglets */
.tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 1em 0;
  border-bottom: 2px solid #ccc;
}

/* Cache les boutons radio */
.tabs input[type="radio"] {
  display: none;
}

/* Style des labels (onglets cliquables) */
.tabs label {
  padding: 10px 20px;
  margin-right: 5px;
  background-color: #eee;
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}

/* Onglet actif */
.tabs input[type="radio"]:checked + label {
  background-color: #fff;
  border-bottom: 2px solid white;
  font-weight: bold;
}

/* Contenu des onglets */
.tab-content {
  display: none;
  width: 100%;
  border: 1px solid #ccc;
  padding: 15px;
  background-color: #fff;
}

/* Affiche le contenu de l'onglet sélectionné */
#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3 {
  display: block;
}