lostplaces-frontend/components/01_Atoms/message/_message.scss

69 lines
1.2 KiB
SCSS
Raw Normal View History

2020-08-12 20:11:22 +02:00
.LP-Message{
display: flex;
flex-direction: row;
2020-08-12 21:31:13 +02:00
justify-content: center;
align-items: stretch;
2020-08-12 20:11:22 +02:00
background-color: $-almost-white;
font-family: $-primary-sans-serif-font;
border-radius: 3px;
font-weight: bold;
2020-08-12 21:31:13 +02:00
box-shadow: 0 0 2px $-grey;
overflow: hidden;
2020-08-12 20:11:22 +02:00
&--error{
.LP-Message__Icon{
background-color: invert(#fd6861);
2020-08-16 11:42:13 +02:00
background-image: url('icons/error.png');
2020-08-12 20:11:22 +02:00
}
}
&--warning{
.LP-Message__Icon{
background-color:invert(#ffb818);
2020-08-16 11:42:13 +02:00
background-image: url('icons/error.png');
2020-08-12 20:11:22 +02:00
}
}
&--info{
.LP-Message__Icon{
background-color: invert(lightblue);
2020-08-16 11:42:13 +02:00
background-image: url('icons/information.svg');
2020-08-12 20:11:22 +02:00
}
}
&--success{
.LP-Message__Icon{
background-color: invert(#96c800);
2020-08-16 11:42:13 +02:00
background-image: url('icons/success.svg');
2020-08-12 20:11:22 +02:00
}
}
&--debug{
.LP-Message__Icon{
background-color: invert(#fb95d0);
2020-08-16 11:42:13 +02:00
background-image: url('icons/debug.png');
2020-08-12 20:11:22 +02:00
}
}
.LP-Message__Icon{
background-size: 40px 40px;
background-repeat: no-repeat;
background-position: center;
2020-08-12 21:31:13 +02:00
height: 100%;
min-height: 50px;
2020-08-12 20:11:22 +02:00
width: 50px;
filter: invert(1);
2020-08-12 21:31:13 +02:00
flex-shrink: 0;
flex-grow: 0;
2020-08-12 20:11:22 +02:00
}
.LP-Message__Text{
padding: 0 15px;
2020-08-12 21:31:13 +02:00
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
2020-08-12 22:27:31 +02:00
padding: 8px;
2020-08-12 20:11:22 +02:00
}
}