New features: announcements WIP (#518):
* Front-end implementation finished. * Refactoring.
This commit is contained in:
@ -13,13 +13,6 @@
|
||||
--livechat-announcement-color: #000;
|
||||
--livechat-announcement-background-color: #dbf2d8;
|
||||
--livechat-announcement-border-color: #2ab218;
|
||||
|
||||
converse-chat-message-body::first-line {
|
||||
// Different color for the title line
|
||||
color: #FFF;
|
||||
background-color: #2ab218;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&.livechat-highlight {
|
||||
@ -28,15 +21,39 @@
|
||||
--livechat-announcement-border-color: #3075e5;
|
||||
}
|
||||
|
||||
&.livechat-warning {
|
||||
--livechat-announcement-color: #000;
|
||||
--livechat-announcement-background-color: #fadede;
|
||||
--livechat-announcement-border-color: #e03e3e;
|
||||
}
|
||||
|
||||
&.livechat-announcement,
|
||||
&.livechat-highlight {
|
||||
&.livechat-highlight,
|
||||
&.livechat-warning {
|
||||
converse-chat-message-body {
|
||||
border: 2px solid var(--livechat-announcement-border-color);
|
||||
color: var(--livechat-announcement-color);
|
||||
background-color: var(--livechat-announcement-background-color);
|
||||
min-width: 50%;
|
||||
padding: 2em;
|
||||
padding: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.livechat-announcements-form {
|
||||
label {
|
||||
// only for screen readers
|
||||
border: 0 !important;
|
||||
clip: rect(1px, 1px, 1px, 1px) !important;
|
||||
/* stylelint-disable-next-line property-no-vendor-prefix */
|
||||
-webkit-clip-path: inset(50%) !important;
|
||||
clip-path: inset(50%) !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user