actionsheet
Version:
actionsheet component for touch device
65 lines (60 loc) • 1.41 kB
CSS
.notice-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 999999;
}
.notice-container .notice-item {
position: relative;
font: 500 16px/1.8 "Georgia","Xin Gothic","Hiragino Sans GB","WenQuanYi Micro Hei",sans-serif;
background: #fefefe;
background: rgba(255,255,255,0.9);
color: #565656;
padding: 10px 20px;
box-sizing: border-box;
border-bottom: 1px solid #efefef;
text-align: center;
transition: all .2s ease-in-out;
transform-origin: top;
}
/* colors from bootstrap */
.notice-container .notice-warning {
background: #fcf8e3;
background: rgba(252, 248, 227, 0.9);
border-color: #fbeed5;
color: #c09853;
}
.notice-container .notice-success {
background: #EAFBE3;
background: rgba(221, 242, 210, 0.9);
border-color: #D6E9C6;
color: #3FB16F;
}
.notice-container .notice-danger,
.notice-container .notice-error {
background: #f2dede;
background: rgba(242, 222, 222, 0.9);
border-color: #ebccd1;
color: #a94442;
}
.notice-container .notice-content {
color: inherit;
text-decoration: none;
margin: 0 auto;
max-width: 650px;
}
.notice-container .notice-close {
position: absolute;
top: 5px;
height: 40px;
right: 20px;
width: 40px;
cursor: pointer;
font: 400 normal 22px/40px "Arial", sans-serif;
color: rgba(231, 76, 60, 0.6);
}
.notice-container .notice-dismiss {
transform: rotateX(-75deg);
opacity: 0;
}