feat: add toast

This commit is contained in:
jiangruowei
2017-03-15 10:10:31 +08:00
parent b02ebc90d9
commit 2de6435873
15 changed files with 340 additions and 8 deletions
+32
View File
@@ -0,0 +1,32 @@
@import './common/var.css';
@component-namespace zan {
@b toast {
border-radius: 5px;
background-color: #272727;
opacity: 0.7;
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
color: $white;
font-size: 12px;
@m loading {
.zan-toast__icon {
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
}
}
@m text {
padding: 11px;
}
@m notify {
.zan-toast__icon {
padding: 20px;
}
}
}
}