framework7
Version:
Full featured mobile HTML framework for building iOS & Android apps
53 lines (51 loc) • 1.13 kB
text/less
.ios {
.notification {
transition-duration: 450ms;
transform: translate3d(0%, -200%, 0);
@supports (backdrop-filter: blur(10px)) {
background: var(--f7-notification-translucent-bg-color-ios);
backdrop-filter: blur(10px);
}
&.modal-in {
transform: translate3d(0%, 0%, 0);
opacity: 1;
}
&.modal-out {
transform: translate3d(0%, -200%, 0);
}
}
.notification-icon {
margin-right: 8px;
}
.notification-header + .notification-content {
margin-top: 10px;
}
.notification-title-right-text {
margin-right: 6px;
margin-left: auto;
+ .notification-close-button {
margin-left: 10px;
}
}
.notification-close-button {
font-size: 14px;
width: 20px;
height: 20px;
opacity: 0.3;
transition-duration: 300ms;
&.active-state {
transition-duration: 0ms;
opacity: 0.1;
}
&:after {
color: #000;
content: 'notification_close_ios';
font-size: 0.65em;
line-height: 44px;
width: 44px;
height: 44px;
margin-left: -22px;
margin-top: -22px;
}
}
}