Différences entre les versions de « MediaWiki:Common.scss »
Aller à la navigation
Aller à la recherche
(15 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
$color-black: #000000; | |||
$color-white: #ffffff; | |||
$color-documentation: #ecfcf4; | |||
$color-separator: #a2a9b1; | |||
$color-border-grey: #aaaaaa; | |||
$color-border-blue: #a7d7f9; | |||
$background-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, | |||
purple: #663399, | |||
); | |||
$foreground-information-box: ( | |||
purple: #ffffff, | |||
); | |||
$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 { | ||
clear: both; | 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; | |||
} | |||
} | |||
} | |||
$types: (m: margin, p: padding); | |||
$sizes: (auto: auto, 0: 0, 1: 5px, 2: 10px, 3: 15px, 4: 20px); | |||
$directions: (t: top, r: right, b: bottom, l: left); | |||
@each $a, $type in $types { | |||
@each $b, $size in $sizes { | |||
@if not (padding == $type and auto == $size) { | |||
.#{$a}-#{$b} { | |||
#{$type}: $size !important; | |||
} | |||
.#{$a}x-#{$b} { | |||
#{$type}-left: $size !important; | |||
#{$type}-right: $size !important; | |||
} | |||
.#{$a}y-#{$b} { | |||
#{$type}-top: $size !important; | |||
#{$type}-bottom: $size !important; | |||
} | |||
@each $c, $direction in $directions { | |||
.#{$a}#{$c}-#{$b} { | |||
#{$type}-#{$direction}: $size !important; | |||
} | |||
} | |||
} | |||
} | |||
} | |||
/* == Partners == */ | |||
.partners-container { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); | |||
justify-items: center; | |||
align-items: center; | |||
gap: 5px; | |||
text-align: center; | |||
} | |||
.partners-container .alliance, | |||
.partners-container .partner { | |||
} | |||
.partners-container .alliance { | |||
grid-column: span 2; | |||
grid-row: span 2; | |||
} | |||
.partners-container p { | |||
margin: 0; | |||
} | |||
.partners-container .image { | |||
display: inline-block; | |||
margin-bottom: 5px; | |||
} | |||
.partners-container .external { | |||
padding: 0; | |||
background: none; | |||
} | } | ||
Ligne 15 : | Ligne 154 : | ||
.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 165 : | ||
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 174 : | ||
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 197 : | ||
} | } | ||
.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 105 : | Ligne 243 : | ||
.mw-information-box .mw-sub-title { | .mw-information-box .mw-sub-title { | ||
text-align: center; | 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; | |||
} | |||
} | |||
} | } | ||
Ligne 117 : | Ligne 310 : | ||
} | } | ||
.mw-information-box table { | .mw-information-box table { | ||
width: 100%; | width: 100%; | ||
} | } | ||
Ligne 133 : | Ligne 326 : | ||
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. | @each $name, $color in $background-information-box { | ||
.mw-information-box. | .mw-information-box.#{$name} .mw-title, | ||
.mw-information-box.#{$name} .mw-section-title { | |||
background: $color; | |||
@if map-get($foreground-information-box, $name) != null { | |||
color: map-get($foreground-information-box, $name); | |||
} | |||
} | |||
} | |||
} | } | ||
/* Déclinaisons d'ajah */ | /* Déclinaisons d'ajah */ | ||
.mw-information-box. | @each $name, $color in $background-ajah { | ||
.mw-information-box. | .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%); | |||
} | |||
.mw-information-box. | |||
} | |||
.mw-information-box. | |||
} | |||
background: linear-gradient(to right, | |||
} | |||
} | } | ||
Ligne 237 : | Ligne 367 : | ||
/* == Cartes */ | /* == Cartes */ | ||
.map-container { | .map-container { | ||
display: inline-block; | |||
max-width: 100%; | |||
border: 1px solid #c8ccd1; | |||
overflow: auto; | |||
} | } |