Feature: Customise the position of messenger (#767)

Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
This commit is contained in:
Pranav Raj S
2020-04-25 23:18:00 +05:30
committed by GitHub
parent 94192e8184
commit 6770126de0
8 changed files with 85 additions and 12 deletions

View File

@@ -30,12 +30,29 @@ export const SDK_CSS = ` .woot-widget-holder {
background: #1f93ff;
position: fixed;
cursor: pointer;
right: 20px;
bottom: 20px;
width: 64px !important;
height: 64px !important;
}
.woot-widget-bubble.woot-elements--left {
left: 20px;
}
.woot-widget-bubble.woot-elements--right {
right: 20px;
}
@media only screen and (min-width: 667px) {
.woot-widget-holder.woot-elements--left {
left: 20px;
}
.woot-widget-holder.woot-elements--right {
right: 20px;
}
}
.woot-widget-bubble:hover {
background: #1f93ff;
-moz-box-shadow: 0 8px 32px rgba(0, 0, 0, .4) !important;
@@ -53,6 +70,7 @@ export const SDK_CSS = ` .woot-widget-holder {
.woot--close:hover {
opacity: 1;
}
.woot--close:before, .woot--close:after {
position: absolute;
left: 32px;
@@ -62,9 +80,11 @@ export const SDK_CSS = ` .woot-widget-holder {
width: 2px;
background-color: white;
}
.woot--close:before {
transform: rotate(45deg);
}
.woot--close:after {
transform: rotate(-45deg);
}
@@ -96,7 +116,6 @@ export const SDK_CSS = ` .woot-widget-holder {
@media only screen and (min-width: 667px) {
.woot-widget-holder {
bottom: 104px;
right: 20px;
height: calc(85% - 64px - 20px);
width: 400px !important;
min-height: 250px !important;
@@ -107,5 +126,4 @@ export const SDK_CSS = ` .woot-widget-holder {
border-radius: 16px !important;
}
}
`;