Skip to content

Commit

Permalink
Update: (liferay#910) Alert Notifications Fixed should be full width …
Browse files Browse the repository at this point in the history
…and aligned to the bottom in smaller screens
  • Loading branch information
pat270 committed Jun 11, 2018
1 parent 2136c3e commit 991a36c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions packages/clay-css/src/scss/components/_alerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@
width: $alert-notifications-max-width;

@include clay-scale-component {
clear: right;
float: right;
max-width: $alert-notifications-max-width;
max-width: none;
width: 100%;
}

Expand Down
8 changes: 4 additions & 4 deletions packages/clay-css/src/scss/variables/_alerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ $alert-notifications-fixed-left: 1.25rem !default; // 20px
$alert-notifications-fixed-right: null !default;
$alert-notifications-fixed-top: null !default;

$alert-notifications-fixed-bottom-mobile: null !default;
$alert-notifications-fixed-left-mobile: 0.5rem !default; // 8px
$alert-notifications-fixed-right-mobile: 0.5rem !default; // 8px
$alert-notifications-fixed-top-mobile: 4.25rem !default; // 68px
$alert-notifications-fixed-bottom-mobile: 1rem !default; // 16px
$alert-notifications-fixed-left-mobile: ($grid-gutter-width / 2) !default;
$alert-notifications-fixed-right-mobile: ($grid-gutter-width / 2) !default;
$alert-notifications-fixed-top-mobile: null !default; // 68px

$alert-notifications-box-shadow: null !default;
$alert-notifications-max-width: 22.5rem !default; // 360px
Expand Down

0 comments on commit 991a36c

Please sign in to comment.