scss: introduce $notification-icon-position (#61639)
This commit is contained in:
parent
62e028f46e
commit
d6d4301db0
|
@ -877,6 +877,11 @@ paramètre, la deuxième sa description et la troisième la valeur par défaut.
|
|||
<td><p>Taille de l'icône illustrant le message</p></td>
|
||||
<td><p><var>1.5rem</var> ou <var>2rem</var></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><code>$notification-icon-position</code></p></td>
|
||||
<td><p>Position vertical de l'icône du message. « top » ou « center ». </p></td>
|
||||
<td><p><var>top</var></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
|
|
@ -25,6 +25,9 @@ $notification-left-padding: calc(#{$notification-icon-size} + 2rem);
|
|||
@if $notification-style == border-bar {
|
||||
$notification-left-padding: calc(#{$notification-icon-size} + 1rem);
|
||||
}
|
||||
|
||||
$notification-icon-position: top !default; // top || center
|
||||
|
||||
// add a border with "OU" between authentication blocks
|
||||
$or-separator: if($cell-border == none, true, false) !default;
|
||||
|
||||
|
@ -362,10 +365,13 @@ div#page-change-overlay.on {
|
|||
width: 1em;
|
||||
height: 1em;
|
||||
position: absolute;
|
||||
margin: auto;
|
||||
left: 0;
|
||||
right: calc(100% - #{$notification-left-padding});
|
||||
top: 0.5rem;
|
||||
margin: auto;
|
||||
@if $notification-icon-position == center {
|
||||
bottom: 0.5rem
|
||||
}
|
||||
@if $notification-style == border-icon {
|
||||
color: darken($color, 40%);
|
||||
background: white;
|
||||
|
|
Loading…
Reference in New Issue