Skip to content

Commit

Permalink
Merge pull request #2913 from salesforce-ux/fix/notification-styles
Browse files Browse the repository at this point in the history
fix(notifications): update notification styles to aid animation
  • Loading branch information
Dottenpixel authored Nov 15, 2017
2 parents 0b76d10 + 387ddbe commit 47539eb
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions ui/components/notifications/base/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,47 @@
border: 1px solid $color-border-reminder;
border-radius: $border-radius-medium;
box-shadow: $shadow-reminder;
transition-duration: $duration-slowly;
transition-timing-function: ease-in-out;
transition-property:
margin,
max-height,
opacity,
top;

.slds-media__body {
opacity: 1;
transition-property: opacity;
transition-duration: $duration-slowly;
transition-timing-function: ease-in-out;
}

+ .slds-notification {
margin-top: $spacing-x-small;
}

&:nth-of-type(4) {
position: relative;
top: -4.5rem;
transform: scaleX(0.95);
z-index: -1;
@for $i from 1 through 4 {

&:nth-of-type(#{$i}) {
z-index: (5 - $i);
}
}

&:nth-of-type(n+3) {
overflow: hidden;
}

&:nth-of-type(n+4) {
margin-top: 0;
transform: scaleX(0.95) translateY(-90%);
}

&:nth-of-type(n+4) .slds-media__body,
&:nth-of-type(n+5) {
opacity: 0;
}

&:nth-of-type(n+6) {
display: none;
}
}
Expand Down

0 comments on commit 47539eb

Please sign in to comment.