2024-05-10 11:31:38 +00:00
|
|
|
@keyframes scaleFrom0 {
|
|
|
|
from {
|
|
|
|
/* More performant than animating `width` */
|
|
|
|
transform: scaleX(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-08 09:39:49 +00:00
|
|
|
ion-alert {
|
2024-05-10 11:31:38 +00:00
|
|
|
--border-radius: var(--modal-radius);
|
|
|
|
|
|
|
|
&.md, &.ios {
|
|
|
|
--max-width: 80%;
|
|
|
|
|
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
--max-width: 384px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-wrapper {
|
|
|
|
overflow: auto;
|
|
|
|
border-radius: var(--border-radius) !important;
|
|
|
|
|
|
|
|
button.alert-button.alert-button-role-destructive {
|
|
|
|
color: var(--danger);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-message {
|
|
|
|
user-select: text;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
ion-card {
|
|
|
|
margin: 0;
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-05-08 09:39:49 +00:00
|
|
|
&.md .alert-button {
|
|
|
|
// Remove padding from alert buttons, they already have min accessibility height.
|
|
|
|
padding-top: 0px;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
2024-05-10 10:51:12 +00:00
|
|
|
|
2024-05-10 11:31:38 +00:00
|
|
|
.alert-button.timed-button{
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
top: 0;
|
|
|
|
background-color: var(--primary-tint);
|
|
|
|
animation: scaleFrom0 10s forwards linear;
|
|
|
|
transform-origin: left;
|
|
|
|
@include rtl() {
|
|
|
|
transform-origin: right;
|
|
|
|
}
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-10 10:51:12 +00:00
|
|
|
&.core-alert-force-on-top {
|
|
|
|
z-index: 100000 !important;
|
|
|
|
}
|
|
|
|
|
2024-05-10 11:31:38 +00:00
|
|
|
&.core-nohead .alert-head,
|
|
|
|
.alert-head:empty {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
2024-05-08 09:39:49 +00:00
|
|
|
}
|