Maintenance: Regenerate chat assets to match latest templates.

This commit is contained in:
Martin Gruner 2022-04-25 15:56:00 +02:00
parent 2cc110fd42
commit 28c5b986d4
11 changed files with 207 additions and 298 deletions

View file

@ -36,6 +36,7 @@
}, },
"ignoreFiles": [ "ignoreFiles": [
"public/assets/*.css", "public/assets/*.css",
"public/assets/chat/chat.css",
"public/assets/doorkeeper/**", "public/assets/doorkeeper/**",
"**/reset*.css", "**/reset*.css",
"**/bootstrap*.css", "**/bootstrap*.css",

View file

@ -5,7 +5,6 @@ ENV GULP_DIR "/tmp/gulp"
RUN apk update && apk add bash RUN apk update && apk add bash
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
CMD bash # If you want to override CMD CMD bash # If you want to override CMD
RUN npm install -g gulp
COPY docker-entrypoint.sh / COPY docker-entrypoint.sh /

View file

@ -3,6 +3,6 @@
set -o errexit set -o errexit
set -o pipefail set -o pipefail
docker build --no-cache -t zammad/chat-build:latest . docker build --platform amd64 --no-cache -t zammad/chat-build:latest .
docker run --rm -v "$(pwd)/:/tmp/gulp" zammad/chat-build:latest docker run --rm -v "$(pwd)/:/tmp/gulp" zammad/chat-build:latest

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -12,41 +12,29 @@
display: none; display: none;
-ms-flex-direction: column; -ms-flex-direction: column;
flex-direction: column; flex-direction: column;
z-index: 999; z-index: 999; }
}
@media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) {
.zammad-chat { .zammad-chat {
right: 0; right: 0;
width: 100%; width: 100%;
border-radius: 0 !important; border-radius: 0 !important;
font-size: 16px !important; font-size: 16px !important; } }
}
}
.zammad-chat--animate { .zammad-chat--animate {
transition: transform 500ms; transition: transform 500ms; }
}
.zammad-chat.zammad-chat-is-loaded { .zammad-chat.zammad-chat-is-loaded {
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
opacity: 0; opacity: 0; }
}
.zammad-chat.zammad-chat-is-shown { .zammad-chat.zammad-chat-is-shown {
opacity: 1; opacity: 1; }
}
.zammad-chat.zammad-chat-is-open { .zammad-chat.zammad-chat-is-open {
height: 30em; height: 30em; }
}
@media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) {
.zammad-chat.zammad-chat-is-open { .zammad-chat.zammad-chat-is-open {
height: 100%; height: 100%; } }
}
}
.zammad-chat-icon { .zammad-chat-icon {
height: 2em; height: 2em;
@ -54,8 +42,7 @@
fill: currentColor; fill: currentColor;
vertical-align: top; vertical-align: top;
margin-right: 5px; margin-right: 5px;
margin-top: 4px; margin-top: 4px; }
}
.zammad-chat-header { .zammad-chat-header {
padding: 0.5em 2.5em 0.5em 1em; padding: 0.5em 2.5em 0.5em 1em;
@ -63,27 +50,20 @@
color: white; color: white;
line-height: 2.5em; line-height: 2.5em;
height: 3.5em; height: 3.5em;
box-shadow: 0 -1px rgba(0, 0, 0, 0.1), 0 1px rgba(255, 255, 255, 0.3) inset, box-shadow: 0 -1px rgba(0, 0, 0, 0.1), 0 1px rgba(255, 255, 255, 0.3) inset, 0 -1px rgba(0, 0, 0, 0.1) inset, 0 1px 1px rgba(0, 0, 0, 0.13);
0 -1px rgba(0, 0, 0, 0.1) inset, 0 1px 1px rgba(0, 0, 0, 0.13);
position: relative; position: relative;
border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer; }
}
@media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) {
.zammad-chat-header { .zammad-chat-header {
border-radius: 0 !important; border-radius: 0 !important; } }
}
}
.zammad-chat.zammad-chat-is-open .zammad-chat-header { .zammad-chat.zammad-chat-is-open .zammad-chat-header {
cursor: default; cursor: default; }
}
.zammad-chat-welcome-text { .zammad-chat-welcome-text {
font-size: 1.2em; font-size: 1.2em; }
}
.zammad-chat-header-icon { .zammad-chat-header-icon {
position: absolute; position: absolute;
@ -93,53 +73,42 @@
width: 3.4em; width: 3.4em;
text-align: center; text-align: center;
line-height: 3.4em; line-height: 3.4em;
cursor: pointer; cursor: pointer; }
}
.zammad-chat-header-icon::before { .zammad-chat-header-icon::before {
content: ''; content: '';
display: inline-block; display: inline-block; }
}
.zammad-chat-header-icon-open, .zammad-chat-header-icon-open,
.zammad-chat-header-icon-close { .zammad-chat-header-icon-close {
fill: currentColor; fill: currentColor;
width: 1.6em; width: 1.6em;
height: auto; height: auto;
vertical-align: middle; vertical-align: middle; }
}
.zammad-chat-header-icon-close { .zammad-chat-header-icon-close {
width: 1.3em; width: 1.3em; }
}
.zammad-chat-header-icon-close, .zammad-chat-header-icon-close,
.zammad-chat.zammad-chat-is-open .zammad-chat-header-icon-open { .zammad-chat.zammad-chat-is-open .zammad-chat-header-icon-open {
display: none; display: none; }
}
.zammad-chat.zammad-chat-is-open .zammad-chat-header-icon-close { .zammad-chat.zammad-chat-is-open .zammad-chat-header-icon-close {
display: inline; display: inline; }
}
.zammad-chat-agent { .zammad-chat-agent {
float: left; float: left; }
}
.zammad-chat-header-controls { .zammad-chat-header-controls {
float: right; float: right; }
}
.zammad-chat-agent-avatar { .zammad-chat-agent-avatar {
border-radius: 100%; border-radius: 100%;
margin-right: 0.6em; margin-right: 0.6em;
float: left; float: left;
width: 2.5em; width: 2.5em; }
}
.zammad-chat-agent-name { .zammad-chat-agent-name {
font-weight: bold; font-weight: bold; }
}
.zammad-chat-agent-status { .zammad-chat-agent-status {
margin: 0.25em 1em; margin: 0.25em 1em;
@ -148,8 +117,7 @@
padding: 0 0.7em; padding: 0 0.7em;
border-radius: 1em; border-radius: 1em;
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.1);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset; }
}
.zammad-chat-agent-status::before { .zammad-chat-agent-status::before {
content: ''; content: '';
@ -161,29 +129,22 @@
position: relative; position: relative;
margin-right: 0.3em; margin-right: 0.3em;
vertical-align: middle; vertical-align: middle;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset; }
}
.zammad-chat-agent-status[data-status='online']::before { .zammad-chat-agent-status[data-status='online']::before {
background: #52c782; background: #52c782; }
}
.zammad-chat-agent-status[data-status='connecting']::before { .zammad-chat-agent-status[data-status='connecting']::before {
animation: linear connect-fade 600ms infinite alternate; animation: linear connect-fade 600ms infinite alternate;
background: #faab00; background: #faab00; }
}
@keyframes connect-fade { @keyframes connect-fade {
from { from {
opacity: 0.5; opacity: 0.5;
transform: scale(0.6); transform: scale(0.6); }
}
to { to {
opacity: 1; opacity: 1;
transform: scale(1); transform: scale(1); } }
}
}
.zammad-chat-modal { .zammad-chat-modal {
position: absolute; position: absolute;
@ -201,31 +162,22 @@
-ms-flex-align: center; -ms-flex-align: center;
align-items: center; align-items: center;
-ms-flex-pack: center; -ms-flex-pack: center;
justify-content: center; justify-content: center; }
}
.zammad-chat-modal:empty { .zammad-chat-modal:empty {
display: none; display: none; }
}
.zammad-chat-modal-text { .zammad-chat-modal-text {
font-size: 1.3em; font-size: 1.3em;
line-height: 1.45; line-height: 1.45; }
}
.zammad-chat-modal-text .zammad-chat-loading-animation { .zammad-chat-modal-text .zammad-chat-loading-animation {
font-size: 0.7em; font-size: 0.7em; }
}
.zammad-chat-modal-text .zammad-chat-button { .zammad-chat-modal-text .zammad-chat-button {
margin-top: 1em; margin-top: 1em;
font-size: 0.8em; font-size: 0.8em; }
}
.zammad-chat-modal .zammad-chat-loading-animation { .zammad-chat-modal .zammad-chat-loading-animation {
margin-right: 8px; margin-right: 8px;
vertical-align: middle; vertical-align: middle; }
}
.zammad-scroll-hint { .zammad-scroll-hint {
background: #f9fafa; background: #f9fafa;
@ -235,18 +187,14 @@
align-items: center; align-items: center;
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
padding: 7px 10px 6px; padding: 7px 10px 6px;
color: #999; color: #999999;
cursor: pointer; cursor: pointer; }
}
.zammad-scroll-hint.is-hidden { .zammad-scroll-hint.is-hidden {
display: none; display: none; }
}
.zammad-scroll-hint-icon { .zammad-scroll-hint-icon {
fill: #c4c7ca; fill: #c4c7ca;
margin-right: 8px; margin-right: 8px; }
}
.zammad-chat-body { .zammad-chat-body {
padding: 0.5em 1em; padding: 0.5em 1em;
@ -256,42 +204,33 @@
flex: 1; flex: 1;
display: none; display: none;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
overscroll-behavior: contain; overscroll-behavior: contain; }
}
@media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) {
.zammad-chat-body { .zammad-chat-body {
height: auto; height: auto;
-ms-flex: 1; -ms-flex: 1;
flex: 1; flex: 1; } }
}
}
.zammad-chat-is-open .zammad-chat-body { .zammad-chat-is-open .zammad-chat-body {
display: block; display: block; }
}
.zammad-chat-timestamp { .zammad-chat-timestamp {
text-align: center; text-align: center;
color: #999; color: #999999;
font-size: 0.9em; font-size: 0.9em;
margin: 1em 0; margin: 1em 0; }
}
.zammad-chat-status { .zammad-chat-status {
margin: 1em 0; margin: 1em 0;
text-align: center; text-align: center; }
}
.zammad-chat-message { .zammad-chat-message {
margin: 0.5em 0; margin: 0.5em 0; }
}
.zammad-chat-message-body { .zammad-chat-message-body {
white-space: pre-line; white-space: pre-line;
word-wrap: break-word; word-wrap: break-word;
border-radius: 1em; border-radius: 1em; }
}
.zammad-chat-status-inner, .zammad-chat-status-inner,
.zammad-chat-message-body { .zammad-chat-message-body {
@ -300,40 +239,31 @@
background: #ededed; background: #ededed;
display: inline-block; display: inline-block;
max-width: 70%; max-width: 70%;
box-shadow: 0 2px rgba(255, 255, 255, 0.15) inset, box-shadow: 0 2px rgba(255, 255, 255, 0.15) inset, 0 0 0 1px rgba(0, 0, 0, 0.08) inset, 0 1px rgba(0, 0, 0, 0.02); }
0 0 0 1px rgba(0, 0, 0, 0.08) inset, 0 1px rgba(0, 0, 0, 0.02);
}
.zammad-chat-status-inner { .zammad-chat-status-inner {
background: #eee; background: #eee;
border-radius: 0.5em; border-radius: 0.5em; }
}
.zammad-chat-message--customer { .zammad-chat-message--customer {
text-align: right; text-align: right; }
}
.zammad-chat-message--customer + .zammad-chat-message--agent, .zammad-chat-message--customer + .zammad-chat-message--agent,
.zammad-chat-message--agent + .zammad-chat-message--customer { .zammad-chat-message--agent + .zammad-chat-message--customer {
margin-top: 1em; margin-top: 1em; }
}
.zammad-chat-message--customer .zammad-chat-message-body { .zammad-chat-message--customer .zammad-chat-message-body {
background: #379ad7; background: #379ad7;
color: white; color: white; }
}
.zammad-chat-message--unread { .zammad-chat-message--unread {
font-weight: bold; font-weight: bold; }
}
.zammad-chat-message--typing .zammad-chat-message-body { .zammad-chat-message--typing .zammad-chat-message-body {
white-space: normal; white-space: normal; }
}
.zammad-chat-loading-animation { .zammad-chat-loading-animation {
display: inline-block; display: inline-block; }
}
.zammad-chat-loading-circle { .zammad-chat-loading-circle {
background: #d9d9d9; background: #d9d9d9;
@ -341,30 +271,23 @@
height: 0.55em; height: 0.55em;
width: 0.55em; width: 0.55em;
display: inline-block; display: inline-block;
animation: ease-in-out load-fade 600ms infinite alternate; animation: ease-in-out load-fade 600ms infinite alternate; }
}
.zammad-chat-loading-circle + .zammad-chat-loading-circle { .zammad-chat-loading-circle + .zammad-chat-loading-circle {
animation-delay: 0.13s; animation-delay: 0.13s; }
}
.zammad-chat-loading-circle .zammad-chat-loading-circle
+ .zammad-chat-loading-circle + .zammad-chat-loading-circle
+ .zammad-chat-loading-circle { + .zammad-chat-loading-circle {
animation-delay: 0.26s; animation-delay: 0.26s; }
}
@keyframes load-fade { @keyframes load-fade {
from { from {
opacity: 0.5; opacity: 0.5;
transform: scale(0.6); transform: scale(0.6); }
}
67% { 67% {
opacity: 1; opacity: 1;
transform: scale(1); transform: scale(1); } }
}
}
.zammad-chat-controls { .zammad-chat-controls {
overflow: hidden; overflow: hidden;
@ -377,13 +300,11 @@
line-height: 1.4em; line-height: 1.4em;
box-shadow: 0 1px rgba(0, 0, 0, 0.01), 0 -1px rgba(0, 0, 0, 0.02); box-shadow: 0 1px rgba(0, 0, 0, 0.01), 0 -1px rgba(0, 0, 0, 0.02);
position: relative; position: relative;
background: white; background: white; }
}
.zammad-chat-is-open .zammad-chat-controls { .zammad-chat-is-open .zammad-chat-controls {
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex; }
}
.zammad-chat-input { .zammad-chat-input {
margin: 0; margin: 0;
@ -404,12 +325,10 @@
outline: none; outline: none;
-ms-flex: 1; -ms-flex: 1;
flex: 1; flex: 1;
overflow: auto; overflow: auto; }
}
.zammad-chat-input::-webkit-input-placeholder { .zammad-chat-input::-webkit-input-placeholder {
color: #d9d9d9; color: #d9d9d9; }
}
.zammad-chat-button { .zammad-chat-button {
-webkit-appearance: none; -webkit-appearance: none;
@ -425,44 +344,35 @@
cursor: pointer; cursor: pointer;
border: none; border: none;
border-radius: 1.5em; border-radius: 1.5em;
box-shadow: 0 2px rgba(255, 255, 255, 0.25) inset, box-shadow: 0 2px rgba(255, 255, 255, 0.25) inset, 0 0 0 1px rgba(0, 0, 0, 0.1) inset, 0 1px rgba(0, 0, 0, 0.1);
0 0 0 1px rgba(0, 0, 0, 0.1) inset, 0 1px rgba(0, 0, 0, 0.1);
outline: none; outline: none;
display: inline-block; display: inline-block; }
}
.zammad-chat-send { .zammad-chat-send {
float: right; float: right; }
}
.zammad-chat-button:disabled, .zammad-chat-button:disabled,
.zammad-chat-input:disabled { .zammad-chat-input:disabled {
cursor: not-allowed; cursor: not-allowed;
opacity: 0.3; opacity: 0.3; }
}
.zammad-chat-is-hidden { .zammad-chat-is-hidden {
display: none; display: none; }
}
/* /*
# Flat Design # Flat Design
*/ */
.zammad-chat--flat .zammad-chat-header, .zammad-chat--flat .zammad-chat-header,
.zammad-chat--flat .zammad-chat-body { .zammad-chat--flat .zammad-chat-body {
border: none; border: none; }
}
.zammad-chat--flat .zammad-chat-header { .zammad-chat--flat .zammad-chat-header {
box-shadow: none; box-shadow: none; }
}
.zammad-chat--flat .zammad-chat-message-body { .zammad-chat--flat .zammad-chat-message-body {
box-shadow: none; box-shadow: none; }
}
.zammad-chat--flat .zammad-chat-agent-status, .zammad-chat--flat .zammad-chat-agent-status,
.zammad-chat--flat .zammad-chat-button, .zammad-chat--flat .zammad-chat-button,
.zammad-chat--flat .zammad-chat-status { .zammad-chat--flat .zammad-chat-status {
box-shadow: none; box-shadow: none; }
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -4,4 +4,4 @@ cd "${GULP_DIR}" || exit
yarn yarn
gulp js css no-jquery npx gulp js css no-jquery

View file

@ -5,7 +5,6 @@ ENV GULP_DIR "/tmp/gulp"
RUN apk update && apk add bash RUN apk update && apk add bash
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
CMD bash # If you want to override CMD CMD bash # If you want to override CMD
RUN npm install -g gulp
COPY docker-entrypoint.sh / COPY docker-entrypoint.sh /

View file

@ -4,4 +4,4 @@ cd "${GULP_DIR}" || exit
yarn yarn
gulp svgstore npx gulp svgstore