UNPKG

@freshworks/crayons

Version:
78 lines (76 loc) 1.59 kB
/* 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; } :host { margin: 0; } .alert { position: relative; display: flex; width: 100%; border-radius: 4px; box-sizing: border-box; margin: inherit; padding: 8px 6px; background-color: transparent; } .alert--success { background: #e0f5f1; border: 1px solid #b4e5da; } .alert--success .alert__message { border-left: 1px solid #b4e5da; } .alert--warning { background: #fef1e1; border: 1px solid #fedcb3; } .alert--warning .alert__message { border-left: 1px solid #fedcb3; } .alert--info { background: #e5f2fd; border: 1px solid #bbdcfe; } .alert--info .alert__message { border-left: 1px solid #bbdcfe; } .alert--error { border: 1px solid #ffd0d6; background: #ffecf0; } .alert--error .alert__message { border-left: 1px solid #ffd0d6; } .alert__icon { flex: 0 0 auto; display: flex; align-self: flex-start; margin-right: 8px; } .alert__message { padding-left: 12px; flex: 1 1 auto; color: #12344d; font-size: 14px; font-weight: 400; line-height: 20px; } .alert__message ::slotted(a) { font-weight: 500; color: #365dbe; text-decoration: none; } .alert__close { flex: 0 0 auto; display: flex; align-self: flex-start; padding-right: 6px; padding-left: 12px; cursor: pointer; }