Différences entre les versions de « MediaWiki:Common.scss »
Aller à la navigation
Aller à la recherche
(10 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 7 : | Ligne 7 : | ||
$color-border-blue: #a7d7f9; | $color-border-blue: #a7d7f9; | ||
$ | $background-information-box: ( | ||
light-yellow: #ffeda6, | light-yellow: #ffeda6, | ||
light-blue: #9fd6f2, | light-blue: #9fd6f2, | ||
Ligne 14 : | Ligne 14 : | ||
light-purple: #ad88c6, | light-purple: #ad88c6, | ||
light-pink: #e1afd1, | light-pink: #e1afd1, | ||
light-orange: #ffbf78, | |||
blue: #1E90FF, | blue: #1E90FF, | ||
purple: #663399, | |||
); | |||
$foreground-information-box: ( | |||
purple: #ffffff, | |||
); | ); | ||
$background-ajah: ( | $background-ajah: ( | ||
Ligne 42 : | Ligne 47 : | ||
.clearfix-right { | .clearfix-right { | ||
clear: 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 231 : | Ligne 331 : | ||
/* Déclinaisons de couleur */ | /* Déclinaisons de couleur */ | ||
@each $name, $color in $ | @each $name, $color in $background-information-box { | ||
.mw-information-box.#{$name} .mw-title, | .mw-information-box.#{$name} .mw-title, | ||
.mw-information-box.#{$name} .mw-section-title { | .mw-information-box.#{$name} .mw-section-title { | ||
background: $color; | background: $color; | ||
@if map-get($foreground-information-box, $name) != null { | |||
color: map-get($foreground-information-box, $name); | |||
} | |||
} | } | ||
} | } |