@import "colors"; vn-snackbar #shapes { position: fixed; bottom: 0; right: 15px; width: 20em; max-height: 20.625em; z-index: 100; } vn-snackbar .shape { box-sizing: border-box; background-color: rgba(1, 1, 1, 0.8); color: white; padding: 1em; border-radius: .2em; box-shadow: 0 0 .4em rgba(1,1,1,.4); margin-bottom: 15px; transform: translateX(20em); transition: transform 300ms ease-in-out; &.text { text-align: center } &.shown { transform: translateX(0); } &.success { background-color: rgba(163, 209, 49, 0.8); color: #445911; & > button { color: rgba(1, 1, 1, 0.6); } } &.error { background-color: rgba(198, 40, 40, 0.8); & > button { color: rgba(1, 1, 1, 0.6); } } & > button { cursor: pointer; float: right; text-transform: uppercase; border: none; background-color: transparent; font-weight: bold; color: $main-01; padding: .5em; margin: -.5em; margin-left: .5em; } }