Skip to content

Commit c9c7f72

Browse files
committed
💄 fix responsive alert notification
1 parent 0ef1824 commit c9c7f72

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/app/shared/alerts/alert/alert.component.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@import 'settings/_colors.scss';
22
@import 'settings/_typography.scss';
3+
@import 'settings/_media.scss';
34

45
.alert {
56
position: fixed;
67
bottom: 20px;
78
right: 20px;
8-
width: 75%;
99
border-radius: 1rem;
1010
padding: 0.6rem 0.8rem;
1111
box-shadow: rgb(149 157 165 / 50%) 0px 8px 24px;
@@ -14,7 +14,11 @@
1414
pointer-events: none;
1515
transform: translateY(100px);
1616
transition: transform 0.5s ease-in;
17-
max-width: 25rem;
17+
max-width: 35rem;
18+
19+
@include width-small {
20+
left: 20px;
21+
}
1822

1923
&.success {
2024
background-color: $green;
@@ -47,7 +51,7 @@
4751
display: flex;
4852
justify-content: space-between;
4953
align-items: center;
50-
gap: 10px;
54+
gap: 1rem;
5155
@include fs-6;
5256
@include fw-500;
5357
color: var(--fc-white);
@@ -57,7 +61,7 @@
5761
}
5862

5963
& .icon {
60-
@include fs-5;
64+
@include fs-3;
6165
width: 25px;
6266
height: 25px;
6367
display: flex;

0 commit comments

Comments
 (0)