2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-inline-message {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
margin: 0;
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inline-message-text {
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inline-message-icon {
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-right: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inline-message-icon-only .p-inline-message-text {
|
|
|
|
visibility: hidden;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fluid .p-inline-message {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inline-message-info {
|
2024-03-12 10:20:51 +00:00
|
|
|
background: ${dt('inlinemessage.info.background')};
|
|
|
|
border: 1px solid ${dt('inlinemessage.info.border.color')};
|
|
|
|
color: ${dt('inlinemessage.info.color')};
|
|
|
|
box-shadow: ${dt('inlinemessage.info.box.shadow')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
2024-03-12 10:20:51 +00:00
|
|
|
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-inline-message-info .p-inline-message-icon {
|
2024-03-12 10:20:51 +00:00
|
|
|
color: ${dt('inlinemessage.info.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inline-message-success {
|
2024-03-12 10:20:51 +00:00
|
|
|
background: ${dt('inlinemessage.success.background')};
|
|
|
|
border: 1px solid ${dt('inlinemessage.success.border.color')};
|
|
|
|
color: ${dt('inlinemessage.success.color')};
|
|
|
|
box-shadow: ${dt('inlinemessage.success.box.shadow')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
.p-inline-message-success .p-inline-message-icon {
|
2024-03-12 10:20:51 +00:00
|
|
|
color: ${dt('inlinemessage.success.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inline-message-warn {
|
2024-03-12 10:20:51 +00:00
|
|
|
background: ${dt('inlinemessage.warn.background')};
|
|
|
|
border: 1px solid ${dt('inlinemessage.warn.border.color')};
|
|
|
|
color: ${dt('inlinemessage.warn.color')};
|
|
|
|
box-shadow: ${dt('inlinemessage.warn.box.shadow')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
.p-inline-message-warn .p-inline-message-icon {
|
2024-03-12 10:20:51 +00:00
|
|
|
color: ${dt('inlinemessage.warn.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inline-message-error {
|
2024-03-12 10:20:51 +00:00
|
|
|
background: ${dt('inlinemessage.error.background')};
|
|
|
|
border: 1px solid ${dt('inlinemessage.error.border.color')};
|
|
|
|
color: ${dt('inlinemessage.error.color')};
|
|
|
|
box-shadow: ${dt('inlinemessage.error.box.shadow')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
.p-inline-message-error .p-inline-message-icon {
|
2024-03-12 10:20:51 +00:00
|
|
|
color: ${dt('inlinemessage.error.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inline-message-secondary {
|
2024-03-12 10:20:51 +00:00
|
|
|
background: ${dt('inlinemessage.secondary.background')};
|
|
|
|
border: 1px solid ${dt('inlinemessage.secondary.border.color')};
|
|
|
|
color: ${dt('inlinemessage.secondary.color')};
|
|
|
|
box-shadow: ${dt('inlinemessage.secondary.box.shadow')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
.p-inline-message-secondary .p-inline-message-icon {
|
2024-03-12 10:20:51 +00:00
|
|
|
color: ${dt('inlinemessage.secondary.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inline-message-contrast {
|
2024-03-12 10:20:51 +00:00
|
|
|
background: ${dt('inlinemessage.contrast.background')};
|
|
|
|
border: 1px solid ${dt('inlinemessage.contrast.border.color')};
|
|
|
|
color: ${dt('inlinemessage.contrast.color')};
|
|
|
|
box-shadow: ${dt('inlinemessage.contrast.box.shadow')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
.p-inline-message-contrast .p-inline-message-icon {
|
2024-03-12 10:20:51 +00:00
|
|
|
color: ${dt('inlinemessage.contrast.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inline-message-icon-only .p-inline-message-icon {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|