[Bug] Fix widget mobile layout design (#224)

This commit is contained in:
Pranav Raj S 2019-11-20 00:01:16 +05:30 committed by GitHub
parent 0d5c070f51
commit bcce70c95a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,22 +1,11 @@
export const SDK_CSS = `
.woot-widget-holder {
z-index: 2147483000!important;
position: fixed!important;
bottom: 104px;
right: 20px;
height: calc(85% - 64px - 20px);
width: 370px!important;
min-height: 250px!important;
max-height: 590px!important;
-moz-box-shadow: 0 5px 40px rgba(0,0,0,.16)!important;
-o-box-shadow: 0 5px 40px rgba(0,0,0,.16)!important;
-webkit-box-shadow: 0 5px 40px rgba(0,0,0,.16)!important;
box-shadow: 0 5px 40px rgba(0,0,0,.16)!important;
-o-border-radius: 8px!important;
-moz-border-radius: 8px!important;
-webkit-border-radius: 8px!important;
border-radius: 8px!important;
overflow: hidden!important;
opacity: 1;
transition-property: opacity, bottom;
@ -44,7 +33,7 @@ export const SDK_CSS = `
height: 64px!important;
}
.woot-widget-bubble:hover {
.woot-widget-bubble:hover {
background: #1f93ff;
-moz-box-shadow: 0 8px 32px rgba(0,0,0,.4)!important;
-o-box-shadow: 0 8px 32px rgba(0,0,0,.4)!important;
@ -71,4 +60,37 @@ export const SDK_CSS = `
bottom: 60px;
}
@media only screen and (max-width: 667px) {
.woot-widget-holder {
top: 0;
right: 0;
height: 100%;
width: 100%;
}
.woot-widget-bubble.woot--close {
top: 0;
right: 0;
box-shadow: none !important;
-moz-box-shadow: none !important;
-o-box-shadow: none !important;
-webkit-box-shadow: none !important;
}
}
@media only screen and (min-width: 667px) {
.woot-widget-holder {
bottom: 104px;
right: 20px;
height: calc(85% - 64px - 20px);
width: 370px!important;
min-height: 250px!important;
max-height: 590px!important;
-o-border-radius: 8px!important;
-moz-border-radius: 8px!important;
-webkit-border-radius: 8px!important;
border-radius: 8px!important;
}
}
`;