Différences entre les versions de « MediaWiki:Common.scss »
Aller à la navigation
Aller à la recherche
(Page créée avec « $color-black: #000000; $color-documentation: #ecfcf4; $color-separator: #a2a9b1; $color-border-grey: #aaaaaa; $colors-information-box: ( light-yellow: #ffeda6,... ») |
|||
(18 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
$color-black: #000000; | $color-black: #000000; | ||
$color-white: #ffffff; | |||
$color-documentation: #ecfcf4; | $color-documentation: #ecfcf4; | ||
$color-separator: #a2a9b1; | $color-separator: #a2a9b1; | ||
$color-border-grey: #aaaaaa; | $color-border-grey: #aaaaaa; | ||
$color-border-blue: #a7d7f9; | |||
$ | $background-information-box: ( | ||
light-yellow: #ffeda6, | light-yellow: #ffeda6, | ||
light-blue: #9fd6f2, | light-blue: #9fd6f2, | ||
light-green: #ddffdd, | 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: | blue: #1c2677, | ||
red: | red: #b51a1c, | ||
white: | white: #fcfdff, | ||
green: # | green: #3c833b, | ||
brown: # | brown: #a56635, | ||
yellow: | yellow: #e1bd15, | ||
grey: #ffffff, | grey: #737886, | ||
black: #000000, | |||
); | |||
$foreground-ajah: ( | |||
blue: #ffffff, | |||
black: #ffffff, | |||
); | ); | ||
Ligne 32 : | Ligne 39 : | ||
.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 91 : | Ligne 201 : | ||
} | } | ||
.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 { | ||
Ligne 134 : | 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 167 : | 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); | |||
} | |||
} | } | ||
} | } | ||
/* Déclinaisons d'ajah */ | /* Déclinaisons d'ajah */ | ||
@each $name, $color in $ | @each $name, $color in $background-ajah { | ||
.mw-information-box.#{$name}-ajah .mw-title, | .mw-information-box.#{$name}-ajah .mw-title, | ||
.mw-information-box.#{$name}-ajah .mw-section-title { | .mw-information-box.#{$name}-ajah .mw-section-title { | ||
background: $color; | background: $color; | ||
color: map-get($ | |||
@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-title, | ||
.mw-information-box.#{$name}-black-ajah .mw-section-title { | .mw-information-box.#{$name}-black-ajah .mw-section-title { | ||
background: linear-gradient(to right, $color 0%, $color 75%, $color-black 90%); | |||
} | } | ||
} | } | ||
Ligne 194 : | Ligne 363 : | ||
max-height: 400px; | max-height: 400px; | ||
overflow-y: auto; | overflow-y: auto; | ||
} | |||
/* == Cartes */ | |||
.map-container { | |||
display: inline-block; | |||
max-width: 100%; | |||
border: 1px solid #c8ccd1; | |||
overflow: auto; | |||
} | } |