Aller au contenu

« MediaWiki:Common.css » : différence entre les versions

aucun résumé des modifications
(tableaux flex)
Balise : Révoqué (en savoir plus)
Aucun résumé des modifications
Balise : Révoqué (en savoir plus)
Ligne 79 : Ligne 79 :


.flex-cell {
.flex-cell {
  width: calc(100% / 3); //1px = border right
  text-align: center;
  padding: 0.5em 0.5em;
  border-right: solid 1px $table-border;
  //flex: 1 1 33.3%;
  &:last-child {
    // border-right: 0;
  }
}
@media all and (max-width: 767px) {
  .flex-row {
    width: calc(100% / 3); //1px = border right
   
  &.first {
    width: 100%;
  }
  }
  .column {
    width: 100%;
  }
}
@media all and (max-width: 430px) {
 
  .flex-table {
    .flex-row {
      border-bottom: 0;
    }
    .flex-row:last-of-type {
      border-bottom: solid 1px $table-border;
    }
  }
 
  .header {
    .flex-row {
      border-bottom: solid 1px;
    }
  }
 
  .flex-row {
    width: 100%; //1px = border right
   
  &.first {
    width: 100%;
    border-bottom: solid 1px $table-border;
  }
  }
  .column {
    width: 100%;
    .flex-row {
      border-bottom: solid 1px $table-border;
    }
  }
  .flex-cell {
    width: 100%; //1px = border right
  }
}
9 349

modifications