Différences entre les versions de « MediaWiki:Common.scss »
Aller à la navigation
Aller à la recherche
Ligne 1 : | Ligne 1 : | ||
$color-black: #000000; | |||
$color-documentation: #ecfcf4; | |||
$color-separator: #a2a9b1; | |||
$color-border-grey: #aaaaaa; | |||
$colors-information-box: ( | |||
light-yellow: #ffeda6, | |||
light-blue: #9fd6f2, | |||
light-green: #ddffdd, | |||
light-red: #ee6c6c, | |||
blue: #1E90FF, | |||
); | |||
$colors-ajah: ( | |||
blue: #0e427c, | |||
red: #6b0632, | |||
white: #c1c6c0, | |||
green: #03221d, | |||
brown: #1b140c, | |||
yellow: #89590f, | |||
grey: #2e3231, | |||
); | |||
/* == Outils == */ | /* == Outils == */ | ||
.clearfix { | .clearfix { | ||
Ligne 15 : | Ligne 37 : | ||
.mw-documentation { | .mw-documentation { | ||
padding: 1em 1em 0.8em; | padding: 1em 1em 0.8em; | ||
background: | background: $color-documentation; | ||
border: 1px solid | border: 1px solid $color-border-grey; | ||
} | } | ||
Ligne 26 : | Ligne 48 : | ||
margin-top: 1.5em; | margin-top: 1.5em; | ||
padding-top: 0.5em; | padding-top: 0.5em; | ||
border-top: 1px solid | border-top: 1px solid $color-separator; | ||
} | } | ||
Ligne 35 : | Ligne 57 : | ||
margin-top: 1em; | margin-top: 1em; | ||
background: #fdfdfd; | background: #fdfdfd; | ||
border: 1px solid | border: 1px solid $color-border-grey; | ||
font-size: 0.75rem; | font-size: 0.75rem; | ||
} | } | ||
Ligne 58 : | Ligne 80 : | ||
} | } | ||
.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 117 : | Ligne 138 : | ||
} | } | ||
.mw-information-box table { | .mw-information-box table { | ||
width: 100%; | width: 100%; | ||
} | } | ||
Ligne 133 : | Ligne 154 : | ||
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 */ | ||
@each $name, $color in $colors-information-box { | |||
.mw-information-box.#{$name} .mw-title, | |||
.mw-information-box.#{$name} .mw-section-title { | |||
background: $color; | |||
} | |||
.mw-information-box. | |||
.mw-information-box. | |||
} | |||
} | |||
} | } | ||
/* Déclinaisons d'ajah */ | /* Déclinaisons d'ajah */ | ||
@each $name, $color in $colors-ajah { | |||
.mw-information-box.#{$name}-ajah .mw-title, | |||
.mw-information-box.#{$name}-ajah .mw-section-title { | |||
background: $color; | |||
} | |||
.mw-information-box. | |||
.mw-information-box. | |||
} | |||
.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%); | |||
} | |||
.mw-information-box. | |||
} | |||
.mw-information-box. | |||
} | |||
background: linear-gradient(to right, | |||
} | |||
} | } | ||
Ligne 237 : | Ligne 187 : | ||
/* == Cartes */ | /* == Cartes */ | ||
.map-container { | .map-container { | ||
display: inline-block; | |||
max-width: 100%; | |||
border: 1px solid #c8ccd1; | |||
overflow: auto; | |||
} | } |