Différences entre les versions de « MediaWiki:Common.scss »

De Encyclopédie francophone de la Roue du Temps
Aller à la navigation Aller à la recherche
Ligne 1 : Ligne 1 :
@charset "UTF-8";
$color-black: #000000;
$color-white: #ffffff;
 
$color-documentation: #ecfcf4;
$color-separator: #a2a9b1;
$color-border-grey: #aaaaaa;
$color-border-blue: #a7d7f9;
 
$colors-information-box: (
    light-yellow: #ffeda6,
    light-blue: #9fd6f2,
    light-green: #ddffdd,
    light-red: #ee6c6c,
    light-purple: #ad88c6,
    light-pink: #e1afd1,
    light-orange: #ffbf78,
    blue: #1E90FF,
);
$background-ajah: (
    blue: #1c2677,
    red: #b51a1c,
    white: #fcfdff,
    green: #3c833b,
    brown: #a56635,
    yellow: #e1bd15,
    grey: #737886,
    black: #000000,
);
$foreground-ajah: (
    blue: #ffffff,
    black: #ffffff,
);
 
/* == Outils == */
/* == Outils == */
.clearfix {
.clearfix {
Ligne 13 : Ligne 45 :
}
}


.d-none {
$values: (none, inline, inline-block, block, flex, inline-flex);
  display: none !important;
}
 
.d-inline {
  display: inline !important;
}
 
.d-inline-block {
  display: inline-block !important;
}
 
.d-block {
  display: block !important;
}
 
.d-flex {
  display: flex !important;
}
 
.d-inline-flex {
  display: inline-flex !important;
}
 
.justify-content-normal {
  justify-content: normal !important;
}
 
.justify-content-start {
  justify-content: flex-start !important;
}
 
.justify-content-end {
  justify-content: flex-end !important;
}
 
.justify-content-center {
  justify-content: center !important;
}
 
.justify-content-stretch {
  justify-content: stretch !important;
}
 
.justify-content-left {
  justify-content: left !important;
}
 
.justify-content-right {
  justify-content: right !important;
}
 
.justify-content-space-between {
  justify-content: space-between !important;
}
 
.justify-content-space-around {
  justify-content: space-around !important;
}
 
.justify-content-space-evenly {
  justify-content: space-evenly !important;
}


.align-items-normal {
@each $value in $values {
  align-items: normal !important;
  .d-#{$value} {
    display: $value !important;
  }
}
}


.align-items-start {
$values: (normal, start, end, center, stretch, left, right, space-between, space-around, space-evenly);
  align-items: flex-start !important;
}


.align-items-end {
@each $value in $values {
  align-items: flex-end !important;
  .justify-content-#{$value} {
    @if start == $value or end == $value {
      justify-content: flex-#{$value} !important;
    } @else {
      justify-content: $value !important;
    }
  }
}
}


.align-items-center {
$values: (normal, start, end, center, stretch);
  align-items: center !important;
}


.align-items-stretch {
@each $value in $values {
  align-items: stretch !important;
  .align-items-#{$value} {
    @if start == $value or end == $value {
      align-items: flex-#{$value} !important;
    } @else {
      align-items: $value !important;
    }
  }
}
}


Ligne 107 : Ligne 87 :
.mw-documentation {
.mw-documentation {
   padding: 1em 1em 0.8em;
   padding: 1em 1em 0.8em;
   background: #ecfcf4;
   background: $color-documentation;
   border: 1px solid #aaaaaa;
   border: 1px solid $color-border-grey;
}
}


Ligne 118 : Ligne 98 :
   margin-top: 1.5em;
   margin-top: 1.5em;
   padding-top: 0.5em;
   padding-top: 0.5em;
   border-top: 1px solid #a2a9b1;
   border-top: 1px solid $color-separator;
}
}


Ligne 127 : Ligne 107 :
   margin-top: 1em;
   margin-top: 1em;
   background: #fdfdfd;
   background: #fdfdfd;
   border: 1px solid #aaaaaa;
   border: 1px solid $color-border-grey;
   font-size: 0.75rem;
   font-size: 0.75rem;
}
}
Ligne 150 : Ligne 130 :
}
}


.mw-navigation tr:nth-child(2n+1) td {
.mw-navigation tr:nth-child(2n + 1) td {
   background: #eaecf0;
   background: #eaecf0;
}
}


.mw-navigation .mw-navigation {
.mw-navigation .mw-navigation{
   width: calc(100% + 6px);
   width: calc(100% + 6px);
   margin: -3px;
   margin: -3px;
   background: transparent;
   background: transparent;
   border: none;
   border: none; }
}


.mw-navigation .mw-navigation tr:nth-child(2n+1) td {
.mw-navigation .mw-navigation tr:nth-child(2n + 1) td {
   background: none;
   background: none;
}
}
Ligne 199 : Ligne 178 :
}
}


.mw-information-box .mw-gallery .mw-gallery-tabs {
.mw-information-box .mw-gallery {
  display: flex;
  // Tabs
  flex-wrap: wrap;
  .mw-gallery-tabs {
  margin-left: 0;
      display: flex;
  position: relative;
      flex-wrap: wrap;
  top: 1px;
      margin-left: 0;
  z-index: 2;
      position: relative;
  list-style: none;
      top: 1px;
}
      z-index: 2;
.mw-information-box .mw-gallery .mw-gallery-tabs li {
      list-style: none;
  display: inline-block;
  }
  margin-bottom: 0;
 
}
  .mw-gallery-tabs li {
.mw-information-box .mw-gallery .mw-gallery-tabs li + li {
      display: inline-block;
  margin-left: 5px;
      margin-bottom: 0;
}
     
.mw-information-box .mw-gallery .mw-gallery-tabs button {
      & + li {
  padding: 8px;
          margin-left: 5px;
  background: #ffffff;
      }
  border: solid #a7d7f9;
  }
  border-width: 1px;
 
  color: #0645ad;
  .mw-gallery-tabs button {
}
      padding: 8px;
.mw-information-box .mw-gallery .mw-gallery-tabs button:hover, .mw-information-box .mw-gallery .mw-gallery-tabs button:focus {
      background: $color-white;
  text-decoration: underline;
      border: solid $color-border-blue;
}
      border-width: 1px;
.mw-information-box .mw-gallery .mw-gallery-tabs button:hover {
      color: #0645ad;
  cursor: pointer;
     
}
      &:hover,
.mw-information-box .mw-gallery .mw-gallery-tabs button.active {
      &:focus {
  border-bottom-width: 0;
          text-decoration: underline;
  color: #000000;
      }
}
     
.mw-information-box .mw-gallery .mw-gallery-pane {
      &:hover {
  display: none;
          cursor: pointer;
  background: #ffffff;
      }
  border: 1px solid #a7d7f9;
     
}
      &.active {
.mw-information-box .mw-gallery .mw-gallery-pane.active {
          border-bottom-width: 0;
  display: block;
          color: #000000;
      }
  }
 
  // Panes
  .mw-gallery-pane {
    display: none;
    background: $color-white;
    border: 1px solid $color-border-blue;
   
    &.active {
        display: block;
    }
  }
}
}


Ligne 251 : Ligne 243 :
}
}


.mw-information-box table {
.mw-information-box table {
   width: 100%;
   width: 100%;
}
}
Ligne 267 : Ligne 259 :
   padding: 0.25em 1em;
   padding: 0.25em 1em;
   font-weight: bold;
   font-weight: bold;
   text-align: center;
   text-align: center;  
   background: #cccccc;
   background: #cccccc;
}
}


/* Déclinaisons de couleur */
/* Déclinaisons de couleur */
.mw-information-box.light-yellow .mw-title,
@each $name, $color in $colors-information-box {
.mw-information-box.light-yellow .mw-section-title {
   .mw-information-box.#{$name} .mw-title,
   background: #ffeda6;
   .mw-information-box.#{$name} .mw-section-title {
}
    background: $color;
 
   }
.mw-information-box.light-blue .mw-title,
.mw-information-box.light-blue .mw-section-title {
  background: #9fd6f2;
}
 
.mw-information-box.light-green .mw-title,
.mw-information-box.light-green .mw-section-title {
   background: #ddffdd;
}
 
.mw-information-box.light-red .mw-title,
.mw-information-box.light-red .mw-section-title {
  background: #ee6c6c;
}
 
.mw-information-box.light-purple .mw-title,
.mw-information-box.light-purple .mw-section-title {
  background: #ad88c6;
}
 
.mw-information-box.light-pink .mw-title,
.mw-information-box.light-pink .mw-section-title {
  background: #e1afd1;
}
 
.mw-information-box.light-orange .mw-title,
.mw-information-box.light-orange .mw-section-title {
   background: #ffbf78;
}
 
.mw-information-box.blue .mw-title,
.mw-information-box.blue .mw-section-title {
  background: #1E90FF;
}
}


/* Déclinaisons d'ajah */
/* Déclinaisons d'ajah */
.mw-information-box.blue-ajah .mw-title,
@each $name, $color in $background-ajah {
.mw-information-box.blue-ajah .mw-section-title {
  .mw-information-box.#{$name}-ajah .mw-title,
  background: #1c2677;
  .mw-information-box.#{$name}-ajah .mw-section-title {
  color: #ffffff;
    background: $color;
}
   
 
    @if map-get($foreground-ajah, $name) != null {
.mw-information-box.blue-black-ajah .mw-title,
        color: map-get($foreground-ajah, $name);
.mw-information-box.blue-black-ajah .mw-section-title {
    }
  background: linear-gradient(to right, #1c2677 0%, #1c2677 75%, #000000 90%);
   }
}
 
.mw-information-box.red-ajah .mw-title,
.mw-information-box.red-ajah .mw-section-title {
   background: #b51a1c;
}


.mw-information-box.red-black-ajah .mw-title,
   .mw-information-box.#{$name}-black-ajah .mw-title,
.mw-information-box.red-black-ajah .mw-section-title {
   .mw-information-box.#{$name}-black-ajah .mw-section-title {
   background: linear-gradient(to right, #b51a1c 0%, #b51a1c 75%, #000000 90%);
   background: linear-gradient(to right, $color 0%, $color 75%, $color-black 90%);
}
   }
 
.mw-information-box.white-ajah .mw-title,
.mw-information-box.white-ajah .mw-section-title {
  background: #fcfdff;
}
 
.mw-information-box.white-black-ajah .mw-title,
.mw-information-box.white-black-ajah .mw-section-title {
  background: linear-gradient(to right, #fcfdff 0%, #fcfdff 75%, #000000 90%);
}
 
.mw-information-box.green-ajah .mw-title,
.mw-information-box.green-ajah .mw-section-title {
  background: #3c833b;
}
 
.mw-information-box.green-black-ajah .mw-title,
.mw-information-box.green-black-ajah .mw-section-title {
   background: linear-gradient(to right, #3c833b 0%, #3c833b 75%, #000000 90%);
}
 
.mw-information-box.brown-ajah .mw-title,
.mw-information-box.brown-ajah .mw-section-title {
  background: #a56635;
}
 
.mw-information-box.brown-black-ajah .mw-title,
.mw-information-box.brown-black-ajah .mw-section-title {
  background: linear-gradient(to right, #a56635 0%, #a56635 75%, #000000 90%);
}
 
.mw-information-box.yellow-ajah .mw-title,
.mw-information-box.yellow-ajah .mw-section-title {
  background: #e1bd15;
}
 
.mw-information-box.yellow-black-ajah .mw-title,
.mw-information-box.yellow-black-ajah .mw-section-title {
   background: linear-gradient(to right, #e1bd15 0%, #e1bd15 75%, #000000 90%);
}
 
.mw-information-box.grey-ajah .mw-title,
.mw-information-box.grey-ajah .mw-section-title {
  background: #737886;
}
 
.mw-information-box.grey-black-ajah .mw-title,
.mw-information-box.grey-black-ajah .mw-section-title {
  background: linear-gradient(to right, #737886 0%, #737886 75%, #000000 90%);
}
 
.mw-information-box.black-ajah .mw-title,
.mw-information-box.black-ajah .mw-section-title {
  background: #000000;
   color: #ffffff;
}
 
.mw-information-box.black-black-ajah .mw-title,
.mw-information-box.black-black-ajah .mw-section-title {
  background: linear-gradient(to right, #000000 0%, #000000 75%, #000000 90%);
}
}


Ligne 403 : Ligne 296 :
/* == Cartes */
/* == Cartes */
.map-container {
.map-container {
  display: inline-block;
    display: inline-block;
  max-width: 100%;
    max-width: 100%;
  border: 1px solid #c8ccd1;
    border: 1px solid #c8ccd1;
  overflow: auto;
    overflow: auto;
}
}

Version du 25 janvier 2025 à 19:52

$color-black: #000000; $color-white: #ffffff; $color-documentation: #ecfcf4; $color-separator: #a2a9b1; $color-border-grey: #aaaaaa; $color-border-blue: #a7d7f9; $colors-information-box: ( light-yellow: #ffeda6, light-blue: #9fd6f2, light-green: #ddffdd, light-red: #ee6c6c, light-purple: #ad88c6, light-pink: #e1afd1, light-orange: #ffbf78, blue: #1E90FF, ); $background-ajah: ( blue: #1c2677, red: #b51a1c, white: #fcfdff, green: #3c833b, brown: #a56635, yellow: #e1bd15, grey: #737886, black: #000000, ); $foreground-ajah: ( blue: #ffffff, black: #ffffff, ); /* == Outils == */ .clearfix { clear: both; } .clearfix-left { clear: left; } .clearfix-right { clear: right; } $values: (none, inline, inline-block, block, flex, inline-flex); @each $value in $values { .d-#{$value} { display: $value !important; } } $values: (normal, start, end, center, stretch, left, right, space-between, space-around, space-evenly); @each $value in $values { .justify-content-#{$value} { @if start == $value or end == $value { justify-content: flex-#{$value} !important; } @else { justify-content: $value !important; } } } $values: (normal, start, end, center, stretch); @each $value in $values { .align-items-#{$value} { @if start == $value or end == $value { align-items: flex-#{$value} !important; } @else { align-items: $value !important; } } } /* == Citations == */ .mw-body-content blockquote { margin-left: 0; margin-right: 0; padding: 8px 16px; } /* == Documentation de modèle == */ .mw-documentation { padding: 1em 1em 0.8em; background: $color-documentation; border: 1px solid $color-border-grey; } .mw-documentation p:first-child { margin-top: 0; } .mw-documentation-footer { margin-top: 1.5em; padding-top: 0.5em; border-top: 1px solid $color-separator; } /* == Navigation == */ .mw-navigation { clear: both; width: 100%; margin-top: 1em; background: #fdfdfd; border: 1px solid $color-border-grey; font-size: 0.75rem; } .mw-navigation .mw-title { padding-left: 1em; padding-right: 1em; background: #a7d7f9; font-size: 0.85rem; } .mw-navigation tr th:not(.mw-title) { width: 150px; padding-left: 1em; padding-right: 1em; background: #eaf3ff; vertical-align: middle; } .mw-navigation tr:nth-child(2n) td { background: #f6f6f6; } .mw-navigation tr:nth-child(2n + 1) td { background: #eaecf0; } .mw-navigation .mw-navigation{ width: calc(100% + 6px); margin: -3px; background: transparent; border: none; } .mw-navigation .mw-navigation tr:nth-child(2n + 1) td { background: none; } .mw-navigation + .mw-navigation { margin-top: 0.5em; } /* == Boîtes d'informations == */ .mw-information-box { float: right; box-sizing: border-box; clear: right; min-width: 200px; max-width: 300px; margin: 0 0 0.5em 1em; padding: 5px; background: #f9f9f9; border: 1px solid #aaaaaa; color: #000000; font-size: 0.9em; } .mw-information-box .mw-title { box-sizing: border-box; margin: 0; padding: 0.25em 1em; background: #cccccc; font-size: 1.25em; font-weight: bold; line-height: 1.5em; text-align: center; } .mw-information-box .mw-sub-title { text-align: center; } .mw-information-box .mw-gallery { // Tabs .mw-gallery-tabs { display: flex; flex-wrap: wrap; margin-left: 0; position: relative; top: 1px; z-index: 2; list-style: none; } .mw-gallery-tabs li { display: inline-block; margin-bottom: 0; & + li { margin-left: 5px; } } .mw-gallery-tabs button { padding: 8px; background: $color-white; border: solid $color-border-blue; border-width: 1px; color: #0645ad; &:hover, &:focus { text-decoration: underline; } &:hover { cursor: pointer; } &.active { border-bottom-width: 0; color: #000000; } } // Panes .mw-gallery-pane { display: none; background: $color-white; border: 1px solid $color-border-blue; &.active { display: block; } } } .mw-information-box .image img { max-width: 100%; height: auto; } .mw-information-box .mw-caption { font-size: 80%; text-align: center; } .mw-information-box table { width: 100%; } .mw-information-box th:not(.mw-section-title), .mw-information-box td { vertical-align: top; } .mw-information-box th:not(.mw-section-title) { text-align: left; } .mw-information-box .mw-section-title { padding: 0.25em 1em; font-weight: bold; text-align: center; background: #cccccc; } /* Déclinaisons de couleur */ @each $name, $color in $colors-information-box { .mw-information-box.#{$name} .mw-title, .mw-information-box.#{$name} .mw-section-title { background: $color; } } /* Déclinaisons d'ajah */ @each $name, $color in $background-ajah { .mw-information-box.#{$name}-ajah .mw-title, .mw-information-box.#{$name}-ajah .mw-section-title { background: $color; @if map-get($foreground-ajah, $name) != null { color: map-get($foreground-ajah, $name); } } .mw-information-box.#{$name}-black-ajah .mw-title, .mw-information-box.#{$name}-black-ajah .mw-section-title { background: linear-gradient(to right, $color 0%, $color 75%, $color-black 90%); } } /* == Arbres généalogiques == */ .family-tree { max-height: 400px; overflow-y: auto; } /* == Cartes */ .map-container { display: inline-block; max-width: 100%; border: 1px solid #c8ccd1; overflow: auto; }