This repository was archived by the owner on Nov 29, 2019. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathchatFrame.scss
More file actions
101 lines (90 loc) · 2.47 KB
/
Copy pathchatFrame.scss
File metadata and controls
101 lines (90 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
$windowBorderRadius: 10px;
$backgroundColor: #120d9c;
$buttonSize: 60px;
$smallButtonSize: 40px;
$textColor: white;
$buttonMargin: 15px;
$windowWidth: 350px;
$windowHeight: 470px;
$navbarHeight: 60px;
$navbarMargin: 20px;
$marginBetweenFrameAndButton: 10px;
$chatframeHeaderHeight: 60px;
.chatframe {
position: fixed;
right: $buttonMargin;
bottom: $buttonMargin;
z-index: 300;
display: flex;
align-items: flex-end;
justify-content: flex-end;
flex-direction: column;
height: $buttonSize;
width: $buttonSize;
max-width: calc(100% - (2 * #{$buttonMargin}));
max-height: calc(100% - (#{$navbarHeight} + #{$buttonMargin} + #{$navbarMargin}));
pointer-events: none;
& > * {
pointer-events: auto;
}
@media (max-width: $screen-xxs-max) {
height: $smallButtonSize;
width: $smallButtonSize;
}
&.open {
height: $windowHeight;
width: $windowWidth;
}
.chatframe-modal {
box-shadow: 0 10px 15px 0 rgba(0, 0, 0, 0.4);
margin-bottom: $marginBetweenFrameAndButton;
border-radius: $windowBorderRadius;
height: calc(100% - (#{$buttonSize} + #{$marginBetweenFrameAndButton}));
width: 100%;
/* Portrait phones and smaller */
@media (max-width: $screen-xxs-max) {
height: calc(100% - (#{$smallButtonSize} + #{$marginBetweenFrameAndButton}));
}
.chatframe-modal-header {
font-family: $font-family4;
height: $chatframeHeaderHeight;
border-top-left-radius: $windowBorderRadius;
border-top-right-radius: $windowBorderRadius;
display: flex;
align-items: center;
padding: 0 15px;
color: $textColor;
background-color: $backgroundColor;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
position: relative;
z-index: 400;
}
.chatframe-modal-iframe {
height: calc(100% - #{$chatframeHeaderHeight});
width: 100%;
border: 0;
display: block;
border-bottom-left-radius: $windowBorderRadius;
border-bottom-right-radius: $windowBorderRadius;
}
}
.chatframe-button {
height: $buttonSize;
width: $buttonSize;
border-radius: $buttonSize / 2;
background-color: $backgroundColor;
color: $textColor;
display: flex;
justify-content: center;
align-items: center;
/* Portrait phones and smaller */
@media (max-width: $screen-xxs-max) {
height: $smallButtonSize;
width: $smallButtonSize;
border-radius: $smallButtonSize / 2;
}
}
.chatframe-icon:before {
font-size: 32px;
}
}