@import "variables"; vn-snackbar #shapes { max-height: 330px; margin-left: -160px; position: fixed; z-index: 100; width: 320px; left: 50%; bottom: 0 } vn-snackbar .shape { background-color: rgba(0, 0, 0, .8); box-shadow: 0 0 6px $color-shadow; transition: transform 300ms ease-in-out; transform: translateY(320px); box-sizing: border-box; border-radius: 3px; margin-bottom: 15px; color: white; padding: 12px; & > .text { text-align: center; vn-chip { position: absolute; left: -16px; top: -16px; } } &.shown { transform: translateY(0); } &.success { background-color: rgba(163, 209, 49, .8); color: #445911; & > button { color: rgba(1, 1, 1, .6); } } &.error { background-color: rgba(198, 40, 40, .8); & > button { color: rgba(1, 1, 1, .6); } } & > button { background-color: transparent; text-transform: uppercase; margin-left: 8px; font-weight: bold; cursor: pointer; color: $color-main; float: right; border: none; padding: 8px; margin: -8px; } }