@freshworks/crayons
Version:
Crayons Web Components library
102 lines (97 loc) • 1.97 kB
CSS
/* Need to check with designer */
/* Need to check with designer */
:host {
font-family: var(--fw-font-family, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
box-sizing: border-box;
}
@media screen and (prefers-reduced-motion: reduce) {
.toast.is-open {
animation: none;
}
}
.toast.is-open {
display: block;
animation-duration: 0.5s;
animation-name: fadeIn;
z-index: 999;
}
.toast {
display: none;
position: relative;
top: 10px;
width: 400px;
padding: 0px 0px 16px 0px;
border: 1px solid #ebeff3;
border-radius: 4px;
background-color: #fff;
margin-bottom: 16px;
box-sizing: border-box;
box-shadow: 0px 2px 4px rgba(18, 52, 77, 0.06), 0px 2px 16px rgba(18, 52, 77, 0.16);
overflow-wrap: anywhere;
word-break: break-word;
white-space: normal;
}
.toast.success {
border-top: 5px solid #00a886;
}
.toast.error {
border-top: 5px solid #d72d30;
}
.toast.warning {
border-top: 5px solid #f8ab59;
}
.toast.inprogress {
border-top: 5px solid #2c5cc5;
}
.toast-container {
margin-top: 16px;
display: flex;
align-items: flex-start;
place-content: center;
}
.toast-container .content {
color: #12344d;
line-height: 20px;
flex: 1 1 auto;
font-size: 14px;
font-weight: 500;
vertical-align: top;
}
.toast-container .icon {
margin: 5px 16px 0px 16px;
}
.toast-container .remove {
margin: 5px 12px 0px 12px;
}
.action-link {
color: #2c5cc5;
line-height: 14px;
cursor: pointer;
font-size: 12px;
font-weight: 600;
padding: 8px 0px;
}
@keyframes fadeOut {
100% {
top: -600px;
}
}
@keyframes fadeIn {
0% {
top: -600px;
}
100% {
top: 10px;
}
}
@media screen and (prefers-reduced-motion: reduce) {
.toast.fade-out {
animation: none;
}
}
.toast.fade-out {
animation-duration: 1s;
animation-name: fadeOut;
}