Skip to content

Commit

Permalink
feat(core): notifications on mobile (#606)
Browse files Browse the repository at this point in the history
Co-authored-by: anastasiia_glushkova <anastasiia.glushkova@haiilo.com>
  • Loading branch information
glushkova91 and anastasiia_glushkova authored Nov 18, 2024
1 parent dd8b800 commit 46f982f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/src/styles/core/_notification.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@use '../variables' as *;
@use '../mixins' as *;

$mobile-side-padding: 0.5rem;

.cat-toastify {
display: flex;
border-radius: cat-border-radius('l');
Expand All @@ -24,6 +26,16 @@
--cat-secondary-text-active: #{cat-token('color.theme.secondaryInverted.textActive', $wrap: false)};
background: cat-token('color.ui.background.surfaceInverted');
}

@include until('xs') {
transform: translate($mobile-side-padding, -1rem) !important;
width: calc(100% - #{$mobile-side-padding * 2});
max-width: calc(100% - #{$mobile-side-padding * 2});
margin-left: 0;
margin-right: 0;
left: 0;
right: 0;
}
}

.cat-toastify-wrapper {
Expand Down

0 comments on commit 46f982f

Please # to comment.