| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- .ui-toast {
- position: fixed;
- display: flex;
- align-items: center;
- justify-content: center;
- top: 30px;
- left: 0;
- right: 0;
- min-width: 100px;
- height: 100px;
- overflow: hidden;
- pointer-events:none;
- }
- .ui-toast__box {
- color: #fff;
- font-size: 14px;
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
- background-color: rgba($color: #1a1a1a, $alpha: 0.8);
- box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.7);
- border-radius: 4px;
- border: 1px solid #000000;
- padding: 8px 20px;
- pointer-events: all;
- &.fixed,
- &.success,
- &.error,
- &.warn{
- i{
- display:inline-block;
- }
- }
- &.success {
- .icon {
- background-image: url('#{$img-base-path}icons/toast-success.png');
- }
- }
- &.error {
- .icon {
- background-image: url('#{$img-base-path}icons/toast-error.png');
- }
- }
- &.warn {
- .icon {
- background-image: url('#{$img-base-path}icons/toast-warn.png');
- }
- }
- &::after {
- content: '';
- position: absolute;
- left: 1px;
- right: 1px;
- bottom: 1px;
- top: 1px;
- border: 1px solid rgba($color: #fff, $alpha: 0.1);
- border-radius: 4px;
- z-index: 0;
- pointer-events: none;
- }
- // >i{
- // display: none;
- // }
- .icon{
- margin-right: 10px;
- font-size: 0;
- width: 16px;
- height: 16px;
- background-repeat: no-repeat;
- background-position: center center;
- background-size: contain;
- }
- .close{
- cursor: pointer;
- font-size: 14px;
- margin-left: 20px;
- }
- }
- .ui-toast__msg{
- display: flex;
- align-items: center;
- img{
- width:24px;
- height: 24px;
- }
- }
- body[is-mobile] .ui-toast__box {
- max-width: 80%;
- }
|