Skip to content

Commit

Permalink
WE-1761 Fix message zindex
Browse files Browse the repository at this point in the history
  • Loading branch information
vaclavjanak committed May 8, 2024
1 parent c452c0d commit 8429140
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions components/message.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/* Messages */
.flashes{
.flashes {
position: absolute;
width: $message-width;
left: 50%;
top: 100px;
margin-left: -220px;
z-index: 1000;
z-index: 1080;
transition: all 0.5s ease-out;

&.right{
&.right {
position: fixed;
left: auto;
right: 0;
Expand All @@ -17,16 +17,16 @@
animation: 0.8s ease-out 0s 1 slideFromRight;
}

&.closed{
&.closed {
right: -440px;
}
}

.message-box{
.message-box {
position: absolute;
}

.message{
.message {
color: $body-color;
background-color: white;
padding: 25px;
Expand All @@ -39,25 +39,25 @@
border-radius: $border-radius;
box-shadow: $box-shadow;

&::before{
content: url("#{$messages-icon}info-blue.svg");
&::before {
content: url('#{$messages-icon}info-blue.svg');
position: absolute;
left: 25px;
transform: scale(1.5);
top: calc(50% - 10px);
}

&.success::before{
content: url("#{$messages-icon}check_circle-success.svg");
&.success::before {
content: url('#{$messages-icon}check_circle-success.svg');
}
&.warning::before{
content: url("#{$messages-icon}warning-orange.svg");
&.warning::before {
content: url('#{$messages-icon}warning-orange.svg');
}
&.error::before{
content: url("#{$messages-icon}cancel-red.svg");
&.error::before {
content: url('#{$messages-icon}cancel-red.svg');
}
&.idea::before{
content: url("#{$messages-icon}idea-yellow.svg");
&.idea::before {
content: url('#{$messages-icon}idea-yellow.svg');
}
}

Expand Down

0 comments on commit 8429140

Please sign in to comment.